add concatct page
This commit is contained in:
parent
71f697c88f
commit
4d239f7c7a
@ -0,0 +1,52 @@
|
||||
// Interface automatically generated by schemas-to-ts
|
||||
|
||||
import { YogaContactUs } from './yoga-contact-us';
|
||||
import { YogaGoogleMapsComponent } from './yoga-google-maps-component';
|
||||
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter } from './yoga-footer';
|
||||
import { YogaContactUs_Plain } from './yoga-contact-us';
|
||||
import { YogaGoogleMapsComponent_Plain } from './yoga-google-maps-component';
|
||||
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter_Plain } from './yoga-footer';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
export interface ContactPage {
|
||||
id: number;
|
||||
attributes: {
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
contactUs?: { data: YogaContactUs };
|
||||
google_maps?: { data: YogaGoogleMapsComponent };
|
||||
subscribe?: { data: YogaSubscribeNowComponent };
|
||||
footer?: { data: YogaFooter };
|
||||
};
|
||||
}
|
||||
export interface ContactPage_Plain {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
contactUs?: YogaContactUs_Plain;
|
||||
google_maps?: YogaGoogleMapsComponent_Plain;
|
||||
subscribe?: YogaSubscribeNowComponent_Plain;
|
||||
footer?: YogaFooter_Plain;
|
||||
}
|
||||
|
||||
export interface ContactPage_NoRelations {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
contactUs?: number;
|
||||
google_maps?: number;
|
||||
subscribe?: number;
|
||||
footer?: number;
|
||||
}
|
||||
|
||||
export interface ContactPage_AdminPanelLifeCycle {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
contactUs?: AdminPanelRelationPropertyModification<YogaContactUs_Plain>;
|
||||
google_maps?: AdminPanelRelationPropertyModification<YogaGoogleMapsComponent_Plain>;
|
||||
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
|
||||
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
// Interface automatically generated by schemas-to-ts
|
||||
|
||||
export interface YogaGoogleMapsComponent {
|
||||
id: number;
|
||||
attributes: {
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
|
||||
google_maps_url?: string;
|
||||
};
|
||||
}
|
||||
export interface YogaGoogleMapsComponent_Plain {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
|
||||
google_maps_url?: string;
|
||||
}
|
||||
|
||||
export interface YogaGoogleMapsComponent_NoRelations {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
|
||||
google_maps_url?: string;
|
||||
}
|
||||
|
||||
export interface YogaGoogleMapsComponent_AdminPanelLifeCycle {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
|
||||
google_maps_url?: string;
|
||||
}
|
||||
52
yoga-cms/generated-strapi-interfaces/api/contact-page.ts
Normal file
52
yoga-cms/generated-strapi-interfaces/api/contact-page.ts
Normal file
@ -0,0 +1,52 @@
|
||||
// Interface automatically generated by schemas-to-ts
|
||||
|
||||
import { YogaContactUs } from './yoga-contact-us';
|
||||
import { YogaGoogleMapsComponent } from './yoga-google-maps-component';
|
||||
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter } from './yoga-footer';
|
||||
import { YogaContactUs_Plain } from './yoga-contact-us';
|
||||
import { YogaGoogleMapsComponent_Plain } from './yoga-google-maps-component';
|
||||
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter_Plain } from './yoga-footer';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
export interface ContactPage {
|
||||
id: number;
|
||||
attributes: {
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
contactUs?: { data: YogaContactUs };
|
||||
google_maps?: { data: YogaGoogleMapsComponent };
|
||||
subscribe?: { data: YogaSubscribeNowComponent };
|
||||
footer?: { data: YogaFooter };
|
||||
};
|
||||
}
|
||||
export interface ContactPage_Plain {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
contactUs?: YogaContactUs_Plain;
|
||||
google_maps?: YogaGoogleMapsComponent_Plain;
|
||||
subscribe?: YogaSubscribeNowComponent_Plain;
|
||||
footer?: YogaFooter_Plain;
|
||||
}
|
||||
|
||||
export interface ContactPage_NoRelations {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
contactUs?: number;
|
||||
google_maps?: number;
|
||||
subscribe?: number;
|
||||
footer?: number;
|
||||
}
|
||||
|
||||
export interface ContactPage_AdminPanelLifeCycle {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
contactUs?: AdminPanelRelationPropertyModification<YogaContactUs_Plain>;
|
||||
google_maps?: AdminPanelRelationPropertyModification<YogaGoogleMapsComponent_Plain>;
|
||||
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
|
||||
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
|
||||
}
|
||||
@ -0,0 +1,26 @@
|
||||
// Interface automatically generated by schemas-to-ts
|
||||
|
||||
export interface YogaGoogleMapsComponent {
|
||||
id: number;
|
||||
attributes: {
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
|
||||
google_maps_url?: string;
|
||||
};
|
||||
}
|
||||
export interface YogaGoogleMapsComponent_Plain {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
|
||||
google_maps_url?: string;
|
||||
}
|
||||
|
||||
export interface YogaGoogleMapsComponent_NoRelations {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
|
||||
google_maps_url?: string;
|
||||
}
|
||||
|
||||
export interface YogaGoogleMapsComponent_AdminPanelLifeCycle {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; name?: string;
|
||||
google_maps_url?: string;
|
||||
}
|
||||
@ -0,0 +1,42 @@
|
||||
{
|
||||
"kind": "singleType",
|
||||
"collectionName": "contact_pages",
|
||||
"info": {
|
||||
"singularName": "contact-page",
|
||||
"pluralName": "contact-pages",
|
||||
"displayName": "ContactPage",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"header": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"contactUs": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-contact-us.yoga-contact-us"
|
||||
},
|
||||
"google_maps": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-google-maps-component.yoga-google-maps-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"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* contact-page controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::contact-page.contact-page');
|
||||
7
yoga-cms/src/api/contact-page/routes/contact-page.ts
Normal file
7
yoga-cms/src/api/contact-page/routes/contact-page.ts
Normal file
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* contact-page router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::contact-page.contact-page');
|
||||
7
yoga-cms/src/api/contact-page/services/contact-page.ts
Normal file
7
yoga-cms/src/api/contact-page/services/contact-page.ts
Normal file
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* contact-page service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::contact-page.contact-page');
|
||||
@ -0,0 +1,21 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "yoga_google_maps_components",
|
||||
"info": {
|
||||
"singularName": "yoga-google-maps-component",
|
||||
"pluralName": "yoga-google-maps-components",
|
||||
"displayName": "YogaGoogleMapsComponent"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"google_maps_url": {
|
||||
"type": "text"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-google-maps-component controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::yoga-google-maps-component.yoga-google-maps-component');
|
||||
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-google-maps-component router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::yoga-google-maps-component.yoga-google-maps-component');
|
||||
@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-google-maps-component service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::yoga-google-maps-component.yoga-google-maps-component');
|
||||
Loading…
Reference in New Issue
Block a user