Compare commits

...

4 Commits

Author SHA1 Message Date
daedalus
47ed9f40a8 3.0.1 2023-11-01 19:02:22 -04:00
daedalus
8eeac9a748 fix(docs quickstart): add required name and missing semi color 2023-11-01 19:02:22 -04:00
daedalus
ba64fede45
fix(LogListView): logs should be in desc order (#46) 2023-11-01 18:59:47 -04:00
daedalus
d185e7e420
chore(npm): remove docs from bundle (#44) 2023-09-19 21:00:06 -04:00
5 changed files with 23 additions and 19 deletions

View File

@ -20,3 +20,6 @@ npm-debug.log
# github # github
.github .github
# docs
docs

View File

@ -13,7 +13,7 @@ export const useLogs = () => {
return useQuery({ return useQuery({
queryKey: [PLUGIN_ID, 'logs'], queryKey: [PLUGIN_ID, 'logs'],
queryFn: function () { queryFn: function () {
return get(`/${PLUGIN_ID}/logs`, { params: { pagination: { page } } }); return get(`/${PLUGIN_ID}/logs`, { params: { sort: ['id:desc'], pagination: { page } } });
}, },
select: function ({ data }) { select: function ({ data }) {
return { ...data } || false; return { ...data } || false;

View File

@ -24,21 +24,22 @@ yarn add strapi-plugin-website-builder
```js ```js
module.exports = ({ env }) => ({ module.exports = ({ env }) => ({
// ... // ...
'website-builder': { 'website-builder': {
enabled: true, enabled: true,
config: { config: {
builds: [ builds: [
{ {
url: 'https://link-to-hit-on-trigger.com' name: 'manual-build',
trigger: { url: 'https://link-to-hit-on-trigger.com',
type: 'manual' trigger: {
}, type: 'manual',
}, },
], },
}, ],
}, },
// ... },
// ...
}); });
``` ```

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "strapi-plugin-website-builder", "name": "strapi-plugin-website-builder",
"version": "3.0.0", "version": "3.0.1",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "strapi-plugin-website-builder", "name": "strapi-plugin-website-builder",
"version": "3.0.0", "version": "3.0.1",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"axios": "^1.5.0", "axios": "^1.5.0",

View File

@ -1,7 +1,7 @@
{ {
"$schema": "https://json.schemastore.org/package", "$schema": "https://json.schemastore.org/package",
"name": "strapi-plugin-website-builder", "name": "strapi-plugin-website-builder",
"version": "3.0.0", "version": "3.0.1",
"description": "A plugin for Strapi Headless CMS that provides the ability to trigger website builds manually, periodically or through model events.", "description": "A plugin for Strapi Headless CMS that provides the ability to trigger website builds manually, periodically or through model events.",
"scripts": { "scripts": {
"lint:fix": "eslint --fix \"./**/*.{js,yml}\"", "lint:fix": "eslint --fix \"./**/*.{js,yml}\"",