[yoga-12] add common section to home API and update related components for logo image
This commit is contained in:
@@ -10,6 +10,7 @@ import { YogaBlogPostsComponent } from './yoga-blog-posts-component';
|
||||
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter } from './yoga-footer';
|
||||
import { YogaMainHeaderComponent } from './yoga-main-header-component';
|
||||
import { YogaCommon } from './yoga-common';
|
||||
import { YogaOurServicesComponent_Plain } from './yoga-our-services-component';
|
||||
import { YogaAboutUsComponent_Plain } from './yoga-about-us-component';
|
||||
import { YogaSpecialitiesComponent_Plain } from './yoga-specialities-component';
|
||||
@@ -20,6 +21,7 @@ import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
|
||||
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter_Plain } from './yoga-footer';
|
||||
import { YogaMainHeaderComponent_Plain } from './yoga-main-header-component';
|
||||
import { YogaCommon_Plain } from './yoga-common';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
export interface Home {
|
||||
@@ -35,6 +37,7 @@ export interface Home {
|
||||
subscribeNow?: { data: YogaSubscribeNowComponent };
|
||||
footer?: { data: YogaFooter };
|
||||
header?: { data: YogaMainHeaderComponent };
|
||||
common?: { data: YogaCommon };
|
||||
locale: string;
|
||||
localizations?: { data: Home[] };
|
||||
};
|
||||
@@ -51,6 +54,7 @@ export interface Home_Plain {
|
||||
subscribeNow?: YogaSubscribeNowComponent_Plain;
|
||||
footer?: YogaFooter_Plain;
|
||||
header?: YogaMainHeaderComponent_Plain;
|
||||
common?: YogaCommon_Plain;
|
||||
locale: string;
|
||||
localizations?: Home_Plain[];
|
||||
}
|
||||
@@ -67,6 +71,7 @@ export interface Home_NoRelations {
|
||||
subscribeNow?: number;
|
||||
footer?: number;
|
||||
header?: number;
|
||||
common?: number;
|
||||
locale: string;
|
||||
localizations?: Home[];
|
||||
}
|
||||
@@ -83,6 +88,7 @@ export interface Home_AdminPanelLifeCycle {
|
||||
subscribeNow?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
|
||||
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
|
||||
header?: AdminPanelRelationPropertyModification<YogaMainHeaderComponent_Plain>;
|
||||
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
|
||||
locale: string;
|
||||
localizations?: Home[];
|
||||
}
|
||||
|
||||
@@ -65,6 +65,11 @@
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-main-header-component.yoga-main-header-component"
|
||||
},
|
||||
"common": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-common.yoga-common"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
4
yoga-cms/types/generated/contentTypes.d.ts
vendored
4
yoga-cms/types/generated/contentTypes.d.ts
vendored
@@ -710,6 +710,10 @@ export interface ApiHomeHome 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'
|
||||
|
||||
Reference in New Issue
Block a user