change: add publish unpublish scheduling (beta-plugin)
This commit is contained in:
parent
9032335344
commit
2ecc8d52ea
5 changed files with 81 additions and 2 deletions
|
@ -1 +1,5 @@
|
|||
export default () => ({});
|
||||
export default () => ({
|
||||
publisher: {
|
||||
enabled: true,
|
||||
},
|
||||
});
|
||||
|
|
39
package-lock.json
generated
39
package-lock.json
generated
|
@ -18,6 +18,7 @@
|
|||
"react": "^18.0.0",
|
||||
"react-dom": "^18.0.0",
|
||||
"react-router-dom": "^6.0.0",
|
||||
"strapi-plugin-publisher": "^2.0.0-beta.5",
|
||||
"styled-components": "^6.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
@ -17740,6 +17741,32 @@
|
|||
"url": "https://github.com/sponsors/sindresorhus"
|
||||
}
|
||||
},
|
||||
"node_modules/strapi-plugin-publisher": {
|
||||
"version": "2.0.0-beta.5",
|
||||
"resolved": "https://registry.npmjs.org/strapi-plugin-publisher/-/strapi-plugin-publisher-2.0.0-beta.5.tgz",
|
||||
"integrity": "sha512-jmf9ziHPCiqZxSDhON+2RECn3vLaySNPaKI78OxVgfg9P03Wxr7yoLoGK0IXLwyAOGuwxkZojHOY4zF+nDPRog==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"lodash": "^4.17.21",
|
||||
"prop-types": "^15.8.1",
|
||||
"react-intl": "^6.6.2",
|
||||
"react-query": "^3.39.3",
|
||||
"yup": "^0.32.9"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=18.0.0 <=20.x.x",
|
||||
"npm": ">=6.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@strapi/design-system": "^2.0.0-rc.11",
|
||||
"@strapi/icons": "^2.0.0-rc.11",
|
||||
"@strapi/strapi": "^5.2.0",
|
||||
"@strapi/utils": "^5.2.0",
|
||||
"react": "^17.0.0 || ^18.0.0",
|
||||
"react-router-dom": "^6.0.0",
|
||||
"styled-components": "^6.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/stream-chain": {
|
||||
"version": "2.2.5",
|
||||
"resolved": "https://registry.npmjs.org/stream-chain/-/stream-chain-2.2.5.tgz",
|
||||
|
@ -32290,6 +32317,18 @@
|
|||
"resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.2.2.tgz",
|
||||
"integrity": "sha512-UhDfHmA92YAlNnCfhmq0VeNL5bDbiZGg7sZ2IvPsXubGkiNa9EC+tUTsjBRsYUAz87btI6/1wf4XoVvQ3uRnmQ=="
|
||||
},
|
||||
"strapi-plugin-publisher": {
|
||||
"version": "2.0.0-beta.5",
|
||||
"resolved": "https://registry.npmjs.org/strapi-plugin-publisher/-/strapi-plugin-publisher-2.0.0-beta.5.tgz",
|
||||
"integrity": "sha512-jmf9ziHPCiqZxSDhON+2RECn3vLaySNPaKI78OxVgfg9P03Wxr7yoLoGK0IXLwyAOGuwxkZojHOY4zF+nDPRog==",
|
||||
"requires": {
|
||||
"lodash": "^4.17.21",
|
||||
"prop-types": "^15.8.1",
|
||||
"react-intl": "^6.6.2",
|
||||
"react-query": "^3.39.3",
|
||||
"yup": "^0.32.9"
|
||||
}
|
||||
},
|
||||
"stream-chain": {
|
||||
"version": "2.2.5",
|
||||
"resolved": "https://registry.npmjs.org/stream-chain/-/stream-chain-2.2.5.tgz",
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
"react": "^18.0.0",
|
||||
"react-dom": "^18.0.0",
|
||||
"react-router-dom": "^6.0.0",
|
||||
"strapi-plugin-publisher": "^2.0.0-beta.5",
|
||||
"styled-components": "^6.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
"name": "Apache 2.0",
|
||||
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
|
||||
},
|
||||
"x-generation-date": "2025-02-19T12:30:17.145Z"
|
||||
"x-generation-date": "2025-03-29T13:27:01.000Z"
|
||||
},
|
||||
"x-strapi-config": {
|
||||
"plugins": [
|
||||
|
|
35
types/generated/contentTypes.d.ts
vendored
35
types/generated/contentTypes.d.ts
vendored
|
@ -697,6 +697,40 @@ export interface PluginI18NLocale extends Struct.CollectionTypeSchema {
|
|||
};
|
||||
}
|
||||
|
||||
export interface PluginPublisherAction extends Struct.CollectionTypeSchema {
|
||||
collectionName: "actions";
|
||||
info: {
|
||||
displayName: "actions";
|
||||
pluralName: "actions";
|
||||
singularName: "action";
|
||||
};
|
||||
options: {
|
||||
comment: "";
|
||||
draftAndPublish: false;
|
||||
};
|
||||
pluginOptions: {
|
||||
"content-manager": {
|
||||
visible: false;
|
||||
};
|
||||
"content-type-builder": {
|
||||
visible: false;
|
||||
};
|
||||
};
|
||||
attributes: {
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private;
|
||||
entityId: Schema.Attribute.String;
|
||||
entitySlug: Schema.Attribute.String;
|
||||
executeAt: Schema.Attribute.DateTime;
|
||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||
localizations: Schema.Attribute.Relation<"oneToMany", "plugin::publisher.action"> & Schema.Attribute.Private;
|
||||
mode: Schema.Attribute.String;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<"oneToOne", "admin::user"> & Schema.Attribute.Private;
|
||||
};
|
||||
}
|
||||
|
||||
export interface PluginReviewWorkflowsWorkflow extends Struct.CollectionTypeSchema {
|
||||
collectionName: "strapi_workflows";
|
||||
info: {
|
||||
|
@ -1006,6 +1040,7 @@ declare module "@strapi/strapi" {
|
|||
"plugin::content-releases.release": PluginContentReleasesRelease;
|
||||
"plugin::content-releases.release-action": PluginContentReleasesReleaseAction;
|
||||
"plugin::i18n.locale": PluginI18NLocale;
|
||||
"plugin::publisher.action": PluginPublisherAction;
|
||||
"plugin::review-workflows.workflow": PluginReviewWorkflowsWorkflow;
|
||||
"plugin::review-workflows.workflow-stage": PluginReviewWorkflowsWorkflowStage;
|
||||
"plugin::upload.file": PluginUploadFile;
|
||||
|
|
Loading…
Add table
Reference in a new issue