[yoga-11] add common type and add logo

This commit is contained in:
Roland Schneider
2025-06-08 20:51:52 +02:00
parent 90a7dbf827
commit ca60a9a2f4
44 changed files with 390 additions and 24 deletions

View File

@@ -8,6 +8,7 @@ import { YogaAboutUsWithBoxesComponent } from './yoga-about-us-with-boxes-compon
import { YogaDiscountComponent } from './yoga-discount-component';
import { YogaTextWithImageComponent } from './yoga-text-with-image-component';
import { YogaAchivementsComponent } from './yoga-achivements-component';
import { YogaCommon } from './yoga-common';
import { HeaderB_Plain } from '../components/yoga-site/HeaderB';
import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
@@ -16,6 +17,7 @@ import { YogaAboutUsWithBoxesComponent_Plain } from './yoga-about-us-with-boxes-
import { YogaDiscountComponent_Plain } from './yoga-discount-component';
import { YogaTextWithImageComponent_Plain } from './yoga-text-with-image-component';
import { YogaAchivementsComponent_Plain } from './yoga-achivements-component';
import { YogaCommon_Plain } from './yoga-common';
import { HeaderB_NoRelations } from '../components/yoga-site/HeaderB';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
@@ -31,6 +33,7 @@ export interface About {
ourMission?: { data: YogaTextWithImageComponent };
ourVision?: { data: YogaTextWithImageComponent };
achievements?: { data: YogaAchivementsComponent };
common?: { data: YogaCommon };
locale: string;
localizations?: { data: About[] };
};
@@ -46,6 +49,7 @@ export interface About_Plain {
ourMission?: YogaTextWithImageComponent_Plain;
ourVision?: YogaTextWithImageComponent_Plain;
achievements?: YogaAchivementsComponent_Plain;
common?: YogaCommon_Plain;
locale: string;
localizations?: About_Plain[];
}
@@ -61,6 +65,7 @@ export interface About_NoRelations {
ourMission?: number;
ourVision?: number;
achievements?: number;
common?: number;
locale: string;
localizations?: About[];
}
@@ -76,6 +81,7 @@ export interface About_AdminPanelLifeCycle {
ourMission?: AdminPanelRelationPropertyModification<YogaTextWithImageComponent_Plain>;
ourVision?: AdminPanelRelationPropertyModification<YogaTextWithImageComponent_Plain>;
achievements?: AdminPanelRelationPropertyModification<YogaAchivementsComponent_Plain>;
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
locale: string;
localizations?: About[];
}

View File

