-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Andrey Borysenko <[email protected]>
- Loading branch information
0 parents
commit 6d08227
Showing
51 changed files
with
27,896 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module.exports = { | ||
globals: { | ||
appVersion: true | ||
}, | ||
parserOptions: { | ||
requireConfigFile: false | ||
}, | ||
extends: [ | ||
'@nextcloud' | ||
], | ||
rules: { | ||
'jsdoc/require-jsdoc': 'off', | ||
'jsdoc/tag-lines': 'off', | ||
'vue/first-attribute-linebreak': 'off', | ||
'import/extensions': 'off' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Declare files that always have LF line endings on checkout | ||
* text eol=lf | ||
|
||
# Denote all files that are truly binary and should not be modified | ||
js/* binary | ||
screenshots/* binary | ||
*.png binary | ||
*.hif binary | ||
|
||
# Files to exclude from GitHub Languages statistics | ||
*.Dockerfile linguist-vendored=true | ||
l10n/* linguist-vendored=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/appinfo/info.xml @andrey18106 @bigcat88 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
We always welcome contributions. Have an issue or an idea for a feature? Let us know. Additionally, we happily accept pull requests. | ||
|
||
In order to make the process run more smoothly, you can make sure of the following things: | ||
|
||
- Announce that you're working on a feature/bugfix in the relevant issue | ||
- Make sure the tests are passing | ||
- If you have any questions you can let the maintainers above know privately via email, or simply open an issue on github | ||
|
||
Please read the [Code of Conduct](https://nextcloud.com/community/code-of-conduct/). This document offers some guidance to ensure Nextcloud participants can cooperate effectively in a positive and inspiring atmosphere, and to explain how together we can strengthen and support each other. | ||
|
||
More information on how to contribute: https://nextcloud.com/contribute/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,167 @@ | ||
# This workflow is provided via the organization template repository | ||
# | ||
# https://github.com/nextcloud/.github | ||
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization | ||
|
||
name: Build and publish app release | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
env: | ||
PHP_VERSION: 8.1 | ||
|
||
jobs: | ||
build_and_publish: | ||
runs-on: ubuntu-latest | ||
|
||
# Only allowed to be run on nextcloud-releases repositories | ||
if: ${{ github.repository_owner == 'nextcloud-releases' }} | ||
|
||
steps: | ||
- name: Check actor permission | ||
uses: skjnldsv/check-actor-permission@e591dbfe838300c007028e1219ca82cc26e8d7c5 # v2.1 | ||
with: | ||
require: write | ||
|
||
- name: Set app env | ||
run: | | ||
# Split and keep last | ||
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV | ||
echo "APP_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV | ||
- name: Checkout | ||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 | ||
with: | ||
path: ${{ env.APP_NAME }} | ||
|
||
- name: Get appinfo data | ||
id: appinfo | ||
uses: skjnldsv/xpath-action@7e6a7c379d0e9abc8acaef43df403ab4fc4f770c # master | ||
with: | ||
filename: ${{ env.APP_NAME }}/appinfo/info.xml | ||
expression: "//info//dependencies//nextcloud/@min-version" | ||
|
||
- name: Read package.json node and npm engines version | ||
uses: skjnldsv/read-package-engines-version-actions@1bdcee71fa343c46b18dc6aceffb4cd1e35209c6 # v1.2 | ||
id: versions | ||
# Continue if no package.json | ||
continue-on-error: true | ||
with: | ||
path: ${{ env.APP_NAME }} | ||
fallbackNode: "^16" | ||
fallbackNpm: "^7" | ||
|
||
- name: Set up node ${{ steps.versions.outputs.nodeVersion }} | ||
# Skip if no package.json | ||
if: ${{ steps.versions.outputs.nodeVersion }} | ||
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516 # v3 | ||
with: | ||
node-version: ${{ steps.versions.outputs.nodeVersion }} | ||
|
||
- name: Set up npm ${{ steps.versions.outputs.npmVersion }} | ||
# Skip if no package.json | ||
if: ${{ steps.versions.outputs.npmVersion }} | ||
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}" | ||
|
||
- name: Set up php ${{ env.PHP_VERSION }} | ||
uses: shivammathur/setup-php@1a18b2267f80291a81ca1d33e7c851fe09e7dfc4 # v2 | ||
with: | ||
php-version: ${{ env.PHP_VERSION }} | ||
coverage: none | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Check composer.json | ||
id: check_composer | ||
uses: andstor/file-existence-action@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2 | ||
with: | ||
files: "${{ env.APP_NAME }}/composer.json" | ||
|
||
- name: Install composer dependencies | ||
if: steps.check_composer.outputs.files_exists == 'true' | ||
run: | | ||
cd ${{ env.APP_NAME }} | ||
composer install --no-dev | ||
- name: Build ${{ env.APP_NAME }} | ||
# Skip if no package.json | ||
if: ${{ steps.versions.outputs.nodeVersion }} | ||
run: | | ||
cd ${{ env.APP_NAME }} | ||
npm ci | ||
npm run build | ||
- name: Check Krankerl config | ||
id: krankerl | ||
uses: andstor/file-existence-action@20b4d2e596410855db8f9ca21e96fbe18e12930b # v2 | ||
with: | ||
files: ${{ env.APP_NAME }}/krankerl.toml | ||
|
||
- name: Install Krankerl | ||
if: steps.krankerl.outputs.files_exists == 'true' | ||
run: | | ||
wget https://github.com/ChristophWurst/krankerl/releases/download/v0.14.0/krankerl_0.14.0_amd64.deb | ||
sudo dpkg -i krankerl_0.14.0_amd64.deb | ||
- name: Package ${{ env.APP_NAME }} ${{ env.APP_VERSION }} with krankerl | ||
if: steps.krankerl.outputs.files_exists == 'true' | ||
run: | | ||
cd ${{ env.APP_NAME }} | ||
krankerl package | ||
- name: Package ${{ env.APP_NAME }} ${{ env.APP_VERSION }} with makefile | ||
if: steps.krankerl.outputs.files_exists != 'true' | ||
run: | | ||
cd ${{ env.APP_NAME }} | ||
make appstore | ||
- name: Checkout server ${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }} | ||
continue-on-error: true | ||
id: server-checkout | ||
run: | | ||
NCVERSION=${{ fromJSON(steps.appinfo.outputs.result).nextcloud.min-version }} | ||
wget --quiet https://download.nextcloud.com/server/releases/latest-$NCVERSION.zip | ||
unzip latest-$NCVERSION.zip | ||
- name: Checkout server master fallback | ||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3 | ||
if: ${{ steps.server-checkout.outcome != 'success' }} | ||
with: | ||
submodules: true | ||
repository: nextcloud/server | ||
path: nextcloud | ||
|
||
- name: Sign app | ||
run: | | ||
# Extracting release | ||
cd ${{ env.APP_NAME }}/build/artifacts | ||
tar -xvf ${{ env.APP_NAME }}.tar.gz | ||
cd ../../../ | ||
# Setting up keys | ||
echo "${{ secrets.APP_PRIVATE_KEY }}" > ${{ env.APP_NAME }}.key | ||
wget --quiet "https://github.com/nextcloud/app-certificate-requests/raw/master/${{ env.APP_NAME }}/${{ env.APP_NAME }}.crt" | ||
# Signing | ||
php nextcloud/occ integrity:sign-app --privateKey=../${{ env.APP_NAME }}.key --certificate=../${{ env.APP_NAME }}.crt --path=../${{ env.APP_NAME }}/build/artifacts/${{ env.APP_NAME }} | ||
# Rebuilding archive | ||
cd ${{ env.APP_NAME }}/build/artifacts | ||
tar -zcvf ${{ env.APP_NAME }}.tar.gz ${{ env.APP_NAME }} | ||
- name: Attach tarball to github release | ||
uses: svenstaro/upload-release-action@133984371c30d34e38222a64855679a414cb7575 # v2 | ||
id: attach_to_release | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: ${{ env.APP_NAME }}/build/artifacts/${{ env.APP_NAME }}.tar.gz | ||
asset_name: ${{ env.APP_NAME }}-${{ env.APP_VERSION }}.tar.gz | ||
tag: ${{ github.ref }} | ||
overwrite: true | ||
|
||
- name: Upload app to Nextcloud appstore | ||
uses: nextcloud-releases/nextcloud-appstore-push-action@a011fe619bcf6e77ddebc96f9908e1af4071b9c1 # v1 | ||
with: | ||
app_name: ${{ env.APP_NAME }} | ||
appstore_token: ${{ secrets.APPSTORE_TOKEN }} | ||
download_url: ${{ steps.attach_to_release.outputs.browser_download_url }} | ||
app_private_key: ${{ secrets.APP_PRIVATE_KEY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/js/ | ||
.code-workspace | ||
.DS_Store | ||
.idea/ | ||
.vscode/ | ||
.vscode-upload.json | ||
.*.sw* | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
js/ | ||
vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
.git | ||
.github | ||
.gitignore | ||
.tx | ||
.vscode | ||
.php-cs-fixer.* | ||
/.codecov.yml | ||
/.eslintrc.js | ||
/.gitattributes | ||
/.gitignore | ||
/.l10nignore | ||
/.nextcloudignore | ||
/.travis.yml | ||
/.pre-commit-config.yaml | ||
/babel.config.js | ||
/build | ||
/AUTHORS.md | ||
/CHANGELOG.md | ||
/CODE_OF_CONDUCT.md | ||
/README.md | ||
/SECURITY.md | ||
/composer.* | ||
/node_modules | ||
/screenshots | ||
/src | ||
/vendor/bin | ||
/jest.config.js | ||
/Makefile | ||
/krankerl.toml | ||
/package-lock.json | ||
/package.json | ||
/postcss.config.js | ||
/psalm.xml | ||
/pyproject.toml | ||
/renovate.json | ||
/stylelint.config.js | ||
/webpack.* | ||
tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[main] | ||
host = https://www.transifex.com | ||
lang_map = hu_HU: hu, nb_NO: nb, sk_SK: sk, th_TH: th, ja_JP: ja, bg_BG: bg, cs_CZ: cs, fi_FI: fi | ||
|
||
[o:nextcloud:p:nextcloud:r:app_ecosystem_v2] | ||
file_filter = translationfiles/<lang>/app_ecosystem_v2.po | ||
source_file = translationfiles/templates/app_ecosystem_v2.pot | ||
source_lang = en | ||
type = PO |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Authors | ||
|
||
* Andrey Borysenko <[email protected]> (Developer) | ||
* Alexander Piskun <[email protected]> (Developer) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Change Log | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/) | ||
and this project adheres to [Semantic Versioning](http://semver.org/). | ||
|
||
## [Unreleased] | ||
|
||
## [1.0.0 - 2023-xx-xx] | ||
|
||
First App Ecosystem V2 prototype release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Code of Conduct | ||
|
||
Be openness, as well as friendly and didactic in discussions. | ||
|
||
Treat everybody equally, and value their contributions. | ||
|
||
Decisions are made based on technical merit and consensus. | ||
|
||
Try to follow most principles described here: https://nextcloud.com/code-of-conduct/ |
Oops, something went wrong.