Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
3326a64
chore: update playground to Strapi 5
boazpoolman Nov 13, 2024
093e477
chore: migrate away from @strapi/helper-plugin
boazpoolman Nov 13, 2024
72a08cf
chore: update packages
boazpoolman Nov 13, 2024
c2f3d80
fix: make playground build
boazpoolman Nov 13, 2024
10d1d29
chore: migrate the sitemap addon to Typescript
boazpoolman Nov 16, 2024
c5ad9af
fix: all errors in the core admin
boazpoolman Nov 16, 2024
785d21c
chore: update strapi:plugin cli to the sdk-plugin
boazpoolman Nov 16, 2024
66d72a1
fix: allow imports from 3 levels deep
boazpoolman Nov 16, 2024
937eed6
fix: typescript eslint issues
boazpoolman Nov 17, 2024
9e05f3f
fix: allow eslint warnings in the sitemap addon
boazpoolman Nov 17, 2024
0ef7ab6
chore: update dependencies
boazpoolman Nov 17, 2024
df320e3
feat: fixes
boazpoolman Dec 5, 2024
eedefe2
fix: make pattern pages work
boazpoolman Dec 5, 2024
d2c32ca
fix: make deleteConfirmModal work
boazpoolman Dec 5, 2024
2ff21cf
fix: return only relations from getRelationsFromPattern
boazpoolman Dec 9, 2024
537bf4a
fix: make the GeneratePathsModal work again
boazpoolman Dec 9, 2024
f0e01e4
fix: missing translations
boazpoolman Dec 9, 2024
4388f07
refactor: initial migration of the server code
boazpoolman Dec 9, 2024
36261e2
fix: use custom vite config to fix dependency optimizer issue
boazpoolman Feb 19, 2025
90e2be5
chore: update dependency management
boazpoolman Feb 19, 2025
3749770
chore: add more test content
boazpoolman Feb 19, 2025
f5356cb
refactor: move the type definition files on the server side
boazpoolman Feb 19, 2025
f31f40d
chore: updated test conten type schema
boazpoolman Feb 19, 2025
161c0ab
feat: migrate the server side
boazpoolman Feb 19, 2025
989b305
fix: merge conflicts
boazpoolman Feb 19, 2025
4db2d2f
fix: make the unit & integration tests work again
boazpoolman Feb 23, 2025
2a25d47
feat: add the main middlewares
boazpoolman Feb 23, 2025
8665ebb
fix: type error
boazpoolman Feb 23, 2025
7a119db
feat: add seed data to the playground whilst running the tests
boazpoolman Feb 23, 2025
8095b60
feat: update middlewares
boazpoolman Feb 27, 2025
b6223a0
chore: update playground
boazpoolman Feb 27, 2025
299a854
style: fix eslint issues on the server side
boazpoolman Feb 27, 2025
a531c7c
fix: never run next() twice in middlewares
boazpoolman Feb 28, 2025
27f0a24
fix: prevent issue
boazpoolman Feb 28, 2025
95a5afc
fix: tests
boazpoolman Feb 28, 2025
3a3e113
fix: use documentId instead of id
boazpoolman Feb 28, 2025
6bac689
feat: migrate the admin panel
boazpoolman Mar 5, 2025
074c490
refactor: remove the label & code field from the url paterns
boazpoolman Mar 5, 2025
98bc5d9
fix: the edit link controller
boazpoolman Mar 5, 2025
9e34d70
fix: cleanup
boazpoolman Mar 5, 2025
51a9200
feat: make the edit view form work
boazpoolman Mar 5, 2025
86ef6ae
fix: remove helper-plugin dependency
boazpoolman Mar 5, 2025
7db2bc0
fix: update lockfile
boazpoolman Mar 5, 2025
1d6d46a
fix: eslint issues in sitemap addon
boazpoolman Mar 5, 2025
2c970d1
fix: update lockfile
boazpoolman Mar 6, 2025
c119e00
fix: sitemap build
boazpoolman Mar 6, 2025
db902cd
fix: sitemap build
boazpoolman Mar 6, 2025
91bbd9c
fix: sitemap tests
boazpoolman Mar 6, 2025
848fe33
fix: build
boazpoolman Mar 6, 2025
0e60f7d
fix: make sure url aliases get translated properly
boazpoolman Mar 9, 2025
1e97ce4
feat: migrate sitemap server
boazpoolman Mar 9, 2025
5b19aff
fix: sitemap cli
boazpoolman Mar 9, 2025
5caf05f
feat: finalize sitemap migration
boazpoolman Mar 9, 2025
c23cb9d
fix: various bugs
boazpoolman Mar 9, 2025
2dd4c3a
chore: remove helper-plugin
boazpoolman Mar 9, 2025
94679e4
chore: update types
boazpoolman Mar 9, 2025
fc9705a
fix: re-enable the test-deploy pipeline
boazpoolman Mar 9, 2025
b7e9b6a
chore: update lockfile
boazpoolman Mar 9, 2025
6dfc9b2
chore: prep releases
boazpoolman Mar 9, 2025
61ec68b
fix: e2e tests
boazpoolman Mar 9, 2025
8f5561d
fix: eslint issues
boazpoolman Mar 9, 2025
6cd00e2
chore: cleanup
boazpoolman Mar 10, 2025
c5fb27d
fix: tests
boazpoolman Mar 10, 2025
d69cea1
fix: cleanup
boazpoolman Mar 13, 2025
b04a2bf
fix: bulk generate & clean up
boazpoolman Mar 13, 2025
238a00d
fix: issue in peer dependency management
boazpoolman Mar 13, 2025
a70cb10
chore: add changeset for stable release
boazpoolman Mar 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 6 additions & 0 deletions .changeset/every-lies-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"webtools-addon-sitemap": major
"strapi-plugin-webtools": major
---

