Compare commits

...

2 Commits

Author SHA1 Message Date
Roland Schneider
551f545935 [yoga-11] add common type and add logo 2025-06-08 21:12:59 +02:00
Roland Schneider
958007ed2f [yoga-11] add common type and add logo 2025-06-08 20:57:18 +02:00
44 changed files with 403 additions and 25 deletions

View File

@ -29,5 +29,9 @@ GET {{domain}}/api/yoga-single-services?filters[name][$eq]=service4
Accept: application/json Accept: application/json
### GET service page ### GET service page
GET {{domain}}/api/service-page?fields[0]=*&populate[subscribeNow][fields][0]=*&populate[footer][fields][0]=*&populate[footer][populate][links][fields][0]=*&populate[footer][populate][contactUsEmail][fields][0]=*&populate[footer][populate][contactUsLocation][fields][0]=*&populate[footer][populate][contactUsPhoneNumber][fields][0]=* GET {{domain}}/api/contact-page?fields[0]=*&populate[contactUs][fields][0]=*&populate[google_maps][fields][0]=*&populate[subscribe][fields][0]=*&populate[footer][fields][0]=*&populate[footer][populate][links][fields][0]=*&populate[footer][populate][contactUsEmail][fields][0]=*&populate[footer][populate][contactUsLocation][fields][0]=*&populate[footer][populate][contactUsPhoneNumber][fields][0]=*
Accept: application/json Accept: application/json

View File

