add services page

This commit is contained in:
Schneider Roland
2025-01-27 22:09:49 +01:00
parent 129e796852
commit ceac176558
12 changed files with 523 additions and 11 deletions

View File

@@ -0,0 +1,74 @@
// Interface automatically generated by schemas-to-ts
import { YogaOurServicesComponent } from './yoga-our-services-component';
import { YogaContactUs } from './yoga-contact-us';
import { YogaSpecialitiesComponent } from './yoga-specialities-component';
import { YogaCustomerFeedbackComponent } from './yoga-customer-feedback-component';
import { YogaBlogPostsComponent } from './yoga-blog-posts-component';
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
import { YogaFooter } from './yoga-footer';
import { YogaOurServicesComponent_Plain } from './yoga-our-services-component';
import { YogaContactUs_Plain } from './yoga-contact-us';
import { YogaSpecialitiesComponent_Plain } from './yoga-specialities-component';
import { YogaCustomerFeedbackComponent_Plain } from './yoga-customer-feedback-component';
import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
import { YogaFooter_Plain } from './yoga-footer';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface ServicesPage {
id: number;
attributes: {
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
description?: string;
ourServices?: { data: YogaOurServicesComponent };
contactUs?: { data: YogaContactUs };
ourSpecialities?: { data: YogaSpecialitiesComponent };
feedbacks?: { data: YogaCustomerFeedbackComponent };
blogs?: { data: YogaBlogPostsComponent };
subscribe?: { data: YogaSubscribeNowComponent };
footer?: { data: YogaFooter };
title?: string;
};
}
export interface ServicesPage_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
description?: string;
ourServices?: YogaOurServicesComponent_Plain;
contactUs?: YogaContactUs_Plain;
ourSpecialities?: YogaSpecialitiesComponent_Plain;
feedbacks?: YogaCustomerFeedbackComponent_Plain;
blogs?: YogaBlogPostsComponent_Plain;
subscribe?: YogaSubscribeNowComponent_Plain;
footer?: YogaFooter_Plain;
title?: string;
}
export interface ServicesPage_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
description?: string;
ourServices?: number;
contactUs?: number;
ourSpecialities?: number;
feedbacks?: number;
blogs?: number;
subscribe?: number;
footer?: number;
title?: string;
}
export interface ServicesPage_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
description?: string;
ourServices?: AdminPanelRelationPropertyModification<YogaOurServicesComponent_Plain>;
contactUs?: AdminPanelRelationPropertyModification<YogaContactUs_Plain>;
ourSpecialities?: AdminPanelRelationPropertyModification<YogaSpecialitiesComponent_Plain>;
feedbacks?: AdminPanelRelationPropertyModification<YogaCustomerFeedbackComponent_Plain>;
blogs?: AdminPanelRelationPropertyModification<YogaBlogPostsComponent_Plain>;
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
title?: string;
}

View File

@@ -0,0 +1,60 @@
{
"kind": "singleType",
"collectionName": "services_pages",
"info": {
"singularName": "services-page",
"pluralName": "services-pages",
"displayName": "Services",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"header": {
"type": "string"
},
"description": {
"type": "text"
},
"ourServices": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-our-services-component.yoga-our-services-component"
},
"contactUs": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-contact-us.yoga-contact-us"
},
"ourSpecialities": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-specialities-component.yoga-specialities-component"
},
"feedbacks": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-customer-feedback-component.yoga-customer-feedback-component"
},
"blogs": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-blog-posts-component.yoga-blog-posts-component"
},
"subscribe": {
"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"
},
"title": {
"type": "string"
}
}
}

View File

@@ -0,0 +1,7 @@
/**
* services-page controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::services-page.services-page');

View File

@@ -0,0 +1,7 @@
/**
* services-page router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::services-page.services-page');

View File

@@ -0,0 +1,7 @@
/**
* services-page service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::services-page.services-page');

View File

@@ -700,6 +700,65 @@ export interface ApiPersonPerson extends Struct.SingleTypeSchema {
};
}
export interface ApiServicesPageServicesPage extends Struct.SingleTypeSchema {
collectionName: 'services_pages';
info: {
description: '';
displayName: 'Services';
pluralName: 'services-pages';
singularName: 'services-page';
};
options: {
draftAndPublish: true;
};
attributes: {
blogs: Schema.Attribute.Relation<
'oneToOne',
'api::yoga-blog-posts-component.yoga-blog-posts-component'
>;
contactUs: Schema.Attribute.Relation<
'oneToOne',
'api::yoga-contact-us.yoga-contact-us'
>;
createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
Schema.Attribute.Private;
description: Schema.Attribute.Text;
feedbacks: Schema.Attribute.Relation<
'oneToOne',
'api::yoga-customer-feedback-component.yoga-customer-feedback-component'
>;
footer: Schema.Attribute.Relation<
'oneToOne',
'api::yoga-footer.yoga-footer'
>;
header: Schema.Attribute.String;
locale: Schema.Attribute.String & Schema.Attribute.Private;
localizations: Schema.Attribute.Relation<
'oneToMany',
'api::services-page.services-page'
> &
Schema.Attribute.Private;
ourServices: Schema.Attribute.Relation<
'oneToOne',
'api::yoga-our-services-component.yoga-our-services-component'
>;
ourSpecialities: Schema.Attribute.Relation<
'oneToOne',
'api::yoga-specialities-component.yoga-specialities-component'
>;
publishedAt: Schema.Attribute.DateTime;
subscribe: Schema.Attribute.Relation<
'oneToOne',
'api::yoga-subscribe-now-component.yoga-subscribe-now-component'
>;
title: Schema.Attribute.String;
updatedAt: Schema.Attribute.DateTime;
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
Schema.Attribute.Private;
};
}
export interface ApiYogaAboutUsComponentYogaAboutUsComponent
extends Struct.CollectionTypeSchema {
collectionName: 'yoga_about_us_components';
@@ -2193,6 +2252,7 @@ declare module '@strapi/strapi' {
'api::home.home': ApiHomeHome;
'api::page.page': ApiPagePage;
'api::person.person': ApiPersonPerson;
'api::services-page.services-page': ApiServicesPageServicesPage;
'api::yoga-about-us-component.yoga-about-us-component': ApiYogaAboutUsComponentYogaAboutUsComponent;
'api::yoga-about-us-with-boxes-component.yoga-about-us-with-boxes-component': ApiYogaAboutUsWithBoxesComponentYogaAboutUsWithBoxesComponent;
'api::yoga-achivement.yoga-achivement': ApiYogaAchivementYogaAchivement;