move items to global
This commit is contained in:
parent
4b3bf78366
commit
8a28b7ae94
6 changed files with 6 additions and 67 deletions
|
|
@ -19,6 +19,11 @@
|
|||
"component": "global.descriptive-list",
|
||||
"repeatable": true
|
||||
},
|
||||
"mosaic_items": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::mosaic-item.mosaic-item"
|
||||
},
|
||||
"seo": {
|
||||
"type": "component",
|
||||
"component": "global.seo",
|
||||
|
|
|
|||
|
|
@ -1,20 +0,0 @@
|
|||
{
|
||||
"kind": "singleType",
|
||||
"collectionName": "homes",
|
||||
"info": {
|
||||
"singularName": "home",
|
||||
"pluralName": "homes",
|
||||
"displayName": "Home"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"mosaic_items": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::mosaic-item.mosaic-item"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
/**
|
||||
* home controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreController('api::home.home');
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
/**
|
||||
* home router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::home.home');
|
||||
|
|
@ -1,7 +0,0 @@
|
|||
/**
|
||||
* home service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::home.home');
|
||||
27
types/generated/contentTypes.d.ts
vendored
27
types/generated/contentTypes.d.ts
vendored
|
|
@ -462,36 +462,12 @@ export interface ApiGlobalGlobal extends Struct.SingleTypeSchema {
|
|||
'api::global.global'
|
||||
> &
|
||||
Schema.Attribute.Private;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
seo: Schema.Attribute.Component<'global.seo', false>;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
};
|
||||
}
|
||||
|
||||
export interface ApiHomeHome extends Struct.SingleTypeSchema {
|
||||
collectionName: 'homes';
|
||||
info: {
|
||||
displayName: 'Home';
|
||||
pluralName: 'homes';
|
||||
singularName: 'home';
|
||||
};
|
||||
options: {
|
||||
draftAndPublish: true;
|
||||
};
|
||||
attributes: {
|
||||
createdAt: Schema.Attribute.DateTime;
|
||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
||||
localizations: Schema.Attribute.Relation<'oneToMany', 'api::home.home'> &
|
||||
Schema.Attribute.Private;
|
||||
mosaic_items: Schema.Attribute.Relation<
|
||||
'oneToMany',
|
||||
'api::mosaic-item.mosaic-item'
|
||||
>;
|
||||
publishedAt: Schema.Attribute.DateTime;
|
||||
seo: Schema.Attribute.Component<'global.seo', false>;
|
||||
updatedAt: Schema.Attribute.DateTime;
|
||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||
Schema.Attribute.Private;
|
||||
|
|
@ -1042,7 +1018,6 @@ declare module '@strapi/strapi' {
|
|||
'admin::transfer-token-permission': AdminTransferTokenPermission;
|
||||
'admin::user': AdminUser;
|
||||
'api::global.global': ApiGlobalGlobal;
|
||||
'api::home.home': ApiHomeHome;
|
||||
'api::mosaic-item.mosaic-item': ApiMosaicItemMosaicItem;
|
||||
'plugin::content-releases.release': PluginContentReleasesRelease;
|
||||
'plugin::content-releases.release-action': PluginContentReleasesReleaseAction;
|
||||
|
|
|
|||
Loading…
Reference in a new issue