add service detail page
This commit is contained in:
parent
22272e0a17
commit
35f172702a
@ -0,0 +1,40 @@
|
|||||||
|
// Interface automatically generated by schemas-to-ts
|
||||||
|
|
||||||
|
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
|
||||||
|
import { YogaFooter } from './yoga-footer';
|
||||||
|
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
||||||
|
import { YogaFooter_Plain } from './yoga-footer';
|
||||||
|
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||||
|
|
||||||
|
export interface ServicePage {
|
||||||
|
id: number;
|
||||||
|
attributes: {
|
||||||
|
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||||
|
description?: string;
|
||||||
|
subscribeNow?: { data: YogaSubscribeNowComponent };
|
||||||
|
footer?: { data: YogaFooter };
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export interface ServicePage_Plain {
|
||||||
|
id: number;
|
||||||
|
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||||
|
description?: string;
|
||||||
|
subscribeNow?: YogaSubscribeNowComponent_Plain;
|
||||||
|
footer?: YogaFooter_Plain;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ServicePage_NoRelations {
|
||||||
|
id: number;
|
||||||
|
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||||
|
description?: string;
|
||||||
|
subscribeNow?: number;
|
||||||
|
footer?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ServicePage_AdminPanelLifeCycle {
|
||||||
|
id: number;
|
||||||
|
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||||
|
description?: string;
|
||||||
|
subscribeNow?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
|
||||||
|
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
|
||||||
|
}
|
||||||
40
yoga-cms/generated-strapi-interfaces/api/service-page.ts
Normal file
40
yoga-cms/generated-strapi-interfaces/api/service-page.ts
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
// Interface automatically generated by schemas-to-ts
|
||||||
|
|
||||||
|
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
|
||||||
|
import { YogaFooter } from './yoga-footer';
|
||||||
|
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
||||||
|
import { YogaFooter_Plain } from './yoga-footer';
|
||||||
|
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||||
|
|
||||||
|
export interface ServicePage {
|
||||||
|
id: number;
|
||||||
|
attributes: {
|
||||||
|
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||||
|
description?: string;
|
||||||
|
subscribeNow?: { data: YogaSubscribeNowComponent };
|
||||||
|
footer?: { data: YogaFooter };
|
||||||
|
};
|
||||||
|
}
|
||||||
|
export interface ServicePage_Plain {
|
||||||
|
id: number;
|
||||||
|
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||||
|
description?: string;
|
||||||
|
subscribeNow?: YogaSubscribeNowComponent_Plain;
|
||||||
|
footer?: YogaFooter_Plain;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ServicePage_NoRelations {
|
||||||
|
id: number;
|
||||||
|
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||||
|
description?: string;
|
||||||
|
subscribeNow?: number;
|
||||||
|
footer?: number;
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ServicePage_AdminPanelLifeCycle {
|
||||||
|
id: number;
|
||||||
|
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||||
|
description?: string;
|
||||||
|
subscribeNow?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
|
||||||
|
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
|
||||||
|
}
|
||||||
@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"kind": "singleType",
|
||||||
|
"collectionName": "service_pages",
|
||||||
|
"info": {
|
||||||
|
"singularName": "service-page",
|
||||||
|
"pluralName": "service-pages",
|
||||||
|
"displayName": "ServicePage",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"draftAndPublish": true
|
||||||
|
},
|
||||||
|
"attributes": {
|
||||||
|
"header": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
"subscribeNow": {
|
||||||
|
"type": "relation",
|
||||||
|
"relation": "oneToOne",
|
||||||
|
"target": "api::yoga-subscribe-now-component.yoga-subscribe-now-component"
|
||||||
|
},
|
||||||
|
"footer": {
|
||||||
|
"type": "relation",
|
||||||
|
"relation": "oneToOne",
|
||||||
|
"target": "api::yoga-footer.yoga-footer"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* service-page controller
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { factories } from '@strapi/strapi'
|
||||||
|
|
||||||
|
export default factories.createCoreController('api::service-page.service-page');
|
||||||
7
yoga-cms/src/api/service-page/routes/service-page.ts
Normal file
7
yoga-cms/src/api/service-page/routes/service-page.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* service-page router
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { factories } from '@strapi/strapi';
|
||||||
|
|
||||||
|
export default factories.createCoreRouter('api::service-page.service-page');
|
||||||
7
yoga-cms/src/api/service-page/services/service-page.ts
Normal file
7
yoga-cms/src/api/service-page/services/service-page.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* service-page service
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { factories } from '@strapi/strapi';
|
||||||
|
|
||||||
|
export default factories.createCoreService('api::service-page.service-page');
|
||||||
Loading…
Reference in New Issue
Block a user