diff --git a/.changeset/every-lies-glow.md b/.changeset/every-lies-glow.md new file mode 100644 index 00000000..fcbeecea --- /dev/null +++ b/.changeset/every-lies-glow.md @@ -0,0 +1,6 @@ +--- +"webtools-addon-sitemap": major +"strapi-plugin-webtools": major +--- + +Strapi 5 support diff --git a/.changeset/pre.json b/.changeset/pre.json index 91975e22..d53eaa4b 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -1,5 +1,5 @@ { - "mode": "pre", + "mode": "exit", "tag": "beta", "initialVersions": { "@pluginpal/webtools-addon-menus": "0.0.0", diff --git a/.eslintrc.js b/.eslintrc.js index b2780b7b..81ad7ae2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -34,13 +34,21 @@ module.exports = { "project": [path.join(__dirname, './tsconfig.jest.json')], }, "rules": { - "@typescript-eslint/await-thenable": "off" + "@typescript-eslint/await-thenable": "off", + "import/no-relative-packages": "off", } } ], "rules": { + "import/no-unresolved": [2, { + "ignore": [ + "@strapi/strapi/admin", + "@strapi/icons/symbols", + "@strapi/admin/strapi-admin" + ] + }], "import/prefer-default-export": "off", "arrow-body-style": "off", - "@typescript-eslint/unbound-method": "off" + "@typescript-eslint/unbound-method": "off", } } diff --git a/.github/workflows/deploy-test-server.yml b/.github/workflows/deploy-test-server.yml index b5208baa..630d52e4 100644 --- a/.github/workflows/deploy-test-server.yml +++ b/.github/workflows/deploy-test-server.yml @@ -8,73 +8,73 @@ on: - develop jobs: - # preflight-checks: - # name: Preflight checks - # runs-on: ubuntu-latest - # steps: - # - name: Check if there are config-sync changes on production - # uses: appleboy/ssh-action@v0.1.10 - # with: - # host: ${{ secrets.SSH_HOST }} - # username: ${{ secrets.SSH_CI_USERNAME }} - # password: ${{ secrets.SSH_CI_PASSWORD }} - # script_stop: true - # script: dokku run strapi ../node_modules/.bin/config-sync diff + preflight-checks: + name: Preflight checks + runs-on: ubuntu-latest + steps: + - name: Check if there are config-sync changes on production + uses: appleboy/ssh-action@v0.1.10 + with: + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_CI_USERNAME }} + password: ${{ secrets.SSH_CI_PASSWORD }} + script_stop: true + script: dokku run strapi ../node_modules/.bin/config-sync diff deploy: name: Deploy - # needs: [preflight-checks] + needs: [preflight-checks] runs-on: ubuntu-latest environment: name: Test url: https://test.pluginpal.io - # steps: - # - name: Checkout repository - # uses: actions/checkout@v2 + steps: + - name: Checkout repository + uses: actions/checkout@v2 - # - name: Set up Docker - # uses: actions/setup-node@v3 - # with: - # node-version: 18 - # cache: 'yarn' + - name: Set up Docker + uses: actions/setup-node@v3 + with: + node-version: 18 + cache: 'yarn' - # - name: Install plugin dependencies - # run: yarn install + - name: Install plugin dependencies + run: yarn install - # - name: Build the packages - # run: yarn run build + - name: Build the packages + run: yarn run build - # - name: Install de playground dependencies - # run: yarn playground:install + - name: Install de playground dependencies + run: yarn playground:install - # - name: Build a Docker image of the playground - # run: | - # cd playground - # docker build \ - # --build-arg PUBLIC_URL=${{ secrets.TEST_URL }} \ - # -t strapi-playground:latest . - # docker save -o strapi-playground-latest.tar strapi-playground:latest + - name: Build a Docker image of the playground + run: | + cd playground + docker build \ + --build-arg PUBLIC_URL=${{ secrets.TEST_URL }} \ + -t strapi-playground:latest . + docker save -o strapi-playground-latest.tar strapi-playground:latest - # - name: Transfer the Docker image to the Dokku server - # uses: appleboy/scp-action@v0.1.3 - # with: - # host: ${{ secrets.SSH_HOST }} - # username: ${{ secrets.SSH_CI_USERNAME }} - # password: ${{ secrets.SSH_CI_PASSWORD }} - # source: playground/strapi-playground-latest.tar - # target: /var/lib/dokku/data/storage/strapi/docker-images + - name: Transfer the Docker image to the Dokku server + uses: appleboy/scp-action@v0.1.3 + with: + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_CI_USERNAME }} + password: ${{ secrets.SSH_CI_PASSWORD }} + source: playground/strapi-playground-latest.tar + target: /var/lib/dokku/data/storage/strapi/docker-images - # - name: Deploy the Dokku app based on the Docker image - # uses: appleboy/ssh-action@v0.1.10 - # with: - # host: ${{ secrets.SSH_HOST }} - # username: ${{ secrets.SSH_CI_USERNAME }} - # password: ${{ secrets.SSH_CI_PASSWORD }} - # script_stop: true - # script: | - # sudo docker load -i /var/lib/dokku/data/storage/strapi/docker-images/playground/strapi-playground-latest.tar - # STRAPI_LATEST_IMAGE=$(sudo docker images --format "{{.ID}}" strapi-playground:latest) - # sudo docker tag strapi-playground:latest strapi-playground:$STRAPI_LATEST_IMAGE - # dokku git:from-image strapi strapi-playground:$STRAPI_LATEST_IMAGE - # sudo docker system prune --all --force - # sudo rm -rf /var/lib/dokku/data/storage/strapi/docker-images/playground/strapi-playground-latest.tar + - name: Deploy the Dokku app based on the Docker image + uses: appleboy/ssh-action@v0.1.10 + with: + host: ${{ secrets.SSH_HOST }} + username: ${{ secrets.SSH_CI_USERNAME }} + password: ${{ secrets.SSH_CI_PASSWORD }} + script_stop: true + script: | + sudo docker load -i /var/lib/dokku/data/storage/strapi/docker-images/playground/strapi-playground-latest.tar + STRAPI_LATEST_IMAGE=$(sudo docker images --format "{{.ID}}" strapi-playground:latest) + sudo docker tag strapi-playground:latest strapi-playground:$STRAPI_LATEST_IMAGE + dokku git:from-image strapi strapi-playground:$STRAPI_LATEST_IMAGE + sudo docker system prune --all --force + sudo rm -rf /var/lib/dokku/data/storage/strapi/docker-images/playground/strapi-playground-latest.tar diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cb517a7c..975f54af 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -68,7 +68,7 @@ jobs: run: yarn test:unit - name: Run integration tests run: yarn test:integration - - name: Run end-to-end tests + - name: Run Cypress tests uses: cypress-io/github-action@v6 with: start: yarn playground:start @@ -78,6 +78,12 @@ jobs: name: cypress-screenshots path: cypress/screenshots if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn` + - uses: actions/upload-artifact@v4 + if: failure() + with: + name: cypress-videos + path: cypress/videos + if-no-files-found: ignore # 'warn' or 'error' are also available, defaults to `warn` - name: Upload coverage to Codecov uses: codecov/codecov-action@v2 with: diff --git a/MIGRATION.md b/MIGRATION.md deleted file mode 100644 index 62ec900f..00000000 --- a/MIGRATION.md +++ /dev/null @@ -1,87 +0,0 @@ - -
-
-
-
-
+
+
-
-
+
+
@@ -22,9 +22,6 @@
-> [!IMPORTANT]
-> The Webtools suite is still in BETA
-
## ✨ Features
- **Unique URLs** Every page will get their own unique path
@@ -39,10 +36,10 @@
```bash
# using yarn
-yarn add @pluginpal/webtools-core
+yarn add strapi-plugin-webtools
# using npm
-npm install @pluginpal/webtools-core --save
+npm install strapi-plugin-webtools --save
```
After successful installation you have to rebuild the admin UI so it'll include this plugin. To rebuild and restart Strapi run:
@@ -72,7 +69,7 @@ Webtools can be extended by installing addons that hook into the core Webtools f
## 🔗 Links
- [PluginPal marketplace](https://www.pluginpal.io/plugin/webtools)
-- [NPM package](https://www.npmjs.com/package/@pluginpal/webtools-core)
+- [NPM package](https://www.npmjs.com/package/strapi-plugin-webtools)
- [GitHub repository](https://github.com/pluginpal/strapi-webtools)
- [Strapi marketplace](https://market.strapi.io/plugins/@pluginpal-webtools-core)
diff --git a/babel.config.js b/babel.config.js
new file mode 100644
index 00000000..1f3f8801
--- /dev/null
+++ b/babel.config.js
@@ -0,0 +1 @@
+module.exports = { presets: ['@babel/preset-env'] };
diff --git a/cypress.config.js b/cypress.config.js
index 7e306d56..dc48cfb9 100644
--- a/cypress.config.js
+++ b/cypress.config.js
@@ -8,7 +8,8 @@ module.exports = defineConfig({
// implement node event listeners here.
require('cypress-terminal-report/src/installLogsPrinter')(on);
},
- video: false,
+ video: true,
defaultCommandTimeout: 10000,
+ requestTimeout: 10000,
},
});
diff --git a/jest.config.js b/jest.config.js
index 9c7328e3..bc93dae1 100644
--- a/jest.config.js
+++ b/jest.config.js
@@ -1,7 +1,7 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
- testMatch: ['**/__tests__/?(*.)+(spec|test).ts'],
+ testMatch: ['**/__tests__/?(*.)+(spec|test).(ts|js)'],
// transform: {},
// globalSetup: './playground/__tests__/setup-strapi.ts',
// setupFilesAfterEnv: ['./playground/__tests__/setup-strapi.ts'],
diff --git a/migrations/2023.06.12T00.00.00.url-alias-to-webtools.js b/migrations/2023.06.12T00.00.00.url-alias-to-webtools.js
deleted file mode 100644
index 89014cf6..00000000
--- a/migrations/2023.06.12T00.00.00.url-alias-to-webtools.js
+++ /dev/null
@@ -1,109 +0,0 @@
-/**
- * The purpose of this migration file is to be used when migrating
- * the URL alias plugin from @alpha to @beta.
- *
- * It will rename the database tables of the plugin before the
- * Strapi auto-migration will. That way we can preserve the data that
- * was stored in these tables.
- *
- * @from @strapi-community/strapi-plugin-url-alias@alpha
- * @to @pluginpal/webtools-core@beta
- */
-module.exports = {
- async up(
- /** @type {import('knex').Knex} */
- knex,
- ) {
- const contentTypes = {
- // TODO by the user: Check the schema.json files of your content types and fill in the correct values.
- // example:
- // 'api::page.page': {
- // collectionName: 'pages',
- // singularName: 'page',
- // },
- // 'api::page-post.page-post': {
- // collectionName: 'page_posts',
- // // NOTE: The singularName should be snake_case, not kebab-case.
- // singularName: 'page_post',
- // },
- };
- // In commit b14eb26f76b53a3a9ad91f050b04266224fc244d the paths table was renamed to url_paths
- const hasPathsTable = await knex.schema.hasTable('paths');
- if (hasPathsTable) {
- console.log('Renaming "paths" table to "url_paths"...');
- await knex.schema.renameTable('paths', 'url_paths');
- console.log('Renamed "paths" table to "url_paths".');
- }
- // Rename the url_paths table.
- const hasUrlPathsTable = await knex.schema.hasTable('url_paths');
- if (hasUrlPathsTable) {
- const oldUrlPathsName = 'url_paths';
- const newUrlPathsName = 'wt_url_alias';
- console.log(`Renaming "${oldUrlPathsName}" table to "${newUrlPathsName}"...`);
- await knex.schema.renameTable(oldUrlPathsName, newUrlPathsName);
- console.log(`Renamed "${oldUrlPathsName}" table to "${newUrlPathsName}".`);
-
- // Also migrate for commit db0dea6c521915ced354709b52d678ae436e62dd
- // which changed the path column to url_path
- const hasPathColumn = await knex.schema.hasColumn(newUrlPathsName, 'path');
- if (hasPathColumn) {
- console.log('Renaming "path" column to "url_path"...');
- await knex.schema.alterTable(newUrlPathsName, (table) => {
- table.renameColumn('path', 'url_path');
- });
- console.log('Renamed "path" column to "url_path".');
- }
-
- // create link tables
-
- await Promise.all(
- Object.keys(contentTypes).map(async (contentType) => {
- const { collectionName, singularName } = contentTypes[contentType];
- const linkTableName = `${collectionName}_url_alias_links`;
- console.log('creating link table', linkTableName);
- await knex.schema.createTable(linkTableName, (table) => {
- table.increments('id');
- table.integer(`${singularName}_id`).unsigned();
- table.foreign(`${singularName}_id`).references('id').inTable(collectionName);
- table.integer('url_alias_id').unsigned();
- table.foreign('url_alias_id').references('id').inTable(newUrlPathsName);
- });
-
- console.log('migrating existing links for', contentType);
- const entries = await knex.from(collectionName).select('id', 'url_path_id').whereNotNull('url_path_id');
-
- if (!entries || entries.length <= 0) {
- console.log('no links found for', contentType);
- return;
- }
- const links = entries.map((entry) => ({
- [`${singularName}_id`]: entry.id,
- url_alias_id: entry.url_path_id,
- }));
- await knex(linkTableName).insert(links);
- console.log('migrated existing links for', contentType);
- }),
- );
- } else {
- console.log('No url_paths table found. Skipping...');
- }
-
- // In commit b14eb26f76b53a3a9ad91f050b04266224fc244d the patterns table was renamed to url_patterns
- const hasPatternsTable = await knex.schema.hasTable('patterns');
- if (hasPatternsTable) {
- console.log('Renaming "patterns" table to "url_patterns"...');
- await knex.schema.renameTable('patterns', 'url_patterns');
- console.log('Renamed "patterns" table to "url_patterns".');
- }
-
- // Rename the url_patterns table.
- const hasUrlPatternsTable = await knex.schema.hasTable('url_patterns');
- if (hasUrlPatternsTable) {
- console.log('Renaming "url_patterns" table to "wt_url_patterns"...');
- await knex.schema.renameTable('url_patterns', 'wt_url_patterns');
- console.log('Renamed "url_patterns" table to "wt_url_patterns".');
- } else {
- console.log('No url_patterns table found. Skipping...');
- }
- },
-};
diff --git a/package.json b/package.json
index 46d861d1..698db0de 100644
--- a/package.json
+++ b/package.json
@@ -13,13 +13,13 @@
"eslint:fix": "turbo run eslint:fix",
"release:publish": "turbo run build && changeset publish",
"release:prepare": "changeset version && YARN_ENABLE_IMMUTABLE_INSTALLS=false yarn install",
- "playground:install": "cd playground && yarn dlx yalc add --link @pluginpal/webtools-helper-plugin @pluginpal/webtools-core @pluginpal/webtools-addon-sitemap && yarn install",
+ "playground:install": "cd playground && yarn dlx yalc add --link strapi-plugin-webtools webtools-addon-sitemap && yarn install",
"playground:build": "cd playground && yarn build",
"playground:start": "cd playground && yarn start",
"playground:develop": "rm -rf playground/node_modules/.strapi/ && cd playground && yarn develop --watch-admin --bundler=vite",
"test:e2e": "cypress open",
- "test:unit": "ENV_PATH=./playground/.env jest --verbose --runInBand --detectOpenHandles --forceExit",
- "test:integration": "ENV_PATH=./playground/.env jest --verbose --runInBand --detectOpenHandles --forceExit --testMatch '**/healthcheck.test.js'"
+ "test:unit": "ENV_PATH=./playground/.env jest --verbose --runInBand --forceExit",
+ "test:integration": "ENV_PATH=./playground/.env jest --verbose --runInBand --forceExit --testMatch '**/healthcheck.test.js'"
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
@@ -43,8 +43,7 @@
},
"packageManager": "yarn@4.0.2",
"dependencies": {
- "@pluginpal/webtools-addon-sitemap": "link:.yalc/@pluginpal/webtools-addon-sitemap",
- "@pluginpal/webtools-core": "link:.yalc/@pluginpal/webtools-core",
- "@pluginpal/webtools-helper-plugin": "link:.yalc/@pluginpal/webtools-helper-plugin"
+ "strapi-plugin-webtools": "link:.yalc/strapi-plugin-webtools",
+ "webtools-addon-sitemap": "link:.yalc/webtools-addon-sitemap"
}
}
diff --git a/packages/addons/menus/.eslintignore b/packages/addons/menus/.eslintignore
deleted file mode 100644
index 3a1ec13c..00000000
--- a/packages/addons/menus/.eslintignore
+++ /dev/null
@@ -1,13 +0,0 @@
-**/node_modules
-**/playground
-**/public
-**/build
-**/dist
-**/bundle
-**/config
-**/scripts
-**/docs
-**/server/types/generated
-**/__tests__
-strapi-admin.js
-strapi-server.js
diff --git a/packages/addons/menus/.gitignore b/packages/addons/menus/.gitignore
deleted file mode 100644
index e7a1942a..00000000
--- a/packages/addons/menus/.gitignore
+++ /dev/null
@@ -1,18 +0,0 @@
-# Don't check auto-generated stuff into git
-coverage
-node_modules
-stats.json
-package-lock.json
-
-# Cruft
-.DS_Store
-npm-debug.log
-.idea
-
-# Strapi
-.strapi-updater.json
-
-# Production build
-build
-dist
-bundle
diff --git a/packages/addons/menus/.npmignore b/packages/addons/menus/.npmignore
deleted file mode 100644
index 572309c0..00000000
--- a/packages/addons/menus/.npmignore
+++ /dev/null
@@ -1,6 +0,0 @@
-# ignore the .ts and .tsx files
-*.ts
-*.tsx
-
-# include the .d.ts files
-!*.d.ts
diff --git a/packages/addons/menus/CHANGELOG.md b/packages/addons/menus/CHANGELOG.md
deleted file mode 100644
index ce2afc0a..00000000
--- a/packages/addons/menus/CHANGELOG.md
+++ /dev/null
@@ -1,86 +0,0 @@
-# addon-menus
-
-## 1.0.0-beta.10
-
-### Patch Changes
-
-- Updated dependencies [[`65fdc7f`](https://github.com/pluginpal/strapi-webtools/commit/65fdc7fbf510f7810ecee509902acfffa445aa77), [`faec872`](https://github.com/pluginpal/strapi-webtools/commit/faec87287907ef5acd9ad0b12b728212fa823adf)]:
- - @pluginpal/webtools-core@1.0.0-beta.15
-
-## 1.0.0-beta.9
-
-### Patch Changes
-
-- Updated dependencies [[`77c41b1`](https://github.com/pluginpal/strapi-webtools/commit/77c41b1ff6bb5c4d49ca2240ae72082560b19bf0), [`801f859`](https://github.com/pluginpal/strapi-webtools/commit/801f859c16abb8c4000e744ee4d3cf68d59c2cab), [`bcbbc3e`](https://github.com/pluginpal/strapi-webtools/commit/bcbbc3e68ac3ee270172656f5c427c7ffe4a34ba)]:
- - @pluginpal/webtools-core@1.0.0-beta.14
-
-## 1.0.0-beta.8
-
-### Patch Changes
-
-- Updated dependencies [[`e5c0587`](https://github.com/pluginpal/strapi-webtools/commit/e5c058758087c9d878ab7f40466672b340731e99)]:
- - @pluginpal/webtools-core@1.0.0-beta.13
-
-## 1.0.0-beta.7
-
-### Patch Changes
-
-- Updated dependencies [[`60b5eff`](https://github.com/pluginpal/strapi-webtools/commit/60b5eff18795afd173a57380a87767fc29d06b3d), [`d620caa`](https://github.com/pluginpal/strapi-webtools/commit/d620caa4d42b409e87fd604d88e99d23ac6e985a)]:
- - @pluginpal/webtools-core@1.0.0-beta.12
-
-## 1.0.0-beta.6
-
-### Patch Changes
-
-- Updated dependencies [[`ff7cb45`](https://github.com/pluginpal/strapi-webtools/commit/ff7cb457cd292f6b1ff938adf655c678e1cb446d), [`49fe9bc`](https://github.com/pluginpal/strapi-webtools/commit/49fe9bc05fc2799735e92a76dd8639982aa04680), [`ff0851a`](https://github.com/pluginpal/strapi-webtools/commit/ff0851a7a335ff8c0d79428f7b209c5675546bea), [`c99b57e`](https://github.com/pluginpal/strapi-webtools/commit/c99b57eee5910e9a49534980f678cdc4c0b14471), [`4fd5602`](https://github.com/pluginpal/strapi-webtools/commit/4fd56026d262e4f0a30cf5ab8274d916d29aadd6), [`05ae3ca`](https://github.com/pluginpal/strapi-webtools/commit/05ae3ca82ac1f2eb7c825852b0d24408daf1b501)]:
- - @pluginpal/webtools-core@1.0.0-beta.11
- - @pluginpal/webtools-helper-plugin@1.0.0-beta.4
-
-## 1.0.0-beta.5
-
-### Patch Changes
-
-- Updated dependencies [[`a48cc8c`](https://github.com/pluginpal/strapi-webtools/commit/a48cc8cc2fb4a02e74418c0ad326c44ad5c97a65)]:
- - @pluginpal/webtools-core@1.0.0-beta.10
-
-## 1.0.0-beta.4
-
-### Patch Changes
-
-- Updated dependencies [[`9b81da2`](https://github.com/pluginpal/strapi-webtools/commit/9b81da214ec8a1aa3f42d2d4eadaa30688ff4fe7), [`cb59eb7`](https://github.com/pluginpal/strapi-webtools/commit/cb59eb78ef7d45d7c3c07ec7350747b6bc611b27)]:
- - @pluginpal/webtools-core@1.0.0-beta.9
-
-## 1.0.0-beta.3
-
-### Patch Changes
-
-- Updated dependencies [[`1f01462`](https://github.com/pluginpal/strapi-webtools/commit/1f01462d4bcabd65772eb9733d76746834d9e508), [`905ff2e`](https://github.com/pluginpal/strapi-webtools/commit/905ff2ea322aa1a21b836e76fb6f095de660c430)]:
- - @pluginpal/webtools-core@1.0.0-beta.8
-
-## 1.0.0-beta.2
-
-### Patch Changes
-
-- Updated dependencies [[`fae4c75`](https://github.com/pluginpal/strapi-webtools/commit/fae4c75d7fb67ab9cc60d5b8a48d4f136b24e128)]:
- - @pluginpal/webtools-core@1.0.0-beta.7
-
-## 1.0.0-beta.1
-
-### Patch Changes
-
-- Updated dependencies [[`6d2ee80`](https://github.com/pluginpal/strapi-webtools/commit/6d2ee80506aa3df8d0bc6ceb5031bc79cd253e8d), [`816f4db`](https://github.com/pluginpal/strapi-webtools/commit/816f4db1577a576438d048d5e244d19a17035e57), [`6a6fb9d`](https://github.com/pluginpal/strapi-webtools/commit/6a6fb9d0a58c8cf9d1ed159c11b6a197ec3de916), [`3aba7ed`](https://github.com/pluginpal/strapi-webtools/commit/3aba7ed6b814e2588f3403b5f8884f9e90ac7b34), [`a628383`](https://github.com/pluginpal/strapi-webtools/commit/a628383adf5aa0640c97e7379af1a2dd308e80fb), [`426b4ae`](https://github.com/pluginpal/strapi-webtools/commit/426b4aee9a80f080cd3ba2627360eb5b23230c88), [`5da6433`](https://github.com/pluginpal/strapi-webtools/commit/5da643305f62a2a2cd6d56a9ffa9885a3d2d9a02)]:
- - @pluginpal/webtools-core@1.0.0-beta.6
-
-## 0.0.1-beta.0
-
-### Patch Changes
-
-- feb9d87: Removed redundant files from the npm builds
-- e5ba503: Add an MIT license file
-- dee1907: Fix issue with the admin translations
-- Updated dependencies [0b32de2]
-- Updated dependencies [feb9d87]
-- Updated dependencies [d7be9d5]
-- Updated dependencies [e5ba503]
-- Updated dependencies [dee1907]
- - @pluginpal/webtools-core@1.0.0-beta.5
diff --git a/packages/addons/menus/LICENSE.md b/packages/addons/menus/LICENSE.md
deleted file mode 100644
index 6c093860..00000000
--- a/packages/addons/menus/LICENSE.md
+++ /dev/null
@@ -1,7 +0,0 @@
-Copyright (c) 2024 PluginPal.
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/packages/addons/menus/README.md b/packages/addons/menus/README.md
deleted file mode 100644
index bf9fb777..00000000
--- a/packages/addons/menus/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-# Strapi plugin sitemap
-
-A quick description of sitemap.
diff --git a/packages/addons/menus/admin/components/EditView/index.tsx b/packages/addons/menus/admin/components/EditView/index.tsx
deleted file mode 100644
index 0d26527f..00000000
--- a/packages/addons/menus/admin/components/EditView/index.tsx
+++ /dev/null
@@ -1,22 +0,0 @@
-import React from 'react';
-import { useIntl } from 'react-intl';
-import { SidebarDropdown } from '@pluginpal/webtools-helper-plugin';
-
-import getTrad from '../../helpers/getTrad';
-
-const EditView = () => {
- const { formatMessage } = useIntl();
-
- return (
-
+
+
-
-
+
+
@@ -39,10 +39,10 @@
```bash
# using yarn
-yarn add @pluginpal/webtools-addon-sitemap
+yarn add webtools-addon-sitemap
# using npm
-npm install @pluginpal/webtools-addon-sitemap --save
+npm install webtools-addon-sitemap --save
```
After successful installation you have to rebuild the admin UI so it'll include this plugin. To rebuild and restart Strapi run:
@@ -78,7 +78,7 @@ Give a star if this project helped you.
## 🔗 Links
- [PluginPal marketplace](https://www.pluginpal.io/plugin/webtools)
-- [NPM package](https://www.npmjs.com/package/@pluginpal/webtools-addon-sitemap)
+- [NPM package](https://www.npmjs.com/package/webtools-addon-sitemap)
- [GitHub repository](https://github.com/pluginpal/strapi-webtools)
- [Strapi marketplace](https://market.strapi.io/plugins/@pluginpal-webtools-core)
diff --git a/packages/addons/sitemap/admin/components/AdminRoute/index.tsx b/packages/addons/sitemap/admin/components/AdminRoute/index.jsx
similarity index 91%
rename from packages/addons/sitemap/admin/components/AdminRoute/index.tsx
rename to packages/addons/sitemap/admin/components/AdminRoute/index.jsx
index 644fae76..2dde72a1 100644
--- a/packages/addons/sitemap/admin/components/AdminRoute/index.tsx
+++ b/packages/addons/sitemap/admin/components/AdminRoute/index.jsx
@@ -6,7 +6,7 @@ const AdminRoute = () => {
return (