Added support for an Advertisement Banner on the homepage

made home publish/draft
This commit is contained in:
Joao Ramos
2024-04-08 18:48:35 +01:00
parent 5dbe466dff
commit 3d4005a62a
8 changed files with 429 additions and 59 deletions

View File

@@ -590,6 +590,47 @@ export interface PluginContentReleasesReleaseAction
};
}
export interface PluginPublisherAction extends Schema.CollectionType {
collectionName: 'actions';
info: {
singularName: 'action';
pluralName: 'actions';
displayName: 'actions';
};
options: {
draftAndPublish: false;
comment: '';
};
pluginOptions: {
'content-manager': {
visible: false;
};
'content-type-builder': {
visible: false;
};
};
attributes: {
executeAt: Attribute.DateTime;
mode: Attribute.String;
entityId: Attribute.Integer;
entitySlug: Attribute.String;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
createdBy: Attribute.Relation<
'plugin::publisher.action',
'oneToOne',
'admin::user'
> &
Attribute.Private;
updatedBy: Attribute.Relation<
'plugin::publisher.action',
'oneToOne',
'admin::user'
> &
Attribute.Private;
};
}
export interface PluginI18NLocale extends Schema.CollectionType {
collectionName: 'i18n_locale';
info: {
@@ -1177,7 +1218,7 @@ export interface ApiHomeHome extends Schema.SingleType {
description: '';
};
options: {
draftAndPublish: false;
draftAndPublish: true;
};
pluginOptions: {
i18n: {
@@ -1245,8 +1286,15 @@ export interface ApiHomeHome extends Schema.SingleType {
localized: false;
};
}>;
AdvertisementBanner: Attribute.Media &
Attribute.SetPluginOptions<{
i18n: {
localized: true;
};
}>;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime;
createdBy: Attribute.Relation<'api::home.home', 'oneToOne', 'admin::user'> &
Attribute.Private;
updatedBy: Attribute.Relation<'api::home.home', 'oneToOne', 'admin::user'> &
@@ -1668,6 +1716,7 @@ declare module '@strapi/types' {
'plugin::upload.folder': PluginUploadFolder;
'plugin::content-releases.release': PluginContentReleasesRelease;
'plugin::content-releases.release-action': PluginContentReleasesReleaseAction;
'plugin::publisher.action': PluginPublisherAction;
'plugin::i18n.locale': PluginI18NLocale;
'plugin::users-permissions.permission': PluginUsersPermissionsPermission;
'plugin::users-permissions.role': PluginUsersPermissionsRole;