@@ -4,10 +4,12 @@ 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 { YogaCommon } from './yoga-common';
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 { YogaCommon_Plain } from './yoga-common';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface ContactPage {
@@ -19,6 +21,7 @@ export interface ContactPage {
google_maps?: { data: YogaGoogleMapsComponent };
subscribe?: { data: YogaSubscribeNowComponent };
footer?: { data: YogaFooter };
common?: { data: YogaCommon };
};
}
export interface ContactPage_Plain {
@@ -29,6 +32,7 @@ export interface ContactPage_Plain {
google_maps?: YogaGoogleMapsComponent_Plain;
subscribe?: YogaSubscribeNowComponent_Plain;
footer?: YogaFooter_Plain;
common?: YogaCommon_Plain;
}
export interface ContactPage_NoRelations {
@@ -39,6 +43,7 @@ export interface ContactPage_NoRelations {
google_maps?: number;
subscribe?: number;
footer?: number;
common?: number;
}
export interface ContactPage_AdminPanelLifeCycle {
@@ -49,4 +54,5 @@ export interface ContactPage_AdminPanelLifeCycle {
google_maps?: AdminPanelRelationPropertyModification<YogaGoogleMapsComponent_Plain>;
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
}

View File

@@ -5,11 +5,13 @@ import { YogaAchivementsComponent } from './yoga-achivements-component';
import { YogaBlogPostsComponent } from './yoga-blog-posts-component';
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
import { YogaFooter } from './yoga-footer';
import { YogaCommon } from './yoga-common';
import { YogaFaqComponent_Plain } from './yoga-faq-component';
import { YogaAchivementsComponent_Plain } from './yoga-achivements-component';
import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
import { YogaFooter_Plain } from './yoga-footer';
import { YogaCommon_Plain } from './yoga-common';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface FaqPage {
@@ -22,6 +24,7 @@ export interface FaqPage {
blogs?: { data: YogaBlogPostsComponent };
subscribe?: { data: YogaSubscribeNowComponent };
footer?: { data: YogaFooter };
common?: { data: YogaCommon };
};
}
export interface FaqPage_Plain {
@@ -33,6 +36,7 @@ export interface FaqPage_Plain {
blogs?: YogaBlogPostsComponent_Plain;
subscribe?: YogaSubscribeNowComponent_Plain;
footer?: YogaFooter_Plain;
common?: YogaCommon_Plain;
}
export interface FaqPage_NoRelations {
@@ -44,6 +48,7 @@ export interface FaqPage_NoRelations {
blogs?: number;
subscribe?: number;
footer?: number;
common?: number;
}
export interface FaqPage_AdminPanelLifeCycle {
@@ -55,4 +60,5 @@ export interface FaqPage_AdminPanelLifeCycle {
blogs?: AdminPanelRelationPropertyModification<YogaBlogPostsComponent_Plain>;
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
}

View File

@@ -14,6 +14,7 @@ export interface Global {
favicon?: { data: Media };
siteDescription: string;
defaultSeo?: Seo;
logoImage?: { data: Media };
};
}
export interface Global_Plain {
@@ -22,6 +23,7 @@ export interface Global_Plain {
favicon?: Media_Plain;
siteDescription: string;
defaultSeo?: Seo_Plain;
logoImage?: Media_Plain;
}
export interface Global_NoRelations {
@@ -30,6 +32,7 @@ export interface Global_NoRelations {
favicon?: number;
siteDescription: string;
defaultSeo?: Seo_NoRelations;
logoImage?: number;
}
export interface Global_AdminPanelLifeCycle {
@@ -38,4 +41,5 @@ export interface Global_AdminPanelLifeCycle {
favicon?: AdminPanelRelationPropertyModification<Media_Plain>;
siteDescription: string;
defaultSeo?: Seo_Plain;
logoImage?: AdminPanelRelationPropertyModification<Media_Plain>;
}

View File

@@ -5,11 +5,13 @@ import { YogaDiscountComponent } from './yoga-discount-component';
import { YogaBlogPostsComponent } from './yoga-blog-posts-component';
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
import { YogaFooter } from './yoga-footer';
import { YogaCommon } from './yoga-common';
import { YogaPriceComponent_Plain } from './yoga-price-component';
import { YogaDiscountComponent_Plain } from './yoga-discount-component';
import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
import { YogaFooter_Plain } from './yoga-footer';
import { YogaCommon_Plain } from './yoga-common';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface PricesPage {
@@ -22,6 +24,7 @@ export interface PricesPage {
blogs?: { data: YogaBlogPostsComponent };
subscribe?: { data: YogaSubscribeNowComponent };
footer?: { data: YogaFooter };
common?: { data: YogaCommon };
};
}
export interface PricesPage_Plain {
@@ -33,6 +36,7 @@ export interface PricesPage_Plain {
blogs?: YogaBlogPostsComponent_Plain;
subscribe?: YogaSubscribeNowComponent_Plain;
footer?: YogaFooter_Plain;
common?: YogaCommon_Plain;
}
export interface PricesPage_NoRelations {
@@ -44,6 +48,7 @@ export interface PricesPage_NoRelations {
blogs?: number;
subscribe?: number;
footer?: number;
common?: number;
}
export interface PricesPage_AdminPanelLifeCycle {
@@ -55,4 +60,5 @@ export interface PricesPage_AdminPanelLifeCycle {
blogs?: AdminPanelRelationPropertyModification<YogaBlogPostsComponent_Plain>;
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
}

View File

@@ -2,8 +2,10 @@
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
import { YogaFooter } from './yoga-footer';
import { YogaCommon } from './yoga-common';
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
import { YogaFooter_Plain } from './yoga-footer';
import { YogaCommon_Plain } from './yoga-common';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface ServicePage {
@@ -13,6 +15,7 @@ export interface ServicePage {
description?: string;
subscribeNow?: { data: YogaSubscribeNowComponent };
footer?: { data: YogaFooter };
common?: { data: YogaCommon };
};
}
export interface ServicePage_Plain {
@@ -21,6 +24,7 @@ export interface ServicePage_Plain {
description?: string;
subscribeNow?: YogaSubscribeNowComponent_Plain;
footer?: YogaFooter_Plain;
common?: YogaCommon_Plain;
}
export interface ServicePage_NoRelations {
@@ -29,6 +33,7 @@ export interface ServicePage_NoRelations {
description?: string;
subscribeNow?: number;
footer?: number;
common?: number;
}
export interface ServicePage_AdminPanelLifeCycle {
@@ -37,4 +42,5 @@ export interface ServicePage_AdminPanelLifeCycle {
description?: string;
subscribeNow?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
}

View File

@@ -7,6 +7,7 @@ import { YogaCustomerFeedbackComponent } from './yoga-customer-feedback-componen
import { YogaBlogPostsComponent } from './yoga-blog-posts-component';
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
import { YogaFooter } from './yoga-footer';
import { YogaCommon } from './yoga-common';
import { YogaOurServicesComponent_Plain } from './yoga-our-services-component';
import { YogaContactUs_Plain } from './yoga-contact-us';
import { YogaSpecialitiesComponent_Plain } from './yoga-specialities-component';
@@ -14,6 +15,7 @@ import { YogaCustomerFeedbackComponent_Plain } from './yoga-customer-feedback-co
import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
import { YogaFooter_Plain } from './yoga-footer';
import { YogaCommon_Plain } from './yoga-common';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface ServicesPage {
@@ -29,6 +31,7 @@ export interface ServicesPage {
subscribe?: { data: YogaSubscribeNowComponent };
footer?: { data: YogaFooter };
title?: string;
common?: { data: YogaCommon };
};
}
export interface ServicesPage_Plain {
@@ -43,6 +46,7 @@ export interface ServicesPage_Plain {
subscribe?: YogaSubscribeNowComponent_Plain;
footer?: YogaFooter_Plain;
title?: string;
common?: YogaCommon_Plain;
}
export interface ServicesPage_NoRelations {
@@ -57,6 +61,7 @@ export interface ServicesPage_NoRelations {
subscribe?: number;
footer?: number;
title?: string;
common?: number;
}
export interface ServicesPage_AdminPanelLifeCycle {
@@ -71,4 +76,5 @@ export interface ServicesPage_AdminPanelLifeCycle {
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
title?: string;
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
}

View File

@@ -0,0 +1,26 @@
// Interface automatically generated by schemas-to-ts
import { Media } from '../components/shared/Media';
import { Media_Plain } from '../components/shared/Media';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface YogaCommon {
id: number;
attributes: {
createdAt: Date; updatedAt: Date; publishedAt?: Date; logoImage?: { data: Media };
};
}
export interface YogaCommon_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; logoImage?: Media_Plain;
}
export interface YogaCommon_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; logoImage?: number;
}
export interface YogaCommon_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; logoImage?: AdminPanelRelationPropertyModification<Media_Plain>;
}

View File

@@ -65,6 +65,11 @@
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-achivements-component.yoga-achivements-component"
},
"common": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-common.yoga-common"
}
}
}

View File

@@ -37,6 +37,11 @@
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-footer.yoga-footer"
},
"common": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-common.yoga-common"
}
}
}

View File

@@ -42,6 +42,11 @@
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-footer.yoga-footer"
},
"common": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-common.yoga-common"
}
}
}

View File

@@ -20,7 +20,11 @@
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": ["images", "files", "videos"]
"allowedTypes": [
"images",
"files",
"videos"
]
},
"siteDescription": {
"type": "text",
@@ -30,6 +34,17 @@
"type": "component",
"repeatable": false,
"component": "shared.seo"
},
"logoImage": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images",
"files",
"videos",
"audios"
]
}
}
}