@ -1,8 +1,17 @@
{ {
"populate": { "populate": {
"header": { "header": {
"fields": ["header1","description"] "fields": ["header1","description"]
}, },
"common": {
"fields": ["*"],
"populate": {
"logoImage": {
"fields": ["name","mime","url"]
}
}
},
"aboutUs": { "aboutUs": {
"fields": ["*"], "fields": ["*"],
"populate": { "populate": {

View File

@ -1,6 +1,14 @@
{ {
"fields": ["*"], "fields": ["*"],
"populate": { "populate": {
"common": {
"fields": ["*"],
"populate": {
"logoImage": {
"fields": ["name","mime","url"]
}
}
},
"contactUs": { "contactUs": {
"fields": ["*"] "fields": ["*"]
}, },

View File

@ -1,6 +1,14 @@
{ {
"fields": ["*"], "fields": ["*"],
"populate": { "populate": {
"common": {
"fields": ["*"],
"populate": {
"logoImage": {
"fields": ["name","mime","url"]
}
}
},
"questionsAndAnswers": { "questionsAndAnswers": {
"fields": ["*"], "fields": ["*"],
"populate": { "populate": {

View File

@ -1,6 +1,14 @@
{ {
"fields": ["*"], "fields": ["*"],
"populate": { "populate": {
"common": {
"fields": ["*"],
"populate": {
"logoImage": {
"fields": ["name","mime","url"]
}
}
},
"price": { "price": {
"fields": ["*"], "fields": ["*"],
"populate": { "populate": {

View File

@ -1,6 +1,14 @@
{ {
"fields": ["*"], "fields": ["*"],
"populate": { "populate": {
"common": {
"fields": ["*"],
"populate": {
"logoImage": {
"fields": ["name","mime","url"]
}
}
},
"subscribeNow": { "subscribeNow": {
"fields": ["*"] "fields": ["*"]
}, },

View File

@ -1,6 +1,14 @@
{ {
"fields": ["*"], "fields": ["*"],
"populate": { "populate": {
"common": {
"fields": ["*"],
"populate": {
"logoImage": {
"fields": ["name","mime","url"]
}
}
},
"ourServices": { "ourServices": {
"fields": ["*"], "fields": ["*"],
"populate": { "populate": {

View File

@ -24,13 +24,16 @@ export default async function About() {
blogs, blogs,
subscribeNow, subscribeNow,
footer, footer,
common
} = pageData; } = pageData;
console.info("about us", JSON.stringify(aboutUs))
return ( return (
<> <>
{ header && <SubHeaderComponent header1={header?.header1} header2={header?.header2} description={header?.description}/> } { header && <SubHeaderComponent header={header} common={common}/> }
{ aboutUs && <AboutUsWithBoxesComponent config={aboutUs}/>} { aboutUs && <AboutUsWithBoxesComponent config={aboutUs}/>}
{ discount && <YogaDiscountComponent config={discount}/>} { discount && <YogaDiscountComponent config={discount}/>}

View File

@ -16,11 +16,12 @@ export default async function ContactPage(){
contactUs, contactUs,
google_maps, google_maps,
subscribe, subscribe,
footer footer,
common
} = await strapiApi.getContactPage(); } = await strapiApi.getContactPage();
return ( return (
<> <>
{ <SubHeaderComponent header1={header} description={description} /> } { <SubHeaderComponent header={{header1:header,description}} common={common}/> }
{ contactUs && <ContactUsComponent contactUs={contactUs} /> } { contactUs && <ContactUsComponent contactUs={contactUs} /> }
{ google_maps && <GoogleMapsComponent config={google_maps} /> } { google_maps && <GoogleMapsComponent config={google_maps} /> }
{ subscribe && <SubscribeComponent config={subscribe} styleClass={"contact_subscribe_section"} /> } { subscribe && <SubscribeComponent config={subscribe} styleClass={"contact_subscribe_section"} /> }

View File

@ -15,11 +15,12 @@ export default async function About() {
questionsAndAnswers, questionsAndAnswers,
blogs, blogs,
subscribe, subscribe,
footer footer,
common
} = await strapiApi.getFaqPage(); } = await strapiApi.getFaqPage();
return ( return (
<>xxxxx <>
{ <SubHeaderComponent header1={header} description={description} /> } { <SubHeaderComponent header={{header1:header,description}} common={common}/> }
{ questionsAndAnswers && <FaqComponent config={questionsAndAnswers} /> } { questionsAndAnswers && <FaqComponent config={questionsAndAnswers} /> }
{ blogs && <BlogPostsComponent config={blogs} /> } { blogs && <BlogPostsComponent config={blogs} /> }
{ subscribe && <SubscribeComponent config={subscribe} /> } { subscribe && <SubscribeComponent config={subscribe} /> }

View File

@ -21,11 +21,12 @@ export default async function PricesPage( ) {
discount, discount,
blogs, blogs,
subscribe, subscribe,
footer footer,
common
} = await strapiApi.getPricesPage(); } = await strapiApi.getPricesPage();
return ( return (
<> <>
<SubHeaderComponent header1={header} description={description}/> <SubHeaderComponent header={{header1:header,description}} common={common}/>
{ price && <PricingComponent config={price}/> } { price && <PricingComponent config={price}/> }
{ discount && <YogaDiscountComponent config={discount} /> } { discount && <YogaDiscountComponent config={discount} /> }
{ blogs && <BlogPostsComponent config={blogs} /> } { blogs && <BlogPostsComponent config={blogs} /> }

View File

@ -31,7 +31,7 @@ export default async function ServiceArticlePage({params}: {
if (!servicePage) { if (!servicePage) {
return notFound() return notFound()
} }
const {subscribeNow, footer} = servicePage; const {subscribeNow, footer, common} = servicePage;
const servicesByName = await strapiApi.getService(slug); const servicesByName = await strapiApi.getService(slug);
if (!servicesByName || servicesByName.length === 0) { if (!servicesByName || servicesByName.length === 0) {
return notFound(); return notFound();
@ -45,7 +45,8 @@ export default async function ServiceArticlePage({params}: {
return ( return (
<> <>
{selectedService && selectedService.header && selectedService.description && {selectedService && selectedService.header && selectedService.description &&
<SubHeaderComponent header1={selectedService.header} description={selectedService.description}/>} <SubHeaderComponent header={{header1:selectedService.header, description: selectedService.description}} common={common}/>}
<section className={clsx( styles.article, 'mb-3')}> <section className={clsx( styles.article, 'mb-3')}>
<div className="container"> <div className="container">
<div className={"row"}> <div className={"row"}>

View File

@ -20,11 +20,12 @@ export default async function Services() {
feedbacks, feedbacks,
blogs, blogs,
footer, footer,
subscribe subscribe,
common
} = await strapiApi.getServicesPage(); } = await strapiApi.getServicesPage();
return ( return (
<> <>
{header && description && <SubHeaderComponent header1={header} description={description} />} <SubHeaderComponent header={{header1:header,description}} common={common}/>
{ ourServices && <OurServicesComponent config={ourServices} /> } { ourServices && <OurServicesComponent config={ourServices} /> }
{ contactUs && <ContactUsComponent contactUs={contactUs} />} { contactUs && <ContactUsComponent contactUs={contactUs} />}
{ ourSpecialities && <OurSpecialitiesComponent config={ourSpecialities} /> } { ourSpecialities && <OurSpecialitiesComponent config={ourSpecialities} /> }

View File

@ -2,6 +2,8 @@ import YogaImageComponent from "@/components/yoga.image.component";
import {YogaMainHeaderComponent_Plain} from "@/types/generated-strapi-interfaces/api/yoga-main-header-component"; import {YogaMainHeaderComponent_Plain} from "@/types/generated-strapi-interfaces/api/yoga-main-header-component";
import {MAIN_MENU} from "@/util/const"; import {MAIN_MENU} from "@/util/const";
import Nav from "@/components/nav.component"; import Nav from "@/components/nav.component";
import {StrapiFile} from "@/types/types";
import strapiApi from "@/api/strapi/strapi-api";
export interface Props{ export interface Props{
config: YogaMainHeaderComponent_Plain config: YogaMainHeaderComponent_Plain
} }
@ -10,14 +12,18 @@ const MainHeaderComponent = ({ config: {
header, header,
description, description,
button, button,
headerIType headerIType,
image
}}: Props) => { }}: Props) => {
const imageFile: StrapiFile = image as StrapiFile;
const imageSrc = imageFile ? strapiApi.getImageUrl(imageFile?.url): undefined;
return ( return (
<div className="banner-section-outer"> <div className="banner-section-outer">
<header> <header>
<Nav menuItems={MAIN_MENU} /> <Nav menuItems={MAIN_MENU} imageSrc={imageSrc} />
</header> </header>
{/*<!-- SOCIAL ICONS -->*/} {/*<!-- SOCIAL ICONS -->*/}
<div className="social-icons left_icons float-left d-table" data-aos="fade-down"> <div className="social-icons left_icons float-left d-table" data-aos="fade-down">

View File

@ -13,11 +13,10 @@ export interface MenuItem{
} }
export interface Props{ export interface Props{
menuItems: MenuItem[]; menuItems: MenuItem[];
imageSrc?: string;
} }
const Nav: FC<Props> = ({menuItems}:Props) => { const Nav: FC<Props> = ({menuItems, imageSrc}:Props) => {
return ( return (
<header> <header>
@ -25,7 +24,7 @@ const Nav: FC<Props> = ({menuItems}:Props) => {
<div className="container-fluid"> <div className="container-fluid">
<nav className="navbar navbar-expand-lg navbar-light p-0"> <nav className="navbar navbar-expand-lg navbar-light p-0">
<Link className="navbar-brand" href="/"> <Link className="navbar-brand" href="/">
<figure className="mb-0"><YogaImageComponent src="/assets/images/yogastic_logo.png" alt=""/> <figure className="mb-0"> {imageSrc && <YogaImageComponent src={imageSrc} alt=""/>}
</figure> </figure>
</Link> </Link>
<button className="navbar-toggler collapsed" type="button" data-toggle="collapse" <button className="navbar-toggler collapsed" type="button" data-toggle="collapse"

View File

@ -3,14 +3,33 @@ import Nav from "@/components/nav.component";
import {MAIN_MENU} from "@/util/const"; import {MAIN_MENU} from "@/util/const";
import {HeaderB} from "@/types/generated-strapi-interfaces/components/yoga-site/HeaderB"; import {HeaderB} from "@/types/generated-strapi-interfaces/components/yoga-site/HeaderB";
import NextBreadcrumb from "@/components/breadcrumbs.component"; import NextBreadcrumb from "@/components/breadcrumbs.component";
import {YogaCommon_Plain} from "@/types/generated-strapi-interfaces/api/yoga-common";
import strapiApi from "@/api/strapi/strapi-api";
import {StrapiFile} from "@/types/types";
export type Props = HeaderB ; export type Props = {
header: HeaderB,
common?: YogaCommon_Plain
} ;
const SubHeaderComponent = ( {
header:{ header1,description},common }: Props) =>{
let logoImageSrc: string|undefined = undefined;
const logoImage = common && common.logoImage;
if ( logoImage ){
const logoImageFile: StrapiFile = logoImage as StrapiFile;
logoImageSrc = strapiApi.getImageUrl(logoImageFile?.url) ;
}
console.info("image", logoImageSrc);
const SubHeaderComponent = ({header1,description}: Props) =>{
return ( return (
<div className="sub-banner-section"> <div className="sub-banner-section">
<Nav menuItems={MAIN_MENU} /> <Nav menuItems={MAIN_MENU} imageSrc={logoImageSrc} />
<section className="banner-section"> <section className="banner-section">
<div className="container"> <div className="container">
<div className="row"> <div className="row">
@ -42,3 +61,6 @@ const SubHeaderComponent = ({header1,description}: Props) =>{
} }
export default SubHeaderComponent; export default SubHeaderComponent;
export const dynamic = 'force-dynamic'

View File

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

View File

@ -4,10 +4,12 @@ import { YogaContactUs } from './yoga-contact-us';
import { YogaGoogleMapsComponent } from './yoga-google-maps-component'; import { YogaGoogleMapsComponent } from './yoga-google-maps-component';
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component'; import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
import { YogaFooter } from './yoga-footer'; import { YogaFooter } from './yoga-footer';
import { YogaCommon } from './yoga-common';
import { YogaContactUs_Plain } from './yoga-contact-us'; import { YogaContactUs_Plain } from './yoga-contact-us';
import { YogaGoogleMapsComponent_Plain } from './yoga-google-maps-component'; import { YogaGoogleMapsComponent_Plain } from './yoga-google-maps-component';
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component'; import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
import { YogaFooter_Plain } from './yoga-footer'; import { YogaFooter_Plain } from './yoga-footer';
import { YogaCommon_Plain } from './yoga-common';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification'; import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface ContactPage { export interface ContactPage {
@ -19,6 +21,7 @@ export interface ContactPage {
google_maps?: { data: YogaGoogleMapsComponent }; google_maps?: { data: YogaGoogleMapsComponent };
subscribe?: { data: YogaSubscribeNowComponent }; subscribe?: { data: YogaSubscribeNowComponent };
footer?: { data: YogaFooter }; footer?: { data: YogaFooter };
common?: { data: YogaCommon };
}; };
} }
export interface ContactPage_Plain { export interface ContactPage_Plain {
@ -29,6 +32,7 @@ export interface ContactPage_Plain {
google_maps?: YogaGoogleMapsComponent_Plain; google_maps?: YogaGoogleMapsComponent_Plain;
subscribe?: YogaSubscribeNowComponent_Plain; subscribe?: YogaSubscribeNowComponent_Plain;
footer?: YogaFooter_Plain; footer?: YogaFooter_Plain;
common?: YogaCommon_Plain;
} }
export interface ContactPage_NoRelations { export interface ContactPage_NoRelations {
@ -39,6 +43,7 @@ export interface ContactPage_NoRelations {
google_maps?: number; google_maps?: number;
subscribe?: number; subscribe?: number;
footer?: number; footer?: number;
common?: number;
} }
export interface ContactPage_AdminPanelLifeCycle { export interface ContactPage_AdminPanelLifeCycle {
@ -49,4 +54,5 @@ export interface ContactPage_AdminPanelLifeCycle {
google_maps?: AdminPanelRelationPropertyModification<YogaGoogleMapsComponent_Plain>; google_maps?: AdminPanelRelationPropertyModification<YogaGoogleMapsComponent_Plain>;
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>; subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
footer?: AdminPanelRelationPropertyModification<YogaFooter_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 { YogaBlogPostsComponent } from './yoga-blog-posts-component';
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component'; import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
import { YogaFooter } from './yoga-footer'; import { YogaFooter } from './yoga-footer';
import { YogaCommon } from './yoga-common';
import { YogaFaqComponent_Plain } from './yoga-faq-component'; import { YogaFaqComponent_Plain } from './yoga-faq-component';
import { YogaAchivementsComponent_Plain } from './yoga-achivements-component'; import { YogaAchivementsComponent_Plain } from './yoga-achivements-component';
import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component'; import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component'; import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
import { YogaFooter_Plain } from './yoga-footer'; import { YogaFooter_Plain } from './yoga-footer';
import { YogaCommon_Plain } from './yoga-common';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification'; import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface FaqPage { export interface FaqPage {
@ -22,6 +24,7 @@ export interface FaqPage {
blogs?: { data: YogaBlogPostsComponent }; blogs?: { data: YogaBlogPostsComponent };
subscribe?: { data: YogaSubscribeNowComponent }; subscribe?: { data: YogaSubscribeNowComponent };
footer?: { data: YogaFooter }; footer?: { data: YogaFooter };
common?: { data: YogaCommon };
}; };
} }
export interface FaqPage_Plain { export interface FaqPage_Plain {
@ -33,6 +36,7 @@ export interface FaqPage_Plain {
blogs?: YogaBlogPostsComponent_Plain; blogs?: YogaBlogPostsComponent_Plain;
subscribe?: YogaSubscribeNowComponent_Plain; subscribe?: YogaSubscribeNowComponent_Plain;
footer?: YogaFooter_Plain; footer?: YogaFooter_Plain;
common?: YogaCommon_Plain;
} }
export interface FaqPage_NoRelations { export interface FaqPage_NoRelations {
@ -44,6 +48,7 @@ export interface FaqPage_NoRelations {
blogs?: number; blogs?: number;
subscribe?: number; subscribe?: number;
footer?: number; footer?: number;
common?: number;
} }
export interface FaqPage_AdminPanelLifeCycle { export interface FaqPage_AdminPanelLifeCycle {
@ -55,4 +60,5 @@ export interface FaqPage_AdminPanelLifeCycle {
blogs?: AdminPanelRelationPropertyModification<YogaBlogPostsComponent_Plain>; blogs?: AdminPanelRelationPropertyModification<YogaBlogPostsComponent_Plain>;
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>; subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>; footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
} }

View File

@ -14,6 +14,7 @@ export interface Global {
favicon?: { data: Media }; favicon?: { data: Media };
siteDescription: string; siteDescription: string;
defaultSeo?: Seo; defaultSeo?: Seo;
logoImage?: { data: Media };
}; };
} }
export interface Global_Plain { export interface Global_Plain {
@ -22,6 +23,7 @@ export interface Global_Plain {
favicon?: Media_Plain; favicon?: Media_Plain;
siteDescription: string; siteDescription: string;
defaultSeo?: Seo_Plain; defaultSeo?: Seo_Plain;
logoImage?: Media_Plain;
} }
export interface Global_NoRelations { export interface Global_NoRelations {
@ -30,6 +32,7 @@ export interface Global_NoRelations {
favicon?: number; favicon?: number;
siteDescription: string; siteDescription: string;
defaultSeo?: Seo_NoRelations; defaultSeo?: Seo_NoRelations;
logoImage?: number;
} }
export interface Global_AdminPanelLifeCycle { export interface Global_AdminPanelLifeCycle {
@ -38,4 +41,5 @@ export interface Global_AdminPanelLifeCycle {
favicon?: AdminPanelRelationPropertyModification<Media_Plain>; favicon?: AdminPanelRelationPropertyModification<Media_Plain>;
siteDescription: string; siteDescription: string;
defaultSeo?: Seo_Plain; 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 { YogaBlogPostsComponent } from './yoga-blog-posts-component';
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component'; import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
import { YogaFooter } from './yoga-footer'; import { YogaFooter } from './yoga-footer';
import { YogaCommon } from './yoga-common';
import { YogaPriceComponent_Plain } from './yoga-price-component'; import { YogaPriceComponent_Plain } from './yoga-price-component';
import { YogaDiscountComponent_Plain } from './yoga-discount-component'; import { YogaDiscountComponent_Plain } from './yoga-discount-component';
import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component'; import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component'; import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
import { YogaFooter_Plain } from './yoga-footer'; import { YogaFooter_Plain } from './yoga-footer';
import { YogaCommon_Plain } from './yoga-common';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification'; import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface PricesPage { export interface PricesPage {
@ -22,6 +24,7 @@ export interface PricesPage {
blogs?: { data: YogaBlogPostsComponent }; blogs?: { data: YogaBlogPostsComponent };
subscribe?: { data: YogaSubscribeNowComponent }; subscribe?: { data: YogaSubscribeNowComponent };
footer?: { data: YogaFooter }; footer?: { data: YogaFooter };
common?: { data: YogaCommon };
}; };
} }
export interface PricesPage_Plain { export interface PricesPage_Plain {
@ -33,6 +36,7 @@ export interface PricesPage_Plain {
blogs?: YogaBlogPostsComponent_Plain; blogs?: YogaBlogPostsComponent_Plain;
subscribe?: YogaSubscribeNowComponent_Plain; subscribe?: YogaSubscribeNowComponent_Plain;
footer?: YogaFooter_Plain; footer?: YogaFooter_Plain;
common?: YogaCommon_Plain;
} }
export interface PricesPage_NoRelations { export interface PricesPage_NoRelations {
@ -44,6 +48,7 @@ export interface PricesPage_NoRelations {
blogs?: number; blogs?: number;
subscribe?: number; subscribe?: number;
footer?: number; footer?: number;
common?: number;
} }
export interface PricesPage_AdminPanelLifeCycle { export interface PricesPage_AdminPanelLifeCycle {
@ -55,4 +60,5 @@ export interface PricesPage_AdminPanelLifeCycle {
blogs?: AdminPanelRelationPropertyModification<YogaBlogPostsComponent_Plain>; blogs?: AdminPanelRelationPropertyModification<YogaBlogPostsComponent_Plain>;
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>; subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>; footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
} }

View File

@ -2,8 +2,10 @@
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component'; import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
import { YogaFooter } from './yoga-footer'; import { YogaFooter } from './yoga-footer';
import { YogaCommon } from './yoga-common';
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component'; import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
import { YogaFooter_Plain } from './yoga-footer'; import { YogaFooter_Plain } from './yoga-footer';
import { YogaCommon_Plain } from './yoga-common';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification'; import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface ServicePage { export interface ServicePage {
@ -13,6 +15,7 @@ export interface ServicePage {
description?: string; description?: string;
subscribeNow?: { data: YogaSubscribeNowComponent }; subscribeNow?: { data: YogaSubscribeNowComponent };
footer?: { data: YogaFooter }; footer?: { data: YogaFooter };
common?: { data: YogaCommon };
}; };
} }
export interface ServicePage_Plain { export interface ServicePage_Plain {
@ -21,6 +24,7 @@ export interface ServicePage_Plain {
description?: string; description?: string;
subscribeNow?: YogaSubscribeNowComponent_Plain; subscribeNow?: YogaSubscribeNowComponent_Plain;
footer?: YogaFooter_Plain; footer?: YogaFooter_Plain;
common?: YogaCommon_Plain;
} }
export interface ServicePage_NoRelations { export interface ServicePage_NoRelations {
@ -29,6 +33,7 @@ export interface ServicePage_NoRelations {
description?: string; description?: string;
subscribeNow?: number; subscribeNow?: number;
footer?: number; footer?: number;
common?: number;
} }
export interface ServicePage_AdminPanelLifeCycle { export interface ServicePage_AdminPanelLifeCycle {
@ -37,4 +42,5 @@ export interface ServicePage_AdminPanelLifeCycle {
description?: string; description?: string;
subscribeNow?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>; subscribeNow?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
footer?: AdminPanelRelationPropertyModification<YogaFooter_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 { YogaBlogPostsComponent } from './yoga-blog-posts-component';
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component'; import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
import { YogaFooter } from './yoga-footer'; import { YogaFooter } from './yoga-footer';
import { YogaCommon } from './yoga-common';
import { YogaOurServicesComponent_Plain } from './yoga-our-services-component'; import { YogaOurServicesComponent_Plain } from './yoga-our-services-component';
import { YogaContactUs_Plain } from './yoga-contact-us'; import { YogaContactUs_Plain } from './yoga-contact-us';
import { YogaSpecialitiesComponent_Plain } from './yoga-specialities-component'; 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 { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component'; import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
import { YogaFooter_Plain } from './yoga-footer'; import { YogaFooter_Plain } from './yoga-footer';
import { YogaCommon_Plain } from './yoga-common';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification'; import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface ServicesPage { export interface ServicesPage {
@ -29,6 +31,7 @@ export interface ServicesPage {
subscribe?: { data: YogaSubscribeNowComponent }; subscribe?: { data: YogaSubscribeNowComponent };
footer?: { data: YogaFooter }; footer?: { data: YogaFooter };
title?: string; title?: string;
common?: { data: YogaCommon };
}; };
} }
export interface ServicesPage_Plain { export interface ServicesPage_Plain {
@ -43,6 +46,7 @@ export interface ServicesPage_Plain {
subscribe?: YogaSubscribeNowComponent_Plain; subscribe?: YogaSubscribeNowComponent_Plain;
footer?: YogaFooter_Plain; footer?: YogaFooter_Plain;
title?: string; title?: string;
common?: YogaCommon_Plain;
} }
export interface ServicesPage_NoRelations { export interface ServicesPage_NoRelations {
@ -57,6 +61,7 @@ export interface ServicesPage_NoRelations {
subscribe?: number; subscribe?: number;
footer?: number; footer?: number;
title?: string; title?: string;
common?: number;
} }
export interface ServicesPage_AdminPanelLifeCycle { export interface ServicesPage_AdminPanelLifeCycle {
@ -71,4 +76,5 @@ export interface ServicesPage_AdminPanelLifeCycle {
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>; subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>; footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
title?: string; 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

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

View File

@ -4,10 +4,12 @@ import { YogaContactUs } from './yoga-contact-us';
import { YogaGoogleMapsComponent } from './yoga-google-maps-component'; import { YogaGoogleMapsComponent } from './yoga-google-maps-component';
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component'; import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
import { YogaFooter } from './yoga-footer'; import { YogaFooter } from './yoga-footer';
import { YogaCommon } from './yoga-common';
import { YogaContactUs_Plain } from './yoga-contact-us'; import { YogaContactUs_Plain } from './yoga-contact-us';
import { YogaGoogleMapsComponent_Plain } from './yoga-google-maps-component'; import { YogaGoogleMapsComponent_Plain } from './yoga-google-maps-component';
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component'; import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
import { YogaFooter_Plain } from './yoga-footer'; import { YogaFooter_Plain } from './yoga-footer';
import { YogaCommon_Plain } from './yoga-common';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification'; import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface ContactPage { export interface ContactPage {
@ -19,6 +21,7 @@ export interface ContactPage {
google_maps?: { data: YogaGoogleMapsComponent }; google_maps?: { data: YogaGoogleMapsComponent };
subscribe?: { data: YogaSubscribeNowComponent }; subscribe?: { data: YogaSubscribeNowComponent };
footer?: { data: YogaFooter }; footer?: { data: YogaFooter };
common?: { data: YogaCommon };
}; };
} }
export interface ContactPage_Plain { export interface ContactPage_Plain {
@ -29,6 +32,7 @@ export interface ContactPage_Plain {
google_maps?: YogaGoogleMapsComponent_Plain; google_maps?: YogaGoogleMapsComponent_Plain;
subscribe?: YogaSubscribeNowComponent_Plain; subscribe?: YogaSubscribeNowComponent_Plain;
footer?: YogaFooter_Plain; footer?: YogaFooter_Plain;
common?: YogaCommon_Plain;
} }
export interface ContactPage_NoRelations { export interface ContactPage_NoRelations {
@ -39,6 +43,7 @@ export interface ContactPage_NoRelations {
google_maps?: number; google_maps?: number;
subscribe?: number; subscribe?: number;
footer?: number; footer?: number;
common?: number;
} }
export interface ContactPage_AdminPanelLifeCycle { export interface ContactPage_AdminPanelLifeCycle {
@ -49,4 +54,5 @@ export interface ContactPage_AdminPanelLifeCycle {
google_maps?: AdminPanelRelationPropertyModification<YogaGoogleMapsComponent_Plain>; google_maps?: AdminPanelRelationPropertyModification<YogaGoogleMapsComponent_Plain>;
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>; subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
footer?: AdminPanelRelationPropertyModification<YogaFooter_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 { YogaBlogPostsComponent } from './yoga-blog-posts-component';
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component'; import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
import { YogaFooter } from './yoga-footer'; import { YogaFooter } from './yoga-footer';
import { YogaCommon } from './yoga-common';
import { YogaFaqComponent_Plain } from './yoga-faq-component'; import { YogaFaqComponent_Plain } from './yoga-faq-component';
import { YogaAchivementsComponent_Plain } from './yoga-achivements-component'; import { YogaAchivementsComponent_Plain } from './yoga-achivements-component';
import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component'; import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component'; import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
import { YogaFooter_Plain } from './yoga-footer'; import { YogaFooter_Plain } from './yoga-footer';
import { YogaCommon_Plain } from './yoga-common';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification'; import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface FaqPage { export interface FaqPage {
@ -22,6 +24,7 @@ export interface FaqPage {
blogs?: { data: YogaBlogPostsComponent }; blogs?: { data: YogaBlogPostsComponent };
subscribe?: { data: YogaSubscribeNowComponent }; subscribe?: { data: YogaSubscribeNowComponent };
footer?: { data: YogaFooter }; footer?: { data: YogaFooter };
common?: { data: YogaCommon };
}; };
} }
export interface FaqPage_Plain { export interface FaqPage_Plain {
@ -33,6 +36,7 @@ export interface FaqPage_Plain {
blogs?: YogaBlogPostsComponent_Plain; blogs?: YogaBlogPostsComponent_Plain;
subscribe?: YogaSubscribeNowComponent_Plain; subscribe?: YogaSubscribeNowComponent_Plain;
footer?: YogaFooter_Plain; footer?: YogaFooter_Plain;
common?: YogaCommon_Plain;
} }
export interface FaqPage_NoRelations { export interface FaqPage_NoRelations {
@ -44,6 +48,7 @@ export interface FaqPage_NoRelations {
blogs?: number; blogs?: number;
subscribe?: number; subscribe?: number;
footer?: number; footer?: number;
common?: number;
} }
export interface FaqPage_AdminPanelLifeCycle { export interface FaqPage_AdminPanelLifeCycle {
@ -55,4 +60,5 @@ export interface FaqPage_AdminPanelLifeCycle {
blogs?: AdminPanelRelationPropertyModification<YogaBlogPostsComponent_Plain>; blogs?: AdminPanelRelationPropertyModification<YogaBlogPostsComponent_Plain>;
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>; subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>; footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
} }

View File

@ -14,6 +14,7 @@ export interface Global {
favicon?: { data: Media }; favicon?: { data: Media };
siteDescription: string; siteDescription: string;
defaultSeo?: Seo; defaultSeo?: Seo;
logoImage?: { data: Media };
}; };
} }
export interface Global_Plain { export interface Global_Plain {
@ -22,6 +23,7 @@ export interface Global_Plain {
favicon?: Media_Plain; favicon?: Media_Plain;
siteDescription: string; siteDescription: string;
defaultSeo?: Seo_Plain; defaultSeo?: Seo_Plain;
logoImage?: Media_Plain;
} }
export interface Global_NoRelations { export interface Global_NoRelations {
@ -30,6 +32,7 @@ export interface Global_NoRelations {
favicon?: number; favicon?: number;
siteDescription: string; siteDescription: string;
defaultSeo?: Seo_NoRelations; defaultSeo?: Seo_NoRelations;
logoImage?: number;
} }
export interface Global_AdminPanelLifeCycle { export interface Global_AdminPanelLifeCycle {
@ -38,4 +41,5 @@ export interface Global_AdminPanelLifeCycle {
favicon?: AdminPanelRelationPropertyModification<Media_Plain>; favicon?: AdminPanelRelationPropertyModification<Media_Plain>;
siteDescription: string; siteDescription: string;
defaultSeo?: Seo_Plain; 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 { YogaBlogPostsComponent } from './yoga-blog-posts-component';
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component'; import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
import { YogaFooter } from './yoga-footer'; import { YogaFooter } from './yoga-footer';
import { YogaCommon } from './yoga-common';
import { YogaPriceComponent_Plain } from './yoga-price-component'; import { YogaPriceComponent_Plain } from './yoga-price-component';
import { YogaDiscountComponent_Plain } from './yoga-discount-component'; import { YogaDiscountComponent_Plain } from './yoga-discount-component';
import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component'; import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component'; import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
import { YogaFooter_Plain } from './yoga-footer'; import { YogaFooter_Plain } from './yoga-footer';
import { YogaCommon_Plain } from './yoga-common';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification'; import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface PricesPage { export interface PricesPage {
@ -22,6 +24,7 @@ export interface PricesPage {
blogs?: { data: YogaBlogPostsComponent }; blogs?: { data: YogaBlogPostsComponent };
subscribe?: { data: YogaSubscribeNowComponent }; subscribe?: { data: YogaSubscribeNowComponent };
footer?: { data: YogaFooter }; footer?: { data: YogaFooter };
common?: { data: YogaCommon };
}; };
} }
export interface PricesPage_Plain { export interface PricesPage_Plain {
@ -33,6 +36,7 @@ export interface PricesPage_Plain {
blogs?: YogaBlogPostsComponent_Plain; blogs?: YogaBlogPostsComponent_Plain;
subscribe?: YogaSubscribeNowComponent_Plain; subscribe?: YogaSubscribeNowComponent_Plain;
footer?: YogaFooter_Plain; footer?: YogaFooter_Plain;
common?: YogaCommon_Plain;
} }
export interface PricesPage_NoRelations { export interface PricesPage_NoRelations {
@ -44,6 +48,7 @@ export interface PricesPage_NoRelations {
blogs?: number; blogs?: number;
subscribe?: number; subscribe?: number;
footer?: number; footer?: number;
common?: number;
} }
export interface PricesPage_AdminPanelLifeCycle { export interface PricesPage_AdminPanelLifeCycle {
@ -55,4 +60,5 @@ export interface PricesPage_AdminPanelLifeCycle {
blogs?: AdminPanelRelationPropertyModification<YogaBlogPostsComponent_Plain>; blogs?: AdminPanelRelationPropertyModification<YogaBlogPostsComponent_Plain>;
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>; subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>; footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
} }

View File

@ -2,8 +2,10 @@
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component'; import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
import { YogaFooter } from './yoga-footer'; import { YogaFooter } from './yoga-footer';
import { YogaCommon } from './yoga-common';
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component'; import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
import { YogaFooter_Plain } from './yoga-footer'; import { YogaFooter_Plain } from './yoga-footer';
import { YogaCommon_Plain } from './yoga-common';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification'; import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface ServicePage { export interface ServicePage {
@ -13,6 +15,7 @@ export interface ServicePage {
description?: string; description?: string;
subscribeNow?: { data: YogaSubscribeNowComponent }; subscribeNow?: { data: YogaSubscribeNowComponent };
footer?: { data: YogaFooter }; footer?: { data: YogaFooter };
common?: { data: YogaCommon };
}; };
} }
export interface ServicePage_Plain { export interface ServicePage_Plain {
@ -21,6 +24,7 @@ export interface ServicePage_Plain {
description?: string; description?: string;
subscribeNow?: YogaSubscribeNowComponent_Plain; subscribeNow?: YogaSubscribeNowComponent_Plain;
footer?: YogaFooter_Plain; footer?: YogaFooter_Plain;
common?: YogaCommon_Plain;
} }
export interface ServicePage_NoRelations { export interface ServicePage_NoRelations {
@ -29,6 +33,7 @@ export interface ServicePage_NoRelations {
description?: string; description?: string;
subscribeNow?: number; subscribeNow?: number;
footer?: number; footer?: number;
common?: number;
} }
export interface ServicePage_AdminPanelLifeCycle { export interface ServicePage_AdminPanelLifeCycle {
@ -37,4 +42,5 @@ export interface ServicePage_AdminPanelLifeCycle {
description?: string; description?: string;
subscribeNow?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>; subscribeNow?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
footer?: AdminPanelRelationPropertyModification<YogaFooter_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 { YogaBlogPostsComponent } from './yoga-blog-posts-component';
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component'; import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
import { YogaFooter } from './yoga-footer'; import { YogaFooter } from './yoga-footer';
import { YogaCommon } from './yoga-common';
import { YogaOurServicesComponent_Plain } from './yoga-our-services-component'; import { YogaOurServicesComponent_Plain } from './yoga-our-services-component';
import { YogaContactUs_Plain } from './yoga-contact-us'; import { YogaContactUs_Plain } from './yoga-contact-us';
import { YogaSpecialitiesComponent_Plain } from './yoga-specialities-component'; 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 { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component'; import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
import { YogaFooter_Plain } from './yoga-footer'; import { YogaFooter_Plain } from './yoga-footer';
import { YogaCommon_Plain } from './yoga-common';
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification'; import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
export interface ServicesPage { export interface ServicesPage {
@ -29,6 +31,7 @@ export interface ServicesPage {
subscribe?: { data: YogaSubscribeNowComponent }; subscribe?: { data: YogaSubscribeNowComponent };
footer?: { data: YogaFooter }; footer?: { data: YogaFooter };
title?: string; title?: string;
common?: { data: YogaCommon };
}; };
} }
export interface ServicesPage_Plain { export interface ServicesPage_Plain {
@ -43,6 +46,7 @@ export interface ServicesPage_Plain {
subscribe?: YogaSubscribeNowComponent_Plain; subscribe?: YogaSubscribeNowComponent_Plain;
footer?: YogaFooter_Plain; footer?: YogaFooter_Plain;
title?: string; title?: string;
common?: YogaCommon_Plain;
} }
export interface ServicesPage_NoRelations { export interface ServicesPage_NoRelations {
@ -57,6 +61,7 @@ export interface ServicesPage_NoRelations {
subscribe?: number; subscribe?: number;
footer?: number; footer?: number;
title?: string; title?: string;
common?: number;
} }
export interface ServicesPage_AdminPanelLifeCycle { export interface ServicesPage_AdminPanelLifeCycle {
@ -71,4 +76,5 @@ export interface ServicesPage_AdminPanelLifeCycle {
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>; subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>; footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
title?: string; title?: string;
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
} }

View File

@ -0,0 +1,30 @@
// 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 };
name: string;
};
}
export interface YogaCommon_Plain {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; logoImage?: Media_Plain;
name: string;
}
export interface YogaCommon_NoRelations {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; logoImage?: number;
name: string;
}
export interface YogaCommon_AdminPanelLifeCycle {
id: number;
createdAt: Date; updatedAt: Date; publishedAt?: Date; logoImage?: AdminPanelRelationPropertyModification<Media_Plain>;
name: string;
}

View File

@ -65,6 +65,11 @@
"type": "relation", "type": "relation",
"relation": "oneToOne", "relation": "oneToOne",
"target": "api::yoga-achivements-component.yoga-achivements-component" "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", "type": "relation",
"relation": "oneToOne", "relation": "oneToOne",
"target": "api::yoga-footer.yoga-footer" "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", "type": "relation",
"relation": "oneToOne", "relation": "oneToOne",
"target": "api::yoga-footer.yoga-footer" "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", "type": "media",
"multiple": false, "multiple": false,
"required": false, "required": false,
"allowedTypes": ["images", "files", "videos"] "allowedTypes": [
"images",
"files",
"videos"
]
}, },
"siteDescription": { "siteDescription": {
"type": "text", "type": "text",
@ -30,6 +34,17 @@
"type": "component", "type": "component",
"repeatable": false, "repeatable": false,
"component": "shared.seo" "component": "shared.seo"
},
"logoImage": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images",
"files",
"videos",
"audios"
]
} }
} }
} }

View File

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

View File

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

View File

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

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