Strapi 5 support
2 changes: 1 addition & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"mode": "pre",
"mode": "exit",
"tag": "beta",
"initialVersions": {
"@pluginpal/webtools-addon-menus": "0.0.0",
Expand Down
12 changes: 10 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
}
112 changes: 56 additions & 56 deletions .github/workflows/deploy-test-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
# 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/[email protected]
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/[email protected]
# 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/[email protected]
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/[email protected]
# 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/[email protected]
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

8 changes: 7 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down
87 changes: 0 additions & 87 deletions MIGRATION.md

This file was deleted.

17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
<a href="https://docs.pluginpal.io/webtools">Read the documentation</a>

<p>
<a href="https://www.npmjs.org/package/@pluginpal/webtools-core">
<img src="https://img.shields.io/npm/v/@pluginpal/webtools-core/latest.svg" alt="NPM Version" />
<a href="https://www.npmjs.org/package/strapi-plugin-webtools">
<img src="https://img.shields.io/npm/v/strapi-plugin-webtools/latest.svg" alt="NPM Version" />
</a>
<a href="https://www.npmjs.org/package/@pluginpal/webtools-core">
<img src="https://img.shields.io/npm/dm/@pluginpal/webtools-core" alt="Monthly download on NPM" />
<a href="https://www.npmjs.org/package/strapi-plugin-webtools">
<img src="https://img.shields.io/npm/dm/strapi-plugin-webtools" alt="Monthly download on NPM" />
</a>
<a href="https://codecov.io/gh/pluginpal/strapi-webtools">
<img src="https://img.shields.io/github/actions/workflow/status/pluginpal/strapi-webtools/tests.yml?branch=master" alt="CI build status" />
Expand All @@ -22,9 +22,6 @@

</div>

> [!IMPORTANT]
> The Webtools suite is still in BETA

## ✨ Features

- **Unique URLs** Every page will get their own unique path
Expand All @@ -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:
Expand Down Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = { presets: ['@babel/preset-env'] };
3 changes: 2 additions & 1 deletion cypress.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
});
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -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'],
Expand Down
Loading