Compare commits
1 Commits
87b3709191
...
yoga-6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
16b6107206 |
4
api.http
4
api.http
@@ -27,7 +27,3 @@ Accept: application/json
|
|||||||
### GET request with a header
|
### GET request with a header
|
||||||
GET {{domain}}/api/yoga-single-services?filters[name][$eq]=service4
|
GET {{domain}}/api/yoga-single-services?filters[name][$eq]=service4
|
||||||
Accept: application/json
|
Accept: application/json
|
||||||
|
|
||||||
### 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]=*
|
|
||||||
Accept: application/json
|
|
||||||
|
|||||||
5
dev.sh
Executable file
5
dev.sh
Executable file
@@ -0,0 +1,5 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
cd environment/dev/docker-compose/yogastic
|
||||||
|
docker compose up -d
|
||||||
|
|
||||||
11
yoga-app/package-lock.json
generated
11
yoga-app/package-lock.json
generated
@@ -9,7 +9,6 @@
|
|||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-free": "^6.7.2",
|
"@fortawesome/fontawesome-free": "^6.7.2",
|
||||||
"@strapi/blocks-react-renderer": "^1.0.2",
|
|
||||||
"@strapi/database": "^5.10.3",
|
"@strapi/database": "^5.10.3",
|
||||||
"@types/aos": "^3.0.7",
|
"@types/aos": "^3.0.7",
|
||||||
"@types/bcrypt": "^5.0.2",
|
"@types/bcrypt": "^5.0.2",
|
||||||
@@ -1394,16 +1393,6 @@
|
|||||||
"node": ">=8"
|
"node": ">=8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@strapi/blocks-react-renderer": {
|
|
||||||
"version": "1.0.2",
|
|
||||||
"resolved": "https://registry.npmjs.org/@strapi/blocks-react-renderer/-/blocks-react-renderer-1.0.2.tgz",
|
|
||||||
"integrity": "sha512-pRV/WMreo5wyrLg7J0pw1DM9lg8U8m+QA7Bd8CPN3beUBTdDhYrFTTNZh3XveEdnURZNJu1X0aWXAg4SzVg7QA==",
|
|
||||||
"hasInstallScript": true,
|
|
||||||
"peerDependencies": {
|
|
||||||
"react": "^18.0.0 || ^19.0.0",
|
|
||||||
"react-dom": "^18.0.0 || ^19.0.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/@strapi/database": {
|
"node_modules/@strapi/database": {
|
||||||
"version": "5.10.3",
|
"version": "5.10.3",
|
||||||
"resolved": "https://registry.npmjs.org/@strapi/database/-/database-5.10.3.tgz",
|
"resolved": "https://registry.npmjs.org/@strapi/database/-/database-5.10.3.tgz",
|
||||||
|
|||||||
@@ -11,7 +11,6 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-free": "^6.7.2",
|
"@fortawesome/fontawesome-free": "^6.7.2",
|
||||||
"@strapi/blocks-react-renderer": "^1.0.2",
|
|
||||||
"@strapi/database": "^5.10.3",
|
"@strapi/database": "^5.10.3",
|
||||||
"@types/aos": "^3.0.7",
|
"@types/aos": "^3.0.7",
|
||||||
"@types/bcrypt": "^5.0.2",
|
"@types/bcrypt": "^5.0.2",
|
||||||
|
|||||||
@@ -1,25 +0,0 @@
|
|||||||
{
|
|
||||||
"fields": ["*"],
|
|
||||||
"populate": {
|
|
||||||
"subscribeNow": {
|
|
||||||
"fields": ["*"]
|
|
||||||
},
|
|
||||||
"footer": {
|
|
||||||
"fields": ["*"],
|
|
||||||
"populate": {
|
|
||||||
"links": {
|
|
||||||
"fields": ["*"]
|
|
||||||
},
|
|
||||||
"contactUsEmail": {
|
|
||||||
"fields": ["*"]
|
|
||||||
},
|
|
||||||
"contactUsLocation": {
|
|
||||||
"fields": ["*"]
|
|
||||||
},
|
|
||||||
"contactUsPhoneNumber": {
|
|
||||||
"fields": ["*"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -4,7 +4,6 @@ import qs from "qs";
|
|||||||
import aboutQuery from "@/api/strapi/query/about.json";
|
import aboutQuery from "@/api/strapi/query/about.json";
|
||||||
import homeQuery from "@/api/strapi/query/home.json";
|
import homeQuery from "@/api/strapi/query/home.json";
|
||||||
import servicesQuery from "@/api/strapi/query/services.json";
|
import servicesQuery from "@/api/strapi/query/services.json";
|
||||||
import serviceQuery from "@/api/strapi/query/service.json";
|
|
||||||
import pricesQuery from "@/api/strapi/query/prices.json";
|
import pricesQuery from "@/api/strapi/query/prices.json";
|
||||||
import faqQuery from "@/api/strapi/query/faq.json";
|
import faqQuery from "@/api/strapi/query/faq.json";
|
||||||
import contactQuery from "@/api/strapi/query/contact.json";
|
import contactQuery from "@/api/strapi/query/contact.json";
|
||||||
@@ -15,7 +14,6 @@ import {PricesPage_Plain} from "@/types/generated-strapi-interfaces/api/prices-p
|
|||||||
import {FaqPage_Plain} from "@/types/generated-strapi-interfaces/api/faq-page";
|
import {FaqPage_Plain} from "@/types/generated-strapi-interfaces/api/faq-page";
|
||||||
import {ContactPage_Plain} from "@/types/generated-strapi-interfaces/api/contact-page";
|
import {ContactPage_Plain} from "@/types/generated-strapi-interfaces/api/contact-page";
|
||||||
import {YogaSingleService_Plain} from "@/types/generated-strapi-interfaces/api/yoga-single-service";
|
import {YogaSingleService_Plain} from "@/types/generated-strapi-interfaces/api/yoga-single-service";
|
||||||
import {ServicePage_Plain} from "@/types/generated-strapi-interfaces/api/service-page";
|
|
||||||
|
|
||||||
|
|
||||||
class StrapiApi{
|
class StrapiApi{
|
||||||
@@ -45,11 +43,7 @@ class StrapiApi{
|
|||||||
return this.getJson("/api/services-page?",servicesQuery);
|
return this.getJson("/api/services-page?",servicesQuery);
|
||||||
}
|
}
|
||||||
|
|
||||||
public getServicePage(): Promise<ServicePage_Plain>{
|
public getServicePage(name: string): Promise<YogaSingleService_Plain[]>{
|
||||||
return this.getJson("/api/service-page?",serviceQuery);
|
|
||||||
}
|
|
||||||
|
|
||||||
public getService(name: string): Promise<YogaSingleService_Plain[]>{
|
|
||||||
return this.getJson("/api/yoga-single-services?", {
|
return this.getJson("/api/yoga-single-services?", {
|
||||||
filters: {
|
filters: {
|
||||||
name: {
|
name: {
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ class StrapiClient{
|
|||||||
return '/image/'+ imagePath;
|
return '/image/'+ imagePath;
|
||||||
}
|
}
|
||||||
public async httpGet(path: string){
|
public async httpGet(path: string){
|
||||||
console.info("httpGet", path);
|
|
||||||
return await httpClient.httpGet(this.strapiUrl + path);
|
return await httpClient.httpGet(this.strapiUrl + path);
|
||||||
}
|
}
|
||||||
public async httpGetJson<T>(url: string): Promise<Payload<T>>{
|
public async httpGetJson<T>(url: string): Promise<Payload<T>>{
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
.article h1{
|
|
||||||
color: black;
|
|
||||||
}
|
|
||||||
@@ -1,44 +1,26 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import strapiApi from "@/api/strapi/strapi-api";
|
import strapiApi from "@/api/strapi/strapi-api";
|
||||||
import {BlocksContent, BlocksRenderer} from "@strapi/blocks-react-renderer";
|
|
||||||
import SubscribeComponent from "@/components/subscribe.component";
|
|
||||||
import FooterComponent from "@/components/footer.component";
|
|
||||||
import SubHeaderComponent from "@/components/subHeader.component";
|
|
||||||
import AosComponent from "@/components/aos.component";
|
|
||||||
import styles from './page.module.css'
|
|
||||||
import NextBlocksRenderer from "@/components/next.blocks.renderer";
|
|
||||||
|
|
||||||
export default async function ServiceArticlePage({params}: {
|
export default async function ServiceArticlePage({params}: {
|
||||||
params: Promise<{ slug: string }>
|
params: { slug: string}
|
||||||
}) {
|
} ) {
|
||||||
const {slug} = await params
|
const servicesByName = await strapiApi.getServicePage(params.slug);
|
||||||
const {header, description, footer, subscribeNow} = await strapiApi.getServicePage();
|
// return (
|
||||||
const servicesByName = await strapiApi.getService(slug);
|
// <>
|
||||||
const selectedService = servicesByName[0];
|
// {header && description && <SubHeaderComponent header1={header} description={description} />}
|
||||||
const article = selectedService.article;
|
// { ourServices && <OurServicesComponent config={ourServices} /> }
|
||||||
console.info(article);
|
// { contactUs && <ContactUsComponent contactUs={contactUs} />}
|
||||||
|
// { ourSpecialities && <OurSpecialitiesComponent config={ourSpecialities} /> }
|
||||||
selectedService.article
|
// { feedbacks && <FeedbackComponent config={feedbacks} /> }
|
||||||
|
// { blogs && <BlogPostsComponent config={blogs} /> }
|
||||||
|
// { subscribe && <SubscribeComponent config={subscribe} /> }
|
||||||
|
// { footer && <FooterComponent config={footer} /> }
|
||||||
|
// <AosComponent />
|
||||||
|
// </>
|
||||||
|
// );
|
||||||
|
console.info("slug", params.slug);
|
||||||
|
console.info("servicesByName", servicesByName);
|
||||||
return (
|
return (
|
||||||
<>
|
<div>hello world {params.slug}</div>
|
||||||
{selectedService && selectedService.header && selectedService.description &&
|
|
||||||
<SubHeaderComponent header1={selectedService.header} description={selectedService.description}/>}
|
|
||||||
<section className={styles.article}>
|
|
||||||
<div className="container">
|
|
||||||
<div className={"row"}>
|
|
||||||
<div className={"col-lg-12 col-md-12 col-sm-12 col-xs-12"}>
|
|
||||||
<NextBlocksRenderer
|
|
||||||
content={article as BlocksContent}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</section>
|
|
||||||
{subscribeNow && <SubscribeComponent config={subscribeNow}/>}
|
|
||||||
{footer && <FooterComponent config={footer}/>}
|
|
||||||
<AosComponent/>
|
|
||||||
</>
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,31 +0,0 @@
|
|||||||
'use client';
|
|
||||||
import {BlocksContent, BlocksRenderer} from "@strapi/blocks-react-renderer";
|
|
||||||
import strapiApi from "@/api/strapi/strapi-api";
|
|
||||||
import React from "react";
|
|
||||||
import YogaImageComponent from "@/components/yoga.image.component";
|
|
||||||
|
|
||||||
export interface Props{
|
|
||||||
content: BlocksContent;
|
|
||||||
}
|
|
||||||
const NextBlocksRenderer = ({ content }: Props) => {
|
|
||||||
return (
|
|
||||||
<BlocksRenderer
|
|
||||||
content={content}
|
|
||||||
blocks={{
|
|
||||||
image: ({image}) => {
|
|
||||||
console.log(image);
|
|
||||||
const url = new URL(image.url);
|
|
||||||
return (
|
|
||||||
<YogaImageComponent
|
|
||||||
src={url.pathname}
|
|
||||||
width={image.width}
|
|
||||||
height={image.height}
|
|
||||||
alt={image.alternativeText || ""}
|
|
||||||
/>
|
|
||||||
);
|
|
||||||
}
|
|
||||||
}}
|
|
||||||
/>);
|
|
||||||
}
|
|
||||||
|
|
||||||
export default NextBlocksRenderer;
|
|
||||||
@@ -7,7 +7,7 @@ export interface Props{
|
|||||||
config: YogaPrice_Plain
|
config: YogaPrice_Plain
|
||||||
}
|
}
|
||||||
|
|
||||||
export function PriceItemComponent({config: {header,option1,option2,price,icon, image,buttonText}} : Props){
|
export function PriceItemComponent({config: {header, description, option1,option2,price,pricePostfix, icon, image,buttonText}} : Props){
|
||||||
// there are some issues with the strapi generated types
|
// there are some issues with the strapi generated types
|
||||||
const iconFile: StrapiFile = icon as StrapiFile;
|
const iconFile: StrapiFile = icon as StrapiFile;
|
||||||
const imageFile: StrapiFile = image as StrapiFile;
|
const imageFile: StrapiFile = image as StrapiFile;
|
||||||
@@ -28,6 +28,7 @@ export function PriceItemComponent({config: {header,option1,option2,price,icon,
|
|||||||
</div>
|
</div>
|
||||||
<div className="pricing_plans_box_lower_portion">
|
<div className="pricing_plans_box_lower_portion">
|
||||||
<h3>{header}</h3>
|
<h3>{header}</h3>
|
||||||
|
<p className={'text-center'}>{description}</p>
|
||||||
<ul className="list-unstyled">
|
<ul className="list-unstyled">
|
||||||
<li>
|
<li>
|
||||||
<i className="fa-solid fa-check" aria-hidden="true"></i>{option1}
|
<i className="fa-solid fa-check" aria-hidden="true"></i>{option1}
|
||||||
@@ -38,7 +39,7 @@ export function PriceItemComponent({config: {header,option1,option2,price,icon,
|
|||||||
</ul>
|
</ul>
|
||||||
<div className="pricing_plans_span_wrapper">
|
<div className="pricing_plans_span_wrapper">
|
||||||
<span className="price">{price} FT</span>
|
<span className="price">{price} FT</span>
|
||||||
<span className="per_month">/per month</span>
|
{ pricePostfix && <span className="per_month">{pricePostfix}</span> }
|
||||||
</div>
|
</div>
|
||||||
<div className="btn_wrapper">
|
<div className="btn_wrapper">
|
||||||
<a className="enroll_now_btn text-decoration-none" href="/pricing.html">{buttonText}</a>
|
<a className="enroll_now_btn text-decoration-none" href="/pricing.html">{buttonText}</a>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ export interface Article {
|
|||||||
cover?: { data: Media };
|
cover?: { data: Media };
|
||||||
author?: { data: Author };
|
author?: { data: Author };
|
||||||
category?: { data: Category };
|
category?: { data: Category };
|
||||||
blocks?: any;
|
blocks?: object;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
export interface Article_Plain {
|
export interface Article_Plain {
|
||||||
@@ -28,7 +28,7 @@ export interface Article_Plain {
|
|||||||
cover?: Media_Plain;
|
cover?: Media_Plain;
|
||||||
author?: Author_Plain;
|
author?: Author_Plain;
|
||||||
category?: Category_Plain;
|
category?: Category_Plain;
|
||||||
blocks?: any;
|
blocks?: object;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Article_NoRelations {
|
export interface Article_NoRelations {
|
||||||
@@ -39,7 +39,7 @@ export interface Article_NoRelations {
|
|||||||
cover?: number;
|
cover?: number;
|
||||||
author?: number;
|
author?: number;
|
||||||
category?: number;
|
category?: number;
|
||||||
blocks?: any;
|
blocks?: object;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Article_AdminPanelLifeCycle {
|
export interface Article_AdminPanelLifeCycle {
|
||||||
@@ -50,5 +50,5 @@ export interface Article_AdminPanelLifeCycle {
|
|||||||
cover?: AdminPanelRelationPropertyModification<Media_Plain>;
|
cover?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||||
author?: AdminPanelRelationPropertyModification<Author_Plain>;
|
author?: AdminPanelRelationPropertyModification<Author_Plain>;
|
||||||
category?: AdminPanelRelationPropertyModification<Category_Plain>;
|
category?: AdminPanelRelationPropertyModification<Category_Plain>;
|
||||||
blocks?: any;
|
blocks?: object;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
// Interface automatically generated by schemas-to-ts
|
|
||||||
|
|
||||||
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
|
|
||||||
import { YogaFooter } from './yoga-footer';
|
|
||||||
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
|
||||||
import { YogaFooter_Plain } from './yoga-footer';
|
|
||||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
|
||||||
|
|
||||||
export interface ServicePage {
|
|
||||||
id: number;
|
|
||||||
attributes: {
|
|
||||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
|
||||||
description?: string;
|
|
||||||
subscribeNow?: { data: YogaSubscribeNowComponent };
|
|
||||||
footer?: { data: YogaFooter };
|
|
||||||
};
|
|
||||||
}
|
|
||||||
export interface ServicePage_Plain {
|
|
||||||
id: number;
|
|
||||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
|
||||||
description?: string;
|
|
||||||
subscribeNow?: YogaSubscribeNowComponent_Plain;
|
|
||||||
footer?: YogaFooter_Plain;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ServicePage_NoRelations {
|
|
||||||
id: number;
|
|
||||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
|
||||||
description?: string;
|
|
||||||
subscribeNow?: number;
|
|
||||||
footer?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ServicePage_AdminPanelLifeCycle {
|
|
||||||
id: number;
|
|
||||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
|
||||||
description?: string;
|
|
||||||
subscribeNow?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
|
|
||||||
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
|
|
||||||
}
|
|
||||||
@@ -14,6 +14,8 @@ export interface YogaPrice {
|
|||||||
price?: number;
|
price?: number;
|
||||||
icon?: { data: Media };
|
icon?: { data: Media };
|
||||||
image?: { data: Media };
|
image?: { data: Media };
|
||||||
|
pricePostfix?: string;
|
||||||
|
description?: string;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
export interface YogaPrice_Plain {
|
export interface YogaPrice_Plain {
|
||||||
@@ -25,6 +27,8 @@ export interface YogaPrice_Plain {
|
|||||||
price?: number;
|
price?: number;
|
||||||
icon?: Media_Plain;
|
icon?: Media_Plain;
|
||||||
image?: Media_Plain;
|
image?: Media_Plain;
|
||||||
|
pricePostfix?: string;
|
||||||
|
description?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface YogaPrice_NoRelations {
|
export interface YogaPrice_NoRelations {
|
||||||
@@ -36,6 +40,8 @@ export interface YogaPrice_NoRelations {
|
|||||||
price?: number;
|
price?: number;
|
||||||
icon?: number;
|
icon?: number;
|
||||||
image?: number;
|
image?: number;
|
||||||
|
pricePostfix?: string;
|
||||||
|
description?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface YogaPrice_AdminPanelLifeCycle {
|
export interface YogaPrice_AdminPanelLifeCycle {
|
||||||
@@ -47,4 +53,6 @@ export interface YogaPrice_AdminPanelLifeCycle {
|
|||||||
price?: number;
|
price?: number;
|
||||||
icon?: AdminPanelRelationPropertyModification<Media_Plain>;
|
icon?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||||
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||||
|
pricePostfix?: string;
|
||||||
|
description?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export interface YogaSingleService {
|
|||||||
image?: { data: Media };
|
image?: { data: Media };
|
||||||
imageAlt?: string;
|
imageAlt?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
article?: any;
|
article?: string;
|
||||||
locale: string;
|
locale: string;
|
||||||
localizations?: { data: YogaSingleService[] };
|
localizations?: { data: YogaSingleService[] };
|
||||||
};
|
};
|
||||||
@@ -26,7 +26,7 @@ export interface YogaSingleService_Plain {
|
|||||||
image?: Media_Plain;
|
image?: Media_Plain;
|
||||||
imageAlt?: string;
|
imageAlt?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
article?: any;
|
article?: string;
|
||||||
locale: string;
|
locale: string;
|
||||||
localizations?: YogaSingleService_Plain[];
|
localizations?: YogaSingleService_Plain[];
|
||||||
}
|
}
|
||||||
@@ -39,7 +39,7 @@ export interface YogaSingleService_NoRelations {
|
|||||||
image?: number;
|
image?: number;
|
||||||
imageAlt?: string;
|
imageAlt?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
article?: any;
|
article?: string;
|
||||||
locale: string;
|
locale: string;
|
||||||
localizations?: YogaSingleService[];
|
localizations?: YogaSingleService[];
|
||||||
}
|
}
|
||||||
@@ -52,7 +52,7 @@ export interface YogaSingleService_AdminPanelLifeCycle {
|
|||||||
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||||
imageAlt?: string;
|
imageAlt?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
article?: any;
|
article?: string;
|
||||||
locale: string;
|
locale: string;
|
||||||
localizations?: YogaSingleService[];
|
localizations?: YogaSingleService[];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,40 +0,0 @@
|
|||||||
// Interface automatically generated by schemas-to-ts
|
|
||||||
|
|
||||||
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
|
|
||||||
import { YogaFooter } from './yoga-footer';
|
|
||||||
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
|
||||||
import { YogaFooter_Plain } from './yoga-footer';
|
|
||||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
|
||||||
|
|
||||||
export interface ServicePage {
|
|
||||||
id: number;
|
|
||||||
attributes: {
|
|
||||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
|
||||||
description?: string;
|
|
||||||
subscribeNow?: { data: YogaSubscribeNowComponent };
|
|
||||||
footer?: { data: YogaFooter };
|
|
||||||
};
|
|
||||||
}
|
|
||||||
export interface ServicePage_Plain {
|
|
||||||
id: number;
|
|
||||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
|
||||||
description?: string;
|
|
||||||
subscribeNow?: YogaSubscribeNowComponent_Plain;
|
|
||||||
footer?: YogaFooter_Plain;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ServicePage_NoRelations {
|
|
||||||
id: number;
|
|
||||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
|
||||||
description?: string;
|
|
||||||
subscribeNow?: number;
|
|
||||||
footer?: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ServicePage_AdminPanelLifeCycle {
|
|
||||||
id: number;
|
|
||||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
|
||||||
description?: string;
|
|
||||||
subscribeNow?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
|
|
||||||
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
|
|
||||||
}
|
|
||||||
@@ -14,6 +14,8 @@ export interface YogaPrice {
|
|||||||
price?: number;
|
price?: number;
|
||||||
icon?: { data: Media };
|
icon?: { data: Media };
|
||||||
image?: { data: Media };
|
image?: { data: Media };
|
||||||
|
pricePostfix?: string;
|
||||||
|
description?: string;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
export interface YogaPrice_Plain {
|
export interface YogaPrice_Plain {
|
||||||
@@ -25,6 +27,8 @@ export interface YogaPrice_Plain {
|
|||||||
price?: number;
|
price?: number;
|
||||||
icon?: Media_Plain;
|
icon?: Media_Plain;
|
||||||
image?: Media_Plain;
|
image?: Media_Plain;
|
||||||
|
pricePostfix?: string;
|
||||||
|
description?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface YogaPrice_NoRelations {
|
export interface YogaPrice_NoRelations {
|
||||||
@@ -36,6 +40,8 @@ export interface YogaPrice_NoRelations {
|
|||||||
price?: number;
|
price?: number;
|
||||||
icon?: number;
|
icon?: number;
|
||||||
image?: number;
|
image?: number;
|
||||||
|
pricePostfix?: string;
|
||||||
|
description?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface YogaPrice_AdminPanelLifeCycle {
|
export interface YogaPrice_AdminPanelLifeCycle {
|
||||||
@@ -47,4 +53,6 @@ export interface YogaPrice_AdminPanelLifeCycle {
|
|||||||
price?: number;
|
price?: number;
|
||||||
icon?: AdminPanelRelationPropertyModification<Media_Plain>;
|
icon?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||||
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||||
|
pricePostfix?: string;
|
||||||
|
description?: string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ export interface YogaSingleService {
|
|||||||
image?: { data: Media };
|
image?: { data: Media };
|
||||||
imageAlt?: string;
|
imageAlt?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
article?: any;
|
article?: string;
|
||||||
locale: string;
|
locale: string;
|
||||||
localizations?: { data: YogaSingleService[] };
|
localizations?: { data: YogaSingleService[] };
|
||||||
};
|
};
|
||||||
@@ -26,7 +26,7 @@ export interface YogaSingleService_Plain {
|
|||||||
image?: Media_Plain;
|
image?: Media_Plain;
|
||||||
imageAlt?: string;
|
imageAlt?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
article?: any;
|
article?: string;
|
||||||
locale: string;
|
locale: string;
|
||||||
localizations?: YogaSingleService_Plain[];
|
localizations?: YogaSingleService_Plain[];
|
||||||
}
|
}
|
||||||
@@ -39,7 +39,7 @@ export interface YogaSingleService_NoRelations {
|
|||||||
image?: number;
|
image?: number;
|
||||||
imageAlt?: string;
|
imageAlt?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
article?: any;
|
article?: string;
|
||||||
locale: string;
|
locale: string;
|
||||||
localizations?: YogaSingleService[];
|
localizations?: YogaSingleService[];
|
||||||
}
|
}
|
||||||
@@ -52,7 +52,7 @@ export interface YogaSingleService_AdminPanelLifeCycle {
|
|||||||
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||||
imageAlt?: string;
|
imageAlt?: string;
|
||||||
name?: string;
|
name?: string;
|
||||||
article?: any;
|
article?: string;
|
||||||
locale: string;
|
locale: string;
|
||||||
localizations?: YogaSingleService[];
|
localizations?: YogaSingleService[];
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,31 +0,0 @@
|
|||||||
{
|
|
||||||
"kind": "singleType",
|
|
||||||
"collectionName": "service_pages",
|
|
||||||
"info": {
|
|
||||||
"singularName": "service-page",
|
|
||||||
"pluralName": "service-pages",
|
|
||||||
"displayName": "ServicePage",
|
|
||||||
"description": ""
|
|
||||||
},
|
|
||||||
"options": {
|
|
||||||
"draftAndPublish": true
|
|
||||||
},
|
|
||||||
"attributes": {
|
|
||||||
"header": {
|
|
||||||
"type": "string"
|
|
||||||
},
|
|
||||||
"description": {
|
|
||||||
"type": "text"
|
|
||||||
},
|
|
||||||
"subscribeNow": {
|
|
||||||
"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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
/**
|
|
||||||
* service-page controller
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi'
|
|
||||||
|
|
||||||
export default factories.createCoreController('api::service-page.service-page');
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
/**
|
|
||||||
* service-page router
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi';
|
|
||||||
|
|
||||||
export default factories.createCoreRouter('api::service-page.service-page');
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
/**
|
|
||||||
* service-page service
|
|
||||||
*/
|
|
||||||
|
|
||||||
import { factories } from '@strapi/strapi';
|
|
||||||
|
|
||||||
export default factories.createCoreService('api::service-page.service-page');
|
|
||||||
@@ -4,7 +4,8 @@
|
|||||||
"info": {
|
"info": {
|
||||||
"singularName": "yoga-price",
|
"singularName": "yoga-price",
|
||||||
"pluralName": "yoga-prices",
|
"pluralName": "yoga-prices",
|
||||||
"displayName": "YogaPrice"
|
"displayName": "YogaPrice",
|
||||||
|
"description": ""
|
||||||
},
|
},
|
||||||
"options": {
|
"options": {
|
||||||
"draftAndPublish": true
|
"draftAndPublish": true
|
||||||
@@ -27,24 +28,32 @@
|
|||||||
"type": "integer"
|
"type": "integer"
|
||||||
},
|
},
|
||||||
"icon": {
|
"icon": {
|
||||||
|
"type": "media",
|
||||||
|
"multiple": false,
|
||||||
|
"required": false,
|
||||||
"allowedTypes": [
|
"allowedTypes": [
|
||||||
"images",
|
"images",
|
||||||
"files",
|
"files",
|
||||||
"videos",
|
"videos",
|
||||||
"audios"
|
"audios"
|
||||||
],
|
]
|
||||||
"type": "media",
|
|
||||||
"multiple": false
|
|
||||||
},
|
},
|
||||||
"image": {
|
"image": {
|
||||||
|
"type": "media",
|
||||||
|
"multiple": false,
|
||||||
|
"required": false,
|
||||||
"allowedTypes": [
|
"allowedTypes": [
|
||||||
"images",
|
"images",
|
||||||
"files",
|
"files",
|
||||||
"videos",
|
"videos",
|
||||||
"audios"
|
"audios"
|
||||||
],
|
]
|
||||||
"type": "media",
|
},
|
||||||
"multiple": false
|
"pricePostfix": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"description": {
|
||||||
|
"type": "text"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -73,7 +73,12 @@
|
|||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"article": {
|
"article": {
|
||||||
"type": "blocks"
|
"pluginOptions": {
|
||||||
|
"i18n": {
|
||||||
|
"localized": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "richtext"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
49
yoga-cms/types/generated/contentTypes.d.ts
vendored
49
yoga-cms/types/generated/contentTypes.d.ts
vendored
@@ -849,44 +849,6 @@ export interface ApiPricesPagePricesPage extends Struct.SingleTypeSchema {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface ApiServicePageServicePage extends Struct.SingleTypeSchema {
|
|
||||||
collectionName: 'service_pages';
|
|
||||||
info: {
|
|
||||||
description: '';
|
|
||||||
displayName: 'ServicePage';
|
|
||||||
pluralName: 'service-pages';
|
|
||||||
singularName: 'service-page';
|
|
||||||
};
|
|
||||||
options: {
|
|
||||||
draftAndPublish: true;
|
|
||||||
};
|
|
||||||
attributes: {
|
|
||||||
createdAt: Schema.Attribute.DateTime;
|
|
||||||
createdBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
description: Schema.Attribute.Text;
|
|
||||||
footer: Schema.Attribute.Relation<
|
|
||||||
'oneToOne',
|
|
||||||
'api::yoga-footer.yoga-footer'
|
|
||||||
>;
|
|
||||||
header: Schema.Attribute.String;
|
|
||||||
locale: Schema.Attribute.String & Schema.Attribute.Private;
|
|
||||||
localizations: Schema.Attribute.Relation<
|
|
||||||
'oneToMany',
|
|
||||||
'api::service-page.service-page'
|
|
||||||
> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
|
||||||
subscribeNow: Schema.Attribute.Relation<
|
|
||||||
'oneToOne',
|
|
||||||
'api::yoga-subscribe-now-component.yoga-subscribe-now-component'
|
|
||||||
>;
|
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
|
||||||
Schema.Attribute.Private;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface ApiServicesPageServicesPage extends Struct.SingleTypeSchema {
|
export interface ApiServicesPageServicesPage extends Struct.SingleTypeSchema {
|
||||||
collectionName: 'services_pages';
|
collectionName: 'services_pages';
|
||||||
info: {
|
info: {
|
||||||
@@ -1680,6 +1642,7 @@ export interface ApiYogaPriceComponentYogaPriceComponent
|
|||||||
export interface ApiYogaPriceYogaPrice extends Struct.CollectionTypeSchema {
|
export interface ApiYogaPriceYogaPrice extends Struct.CollectionTypeSchema {
|
||||||
collectionName: 'yoga_prices';
|
collectionName: 'yoga_prices';
|
||||||
info: {
|
info: {
|
||||||
|
description: '';
|
||||||
displayName: 'YogaPrice';
|
displayName: 'YogaPrice';
|
||||||
pluralName: 'yoga-prices';
|
pluralName: 'yoga-prices';
|
||||||
singularName: 'yoga-price';
|
singularName: 'yoga-price';
|
||||||
@@ -1692,6 +1655,7 @@ export interface ApiYogaPriceYogaPrice extends Struct.CollectionTypeSchema {
|
|||||||
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;
|
||||||
|
description: Schema.Attribute.Text;
|
||||||
header: Schema.Attribute.String;
|
header: Schema.Attribute.String;
|
||||||
icon: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>;
|
icon: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>;
|
||||||
image: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>;
|
image: Schema.Attribute.Media<'images' | 'files' | 'videos' | 'audios'>;
|
||||||
@@ -1704,6 +1668,7 @@ export interface ApiYogaPriceYogaPrice extends Struct.CollectionTypeSchema {
|
|||||||
option1: Schema.Attribute.String;
|
option1: Schema.Attribute.String;
|
||||||
option2: Schema.Attribute.String;
|
option2: Schema.Attribute.String;
|
||||||
price: Schema.Attribute.Integer;
|
price: Schema.Attribute.Integer;
|
||||||
|
pricePostfix: Schema.Attribute.String;
|
||||||
publishedAt: Schema.Attribute.DateTime;
|
publishedAt: Schema.Attribute.DateTime;
|
||||||
updatedAt: Schema.Attribute.DateTime;
|
updatedAt: Schema.Attribute.DateTime;
|
||||||
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
updatedBy: Schema.Attribute.Relation<'oneToOne', 'admin::user'> &
|
||||||
@@ -1729,7 +1694,12 @@ export interface ApiYogaSingleServiceYogaSingleService
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
attributes: {
|
attributes: {
|
||||||
article: Schema.Attribute.Blocks;
|
article: Schema.Attribute.RichText &
|
||||||
|
Schema.Attribute.SetPluginOptions<{
|
||||||
|
i18n: {
|
||||||
|
localized: true;
|
||||||
|
};
|
||||||
|
}>;
|
||||||
buttonLink: Schema.Attribute.String &
|
buttonLink: Schema.Attribute.String &
|
||||||
Schema.Attribute.SetPluginOptions<{
|
Schema.Attribute.SetPluginOptions<{
|
||||||
i18n: {
|
i18n: {
|
||||||
@@ -2541,7 +2511,6 @@ declare module '@strapi/strapi' {
|
|||||||
'api::page.page': ApiPagePage;
|
'api::page.page': ApiPagePage;
|
||||||
'api::person.person': ApiPersonPerson;
|
'api::person.person': ApiPersonPerson;
|
||||||
'api::prices-page.prices-page': ApiPricesPagePricesPage;
|
'api::prices-page.prices-page': ApiPricesPagePricesPage;
|
||||||
'api::service-page.service-page': ApiServicePageServicePage;
|
|
||||||
'api::services-page.services-page': ApiServicesPageServicesPage;
|
'api::services-page.services-page': ApiServicesPageServicesPage;
|
||||||
'api::yoga-about-us-component.yoga-about-us-component': ApiYogaAboutUsComponentYogaAboutUsComponent;
|
'api::yoga-about-us-component.yoga-about-us-component': ApiYogaAboutUsComponentYogaAboutUsComponent;
|
||||||
'api::yoga-about-us-with-boxes-component.yoga-about-us-with-boxes-component': ApiYogaAboutUsWithBoxesComponentYogaAboutUsWithBoxesComponent;
|
'api::yoga-about-us-with-boxes-component.yoga-about-us-with-boxes-component': ApiYogaAboutUsWithBoxesComponentYogaAboutUsWithBoxesComponent;
|
||||||
|
|||||||
Reference in New Issue
Block a user