View File

@@ -4,7 +4,8 @@
"info": {
"singularName": "prices-page",
"pluralName": "prices-pages",
"displayName": "PricesPage"
"displayName": "PricesPage",
"description": ""
},
"options": {
"draftAndPublish": true
@@ -41,6 +42,11 @@
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-footer.yoga-footer"
},
"common": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-common.yoga-common"
}
}
}

View File

@@ -26,6 +26,11 @@
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-footer.yoga-footer"
},
"common": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-common.yoga-common"
}
}
}

View File

@@ -55,6 +55,11 @@
},
"title": {
"type": "string"
},
"common": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-common.yoga-common"
}
}
}

View File

@@ -0,0 +1,24 @@
{
"kind": "collectionType",
"collectionName": "yoga_commons",
"info": {
"singularName": "yoga-common",
"pluralName": "yoga-commons",
"displayName": "YogaCommon"
},
"options": {
"draftAndPublish": true
},
"attributes": {
"logoImage": {
"allowedTypes": [
"images",
"files",
"videos",
"audios"
],
"type": "media",
"multiple": false
}
}
}

View File

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

View File

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

View File

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

View File

@@ -402,6 +402,10 @@ export interface ApiAboutAbout extends Struct.SingleTypeSchema {
'oneToOne',
'api::yoga-blog-posts-component.yoga-blog-posts-component'
>;
common: Schema.Attribute.Relation<
'oneToOne',
'api::yoga-common.yoga-common'
>;
createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
Schema.Attribute.Private;
@@ -556,6 +560,10 @@ export interface ApiContactPageContactPage extends Struct.SingleTypeSchema {
draftAndPublish: true;
};
attributes: {
common: Schema.Attribute.Relation<
'oneToOne',
'api::yoga-common.yoga-common'
>;
contactUs: Schema.Attribute.Relation<
'oneToOne',
'api::yoga-contact-us.yoga-contact-us'
@@ -610,6 +618,10 @@ export interface ApiFaqPageFaqPage extends Struct.SingleTypeSchema {
'oneToOne',
'api::yoga-blog-posts-component.yoga-blog-posts-component'
>;
common: Schema.Attribute.Relation<
'oneToOne',
'api::yoga-common.yoga-common'
>;
createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
Schema.Attribute.Private;
@@ -663,6 +675,7 @@ export interface ApiGlobalGlobal extends Struct.SingleTypeSchema {
'api::global.global'
> &
Schema.Attribute.Private;
logoImage: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>;
publishedAt: Schema.Attribute.DateTime;
siteDescription: Schema.Attribute.Text & Schema.Attribute.Required;
siteName: Schema.Attribute.String & Schema.Attribute.Required;
@@ -803,6 +816,7 @@ export interface ApiPersonPerson extends Struct.SingleTypeSchema {
export interface ApiPricesPagePricesPage extends Struct.SingleTypeSchema {
collectionName: 'prices_pages';
info: {
description: '';
displayName: 'PricesPage';
pluralName: 'prices-pages';
singularName: 'prices-page';
@@ -815,6 +829,10 @@ export interface ApiPricesPagePricesPage extends Struct.SingleTypeSchema {
'oneToOne',
'api::yoga-blog-posts-component.yoga-blog-posts-component'
>;
common: Schema.Attribute.Relation<
'oneToOne',
'api::yoga-common.yoga-common'
>;
createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
Schema.Attribute.Private;
@@ -861,6 +879,10 @@ export interface ApiServicePageServicePage extends Struct.SingleTypeSchema {
draftAndPublish: true;
};
attributes: {
common: Schema.Attribute.Relation<
'oneToOne',
'api::yoga-common.yoga-common'
>;
createdAt: Schema.Attribute.DateTime;
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
Schema.Attribute.Private;
@@ -903,6 +925,10 @@ export interface ApiServicesPageServicesPage extends Struct.SingleTypeSchema {
'oneToOne',
'api::yoga-blog-posts-component.yoga-blog-posts-component'
>;
common: Schema.Attribute.Relation<
'oneToOne',
'api::yoga-common.yoga-common'
>;
contactUs: Schema.Attribute.Relation<
'oneToOne',
'api::yoga-contact-us.yoga-contact-us'
@@ -1208,6 +1234,34 @@ export interface ApiYogaBlogPostsComponentYogaBlogPostsComponent
};
}
export interface ApiYogaCommonYogaCommon extends Struct.CollectionTypeSchema {
collectionName: 'yoga_commons';
info: {
displayName: 'YogaCommon';
pluralName: 'yoga-commons';
singularName: 'yoga-common';
};
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::yoga-common.yoga-common'
> &
Schema.Attribute.Private;
logoImage: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>;
publishedAt: Schema.Attribute.DateTime;
updatedAt: Schema.Attribute.DateTime;
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
Schema.Attribute.Private;
};
}
export interface ApiYogaContactUsYogaContactUs
extends Struct.CollectionTypeSchema {
collectionName: 'yoga_contact_uses';
@@ -2552,6 +2606,7 @@ declare module '@strapi/strapi' {
'api::yoga-achivements-component.yoga-achivements-component': ApiYogaAchivementsComponentYogaAchivementsComponent;
'api::yoga-blog-post.yoga-blog-post': ApiYogaBlogPostYogaBlogPost;
'api::yoga-blog-posts-component.yoga-blog-posts-component': ApiYogaBlogPostsComponentYogaBlogPostsComponent;
'api::yoga-common.yoga-common': ApiYogaCommonYogaCommon;
'api::yoga-contact-us.yoga-contact-us': ApiYogaContactUsYogaContactUs;
'api::yoga-customer-feedback-component.yoga-customer-feedback-component': ApiYogaCustomerFeedbackComponentYogaCustomerFeedbackComponent;
'api::yoga-customer-feedback.yoga-customer-feedback': ApiYogaCustomerFeedbackYogaCustomerFeedback;