Compare commits

..

No commits in common. "master" and "3.0.0" have entirely different histories.

5 changed files with 19 additions and 23 deletions

View File

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

View File

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

View File

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

4
package-lock.json generated
View File

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

View File

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