diff --git a/.github/workflows.template/block-unconventional-commits.yml b/.github/workflows/block-unconventional-commits.yml similarity index 100% rename from .github/workflows.template/block-unconventional-commits.yml rename to .github/workflows/block-unconventional-commits.yml diff --git a/.github/workflows.template/build-npm.yml b/.github/workflows/build-npm.yml similarity index 100% rename from .github/workflows.template/build-npm.yml rename to .github/workflows/build-npm.yml diff --git a/.github/workflows.template/lint-appinfo-xml.yml b/.github/workflows/lint-appinfo-xml.yml similarity index 100% rename from .github/workflows.template/lint-appinfo-xml.yml rename to .github/workflows/lint-appinfo-xml.yml diff --git a/.github/workflows.template/lint-eslint.yml b/.github/workflows/lint-eslint.yml similarity index 100% rename from .github/workflows.template/lint-eslint.yml rename to .github/workflows/lint-eslint.yml diff --git a/.github/workflows.template/lint-openapi.yml b/.github/workflows/lint-openapi.yml similarity index 100% rename from .github/workflows.template/lint-openapi.yml rename to .github/workflows/lint-openapi.yml diff --git a/.github/workflows.template/lint-php-cs.yml b/.github/workflows/lint-php-cs.yml similarity index 100% rename from .github/workflows.template/lint-php-cs.yml rename to .github/workflows/lint-php-cs.yml diff --git a/.github/workflows.template/lint-php.yml b/.github/workflows/lint-php.yml similarity index 100% rename from .github/workflows.template/lint-php.yml rename to .github/workflows/lint-php.yml diff --git a/.github/workflows.template/phpunit-mysql.yml b/.github/workflows/phpunit-mysql.yml similarity index 100% rename from .github/workflows.template/phpunit-mysql.yml rename to .github/workflows/phpunit-mysql.yml diff --git a/.github/workflows.template/phpunit-pgsql.yml b/.github/workflows/phpunit-pgsql.yml similarity index 100% rename from .github/workflows.template/phpunit-pgsql.yml rename to .github/workflows/phpunit-pgsql.yml diff --git a/.github/workflows.template/psalm-matrix.yml b/.github/workflows/psalm-matrix.yml similarity index 100% rename from .github/workflows.template/psalm-matrix.yml rename to .github/workflows/psalm-matrix.yml diff --git a/.github/workflows.template/release.yml b/.github/workflows/release.yml similarity index 87% rename from .github/workflows.template/release.yml rename to .github/workflows/release.yml index 6819c07..c426395 100644 --- a/.github/workflows.template/release.yml +++ b/.github/workflows/release.yml @@ -71,8 +71,8 @@ jobs: - name: Upload Artifacts uses: actions/upload-artifact@v4 with: - name: nextcloudapptemplate.tar.gz - path: build/artifacts/appstore/nextcloudapptemplate.tar.gz + name: pantry.tar.gz + path: build/artifacts/appstore/pantry.tar.gz upload: runs-on: ubuntu-latest @@ -86,18 +86,18 @@ jobs: - name: Download Artifacts uses: actions/download-artifact@v4 with: - name: nextcloudapptemplate.tar.gz + name: pantry.tar.gz - name: Prepare Artifact Upload - run: test -f "$PWD/nextcloudapptemplate.tar.gz" + run: test -f "$PWD/pantry.tar.gz" - name: Upload to Release if: ${{ needs.release.outputs.release_created }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | - mv nextcloudapptemplate.tar.gz "nextcloudapptemplate-${{ needs.release.outputs.tag_name }}.tar.gz" - gh release upload ${{ needs.release.outputs.tag_name }} nextcloudapptemplate-${{ needs.release.outputs.tag_name }}.tar.gz + mv pantry.tar.gz "pantry-${{ needs.release.outputs.tag_name }}.tar.gz" + gh release upload ${{ needs.release.outputs.tag_name }} pantry-${{ needs.release.outputs.tag_name }}.tar.gz release-nextcloud: name: Release to Nextcloud Apps @@ -115,7 +115,7 @@ jobs: echo "Private key not provided" exit 1 fi - echo -n "${{ secrets.NEXTCLOUD_APP_PRIVATE_KEY }}" > ~/.nextcloud/certificates/nextcloudapptemplate.key + echo -n "${{ secrets.NEXTCLOUD_APP_PRIVATE_KEY }}" > ~/.nextcloud/certificates/pantry.key - name: Release to Nextcloud Apps if: ${{ needs.release.outputs.release_created }} diff --git a/.github/workflows.template/vitest.yml b/.github/workflows/vitest.yml similarity index 97% rename from .github/workflows.template/vitest.yml rename to .github/workflows/vitest.yml index 683fb08..75f8a46 100644 --- a/.github/workflows.template/vitest.yml +++ b/.github/workflows/vitest.yml @@ -1,4 +1,4 @@ -# SPDX-FileCopyrightText: Your Name +# SPDX-FileCopyrightText: Chen Asraf # SPDX-License-Identifier: AGPL-3.0-or-later name: Vitest diff --git a/.tx/config b/.tx/config index 304195e..2ecb6af 100644 --- a/.tx/config +++ b/.tx/config @@ -2,8 +2,8 @@ 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, he_IL: he, ar_AR: ar -[o:nextcloud:p:nextcloud:r:nextcloudapptemplate] -file_filter = translationfiles//nextcloudapptemplate.po -source_file = translationfiles/templates/nextcloudapptemplate.pot +[o:nextcloud:p:nextcloud:r:pantry] +file_filter = translationfiles//pantry.po +source_file = translationfiles/templates/pantry.pot source_lang = en type = PO diff --git a/ISSUE_TEMPLATE/bug_report.yml b/ISSUE_TEMPLATE/bug_report.yml index 94cea7d..83cb467 100644 --- a/ISSUE_TEMPLATE/bug_report.yml +++ b/ISSUE_TEMPLATE/bug_report.yml @@ -1,5 +1,5 @@ name: Bug Report -description: Report a bug or issue with the NextcloudAppTemplate app +description: Report a bug or issue with the Pantry app labels: ["bug"] body: - type: markdown @@ -59,8 +59,8 @@ body: - type: input id: app-version attributes: - label: NextcloudAppTemplate App Version - description: What version of the NextcloudAppTemplate app are you using? + label: Pantry App Version + description: What version of the Pantry app are you using? placeholder: e.g., 1.0.0 validations: required: true @@ -108,21 +108,21 @@ body: description: | **How to check migration status:** - This shows which database migrations have been executed for the NextcloudAppTemplate app. + This shows which database migrations have been executed for the Pantry app. **For Docker installations:** ```bash - docker exec --user www-data -i nextcloud-aio-nextcloud php occ migrations:status nextcloudapptemplate + docker exec --user www-data -i nextcloud-aio-nextcloud php occ migrations:status pantry ``` **For standard installations:** ```bash - php occ migrations:status nextcloudapptemplate + php occ migrations:status pantry ``` Or from the Nextcloud directory: ```bash - sudo -u www-data php occ migrations:status nextcloudapptemplate + sudo -u www-data php occ migrations:status pantry ``` placeholder: Paste the migration status output here... render: shell @@ -134,25 +134,25 @@ body: description: | **How to get server logs:** - Look for errors related to the NextcloudAppTemplate app (last 20-50 lines recommended). + Look for errors related to the Pantry app (last 20-50 lines recommended). **Via Web UI:** - Go to Nextcloud Settings → Administration → Logging (or `/settings/admin/logging`) - - Look for entries containing "nextcloudapptemplate" + - Look for entries containing "pantry" **For Docker installations:** ```bash - docker exec --user www-data -i nextcloud-aio-nextcloud tail -100 /var/www/html/data/nextcloud.log | grep -i nextcloudapptemplate + docker exec --user www-data -i nextcloud-aio-nextcloud tail -100 /var/www/html/data/nextcloud.log | grep -i pantry ``` **For standard installations:** ```bash - tail -100 /path/to/nextcloud/data/nextcloud.log | grep -i nextcloudapptemplate + tail -100 /path/to/nextcloud/data/nextcloud.log | grep -i pantry ``` Or from the Nextcloud directory: ```bash - sudo -u www-data tail -100 data/nextcloud.log | grep -i nextcloudapptemplate + sudo -u www-data tail -100 data/nextcloud.log | grep -i pantry ``` placeholder: Paste Nextcloud server logs here... render: shell @@ -166,7 +166,7 @@ body: 1. Open the page where the issue occurs 2. Press **F12** (or right-click → Inspect → Console tab) 3. Look for red error messages - 4. Copy any errors related to the NextcloudAppTemplate app + 4. Copy any errors related to the Pantry app **Tip:** You can right-click on an error and select "Copy message" or "Copy stack trace" placeholder: Paste browser console errors here... @@ -184,13 +184,13 @@ body: 4. Look for failed requests (shown in red or with 4xx/5xx status codes) 5. Click on the failed request 6. Copy the following information: - - **Request URL** (e.g., `/apps/nextcloudapptemplate/api/...`) + - **Request URL** (e.g., `/apps/pantry/api/...`) - **Status Code** (e.g., 500, 404, 403) - **Response** tab content (the error message/data returned) **Example format:** ``` - Request: POST /apps/nextcloudapptemplate/api/... + Request: POST /apps/pantry/api/... Status: 500 Internal Server Error Response: {"error": "Database connection failed"} ``` diff --git a/ISSUE_TEMPLATE/config.yml b/ISSUE_TEMPLATE/config.yml index e99179c..c5f584c 100644 --- a/ISSUE_TEMPLATE/config.yml +++ b/ISSUE_TEMPLATE/config.yml @@ -4,5 +4,5 @@ contact_links: url: https://help.nextcloud.com about: Ask questions and get help from the Nextcloud community - name: Security Issue - url: https://github.com/chenasraf/nextcloud-nextcloudapptemplate/security/advisories/new + url: https://github.com/chenasraf/nextcloud-pantry/security/advisories/new about: Report a security vulnerability privately diff --git a/ISSUE_TEMPLATE/feature_request.yml b/ISSUE_TEMPLATE/feature_request.yml index 5aede2b..671f243 100644 --- a/ISSUE_TEMPLATE/feature_request.yml +++ b/ISSUE_TEMPLATE/feature_request.yml @@ -1,5 +1,5 @@ name: Feature Request -description: Suggest a new feature or enhancement for the NextcloudAppTemplate app +description: Suggest a new feature or enhancement for the Pantry app labels: ["enhancement"] body: - type: markdown diff --git a/Makefile b/Makefile index 731b39f..d2d9c8f 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # SPDX-FileCopyrightText: Bernhard Posselt # SPDX-License-Identifier: AGPL-3.0-or-later # -# NextcloudAppTemplate — Makefile +# Pantry — Makefile # --------------------------------- # A friendly, batteries-included Makefile for building and packaging a Nextcloud app # that uses pnpm (JS) and Composer (PHP). @@ -26,8 +26,8 @@ # make release → upload release to Nextcloud App Store # -app_name=nextcloudapptemplate -repo_path=your-user/nextcloud-$(app_name) +app_name=pantry +repo_path=chenasraf/nextcloud-$(app_name) build_tools_directory=$(CURDIR)/build/tools source_build_directory=$(CURDIR)/build/artifacts/source source_intermediate_directory=$(CURDIR)/build/artifacts/intermediate-source/$(app_name) diff --git a/README.md b/README.md index 4107831..f7713bf 100755 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -# Nextcloud App Template +# Pantry This is a starter template for a Nextcloud app, using Vue 3 with Vite as frontend. diff --git a/appinfo/info.xml b/appinfo/info.xml index d4808e9..dab6de4 100644 --- a/appinfo/info.xml +++ b/appinfo/info.xml @@ -1,41 +1,41 @@ - nextcloudapptemplate - Nextcloud App Template + pantry + Pantry Enter your app summary here. 1.0.0 agpl - Your Name - NextcloudAppTemplate + Chen Asraf + Pantry - https://github.com/your-user/nextcloud-nextcloudapptemplate/blob/master/README.md - https://github.com/your-user/nextcloud-nextcloudapptemplate#installation - https://github.com/your-user/nextcloud-nextcloudapptemplate#development + https://github.com/chenasraf/nextcloud-pantry/blob/master/README.md + https://github.com/chenasraf/nextcloud-pantry#installation + https://github.com/chenasraf/nextcloud-pantry#development organization tools - https://github.com/your-user/nextcloud-nextcloudapptemplate - https://github.com/your-user/nextcloud-nextcloudapptemplate/issues - https://github.com/your-user/nextcloud-nextcloudapptemplate - https://raw.githubusercontent.com/your-user/nextcloud-nextcloudapptemplate/refs/heads/master/promo.png + https://github.com/chenasraf/nextcloud-pantry + https://github.com/chenasraf/nextcloud-pantry/issues + https://github.com/chenasraf/nextcloud-pantry + https://raw.githubusercontent.com/chenasraf/nextcloud-pantry/refs/heads/master/promo.png - OCA\NextcloudAppTemplate\Settings\Admin - OCA\NextcloudAppTemplate\Sections\Admin + OCA\Pantry\Settings\Admin + OCA\Pantry\Sections\Admin - Nextcloud App Template - nextcloudapptemplate.page.index + Pantry + pantry.page.index app.svg 6 diff --git a/composer/autoload.php b/composer/autoload.php index 2962a67..d6502e9 100644 --- a/composer/autoload.php +++ b/composer/autoload.php @@ -1,6 +1,6 @@ +// SPDX-FileCopyrightText: Chen Asraf // SPDX-License-Identifier: AGPL-3.0-or-later // declare(strict_types=1); diff --git a/gen/api/{{pascalCase name}}Controller.php b/gen/api/{{pascalCase name}}Controller.php index c3f9914..7920a38 100644 --- a/gen/api/{{pascalCase name}}Controller.php +++ b/gen/api/{{pascalCase name}}Controller.php @@ -2,10 +2,10 @@ declare(strict_types=1); -// SPDX-FileCopyrightText: Your Name +// SPDX-FileCopyrightText: Chen Asraf // SPDX-License-Identifier: AGPL-3.0-or-later -namespace OCA\NextcloudAppTemplate\Controller; +namespace OCA\Pantry\Controller; use OCP\AppFramework\Http; use OCP\AppFramework\Http\Attribute\ApiRoute; diff --git a/gen/command/{{pascalCase name}}.php b/gen/command/{{pascalCase name}}.php index dbdd34b..59683d1 100644 --- a/gen/command/{{pascalCase name}}.php +++ b/gen/command/{{pascalCase name}}.php @@ -2,10 +2,10 @@ declare(strict_types=1); -// SPDX-FileCopyrightText: Your Name +// SPDX-FileCopyrightText: Chen Asraf // SPDX-License-Identifier: AGPL-3.0-or-later -namespace OCA\NextcloudAppTemplate\Command; +namespace OCA\Pantry\Command; use Symfony\Component\Console\Command\Command; use Symfony\Component\Console\Input\InputInterface; diff --git a/gen/component/{{pascalCase name}}.test.ts b/gen/component/{{pascalCase name}}.test.ts index d6c25dd..6a5f92b 100644 --- a/gen/component/{{pascalCase name}}.test.ts +++ b/gen/component/{{pascalCase name}}.test.ts @@ -1,4 +1,4 @@ -// SPDX-FileCopyrightText: Your Name +// SPDX-FileCopyrightText: Chen Asraf // SPDX-License-Identifier: AGPL-3.0-or-later /** diff --git a/gen/component/{{pascalCase name}}.vue b/gen/component/{{pascalCase name}}.vue index efb76a4..d1f021f 100644 --- a/gen/component/{{pascalCase name}}.vue +++ b/gen/component/{{pascalCase name}}.vue @@ -1,5 +1,5 @@ diff --git a/gen/migration/Version{{version}}Date{{dt}}.php b/gen/migration/Version{{version}}Date{{dt}}.php index d1ce988..9145565 100644 --- a/gen/migration/Version{{version}}Date{{dt}}.php +++ b/gen/migration/Version{{version}}Date{{dt}}.php @@ -2,10 +2,10 @@ declare(strict_types=1); -// SPDX-FileCopyrightText: Your Name +// SPDX-FileCopyrightText: Chen Asraf // SPDX-License-Identifier: AGPL-3.0-or-later -namespace OCA\NextcloudAppTemplate\Migration; +namespace OCA\Pantry\Migration; use Closure; use OCP\DB\ISchemaWrapper; diff --git a/gen/model/{{pascalCase name}}.php b/gen/model/{{pascalCase name}}.php index a5f5e0c..705e252 100755 --- a/gen/model/{{pascalCase name}}.php +++ b/gen/model/{{pascalCase name}}.php @@ -2,10 +2,10 @@ declare(strict_types=1); -// SPDX-FileCopyrightText: Your Name +// SPDX-FileCopyrightText: Chen Asraf // SPDX-License-Identifier: AGPL-3.0-or-later -namespace OCA\NextcloudAppTemplate\Db; +namespace OCA\Pantry\Db; use JsonSerializable; diff --git a/gen/model/{{pascalCase name}}Mapper.php b/gen/model/{{pascalCase name}}Mapper.php index bcf688b..fa978a0 100755 --- a/gen/model/{{pascalCase name}}Mapper.php +++ b/gen/model/{{pascalCase name}}Mapper.php @@ -2,12 +2,12 @@ declare(strict_types=1); -// SPDX-FileCopyrightText: Your Name +// SPDX-FileCopyrightText: Chen Asraf // SPDX-License-Identifier: AGPL-3.0-or-later -namespace OCA\NextcloudAppTemplate\Db; +namespace OCA\Pantry\Db; -use OCA\NextcloudAppTemplate\AppInfo\Application; +use OCA\Pantry\AppInfo\Application; use OCP\AppFramework\Db\DoesNotExistException; use OCP\AppFramework\Db\QBMapper; use OCP\DB\QueryBuilder\IQueryBuilder; diff --git a/gen/service/{{pascalCase name}}Service.php b/gen/service/{{pascalCase name}}Service.php index a6981d5..0a20561 100644 --- a/gen/service/{{pascalCase name}}Service.php +++ b/gen/service/{{pascalCase name}}Service.php @@ -2,10 +2,10 @@ declare(strict_types=1); -// SPDX-FileCopyrightText: Your Name +// SPDX-FileCopyrightText: Chen Asraf // SPDX-License-Identifier: AGPL-3.0-or-later -namespace OCA\NextcloudAppTemplate\Service; +namespace OCA\Pantry\Service; use Psr\Log\LoggerInterface; diff --git a/gen/task-queued/{{pascalCase name}}Task.php b/gen/task-queued/{{pascalCase name}}Task.php index bc7729a..63aea1b 100644 --- a/gen/task-queued/{{pascalCase name}}Task.php +++ b/gen/task-queued/{{pascalCase name}}Task.php @@ -2,10 +2,10 @@ declare(strict_types=1); -// SPDX-FileCopyrightText: Your Name +// SPDX-FileCopyrightText: Chen Asraf // SPDX-License-Identifier: AGPL-3.0-or-later -namespace OCA\NextcloudAppTemplate\Cron; +namespace OCA\Pantry\Cron; use OCP\AppFramework\Utility\ITimeFactory; use OCP\BackgroundJob\QueuedJob; diff --git a/gen/task-timed/{{pascalCase name}}Task.php b/gen/task-timed/{{pascalCase name}}Task.php index 351d322..cef0578 100644 --- a/gen/task-timed/{{pascalCase name}}Task.php +++ b/gen/task-timed/{{pascalCase name}}Task.php @@ -2,10 +2,10 @@ declare(strict_types=1); -// SPDX-FileCopyrightText: Your Name +// SPDX-FileCopyrightText: Chen Asraf // SPDX-License-Identifier: AGPL-3.0-or-later -namespace OCA\NextcloudAppTemplate\Cron; +namespace OCA\Pantry\Cron; use OCP\AppFramework\Utility\ITimeFactory; use OCP\BackgroundJob\TimedJob; diff --git a/gen/util/{{pascalCase name}}Util.php b/gen/util/{{pascalCase name}}Util.php index c385f4c..238b52d 100644 --- a/gen/util/{{pascalCase name}}Util.php +++ b/gen/util/{{pascalCase name}}Util.php @@ -2,10 +2,10 @@ declare(strict_types=1); -// SPDX-FileCopyrightText: Your Name +// SPDX-FileCopyrightText: Chen Asraf // SPDX-License-Identifier: AGPL-3.0-or-later -namespace OCA\NextcloudAppTemplate\Util; +namespace OCA\Pantry\Util; use Psr\Log\LoggerInterface; diff --git a/gen/view/{{pascalCase name}}Page.vue b/gen/view/{{pascalCase name}}Page.vue index f6af1fe..73505f6 100644 --- a/gen/view/{{pascalCase name}}Page.vue +++ b/gen/view/{{pascalCase name}}Page.vue @@ -1,5 +1,5 @@ diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 213fd09..441b5da 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -2,10 +2,10 @@ declare(strict_types=1); -// SPDX-FileCopyrightText: Your Name +// SPDX-FileCopyrightText: Chen Asraf // SPDX-License-Identifier: AGPL-3.0-or-later -namespace OCA\NextcloudAppTemplate\AppInfo; +namespace OCA\Pantry\AppInfo; use OCP\AppFramework\App; use OCP\AppFramework\Bootstrap\IBootContext; @@ -13,7 +13,7 @@ use OCP\AppFramework\Bootstrap\IBootstrap; use OCP\AppFramework\Bootstrap\IRegistrationContext; class Application extends App implements IBootstrap { - public const APP_ID = 'nextcloudapptemplate'; + public const APP_ID = 'pantry'; public const DIST_DIR = '../dist'; public const JS_DIR = self::DIST_DIR . '/js'; public const CSS_DIR = self::DIST_DIR . '/css'; diff --git a/lib/Controller/ApiController.php b/lib/Controller/ApiController.php index 5ef6de3..753836c 100644 --- a/lib/Controller/ApiController.php +++ b/lib/Controller/ApiController.php @@ -2,12 +2,12 @@ declare(strict_types=1); -// SPDX-FileCopyrightText: Your Name +// SPDX-FileCopyrightText: Chen Asraf // SPDX-License-Identifier: AGPL-3.0-or-later -namespace OCA\NextcloudAppTemplate\Controller; +namespace OCA\Pantry\Controller; -use OCA\NextcloudAppTemplate\AppInfo; +use OCA\Pantry\AppInfo; use OCP\AppFramework\Http; use OCP\AppFramework\Http\Attribute\ApiRoute; use OCP\AppFramework\Http\Attribute\NoAdminRequired; diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index c91844b..04634bc 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -2,9 +2,9 @@ declare(strict_types=1); -namespace OCA\NextcloudAppTemplate\Controller; +namespace OCA\Pantry\Controller; -use OCA\NextcloudAppTemplate\AppInfo\Application; +use OCA\Pantry\AppInfo\Application; use OCP\AppFramework\Controller; use OCP\AppFramework\Http\Attribute\NoAdminRequired; use OCP\AppFramework\Http\Attribute\NoCSRFRequired; diff --git a/lib/Sections/Admin.php b/lib/Sections/Admin.php index c2d5dfc..fb2156d 100644 --- a/lib/Sections/Admin.php +++ b/lib/Sections/Admin.php @@ -2,12 +2,12 @@ declare(strict_types=1); -// SPDX-FileCopyrightText: Your Name +// SPDX-FileCopyrightText: Chen Asraf // SPDX-License-Identifier: AGPL-3.0-or-later -namespace OCA\NextcloudAppTemplate\Sections; +namespace OCA\Pantry\Sections; -use OCA\NextcloudAppTemplate\AppInfo; +use OCA\Pantry\AppInfo; use OCP\IL10N; use OCP\IURLGenerator; use OCP\Settings\IIconSection; @@ -30,7 +30,7 @@ class Admin implements IIconSection { } public function getName(): string { - return $this->l->t('Nextcloud App Template'); + return $this->l->t('Pantry'); } public function getPriority(): int { diff --git a/lib/Settings/Admin.php b/lib/Settings/Admin.php index 6f6b77c..dbe466e 100644 --- a/lib/Settings/Admin.php +++ b/lib/Settings/Admin.php @@ -2,12 +2,12 @@ declare(strict_types=1); -// SPDX-FileCopyrightText: Your Name +// SPDX-FileCopyrightText: Chen Asraf // SPDX-License-Identifier: AGPL-3.0-or-later -namespace OCA\NextcloudAppTemplate\Settings; +namespace OCA\Pantry\Settings; -use OCA\NextcloudAppTemplate\AppInfo\Application; +use OCA\Pantry\AppInfo\Application; use OCP\AppFramework\Http\TemplateResponse; use OCP\IAppConfig; use OCP\IL10N; diff --git a/openapi.json b/openapi.json index 824ebe6..29ed2bb 100644 --- a/openapi.json +++ b/openapi.json @@ -1,7 +1,7 @@ { "openapi": "3.0.3", "info": { - "title": "nextcloudapptemplate", + "title": "pantry", "version": "0.0.1", "description": "Enter your app summary here.", "license": { @@ -47,7 +47,7 @@ } }, "paths": { - "/ocs/v2.php/apps/nextcloudapptemplate/api/hello": { + "/ocs/v2.php/apps/pantry/api/hello": { "get": { "operationId": "api-get-hello", "summary": "GET /api/hello", diff --git a/package.json b/package.json index 94eb8ac..b1d7166 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "nextcloudapptemplate", + "name": "pantry", "version": "0.0.0", "license": "AGPL-3.0-or-later", "type": "module", diff --git a/rename-template.sh b/rename-template.sh deleted file mode 100755 index 5552db2..0000000 --- a/rename-template.sh +++ /dev/null @@ -1,144 +0,0 @@ -#!/usr/bin/env bash -# Replace template names in all text files under the current directory. -# Prompts for target names and replaces these sources: -# $SOURCE_PACKAGE -> -# $SOURCE_PASCAL -> -# $SOURCE_USER -> (default: your-user) -# $SOURCE_FULL -> (default: Your Name) -# -# Defaults (override via env before running): -# SOURCE_PACKAGE=nextcloudapptemplate -# SOURCE_PASCAL=NextcloudAppTemplate -# SOURCE_USER=your-user -# SOURCE_FULL=Your Name - -set -euo pipefail - -# --- Resolve absolute path to this script (portable) --- -abs_path() { perl -MCwd=abs_path -e 'print abs_path(shift)' "$1"; } -SCRIPT_ABS="$(abs_path "$0")" - -SOURCE_PACKAGE="${SOURCE_PACKAGE:-nextcloudapptemplate}" -SOURCE_APPNAME="${SOURCE_APPNAME:-Nextcloud App Template}" -SOURCE_PASCAL="${SOURCE_PASCAL:-NextcloudAppTemplate}" -SOURCE_USER="${SOURCE_USER:-your-user}" -SOURCE_FULL="${SOURCE_FULL:-Your Name}" -SOURCE_EMAIL="${SOURCE_EMAIL:-your@email.com}" -SOURCE_WEBSITE="${SOURCE_WEBSITE:-https://your.website}" - -printf "Enter package name (e.g., mynextcloudapp): " -IFS= read PACKAGE -printf "Enter app name (e.g., My Nextcloud App): " -IFS= read APPNAME -printf "Enter PascalCase name (e.g., MyNextcloudApp): " -IFS= read PASCAL -printf "Enter GitHub username (e.g., myUsername): " -IFS= read DEST_USER -printf "Enter full name (e.g., My Full Name): " -IFS= read DEST_FULL -printf "Enter email (e.g., myemail@example.com): " -IFS= read DEST_EMAIL -printf "Enter website (e.g., https://mywebsite.com): " -IFS= read DEST_WEBSITE - -if [[ -z "${PACKAGE}" || -z "${APPNAME}" || -z "${PASCAL}" || -z "${DEST_USER}" || -z "${DEST_FULL}" || -z "${DEST_EMAIL}" || -z "${DEST_WEBSITE}" ]]; then - echo "All values are required." >&2 - exit 1 -fi - -echo "Replacing:" -echo " ${SOURCE_PACKAGE} -> ${PACKAGE}" -echo " ${SOURCE_APPNAME} -> ${APPNAME}" -echo " ${SOURCE_PASCAL} -> ${PASCAL}" -echo " ${SOURCE_USER} -> ${DEST_USER}" -echo " ${SOURCE_FULL} -> ${DEST_FULL}" -echo " ${SOURCE_EMAIL} -> ${DEST_EMAIL}" -echo " ${SOURCE_WEBSITE} -> ${DEST_WEBSITE}" -echo - -changed=0 -checked=0 - -# Folders to skip -SKIP_DIRS=( - "*/.git/*" - "*/node_modules/*" - "*/vendor/*" - "*/dist/*" - "*/build/*" - "*/.next/*" - "*/.pnpm-store/*" - "*/.cache/*" -) - -# Build the find prune expression -PRUNE_EXPR=() -for d in "${SKIP_DIRS[@]}"; do - PRUNE_EXPR+=(-path "$d" -o) -done -unset 'PRUNE_EXPR[${#PRUNE_EXPR[@]}-1]' - -# Export for Perl -export PACKAGE PASCAL DEST_USER DEST_FULL SOURCE_PACKAGE SOURCE_PASCAL SOURCE_USER SOURCE_FULL SOURCE_EMAIL DEST_EMAIL SOURCE_WEBSITE DEST_WEBSITE SOURCE_APPNAME APPNAME - -# Iterate files safely (null-delimited), skip binaries, replace in place with perl -while IFS= read -r -d '' file; do - [[ -f "$file" ]] || continue - - # Skip this script itself - FILE_ABS="$(abs_path "$file")" - if [[ "$FILE_ABS" == "$SCRIPT_ABS" ]]; then - continue - fi - - # Skip binary files - if ! LC_ALL=C grep -Iq . "$file"; then - continue - fi - - checked=$((checked + 1)) - - perl -0777 -i.bak -pe ' - BEGIN { - $src_k = $ENV{SOURCE_PACKAGE}; - $src_a = $ENV{SOURCE_APPNAME}; - $src_p = $ENV{SOURCE_PASCAL}; - $src_u = $ENV{SOURCE_USER}; - $src_f = $ENV{SOURCE_FULL}; - $src_e = $ENV{SOURCE_EMAIL}; - $src_w = $ENV{SOURCE_WEBSITE}; - - $dst_k = $ENV{PACKAGE}; - $dst_a = $ENV{APPNAME}; - $dst_p = $ENV{PASCAL}; - $dst_u = $ENV{DEST_USER}; - $dst_f = $ENV{DEST_FULL}; - $dst_e = $ENV{DEST_EMAIL}; - $dst_w = $ENV{DEST_WEBSITE}; - } - s/\Q$src_k\E/$dst_k/g; - s/\Q$src_a\E/$dst_a/g; - s/\Q$src_p\E/$dst_p/g; - s/\Q$src_u\E/$dst_u/g; - s/\Q$src_f\E/$dst_f/g; - s/\Q$src_e\E/$dst_e/g; - s/\Q$src_w\E/$dst_w/g; - ' -- "$file" - - if ! cmp -s "$file" "$file.bak"; then - changed=$((changed + 1)) - echo "Updated: $file" - fi - - rm -f -- "$file.bak" -done < <(find . \( "${PRUNE_EXPR[@]}" \) -prune -o -type f -print0) - -echo -echo "Checked $checked text file(s). Updated $changed file(s). ✅" - -if [ -d ".github/workflows.template" ]; then - echo "Moving .github/workflows.template to .github/workflows" - mkdir -p .github/workflows - git mv .github/workflows.template/* .github/workflows/ 2>/dev/null || mv .github/workflows.template/* .github/workflows/ - rmdir .github/workflows.template 2>/dev/null || true -fi diff --git a/src/App.vue b/src/App.vue index c0d587d..d60e0ba 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,5 +1,5 @@