Compare commits
1 Commits
0c232f80cd
...
feature/yo
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
56dda3233a |
13
api.http
13
api.http
@@ -22,16 +22,3 @@ x
|
||||
GET {{domain}}/api/yoga-blog-posts/wmhqy1n8japcfpy0of4hauwm
|
||||
Accept: application/json
|
||||
#Authorization: Bearer {{token}}
|
||||
|
||||
|
||||
### GET request with a header
|
||||
GET {{domain}}/api/yoga-single-services?filters[name][$eq]=service4
|
||||
Accept: application/json
|
||||
|
||||
### GET service page
|
||||
GET {{domain}}/api/service-list-page?fields[0]=*&populate[services][fields][0]=*&populate[services][populate][image][fields][0]=name&populate[services][populate][image][fields][1]=mime&populate[services][populate][image][fields][2]=url&populate[common][fields][0]=*&populate[common][populate][logoImage][fields][0]=name&populate[common][populate][logoImage][fields][1]=mime&populate[common][populate][logoImage][fields][2]=url&populate[subscribeNow][fields][0]=*&populate[subscribeNow][populate][image][fields][0]=name&populate[subscribeNow][populate][image][fields][1]=mime&populate[subscribeNow][populate][image][fields][2]=url&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]=*&populate[footer][populate][logo][fields][0]=name&populate[footer][populate][logo][fields][1]=mime&populate[footer][populate][logo][fields][2]=url
|
||||
Accept: application/json
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
5
dev.sh
5
dev.sh
@@ -1,5 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
cd environment/dev/docker-compose/yogastic
|
||||
docker compose up -d
|
||||
|
||||
@@ -1 +1 @@
|
||||
202508270921.622f2a7
|
||||
202505181151.77363d0
|
||||
|
||||
@@ -9,4 +9,4 @@ echo "build image ${TAG} from folder ${PROJECT_ROOT}"
|
||||
|
||||
cd $PROJECT_ROOT
|
||||
|
||||
docker build --build-arg NODE_ENV=production -t $TAG_INTERNAL -t $TAG_PUBLIC .
|
||||
docker build --build-arg NODE_ENV=production -t $TAG .
|
||||
|
||||
@@ -6,5 +6,4 @@ echo "Reading version file: ${VERSION_FILE}"
|
||||
|
||||
export VERSION=$(cat "${VERSION_FILE}")
|
||||
|
||||
export TAG_PUBLIC=docker.rschneider.hu/infra/yoga-cms:$VERSION
|
||||
export TAG_INTERNAL=internal-docker.rschneider.hu/infra/yoga-cms:$VERSION
|
||||
export TAG=docker.rschneider.hu/infra/yoga-cms:$VERSION
|
||||
|
||||
@@ -3,7 +3,5 @@
|
||||
CURRENT_DIR=$(dirname "$0")
|
||||
# push docker image
|
||||
source "${CURRENT_DIR}/build.docker.env.sh"
|
||||
echo "push image ${TAG_INTERNAL}"
|
||||
docker push $TAG_INTERNAL
|
||||
echo "push image ${TAG_PUBLIC}"
|
||||
docker push $TAG_PUBLIC
|
||||
echo "push image ${TAG}"
|
||||
docker push $TAG
|
||||
|
||||
@@ -1 +1 @@
|
||||
202508270750.cde2315
|
||||
202505180959.57552b3
|
||||
|
||||
@@ -21,7 +21,7 @@ services:
|
||||
networks:
|
||||
- yogastic
|
||||
app:
|
||||
image: docker.rschneider.hu/infra/yoga-app:202508270921.622f2a7
|
||||
image: docker.rschneider.hu/infra/yoga-app:202505181151.77363d0
|
||||
platform: linux/amd64
|
||||
ports:
|
||||
- '4025:3000'
|
||||
@@ -47,7 +47,7 @@ services:
|
||||
- proxy_shared
|
||||
- yogastic
|
||||
cms:
|
||||
image: docker.rschneider.hu/infra/yoga-cms:202508270750.cde2315
|
||||
image: docker.rschneider.hu/infra/yoga-cms:202505180959.57552b3
|
||||
ports:
|
||||
- '4026:1337'
|
||||
environment:
|
||||
@@ -71,6 +71,7 @@ services:
|
||||
- yogastic
|
||||
volumes:
|
||||
- strapi-uploads:/opt/app/public/uploads
|
||||
|
||||
volumes:
|
||||
next-db: {}
|
||||
strapi-db: {}
|
||||
|
||||
@@ -16,9 +16,9 @@ const eslintConfig = [
|
||||
"next/core-web-vitals",
|
||||
"next/typescript",
|
||||
],
|
||||
rules: {
|
||||
"@typescript-eslint/no-explicit-any": "off"
|
||||
},
|
||||
// rules: {
|
||||
// "@typescript-eslint/no-explicit-any": "off"
|
||||
// },
|
||||
}
|
||||
|
||||
),
|
||||
@@ -32,6 +32,6 @@ const eslintConfig = [
|
||||
// }
|
||||
];
|
||||
|
||||
// console.info("eslint config",eslintConfig)
|
||||
console.info("eslint config",eslintConfig)
|
||||
|
||||
export default eslintConfig;
|
||||
|
||||
11
yoga-app/package-lock.json
generated
11
yoga-app/package-lock.json
generated
@@ -9,7 +9,6 @@
|
||||
"version": "0.1.0",
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-free": "^6.7.2",
|
||||
"@strapi/blocks-react-renderer": "^1.0.2",
|
||||
"@strapi/database": "^5.10.3",
|
||||
"@types/aos": "^3.0.7",
|
||||
"@types/bcrypt": "^5.0.2",
|
||||
@@ -1394,16 +1393,6 @@
|
||||
"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": {
|
||||
"version": "5.10.3",
|
||||
"resolved": "https://registry.npmjs.org/@strapi/database/-/database-5.10.3.tgz",
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-free": "^6.7.2",
|
||||
"@strapi/blocks-react-renderer": "^1.0.2",
|
||||
"@strapi/database": "^5.10.3",
|
||||
"@types/aos": "^3.0.7",
|
||||
"@types/bcrypt": "^5.0.2",
|
||||
|
||||
@@ -1,17 +1,8 @@
|
||||
{
|
||||
|
||||
"populate": {
|
||||
"header": {
|
||||
"fields": ["header1","description"]
|
||||
},
|
||||
"common": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"logoImage": {
|
||||
"fields": ["name","mime","url"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"aboutUs": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
@@ -72,16 +63,7 @@
|
||||
}
|
||||
},
|
||||
"subscribeNow": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"image": {
|
||||
"fields": [
|
||||
"name",
|
||||
"mime",
|
||||
"url"
|
||||
]
|
||||
}
|
||||
}
|
||||
"fields": ["*"]
|
||||
},
|
||||
"footer": {
|
||||
"fields": ["*"],
|
||||
@@ -97,9 +79,6 @@
|
||||
},
|
||||
"contactUsPhoneNumber": {
|
||||
"fields": ["*"]
|
||||
},
|
||||
"logo": {
|
||||
"fields": ["name","mime","url"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,14 +1,6 @@
|
||||
{
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"common": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"logoImage": {
|
||||
"fields": ["name","mime","url"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"contactUs": {
|
||||
"fields": ["*"]
|
||||
},
|
||||
@@ -16,17 +8,8 @@
|
||||
"fields": ["*"]
|
||||
},
|
||||
"subscribe": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"image": {
|
||||
"fields": [
|
||||
"name",
|
||||
"mime",
|
||||
"url"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"fields": ["*"]
|
||||
},
|
||||
"footer": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
@@ -41,9 +24,6 @@
|
||||
},
|
||||
"contactUsPhoneNumber": {
|
||||
"fields": ["*"]
|
||||
},
|
||||
"logo": {
|
||||
"fields": ["name","mime","url"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,14 +1,6 @@
|
||||
{
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"common": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"logoImage": {
|
||||
"fields": ["name","mime","url"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"questionsAndAnswers": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
@@ -51,17 +43,8 @@
|
||||
}
|
||||
},
|
||||
"subscribe": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"image": {
|
||||
"fields": [
|
||||
"name",
|
||||
"mime",
|
||||
"url"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"fields": ["*"]
|
||||
},
|
||||
"footer": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
@@ -76,9 +59,6 @@
|
||||
},
|
||||
"contactUsPhoneNumber": {
|
||||
"fields": ["*"]
|
||||
},
|
||||
"logo": {
|
||||
"fields": ["name","mime","url"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,13 +1,5 @@
|
||||
{
|
||||
"populate": {
|
||||
"common": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"logoImage": {
|
||||
"fields": ["name","mime","url"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"header": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
@@ -15,12 +7,8 @@
|
||||
"fields": [
|
||||
"*"
|
||||
]
|
||||
},
|
||||
"image": {
|
||||
"fields": ["name","mime","url"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
},
|
||||
"footer": {
|
||||
"fields": ["*"],
|
||||
@@ -36,24 +24,12 @@
|
||||
},
|
||||
"contactUsPhoneNumber": {
|
||||
"fields": ["*"]
|
||||
},
|
||||
"logo": {
|
||||
"fields": ["name","mime","url"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"subscribeNow": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"image": {
|
||||
"fields": [
|
||||
"name",
|
||||
"mime",
|
||||
"url"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"fields": ["*"]
|
||||
},
|
||||
"blogs": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
@@ -152,9 +128,6 @@
|
||||
},
|
||||
"right4": {
|
||||
"fields": ["*"]
|
||||
},
|
||||
"image": {
|
||||
"fields": ["name","mime","url"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,14 +1,6 @@
|
||||
{
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"common": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"logoImage": {
|
||||
"fields": ["name","mime","url"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"price": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
@@ -48,16 +40,7 @@
|
||||
}
|
||||
},
|
||||
"subscribe": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"image": {
|
||||
"fields": [
|
||||
"name",
|
||||
"mime",
|
||||
"url"
|
||||
]
|
||||
}
|
||||
}
|
||||
"fields": ["*"]
|
||||
},
|
||||
"footer": {
|
||||
"fields": ["*"],
|
||||
@@ -73,9 +56,6 @@
|
||||
},
|
||||
"contactUsPhoneNumber": {
|
||||
"fields": ["*"]
|
||||
},
|
||||
"logo": {
|
||||
"fields": ["name","mime","url"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,53 +0,0 @@
|
||||
{
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"services": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"image": {
|
||||
"fields": ["name","mime","url" ]
|
||||
}
|
||||
}
|
||||
},
|
||||
"common": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"logoImage": {
|
||||
"fields": ["name","mime","url"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"subscribeNow": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"image": {
|
||||
"fields": [
|
||||
"name",
|
||||
"mime",
|
||||
"url"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"footer": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"links": {
|
||||
"fields": ["*"]
|
||||
},
|
||||
"contactUsEmail": {
|
||||
"fields": ["*"]
|
||||
},
|
||||
"contactUsLocation": {
|
||||
"fields": ["*"]
|
||||
},
|
||||
"contactUsPhoneNumber": {
|
||||
"fields": ["*"]
|
||||
},
|
||||
"logo": {
|
||||
"fields": ["name","mime","url"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,45 +0,0 @@
|
||||
{
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"common": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"logoImage": {
|
||||
"fields": ["name","mime","url"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"subscribeNow": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"image": {
|
||||
"fields": [
|
||||
"name",
|
||||
"mime",
|
||||
"url"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"footer": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"links": {
|
||||
"fields": ["*"]
|
||||
},
|
||||
"contactUsEmail": {
|
||||
"fields": ["*"]
|
||||
},
|
||||
"contactUsLocation": {
|
||||
"fields": ["*"]
|
||||
},
|
||||
"contactUsPhoneNumber": {
|
||||
"fields": ["*"]
|
||||
},
|
||||
"logo": {
|
||||
"fields": ["name","mime","url"]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,14 +1,6 @@
|
||||
{
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"common": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"logoImage": {
|
||||
"fields": ["name","mime","url"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"ourServices": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
@@ -51,9 +43,6 @@
|
||||
},
|
||||
"right4": {
|
||||
"fields": ["*"]
|
||||
},
|
||||
"image": {
|
||||
"fields": ["name","mime","url"]
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -90,17 +79,8 @@
|
||||
}
|
||||
},
|
||||
"subscribe": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
"image": {
|
||||
"fields": [
|
||||
"name",
|
||||
"mime",
|
||||
"url"
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"fields": ["*"]
|
||||
},
|
||||
"footer": {
|
||||
"fields": ["*"],
|
||||
"populate": {
|
||||
@@ -115,9 +95,6 @@
|
||||
},
|
||||
"contactUsPhoneNumber": {
|
||||
"fields": ["*"]
|
||||
},
|
||||
"logo": {
|
||||
"fields": ["name","mime","url"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,20 +4,15 @@ import qs from "qs";
|
||||
import aboutQuery from "@/api/strapi/query/about.json";
|
||||
import homeQuery from "@/api/strapi/query/home.json";
|
||||
import servicesQuery from "@/api/strapi/query/services.json";
|
||||
import serviceListPageQuery from "@/api/strapi/query/service-list.json";
|
||||
import serviceQuery from "@/api/strapi/query/service.json";
|
||||
import pricesQuery from "@/api/strapi/query/prices.json";
|
||||
import faqQuery from "@/api/strapi/query/faq.json";
|
||||
import contactQuery from "@/api/strapi/query/contact.json";
|
||||
import {YogaBlogPost_Plain} from "@/types/generated-strapi-interfaces/api/yoga-blog-post";
|
||||
import {Home_Plain} from "@/types/generated-strapi-interfaces/api/home";
|
||||
import {ServicesPage_Plain} from "@/types/generated-strapi-interfaces/api/services-page";
|
||||
import {ServiceListPage_Plain} from "@/types/generated-strapi-interfaces/api/service-list-page";
|
||||
import {PricesPage_Plain} from "@/types/generated-strapi-interfaces/api/prices-page";
|
||||
import {FaqPage_Plain} from "@/types/generated-strapi-interfaces/api/faq-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 {ServicePage_Plain} from "@/types/generated-strapi-interfaces/api/service-page";
|
||||
|
||||
|
||||
class StrapiApi{
|
||||
@@ -47,24 +42,6 @@ class StrapiApi{
|
||||
return this.getJson("/api/services-page?",servicesQuery);
|
||||
}
|
||||
|
||||
public getServicePage(): Promise<ServicePage_Plain>{
|
||||
return this.getJson("/api/service-page?",serviceQuery);
|
||||
}
|
||||
|
||||
public getServiceListPage(): Promise<ServiceListPage_Plain>{
|
||||
return this.getJson("/api/service-list-page?",serviceListPageQuery);
|
||||
}
|
||||
|
||||
public getService(name: string): Promise<YogaSingleService_Plain[]>{
|
||||
return this.getJson("/api/yoga-single-services?", {
|
||||
filters: {
|
||||
name: {
|
||||
$eq: name,
|
||||
},
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
public getPricesPage(): Promise<PricesPage_Plain>{
|
||||
return this.getJson("/api/prices-page?",pricesQuery);
|
||||
}
|
||||
|
||||
@@ -1,58 +1,43 @@
|
||||
import httpClient from "@/api/http-client";
|
||||
import {Payload} from "@/types/generated-strapi-interfaces/common/Payload";
|
||||
|
||||
const STRAPI_URL = process.env.STRAPI_URL;
|
||||
const STRAPI_URL = process.env.STRAPI_URL;
|
||||
|
||||
class StrapiClient {
|
||||
class StrapiClient{
|
||||
|
||||
constructor(private strapiUrl: string = "http://localhost:1337") {
|
||||
}
|
||||
|
||||
public getImageUrl(imagePath: string) {
|
||||
if (!imagePath) {
|
||||
public getImageUrl(imagePath: string){
|
||||
if ( !imagePath ){
|
||||
return "dummy.png"
|
||||
}
|
||||
return '/image/' + imagePath;
|
||||
return '/image/'+ imagePath;
|
||||
}
|
||||
|
||||
public async httpGet(path: string) {
|
||||
let result = undefined;
|
||||
try {
|
||||
const absoluteUrl = this.strapiUrl + path;
|
||||
console.info("httpGet", {path,absoluteUrl});
|
||||
result = await httpClient.httpGet(this.strapiUrl + path);
|
||||
} catch (e) {
|
||||
console.log("httpGet error", e);
|
||||
throw e;
|
||||
}
|
||||
if (!result.ok) {
|
||||
console.info("httpGet not ok", result);
|
||||
throw new Error(result.statusText);
|
||||
}
|
||||
return result;
|
||||
public async httpGet(path: string){
|
||||
return await httpClient.httpGet(this.strapiUrl + path);
|
||||
}
|
||||
|
||||
public async httpGetJson<T>(url: string): Promise<Payload<T>> {
|
||||
const response = await this.httpGet(url);
|
||||
public async httpGetJson<T>(url: string): Promise<Payload<T>>{
|
||||
const response = await this.httpGet(url);
|
||||
return await response.json();
|
||||
}
|
||||
|
||||
public async findContentType<T>(contentType: string, options?: FindContentOptions): Promise<Payload<T>> {
|
||||
public async findContentType<T>(contentType: string,options?: FindContentOptions): Promise<Payload<T>>{
|
||||
const searchParams = new URLSearchParams();
|
||||
if (options?.populateAll) {
|
||||
searchParams.append("populate", "*");
|
||||
if ( options?.populateAll ){
|
||||
searchParams.append("populate","*");
|
||||
}
|
||||
if (options?.localeAll) {
|
||||
searchParams.append("_locale", "all");
|
||||
if (options?.localeAll){
|
||||
searchParams.append("_locale","all");
|
||||
}
|
||||
|
||||
|
||||
const response = await this.httpGet("/api/" + contentType + "?" + searchParams.toString());
|
||||
|
||||
const response = await this.httpGet("/api/"+contentType+"?"+searchParams.toString());
|
||||
return await response.json();
|
||||
}
|
||||
}
|
||||
|
||||
export interface FindContentOptions {
|
||||
export interface FindContentOptions{
|
||||
populateAll?: boolean;
|
||||
localeAll?: boolean;
|
||||
}
|
||||
|
||||
@@ -24,16 +24,13 @@ export default async function About() {
|
||||
blogs,
|
||||
subscribeNow,
|
||||
footer,
|
||||
common
|
||||
} = pageData;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
console.info("about us", JSON.stringify(aboutUs))
|
||||
return (
|
||||
<>
|
||||
{ header && <SubHeaderComponent header={header} common={common}/> }
|
||||
{ header && <SubHeaderComponent header1={header?.header1} header2={header?.header2} description={header?.description}/> }
|
||||
|
||||
{ aboutUs && <AboutUsWithBoxesComponent config={aboutUs}/>}
|
||||
{ discount && <YogaDiscountComponent config={discount}/>}
|
||||
|
||||
@@ -16,12 +16,11 @@ export default async function ContactPage(){
|
||||
contactUs,
|
||||
google_maps,
|
||||
subscribe,
|
||||
footer,
|
||||
common
|
||||
footer
|
||||
} = await strapiApi.getContactPage();
|
||||
return (
|
||||
<>
|
||||
{ <SubHeaderComponent header={{header1:header,description}} common={common}/> }
|
||||
{ <SubHeaderComponent header1={header} description={description} /> }
|
||||
{ contactUs && <ContactUsComponent contactUs={contactUs} /> }
|
||||
{ google_maps && <GoogleMapsComponent config={google_maps} /> }
|
||||
{ subscribe && <SubscribeComponent config={subscribe} styleClass={"contact_subscribe_section"} /> }
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import React from "react";
|
||||
import AosComponent from "@/components/aos.component";
|
||||
import BlogPostsComponent from "@/components/blog.posts.component";
|
||||
import FooterComponent from "@/components/footer.component";
|
||||
import SubscribeComponent from "@/components/subscribe.component";
|
||||
import strapiApi from "@/api/strapi/strapi-api";
|
||||
@@ -12,14 +13,15 @@ export default async function About() {
|
||||
header,
|
||||
description,
|
||||
questionsAndAnswers,
|
||||
blogs,
|
||||
subscribe,
|
||||
footer,
|
||||
common
|
||||
footer
|
||||
} = await strapiApi.getFaqPage();
|
||||
return (
|
||||
<>
|
||||
{ <SubHeaderComponent header={{header1:header,description}} common={common}/> }
|
||||
<>xxxxx
|
||||
{ <SubHeaderComponent header1={header} description={description} /> }
|
||||
{ questionsAndAnswers && <FaqComponent config={questionsAndAnswers} /> }
|
||||
{ blogs && <BlogPostsComponent config={blogs} /> }
|
||||
{ subscribe && <SubscribeComponent config={subscribe} /> }
|
||||
{ footer && <FooterComponent config={footer} /> }
|
||||
<AosComponent />
|
||||
|
||||
@@ -5,6 +5,7 @@ import AboutUsComponent from "@/components/about.us.component";
|
||||
import OurSpecialitiesComponent from "@/components/our.specialities.component";
|
||||
import ContactUsComponent from "@/components/contact.us.component";
|
||||
import PricingComponent from "@/components/pricing.component";
|
||||
import FeedbackComponent from "@/components/feedbackComponent";
|
||||
import BlogPostsComponent from "@/components/blog.posts.component";
|
||||
import FooterComponent from "@/components/footer.component";
|
||||
import SubscribeComponent from "@/components/subscribe.component";
|
||||
@@ -15,8 +16,9 @@ import webApi from "@/api/web-client/web-api";
|
||||
export default async function Home() {
|
||||
const pageData = await webApi.getHomePage();
|
||||
|
||||
console.info(JSON.stringify(pageData))
|
||||
|
||||
const {
|
||||
common,
|
||||
header,
|
||||
ourServices,
|
||||
aboutUs,
|
||||
@@ -26,18 +28,18 @@ export default async function Home() {
|
||||
blogs,
|
||||
subscribeNow,
|
||||
footer,
|
||||
feedbacks
|
||||
} = pageData;
|
||||
|
||||
return (
|
||||
<>
|
||||
{ header && <MainHeaderComponent config={header} common={common} /> }
|
||||
{ header && <MainHeaderComponent config={header}/> }
|
||||
{ aboutUs && <AboutUsComponent data={aboutUs} /> }
|
||||
{ ourServices && <OurServicesComponent config={ourServices}/> }
|
||||
{ ourSpecialities && <OurSpecialitiesComponent config={ourSpecialities} /> }
|
||||
{ contactUs && <ContactUsComponent contactUs={contactUs} /> }
|
||||
{ prices && <PricingComponent config={prices}/> }
|
||||
{/*{ feedbacks && <FeedbackComponent config={feedbacks} /> }*/}
|
||||
{ blogs && blogs.posts?.length && <BlogPostsComponent config={blogs} /> }
|
||||
{ feedbacks && <FeedbackComponent config={feedbacks} /> }
|
||||
{ blogs && <BlogPostsComponent config={blogs} /> }
|
||||
{ subscribeNow && <SubscribeComponent config={subscribeNow} /> }
|
||||
{ footer && <FooterComponent config={footer} /> }
|
||||
<AosComponent />
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import React from "react";
|
||||
import AosComponent from "@/components/aos.component";
|
||||
import PricingComponent from "@/components/pricing.component";
|
||||
import BlogPostsComponent from "@/components/blog.posts.component";
|
||||
import SubscribeComponent from "@/components/subscribe.component";
|
||||
import SubHeaderComponent from "@/components/subHeader.component";
|
||||
import YogaDiscountComponent from "@/components/yogaDiscountComponent";
|
||||
@@ -18,15 +19,16 @@ export default async function PricesPage( ) {
|
||||
description,
|
||||
price,
|
||||
discount,
|
||||
blogs,
|
||||
subscribe,
|
||||
footer,
|
||||
common
|
||||
footer
|
||||
} = await strapiApi.getPricesPage();
|
||||
return (
|
||||
<>
|
||||
<SubHeaderComponent header={{header1:header,description}} common={common}/>
|
||||
<SubHeaderComponent header1={header} description={description}/>
|
||||
{ price && <PricingComponent config={price}/> }
|
||||
{ discount && <YogaDiscountComponent config={discount} /> }
|
||||
{ blogs && <BlogPostsComponent config={blogs} /> }
|
||||
{ subscribe && <SubscribeComponent config={subscribe} /> }
|
||||
{ footer && <FooterComponent config={footer} /> }
|
||||
<AosComponent />
|
||||
|
||||
@@ -110,8 +110,10 @@ export async function GET() {
|
||||
// 'Uncomment this file and remove this line. You can delete this file when you are finished.',
|
||||
// });
|
||||
try {
|
||||
console.info("get request")
|
||||
strapiApi.getHomePage();
|
||||
|
||||
console.info("begin")
|
||||
await connectionPool.query(`BEGIN`);
|
||||
await seedUsers();
|
||||
await seedCustomers();
|
||||
|
||||
@@ -1,37 +0,0 @@
|
||||
import React from "react";
|
||||
import AosComponent from "@/components/aos.component";
|
||||
import FooterComponent from "@/components/footer.component";
|
||||
import SubscribeComponent from "@/components/subscribe.component";
|
||||
import strapiApi from "@/api/strapi/strapi-api";
|
||||
import SubHeaderComponent from "@/components/subHeader.component";
|
||||
import SingleServiceComponent from "@/components/single.service.component";
|
||||
|
||||
export default async function Services() {
|
||||
const {
|
||||
header,
|
||||
description,
|
||||
footer,
|
||||
subscribeNow,
|
||||
common,
|
||||
services
|
||||
} = await strapiApi.getServiceListPage();
|
||||
console.info("ServiceListPage", services.length, services.map);
|
||||
return (
|
||||
<>
|
||||
<SubHeaderComponent header={{header1:header,description}} common={common}/>
|
||||
{
|
||||
services && services.length > 0 && services.map( singleService => {
|
||||
return (
|
||||
<SingleServiceComponent key={singleService.id} config={singleService} />
|
||||
)
|
||||
})
|
||||
}
|
||||
{ subscribeNow && <SubscribeComponent config={subscribeNow} /> }
|
||||
{ footer && <FooterComponent config={footer} /> }
|
||||
<AosComponent />
|
||||
</>
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
export const dynamic = 'force-dynamic'
|
||||
@@ -1,11 +0,0 @@
|
||||
import Link from 'next/link'
|
||||
|
||||
export default function NotFound() {
|
||||
return (
|
||||
<div>
|
||||
<h2>Nem található</h2>
|
||||
<p>Could not find requested resource</p>
|
||||
<Link href="/">Vissza a kezdőoldalra</Link>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
.article h1{
|
||||
color: black;
|
||||
}
|
||||
@@ -1,74 +1,6 @@
|
||||
import React from "react";
|
||||
import strapiApi from "@/api/strapi/strapi-api";
|
||||
import {BlocksContent} 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";
|
||||
import clsx from "clsx";
|
||||
import {notFound} from "next/navigation";
|
||||
|
||||
const rewriteStrapiImageUrlToNextImageUrl = (content: BlocksContent) =>{
|
||||
console.info("content", content);
|
||||
for(const item of content){
|
||||
if ( item.type == 'image'){
|
||||
const imageData = item.image;
|
||||
const url = new URL(imageData.url);
|
||||
imageData.url = strapiApi.getImageUrl(url.pathname);
|
||||
}
|
||||
}
|
||||
return content;
|
||||
}
|
||||
|
||||
export default async function ServiceArticlePage({params}: {
|
||||
params: Promise<{ slug: string }>
|
||||
}) {
|
||||
const {slug} = await params
|
||||
|
||||
console.info("service slug",slug);
|
||||
const servicePage = await strapiApi.getServicePage();
|
||||
if (!servicePage) {
|
||||
return notFound()
|
||||
}
|
||||
console.info("Servicepage found");
|
||||
const {subscribeNow, footer, common} = servicePage;
|
||||
const servicesByName = await strapiApi.getService(slug);
|
||||
console.info("servicesByName",servicesByName);
|
||||
|
||||
if (!servicesByName || servicesByName.length === 0) {
|
||||
return notFound();
|
||||
}
|
||||
const selectedService = servicesByName[0];
|
||||
console.info("selected service",selectedService)
|
||||
if ( !selectedService?.article?.length ) {
|
||||
return notFound();
|
||||
}
|
||||
const article: BlocksContent = rewriteStrapiImageUrlToNextImageUrl( selectedService.article);
|
||||
|
||||
export default async function ServiceDetails() {
|
||||
return (
|
||||
<>
|
||||
{selectedService && selectedService.header && selectedService.description &&
|
||||
<SubHeaderComponent header={{header1:selectedService.header, description: selectedService.description}} common={common}/>}
|
||||
|
||||
<section className={clsx( styles.article, 'mb-3')}>
|
||||
<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/>
|
||||
</>
|
||||
);
|
||||
<h1>hello </h1>
|
||||
)
|
||||
}
|
||||
|
||||
export const dynamic = 'force-dynamic'
|
||||
|
||||
@@ -12,7 +12,7 @@ import SubHeaderComponent from "@/components/subHeader.component";
|
||||
|
||||
export default async function Services() {
|
||||
const {
|
||||
header = undefined,
|
||||
header,
|
||||
description,
|
||||
ourServices,
|
||||
contactUs,
|
||||
@@ -20,12 +20,11 @@ export default async function Services() {
|
||||
feedbacks,
|
||||
blogs,
|
||||
footer,
|
||||
subscribe,
|
||||
common
|
||||
} = await strapiApi.getServicesPage()
|
||||
subscribe
|
||||
} = await strapiApi.getServicesPage();
|
||||
return (
|
||||
<>
|
||||
<SubHeaderComponent header={{header1:header,description}} common={common}/>
|
||||
{header && description && <SubHeaderComponent header1={header} description={description} />}
|
||||
{ ourServices && <OurServicesComponent config={ourServices} /> }
|
||||
{ contactUs && <ContactUsComponent contactUs={contactUs} />}
|
||||
{ ourSpecialities && <OurSpecialitiesComponent config={ourSpecialities} /> }
|
||||
|
||||
@@ -2,17 +2,13 @@ import YogaImageComponent from "@/components/yoga.image.component";
|
||||
import {
|
||||
YogaAboutUsWithBoxesComponent_Plain
|
||||
} from "@/types/generated-strapi-interfaces/api/yoga-about-us-with-boxes-component";
|
||||
import {StrapiFile} from "@/types/types";
|
||||
import strapiApi from "@/api/strapi/strapi-api";
|
||||
|
||||
export interface Props{
|
||||
config: YogaAboutUsWithBoxesComponent_Plain
|
||||
}
|
||||
|
||||
export default function AboutUsWithBoxesComponent({ config: {title,header,description, image, box1,box2,box3,box4}}: Props){
|
||||
|
||||
const imageFile: StrapiFile = image as StrapiFile;
|
||||
const imageUrl = strapiApi.getImageUrl(imageFile?.url)
|
||||
export default function AboutUsWithBoxesComponent({ config: {title,header,description, box1,box2,box3,box4}}: Props){
|
||||
|
||||
|
||||
return (
|
||||
<section className="aboutpage_aboutus_section">
|
||||
@@ -20,7 +16,7 @@ export default function AboutUsWithBoxesComponent({ config: {title,header,descri
|
||||
<div className="row">
|
||||
<div className="col-lg-7 col-md-6 col-sm-12 col-xs-12">
|
||||
<div className="aboutpage_aboutus_image">
|
||||
<figure className="mb-0"><YogaImageComponent src={imageUrl} alt="" className="img-fluid" /></figure>
|
||||
<figure className="mb-0"><YogaImageComponent src="./assets/images/about_page_aboutus_image.png" alt="" className="img-fluid" /></figure>
|
||||
</div>
|
||||
<figure className="aboutus_top_shape left_shape mb-0">
|
||||
<YogaImageComponent src="./assets/images/aboutus_top_shape.png" alt="" className="img-fluid" />
|
||||
|
||||
@@ -10,6 +10,7 @@ export default function AchievementsComponent({
|
||||
title,header,description
|
||||
}
|
||||
}: Props){
|
||||
console.info("achievements",achievements)
|
||||
return (
|
||||
<section className="achievement_section">
|
||||
<div className="container">
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
|
||||
.textCenter{
|
||||
text-align: center;
|
||||
}
|
||||
@@ -3,10 +3,6 @@ import {YogaAchivement_Plain} from "@/types/generated-strapi-interfaces/api/yoga
|
||||
import {StrapiFile} from "@/types/types";
|
||||
import strapiApi from "@/api/strapi/strapi-api";
|
||||
|
||||
import styles from './achievements.item.component.module.css';
|
||||
import clsx from "clsx";
|
||||
|
||||
|
||||
export interface Props{
|
||||
achievement: YogaAchivement_Plain
|
||||
|
||||
@@ -19,7 +15,7 @@ const imageFile: StrapiFile = image as StrapiFile;
|
||||
return (
|
||||
<div className="col-lg-2 col-md-4 col-sm-6 col-xs-12">
|
||||
<div className="logo_wrapper">
|
||||
<figure className="mb-0"><YogaImageComponent src={strapiApi.getImageUrl(imageFile?.url)} alt="" className={clsx(styles.textCenter, "img-fluid")}/></figure>
|
||||
<figure className="mb-0"><YogaImageComponent src={strapiApi.getImageUrl(imageFile?.url)} alt="" className="img-fluid"/></figure>
|
||||
<div className="logo_content">
|
||||
{description}
|
||||
</div>
|
||||
|
||||
@@ -12,7 +12,6 @@ const pathToBreadCrumbs = (path: string) => {
|
||||
'services' : 'Szolgáltatásaim',
|
||||
'prices' : 'Áraim',
|
||||
'faq' : 'GYIK',
|
||||
'serviceList' : 'Szolgáltatások',
|
||||
}
|
||||
if ( mapping.hasOwnProperty(path)){
|
||||
return mapping[path];
|
||||
@@ -25,6 +24,9 @@ const NextBreadcrumb = () => {
|
||||
const paths = usePathname()
|
||||
const pathNames = paths.split('/').filter( path => path )
|
||||
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<div className="btn_wrapper">
|
||||
<span className="sub_home_span">{pathToBreadCrumbs( "/" )} </span>
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import Link from "next/link";
|
||||
import YogaImageComponent from "@/components/yoga.image.component";
|
||||
import {YogaFooter_Plain} from "@/types/generated-strapi-interfaces/api/yoga-footer";
|
||||
import {StrapiFile} from "@/types/types";
|
||||
import strapiApi from "@/api/strapi/strapi-api";
|
||||
|
||||
export interface Props{
|
||||
config: YogaFooter_Plain
|
||||
@@ -16,13 +14,10 @@ const FooterComponent = ({ config: {
|
||||
contactUsEmail,
|
||||
contactUsLocation,
|
||||
contactUsPhoneNumber,
|
||||
copyRight,
|
||||
logo = undefined
|
||||
copyRight
|
||||
} }: Props) => {
|
||||
|
||||
const imageFile: StrapiFile = logo as StrapiFile;
|
||||
const imageUrl = strapiApi.getImageUrl(imageFile?.url)
|
||||
console.info("imageUrl", imageUrl);
|
||||
|
||||
|
||||
return (<section className="footer-section" id="footer_section">
|
||||
<div className="container">
|
||||
@@ -31,7 +26,7 @@ const FooterComponent = ({ config: {
|
||||
<div className="col-lg-3 col-md-4 col-sm-6 col-xs-12 d-lg-block d-none">
|
||||
<div className="footer_logo">
|
||||
<Link href="/index.html" className="text-decoration-none">
|
||||
<figure className="mb-0"><YogaImageComponent src={imageUrl} alt=""
|
||||
<figure className="mb-0"><YogaImageComponent src="/assets/images/footer_logo.png" alt=""
|
||||
className="img-fluid"/></figure>
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
import React from 'react';
|
||||
|
||||
interface ListingComponentProps {
|
||||
text?: string;
|
||||
}
|
||||
|
||||
const ListingComponent: React.FC<ListingComponentProps> = ({ text }) => {
|
||||
if (!text) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const lines = text.split('\n');
|
||||
const elements: React.ReactNode[] = [];
|
||||
let currentParagraph: string[] = [];
|
||||
let currentList: React.ReactNode[] = [];
|
||||
|
||||
const flushParagraph = () => {
|
||||
if (currentParagraph.length > 0) {
|
||||
elements.push(<p key={elements.length}>{currentParagraph.join('\n')}</p>);
|
||||
currentParagraph = [];
|
||||
}
|
||||
};
|
||||
|
||||
const flushList = () => {
|
||||
if (currentList.length > 0) {
|
||||
elements.push(<ul key={elements.length}>{currentList}</ul>);
|
||||
currentList = [];
|
||||
}
|
||||
};
|
||||
|
||||
let currentListItemContent: string[] = [];
|
||||
|
||||
const flushListItem = () => {
|
||||
if(currentListItemContent.length > 0) {
|
||||
currentList.push(<li key={currentList.length}>{currentListItemContent.join('\n')}</li>);
|
||||
currentListItemContent = [];
|
||||
}
|
||||
}
|
||||
|
||||
for (const line of lines) {
|
||||
const trimmedLine = line.trim();
|
||||
|
||||
if (trimmedLine.startsWith('- ') || trimmedLine.startsWith('* ')) {
|
||||
flushParagraph(); // End any ongoing paragraph
|
||||
flushListItem(); // End previous list item
|
||||
currentListItemContent.push(trimmedLine.substring(2));
|
||||
} else if (trimmedLine === '') {
|
||||
flushListItem();
|
||||
flushList(); // An empty line ends the list
|
||||
} else {
|
||||
if (currentList.length > 0 || currentListItemContent.length > 0) {
|
||||
// This line belongs to the current list item
|
||||
currentListItemContent.push(line);
|
||||
} else {
|
||||
// This is a paragraph line
|
||||
flushList();
|
||||
currentParagraph.push(line);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
flushListItem();
|
||||
flushList();
|
||||
flushParagraph();
|
||||
|
||||
return <>{elements}</>;
|
||||
};
|
||||
|
||||
export default ListingComponent;
|
||||
@@ -2,32 +2,22 @@ import YogaImageComponent from "@/components/yoga.image.component";
|
||||
import {YogaMainHeaderComponent_Plain} from "@/types/generated-strapi-interfaces/api/yoga-main-header-component";
|
||||
import {MAIN_MENU} from "@/util/const";
|
||||
import Nav from "@/components/nav.component";
|
||||
import {StrapiFile} from "@/types/types";
|
||||
import strapiApi from "@/api/strapi/strapi-api";
|
||||
import { YogaCommon_Plain } from "@/types/generated-strapi-interfaces/api/yoga-common";
|
||||
export interface Props{
|
||||
config: YogaMainHeaderComponent_Plain,
|
||||
common?: YogaCommon_Plain
|
||||
config: YogaMainHeaderComponent_Plain
|
||||
}
|
||||
const MainHeaderComponent = ({ config: {
|
||||
title,
|
||||
header,
|
||||
description,
|
||||
button,
|
||||
headerIType,
|
||||
image
|
||||
headerIType
|
||||
|
||||
},common}: Props) => {
|
||||
|
||||
const imageFile: StrapiFile = image as StrapiFile;
|
||||
const imageSrc = imageFile ? strapiApi.getImageUrl(imageFile?.url): undefined;
|
||||
const logoImageFile: StrapiFile = (common?.logoImage) as StrapiFile;
|
||||
const logoImageSrc = logoImageFile ? strapiApi.getImageUrl(logoImageFile.url) : undefined;
|
||||
}}: Props) => {
|
||||
|
||||
return (
|
||||
<div className="banner-section-outer">
|
||||
<header>
|
||||
<Nav menuItems={MAIN_MENU} imageSrc={logoImageSrc} />
|
||||
<Nav menuItems={MAIN_MENU} />
|
||||
</header>
|
||||
{/*<!-- SOCIAL ICONS -->*/}
|
||||
<div className="social-icons left_icons float-left d-table" data-aos="fade-down">
|
||||
@@ -64,7 +54,7 @@ const MainHeaderComponent = ({ config: {
|
||||
<div className="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
||||
<div className="banner-section-image">
|
||||
<figure className="mb-0">
|
||||
<YogaImageComponent src={imageSrc!} alt="" />
|
||||
<YogaImageComponent src="/assets/images/banner_right_image.png" alt="" />
|
||||
</figure>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,22 +1,23 @@
|
||||
"use client"
|
||||
import {FC} from "react";
|
||||
import YogaImageComponent from "@/components/yoga.image.component";
|
||||
import clsx from "clsx";
|
||||
import Link from "next/link";
|
||||
|
||||
export interface MenuItem {
|
||||
export interface MenuItem{
|
||||
href?: string;
|
||||
label: string;
|
||||
children?: MenuItem[];
|
||||
active?: boolean,
|
||||
styleClass?: string;
|
||||
}
|
||||
|
||||
export interface Props {
|
||||
export interface Props{
|
||||
menuItems: MenuItem[];
|
||||
imageSrc?: string;
|
||||
}
|
||||
|
||||
const Nav = ({menuItems, imageSrc}: Props) => {
|
||||
const Nav: FC<Props> = ({menuItems}:Props) => {
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<header>
|
||||
@@ -24,7 +25,7 @@ const Nav = ({menuItems, imageSrc}: Props) => {
|
||||
<div className="container-fluid">
|
||||
<nav className="navbar navbar-expand-lg navbar-light p-0">
|
||||
<Link className="navbar-brand" href="/">
|
||||
<figure className="mb-0"> {imageSrc && <YogaImageComponent src={imageSrc} alt=""/>}
|
||||
<figure className="mb-0"><YogaImageComponent src="/assets/images/yogastic_logo.png" alt=""/>
|
||||
</figure>
|
||||
</Link>
|
||||
<button className="navbar-toggler collapsed" type="button" data-toggle="collapse"
|
||||
@@ -36,8 +37,7 @@ const Nav = ({menuItems, imageSrc}: Props) => {
|
||||
</button>
|
||||
<div className="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul className="navbar-nav">
|
||||
{menuItems.map((menuItem, index) => <MenuItemComponent
|
||||
key={"nav" + menuItem.href + "_" + index} menuItem={menuItem}/>)}
|
||||
{menuItems.map( (menuItem,index) => <MenuItemComponent key={"nav"+menuItem.href+"_"+index} menuItem={menuItem} />)}
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
@@ -47,35 +47,32 @@ const Nav = ({menuItems, imageSrc}: Props) => {
|
||||
);
|
||||
}
|
||||
|
||||
interface MenuItemProps {
|
||||
interface MenuItemProps{
|
||||
menuItem: MenuItem,
|
||||
dropdownItem?: boolean,
|
||||
}
|
||||
|
||||
const MenuItemComponent = ({menuItem, dropdownItem}: MenuItemProps) => {
|
||||
if (!menuItem) {
|
||||
const MenuItemComponent: FC<MenuItemProps> = ({menuItem, dropdownItem}: MenuItemProps) => {
|
||||
if ( !menuItem ){
|
||||
return (<></>);
|
||||
}
|
||||
if (!menuItem.children || menuItem.children.length == 0) {
|
||||
if ( !menuItem.children || menuItem.children.length == 0 ){
|
||||
return (
|
||||
// <li className="nav-item active">
|
||||
<li className={clsx("nav-item", {"active": menuItem.active})}>
|
||||
<a className={clsx("nav-link", {"dropdown-item": dropdownItem}, menuItem.styleClass)}
|
||||
href={menuItem.href!}>{menuItem.label}</a>
|
||||
<a className={clsx("nav-link", {"dropdown-item":dropdownItem},menuItem.styleClass)} href={menuItem.href}>{menuItem.label}</a>
|
||||
</li>
|
||||
);
|
||||
}
|
||||
|
||||
return (
|
||||
<li className={clsx("nav-item", "dropdown", {"active": menuItem.active})}>
|
||||
<li className={clsx("nav-item", "dropdown",{"active": menuItem.active})}>
|
||||
<a className="nav-link dropdown-toggle dropdown-color navbar-text-color" href="#"
|
||||
role="button" data-toggle="dropdown" aria-haspopup="true"
|
||||
role="button" data-toggle="dropdown" aria-haspopup="true"
|
||||
aria-expanded="false">{menuItem.label}</a>
|
||||
<div className="dropdown-menu drop-down-content">
|
||||
<ul className="list-unstyled drop-down-pages">
|
||||
{
|
||||
menuItem.children.map((item, index) => <MenuItemComponent
|
||||
key={"child_" + item.href + "_" + index} menuItem={item} dropdownItem={true}/>)
|
||||
menuItem.children.map((item,index) => <MenuItemComponent key={"child_"+item.href+"_"+index} menuItem={item} dropdownItem={true}/>)
|
||||
}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
'use client';
|
||||
import {BlocksContent, BlocksRenderer} from "@strapi/blocks-react-renderer";
|
||||
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}) => {
|
||||
return (
|
||||
<YogaImageComponent
|
||||
src={image.url}
|
||||
// width={image.width}
|
||||
// height={image.height}
|
||||
alt={image.alternativeText || ""}
|
||||
/>
|
||||
);
|
||||
}
|
||||
}}
|
||||
/>);
|
||||
}
|
||||
|
||||
export default NextBlocksRenderer;
|
||||
@@ -67,6 +67,7 @@ const OurServiceComponent = ({config: {title,header,description,services}}: Prop
|
||||
}
|
||||
]
|
||||
};
|
||||
console.info(settings)
|
||||
return (
|
||||
<section className="services_section">
|
||||
<div className="container">
|
||||
|
||||
@@ -31,11 +31,6 @@
|
||||
padding-right: 0;
|
||||
}
|
||||
|
||||
.roundedImage{
|
||||
border-top-left-radius: 60px;
|
||||
border-bottom-right-radius: 60px;
|
||||
}
|
||||
|
||||
/*:global(div.slick-active):nth-last-child(n!*){*/
|
||||
/* padding-left: 6px;*/
|
||||
/* padding-right: 0;*!*/
|
||||
|
||||
@@ -3,19 +3,13 @@ import {YogaSingleService_Plain} from "@/types/generated-strapi-interfaces/api/y
|
||||
import {StrapiFile} from "@/types/types";
|
||||
import strapiApi from "@/api/strapi/strapi-api";
|
||||
import styles from './our.services.item.component.module.css'
|
||||
import Link from "next/link";
|
||||
import classNames from "classnames";
|
||||
|
||||
export interface Props {
|
||||
config: YogaSingleService_Plain
|
||||
}
|
||||
|
||||
const OurServiceItemComponent = ({config: {header,description,image,name}}: Props) => {
|
||||
const OurServiceItemComponent = ({config: {header,description,image}}: Props) => {
|
||||
const imageFile: StrapiFile = image as StrapiFile;
|
||||
if (!imageFile || !imageFile.url) {
|
||||
return null
|
||||
}
|
||||
const path = '/serviceList#' + name;
|
||||
return (
|
||||
|
||||
<div className={styles.serviceSlide}>
|
||||
@@ -23,15 +17,15 @@ const OurServiceItemComponent = ({config: {header,description,image,name}}: Prop
|
||||
<div className="services_box_content">
|
||||
<div className="services_box_upper_portion">
|
||||
<figure className="mb-0">
|
||||
<YogaImageComponent src={strapiApi.getImageUrl(imageFile.url)} alt="" className={classNames(styles.roundedImage,"img-fluid" )}/>
|
||||
<YogaImageComponent src={strapiApi.getImageUrl(imageFile?.url)} alt="" className="img-fluid"/>
|
||||
</figure>
|
||||
</div>
|
||||
<div className="services_box_lower_portion">
|
||||
<h3>{header}</h3>
|
||||
<p>{description}</p>
|
||||
<div className="btn_wrapper">
|
||||
<Link href={path} className="text-decoration-none"><i
|
||||
className="fa-solid fa-arrow-right" aria-hidden="true"></i></Link>
|
||||
<a href="/services" className="text-decoration-none"><i
|
||||
className="fa-solid fa-arrow-right" aria-hidden="true"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
import YogaImageComponent from "@/components/yoga.image.component";
|
||||
import OurSpecialitiesItemComponent from "@/components/our.specialities.item.component";
|
||||
import {YogaSpecialitiesComponent_Plain} from "@/types/generated-strapi-interfaces/api/yoga-specialities-component";
|
||||
import {StrapiFile} from "@/types/types";
|
||||
import strapiApi from "@/api/strapi/strapi-api";
|
||||
|
||||
export interface Props{
|
||||
config: YogaSpecialitiesComponent_Plain
|
||||
@@ -16,14 +14,8 @@ const OurSpecialitiesComponent = ({ config: { title,header,description,
|
||||
right1,
|
||||
right2,
|
||||
right3,
|
||||
right4,
|
||||
image
|
||||
right4
|
||||
} }: Props) => {
|
||||
|
||||
|
||||
const imageFile: StrapiFile = image as StrapiFile;
|
||||
const imageUrl = strapiApi.getImageUrl(imageFile?.url)
|
||||
|
||||
return (
|
||||
|
||||
<section className="our_specialties_section">
|
||||
@@ -51,7 +43,7 @@ const OurSpecialitiesComponent = ({ config: { title,header,description,
|
||||
</div>
|
||||
<div className="col-lg-6 col-md-4 col-sm-6 col-xs-12 d-md-block d-none">
|
||||
<figure className="specialties_image mb-0">
|
||||
<YogaImageComponent src={imageUrl} alt="" className="img-fluid" />
|
||||
<YogaImageComponent src="/assets/images/specialties_image.png" alt="" className="img-fluid" />
|
||||
</figure>
|
||||
</div>
|
||||
<div className="col-lg-3 col-md-4 col-sm-6 col-xs-12" data-aos="fade-right">
|
||||
|
||||
@@ -7,10 +7,11 @@ export interface Props{
|
||||
config: YogaPrice_Plain
|
||||
}
|
||||
|
||||
export function PriceItemComponent({config: {header, description, option1,option2,price,pricePostfix, icon, image,buttonText}} : Props){
|
||||
export function PriceItemComponent({config: {header,option1,option2,price,icon, image,buttonText}} : Props){
|
||||
// there are some issues with the strapi generated types
|
||||
const iconFile: StrapiFile = icon as StrapiFile;
|
||||
const imageFile: StrapiFile = image as StrapiFile;
|
||||
console.info("image:",strapiApi.getImageUrl(imageFile?.url));
|
||||
return (
|
||||
<div className="col-lg-4 col-md-4 col-sm-6 col-xs-12">
|
||||
<div className="pricing_plans_box_content">
|
||||
@@ -27,7 +28,6 @@ export function PriceItemComponent({config: {header, description, option1,option
|
||||
</div>
|
||||
<div className="pricing_plans_box_lower_portion">
|
||||
<h3>{header}</h3>
|
||||
<p className={'text-center'}>{description}</p>
|
||||
<ul className="list-unstyled">
|
||||
<li>
|
||||
<i className="fa-solid fa-check" aria-hidden="true"></i>{option1}
|
||||
@@ -38,7 +38,7 @@ export function PriceItemComponent({config: {header, description, option1,option
|
||||
</ul>
|
||||
<div className="pricing_plans_span_wrapper">
|
||||
<span className="price">{price} FT</span>
|
||||
{ pricePostfix && <span className="per_month">{pricePostfix}</span> }
|
||||
<span className="per_month">/per month</span>
|
||||
</div>
|
||||
<div className="btn_wrapper">
|
||||
<a className="enroll_now_btn text-decoration-none" href="/pricing.html">{buttonText}</a>
|
||||
|
||||
@@ -1,32 +0,0 @@
|
||||
import {YogaSingleService_Plain} from "@/types/generated-strapi-interfaces/api/yoga-single-service";
|
||||
import clsx from "clsx";
|
||||
import NextBlocksRenderer from "@/components/next.blocks.renderer";
|
||||
import {BlocksContent} from "@strapi/blocks-react-renderer";
|
||||
import React from "react";
|
||||
|
||||
|
||||
export interface Props {
|
||||
config: YogaSingleService_Plain
|
||||
}
|
||||
|
||||
const SingleService = ({config}: Props) => {
|
||||
if (!config || !config.article) {
|
||||
return null; // or some fallback UI
|
||||
}
|
||||
|
||||
return (
|
||||
<section id={config.name+""} className={clsx('mb-3')}>
|
||||
<div className="container">
|
||||
<div className={"row"}>
|
||||
<div className={"col-lg-12 col-md-12 col-sm-12 col-xs-12"}>
|
||||
<NextBlocksRenderer
|
||||
content={config.article as BlocksContent}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
}
|
||||
|
||||
export default SingleService;
|
||||
@@ -3,31 +3,14 @@ import Nav from "@/components/nav.component";
|
||||
import {MAIN_MENU} from "@/util/const";
|
||||
import {HeaderB} from "@/types/generated-strapi-interfaces/components/yoga-site/HeaderB";
|
||||
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 = {
|
||||
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) ;
|
||||
}
|
||||
export type Props = HeaderB ;
|
||||
|
||||
const SubHeaderComponent = ({header1,description}: Props) =>{
|
||||
return (
|
||||
<div className="sub-banner-section">
|
||||
<Nav menuItems={MAIN_MENU} imageSrc={logoImageSrc} />
|
||||
<Nav menuItems={MAIN_MENU} />
|
||||
<section className="banner-section">
|
||||
<div className="container">
|
||||
<div className="row">
|
||||
@@ -59,6 +42,3 @@ const SubHeaderComponent = ( {
|
||||
}
|
||||
|
||||
export default SubHeaderComponent;
|
||||
|
||||
|
||||
export const dynamic = 'force-dynamic'
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
|
||||
.roundedImage img{
|
||||
border-bottom-right-radius: 60px;
|
||||
}
|
||||
@@ -3,22 +3,14 @@ import {
|
||||
YogaSubscribeNowComponent_Plain
|
||||
} from "@/types/generated-strapi-interfaces/api/yoga-subscribe-now-component";
|
||||
import clsx from "clsx";
|
||||
import {StrapiFile} from "@/types/types";
|
||||
import strapiApi from "@/api/strapi/strapi-api";
|
||||
import styles from './subscribe.component.module.css'
|
||||
|
||||
export interface Props{
|
||||
config: YogaSubscribeNowComponent_Plain,
|
||||
styleClass?: string,
|
||||
styleClass?: string
|
||||
}
|
||||
const SubscribeComponent = ({
|
||||
config: {title,header,placeHolderEmail,buttonSubscribeLabel, image = undefined},
|
||||
config: {title,header,placeHolderEmail,buttonSubscribeLabel},
|
||||
styleClass
|
||||
}: Props) => {
|
||||
const imageFile: StrapiFile = image as StrapiFile;
|
||||
if (!imageFile || !imageFile.url) {
|
||||
return null
|
||||
}
|
||||
return (
|
||||
<section className={clsx("subscribe_section",styleClass)}>
|
||||
<div className="container">
|
||||
@@ -40,8 +32,8 @@ const SubscribeComponent = ({
|
||||
</div>
|
||||
</div>
|
||||
<div className="col-lg-5 col-md-5 col-sm-6 col-xs-12">
|
||||
<figure className={clsx(styles.roundedImage,"subscribe_image","mb-0",)}>
|
||||
<YogaImageComponent src={strapiApi.getImageUrl(imageFile.url)} alt=""/>
|
||||
<figure className="subscribe_image mb-0">
|
||||
<YogaImageComponent src="/assets/images/subscribe_image.png" alt=""/>
|
||||
</figure>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import TextWithRightImage from "@/components/text.with.right.image.component";
|
||||
import TextWithLeftImage from "@/components/text.with.left.image.component";
|
||||
import TextWithLeftImage from "@/components/text.with.right.left.component";
|
||||
import {YogaTextWithImageComponent_Plain} from "@/types/generated-strapi-interfaces/api/yoga-text-with-image-component";
|
||||
|
||||
export interface Props{
|
||||
|
||||
@@ -2,7 +2,6 @@ import YogaImageComponent from "@/components/yoga.image.component";
|
||||
import {YogaTextWithImageComponent_Plain} from "@/types/generated-strapi-interfaces/api/yoga-text-with-image-component";
|
||||
import {StrapiFile} from "@/types/types";
|
||||
import strapiApi from "@/api/strapi/strapi-api";
|
||||
import ListingComponent from "./listing.component";
|
||||
|
||||
export interface Props{
|
||||
config: YogaTextWithImageComponent_Plain
|
||||
@@ -23,7 +22,7 @@ export default function TextWithRightImage ({config: {
|
||||
<div className="mission_content">
|
||||
<h5>{title}</h5>
|
||||
<h2>{header}</h2>
|
||||
<ListingComponent text={description} />
|
||||
<p>{description}</p>
|
||||
<div className="btn_wrapper">
|
||||
{button && <a href={button.link} className="text-decoration-none read_more_btn">{button.label}</a>}
|
||||
</div>
|
||||
|
||||
@@ -2,7 +2,6 @@ import YogaImageComponent from "@/components/yoga.image.component";
|
||||
import {YogaTextWithImageComponent_Plain} from "@/types/generated-strapi-interfaces/api/yoga-text-with-image-component";
|
||||
import {StrapiFile} from "@/types/types";
|
||||
import strapiApi from "@/api/strapi/strapi-api";
|
||||
import ListingComponent from "@/components/listing.component";
|
||||
|
||||
export interface Props{
|
||||
config: YogaTextWithImageComponent_Plain
|
||||
@@ -30,7 +29,7 @@ export default function TextWithLeftImage ({config: {
|
||||
<div className="vision_content">
|
||||
<h5>{title}</h5>
|
||||
<h2>{header}</h2>
|
||||
<ListingComponent text={description} />
|
||||
<p>{description}</p>
|
||||
<div className="btn_wrapper">
|
||||
{button && <a href={button.link} className="text-decoration-none read_more_btn">{button.label}</a>}
|
||||
</div>
|
||||
@@ -8,7 +8,6 @@ import { YogaAboutUsWithBoxesComponent } from './yoga-about-us-with-boxes-compon
|
||||
import { YogaDiscountComponent } from './yoga-discount-component';
|
||||
import { YogaTextWithImageComponent } from './yoga-text-with-image-component';
|
||||
import { YogaAchivementsComponent } from './yoga-achivements-component';
|
||||
import { YogaCommon } from './yoga-common';
|
||||
import { HeaderB_Plain } from '../components/yoga-site/HeaderB';
|
||||
import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
|
||||
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
||||
@@ -17,7 +16,6 @@ import { YogaAboutUsWithBoxesComponent_Plain } from './yoga-about-us-with-boxes-
|
||||
import { YogaDiscountComponent_Plain } from './yoga-discount-component';
|
||||
import { YogaTextWithImageComponent_Plain } from './yoga-text-with-image-component';
|
||||
import { YogaAchivementsComponent_Plain } from './yoga-achivements-component';
|
||||
import { YogaCommon_Plain } from './yoga-common';
|
||||
import { HeaderB_NoRelations } from '../components/yoga-site/HeaderB';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
@@ -33,7 +31,6 @@ export interface About {
|
||||
ourMission?: { data: YogaTextWithImageComponent };
|
||||
ourVision?: { data: YogaTextWithImageComponent };
|
||||
achievements?: { data: YogaAchivementsComponent };
|
||||
common?: { data: YogaCommon };
|
||||
locale: string;
|
||||
localizations?: { data: About[] };
|
||||
};
|
||||
@@ -49,7 +46,6 @@ export interface About_Plain {
|
||||
ourMission?: YogaTextWithImageComponent_Plain;
|
||||
ourVision?: YogaTextWithImageComponent_Plain;
|
||||
achievements?: YogaAchivementsComponent_Plain;
|
||||
common?: YogaCommon_Plain;
|
||||
locale: string;
|
||||
localizations?: About_Plain[];
|
||||
}
|
||||
@@ -65,7 +61,6 @@ export interface About_NoRelations {
|
||||
ourMission?: number;
|
||||
ourVision?: number;
|
||||
achievements?: number;
|
||||
common?: number;
|
||||
locale: string;
|
||||
localizations?: About[];
|
||||
}
|
||||
@@ -81,7 +76,6 @@ export interface About_AdminPanelLifeCycle {
|
||||
ourMission?: AdminPanelRelationPropertyModification<YogaTextWithImageComponent_Plain>;
|
||||
ourVision?: AdminPanelRelationPropertyModification<YogaTextWithImageComponent_Plain>;
|
||||
achievements?: AdminPanelRelationPropertyModification<YogaAchivementsComponent_Plain>;
|
||||
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
|
||||
locale: string;
|
||||
localizations?: About[];
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ export interface Article {
|
||||
cover?: { data: Media };
|
||||
author?: { data: Author };
|
||||
category?: { data: Category };
|
||||
blocks?: any;
|
||||
blocks?: object;
|
||||
};
|
||||
}
|
||||
export interface Article_Plain {
|
||||
@@ -28,7 +28,7 @@ export interface Article_Plain {
|
||||
cover?: Media_Plain;
|
||||
author?: Author_Plain;
|
||||
category?: Category_Plain;
|
||||
blocks?: any;
|
||||
blocks?: object;
|
||||
}
|
||||
|
||||
export interface Article_NoRelations {
|
||||
@@ -39,7 +39,7 @@ export interface Article_NoRelations {
|
||||
cover?: number;
|
||||
author?: number;
|
||||
category?: number;
|
||||
blocks?: any;
|
||||
blocks?: object;
|
||||
}
|
||||
|
||||
export interface Article_AdminPanelLifeCycle {
|
||||
@@ -50,5 +50,5 @@ export interface Article_AdminPanelLifeCycle {
|
||||
cover?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
author?: AdminPanelRelationPropertyModification<Author_Plain>;
|
||||
category?: AdminPanelRelationPropertyModification<Category_Plain>;
|
||||
blocks?: any;
|
||||
blocks?: object;
|
||||
}
|
||||
|
||||
@@ -4,12 +4,10 @@ import { YogaContactUs } from './yoga-contact-us';
|
||||
import { YogaGoogleMapsComponent } from './yoga-google-maps-component';
|
||||
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter } from './yoga-footer';
|
||||
import { YogaCommon } from './yoga-common';
|
||||
import { YogaContactUs_Plain } from './yoga-contact-us';
|
||||
import { YogaGoogleMapsComponent_Plain } from './yoga-google-maps-component';
|
||||
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter_Plain } from './yoga-footer';
|
||||
import { YogaCommon_Plain } from './yoga-common';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
export interface ContactPage {
|
||||
@@ -21,7 +19,6 @@ export interface ContactPage {
|
||||
google_maps?: { data: YogaGoogleMapsComponent };
|
||||
subscribe?: { data: YogaSubscribeNowComponent };
|
||||
footer?: { data: YogaFooter };
|
||||
common?: { data: YogaCommon };
|
||||
};
|
||||
}
|
||||
export interface ContactPage_Plain {
|
||||
@@ -32,7 +29,6 @@ export interface ContactPage_Plain {
|
||||
google_maps?: YogaGoogleMapsComponent_Plain;
|
||||
subscribe?: YogaSubscribeNowComponent_Plain;
|
||||
footer?: YogaFooter_Plain;
|
||||
common?: YogaCommon_Plain;
|
||||
}
|
||||
|
||||
export interface ContactPage_NoRelations {
|
||||
@@ -43,7 +39,6 @@ export interface ContactPage_NoRelations {
|
||||
google_maps?: number;
|
||||
subscribe?: number;
|
||||
footer?: number;
|
||||
common?: number;
|
||||
}
|
||||
|
||||
export interface ContactPage_AdminPanelLifeCycle {
|
||||
@@ -54,5 +49,4 @@ export interface ContactPage_AdminPanelLifeCycle {
|
||||
google_maps?: AdminPanelRelationPropertyModification<YogaGoogleMapsComponent_Plain>;
|
||||
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
|
||||
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
|
||||
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
|
||||
}
|
||||
|
||||
@@ -5,13 +5,11 @@ import { YogaAchivementsComponent } from './yoga-achivements-component';
|
||||
import { YogaBlogPostsComponent } from './yoga-blog-posts-component';
|
||||
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter } from './yoga-footer';
|
||||
import { YogaCommon } from './yoga-common';
|
||||
import { YogaFaqComponent_Plain } from './yoga-faq-component';
|
||||
import { YogaAchivementsComponent_Plain } from './yoga-achivements-component';
|
||||
import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
|
||||
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter_Plain } from './yoga-footer';
|
||||
import { YogaCommon_Plain } from './yoga-common';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
export interface FaqPage {
|
||||
@@ -24,7 +22,6 @@ export interface FaqPage {
|
||||
blogs?: { data: YogaBlogPostsComponent };
|
||||
subscribe?: { data: YogaSubscribeNowComponent };
|
||||
footer?: { data: YogaFooter };
|
||||
common?: { data: YogaCommon };
|
||||
};
|
||||
}
|
||||
export interface FaqPage_Plain {
|
||||
@@ -36,7 +33,6 @@ export interface FaqPage_Plain {
|
||||
blogs?: YogaBlogPostsComponent_Plain;
|
||||
subscribe?: YogaSubscribeNowComponent_Plain;
|
||||
footer?: YogaFooter_Plain;
|
||||
common?: YogaCommon_Plain;
|
||||
}
|
||||
|
||||
export interface FaqPage_NoRelations {
|
||||
@@ -48,7 +44,6 @@ export interface FaqPage_NoRelations {
|
||||
blogs?: number;
|
||||
subscribe?: number;
|
||||
footer?: number;
|
||||
common?: number;
|
||||
}
|
||||
|
||||
export interface FaqPage_AdminPanelLifeCycle {
|
||||
@@ -60,5 +55,4 @@ export interface FaqPage_AdminPanelLifeCycle {
|
||||
blogs?: AdminPanelRelationPropertyModification<YogaBlogPostsComponent_Plain>;
|
||||
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
|
||||
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
|
||||
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
|
||||
}
|
||||
|
||||
@@ -14,7 +14,6 @@ export interface Global {
|
||||
favicon?: { data: Media };
|
||||
siteDescription: string;
|
||||
defaultSeo?: Seo;
|
||||
logoImage?: { data: Media };
|
||||
};
|
||||
}
|
||||
export interface Global_Plain {
|
||||
@@ -23,7 +22,6 @@ export interface Global_Plain {
|
||||
favicon?: Media_Plain;
|
||||
siteDescription: string;
|
||||
defaultSeo?: Seo_Plain;
|
||||
logoImage?: Media_Plain;
|
||||
}
|
||||
|
||||
export interface Global_NoRelations {
|
||||
@@ -32,7 +30,6 @@ export interface Global_NoRelations {
|
||||
favicon?: number;
|
||||
siteDescription: string;
|
||||
defaultSeo?: Seo_NoRelations;
|
||||
logoImage?: number;
|
||||
}
|
||||
|
||||
export interface Global_AdminPanelLifeCycle {
|
||||
@@ -41,5 +38,4 @@ export interface Global_AdminPanelLifeCycle {
|
||||
favicon?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
siteDescription: string;
|
||||
defaultSeo?: Seo_Plain;
|
||||
logoImage?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,6 @@ import { YogaBlogPostsComponent } from './yoga-blog-posts-component';
|
||||
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter } from './yoga-footer';
|
||||
import { YogaMainHeaderComponent } from './yoga-main-header-component';
|
||||
import { YogaCommon } from './yoga-common';
|
||||
import { YogaOurServicesComponent_Plain } from './yoga-our-services-component';
|
||||
import { YogaAboutUsComponent_Plain } from './yoga-about-us-component';
|
||||
import { YogaSpecialitiesComponent_Plain } from './yoga-specialities-component';
|
||||
@@ -21,7 +20,6 @@ import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
|
||||
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter_Plain } from './yoga-footer';
|
||||
import { YogaMainHeaderComponent_Plain } from './yoga-main-header-component';
|
||||
import { YogaCommon_Plain } from './yoga-common';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
export interface Home {
|
||||
@@ -37,7 +35,6 @@ export interface Home {
|
||||
subscribeNow?: { data: YogaSubscribeNowComponent };
|
||||
footer?: { data: YogaFooter };
|
||||
header?: { data: YogaMainHeaderComponent };
|
||||
common?: { data: YogaCommon };
|
||||
locale: string;
|
||||
localizations?: { data: Home[] };
|
||||
};
|
||||
@@ -54,7 +51,6 @@ export interface Home_Plain {
|
||||
subscribeNow?: YogaSubscribeNowComponent_Plain;
|
||||
footer?: YogaFooter_Plain;
|
||||
header?: YogaMainHeaderComponent_Plain;
|
||||
common?: YogaCommon_Plain;
|
||||
locale: string;
|
||||
localizations?: Home_Plain[];
|
||||
}
|
||||
@@ -71,7 +67,6 @@ export interface Home_NoRelations {
|
||||
subscribeNow?: number;
|
||||
footer?: number;
|
||||
header?: number;
|
||||
common?: number;
|
||||
locale: string;
|
||||
localizations?: Home[];
|
||||
}
|
||||
@@ -88,7 +83,6 @@ export interface Home_AdminPanelLifeCycle {
|
||||
subscribeNow?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
|
||||
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
|
||||
header?: AdminPanelRelationPropertyModification<YogaMainHeaderComponent_Plain>;
|
||||
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
|
||||
locale: string;
|
||||
localizations?: Home[];
|
||||
}
|
||||
|
||||
@@ -5,13 +5,11 @@ import { YogaDiscountComponent } from './yoga-discount-component';
|
||||
import { YogaBlogPostsComponent } from './yoga-blog-posts-component';
|
||||
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter } from './yoga-footer';
|
||||
import { YogaCommon } from './yoga-common';
|
||||
import { YogaPriceComponent_Plain } from './yoga-price-component';
|
||||
import { YogaDiscountComponent_Plain } from './yoga-discount-component';
|
||||
import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
|
||||
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter_Plain } from './yoga-footer';
|
||||
import { YogaCommon_Plain } from './yoga-common';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
export interface PricesPage {
|
||||
@@ -24,7 +22,6 @@ export interface PricesPage {
|
||||
blogs?: { data: YogaBlogPostsComponent };
|
||||
subscribe?: { data: YogaSubscribeNowComponent };
|
||||
footer?: { data: YogaFooter };
|
||||
common?: { data: YogaCommon };
|
||||
};
|
||||
}
|
||||
export interface PricesPage_Plain {
|
||||
@@ -36,7 +33,6 @@ export interface PricesPage_Plain {
|
||||
blogs?: YogaBlogPostsComponent_Plain;
|
||||
subscribe?: YogaSubscribeNowComponent_Plain;
|
||||
footer?: YogaFooter_Plain;
|
||||
common?: YogaCommon_Plain;
|
||||
}
|
||||
|
||||
export interface PricesPage_NoRelations {
|
||||
@@ -48,7 +44,6 @@ export interface PricesPage_NoRelations {
|
||||
blogs?: number;
|
||||
subscribe?: number;
|
||||
footer?: number;
|
||||
common?: number;
|
||||
}
|
||||
|
||||
export interface PricesPage_AdminPanelLifeCycle {
|
||||
@@ -60,5 +55,4 @@ export interface PricesPage_AdminPanelLifeCycle {
|
||||
blogs?: AdminPanelRelationPropertyModification<YogaBlogPostsComponent_Plain>;
|
||||
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
|
||||
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
|
||||
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
|
||||
}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
// Interface automatically generated by schemas-to-ts
|
||||
|
||||
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter } from './yoga-footer';
|
||||
import { YogaCommon } from './yoga-common';
|
||||
import { YogaSingleService } from './yoga-single-service';
|
||||
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter_Plain } from './yoga-footer';
|
||||
import { YogaCommon_Plain } from './yoga-common';
|
||||
import { YogaSingleService_Plain } from './yoga-single-service';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
export interface ServiceListPage {
|
||||
id: number;
|
||||
attributes: {
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
subscribeNow?: { data: YogaSubscribeNowComponent };
|
||||
footer?: { data: YogaFooter };
|
||||
common?: { data: YogaCommon };
|
||||
services: { data: YogaSingleService[] };
|
||||
};
|
||||
}
|
||||
export interface ServiceListPage_Plain {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
subscribeNow?: YogaSubscribeNowComponent_Plain;
|
||||
footer?: YogaFooter_Plain;
|
||||
common?: YogaCommon_Plain;
|
||||
services: YogaSingleService_Plain[];
|
||||
}
|
||||
|
||||
export interface ServiceListPage_NoRelations {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
subscribeNow?: number;
|
||||
footer?: number;
|
||||
common?: number;
|
||||
services: number[];
|
||||
}
|
||||
|
||||
export interface ServiceListPage_AdminPanelLifeCycle {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
subscribeNow?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
|
||||
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
|
||||
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
|
||||
services: AdminPanelRelationPropertyModification<YogaSingleService_Plain>;
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
// Interface automatically generated by schemas-to-ts
|
||||
|
||||
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter } from './yoga-footer';
|
||||
import { YogaCommon } from './yoga-common';
|
||||
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter_Plain } from './yoga-footer';
|
||||
import { YogaCommon_Plain } from './yoga-common';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
export interface ServicePage {
|
||||
id: number;
|
||||
attributes: {
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
subscribeNow?: { data: YogaSubscribeNowComponent };
|
||||
footer?: { data: YogaFooter };
|
||||
common?: { data: YogaCommon };
|
||||
};
|
||||
}
|
||||
export interface ServicePage_Plain {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
subscribeNow?: YogaSubscribeNowComponent_Plain;
|
||||
footer?: YogaFooter_Plain;
|
||||
common?: YogaCommon_Plain;
|
||||
}
|
||||
|
||||
export interface ServicePage_NoRelations {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
subscribeNow?: number;
|
||||
footer?: number;
|
||||
common?: 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>;
|
||||
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
|
||||
}
|
||||
@@ -7,7 +7,6 @@ import { YogaCustomerFeedbackComponent } from './yoga-customer-feedback-componen
|
||||
import { YogaBlogPostsComponent } from './yoga-blog-posts-component';
|
||||
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter } from './yoga-footer';
|
||||
import { YogaCommon } from './yoga-common';
|
||||
import { YogaOurServicesComponent_Plain } from './yoga-our-services-component';
|
||||
import { YogaContactUs_Plain } from './yoga-contact-us';
|
||||
import { YogaSpecialitiesComponent_Plain } from './yoga-specialities-component';
|
||||
@@ -15,7 +14,6 @@ import { YogaCustomerFeedbackComponent_Plain } from './yoga-customer-feedback-co
|
||||
import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
|
||||
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter_Plain } from './yoga-footer';
|
||||
import { YogaCommon_Plain } from './yoga-common';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
export interface ServicesPage {
|
||||
@@ -31,7 +29,6 @@ export interface ServicesPage {
|
||||
subscribe?: { data: YogaSubscribeNowComponent };
|
||||
footer?: { data: YogaFooter };
|
||||
title?: string;
|
||||
common?: { data: YogaCommon };
|
||||
};
|
||||
}
|
||||
export interface ServicesPage_Plain {
|
||||
@@ -46,7 +43,6 @@ export interface ServicesPage_Plain {
|
||||
subscribe?: YogaSubscribeNowComponent_Plain;
|
||||
footer?: YogaFooter_Plain;
|
||||
title?: string;
|
||||
common?: YogaCommon_Plain;
|
||||
}
|
||||
|
||||
export interface ServicesPage_NoRelations {
|
||||
@@ -61,7 +57,6 @@ export interface ServicesPage_NoRelations {
|
||||
subscribe?: number;
|
||||
footer?: number;
|
||||
title?: string;
|
||||
common?: number;
|
||||
}
|
||||
|
||||
export interface ServicesPage_AdminPanelLifeCycle {
|
||||
@@ -76,5 +71,4 @@ export interface ServicesPage_AdminPanelLifeCycle {
|
||||
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
|
||||
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
|
||||
title?: string;
|
||||
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
|
||||
}
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
// 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;
|
||||
}
|
||||
@@ -1,11 +1,8 @@
|
||||
// Interface automatically generated by schemas-to-ts
|
||||
|
||||
import { Link } from '../components/yoga-site/Link';
|
||||
import { Media } from '../components/shared/Media';
|
||||
import { Link_Plain } from '../components/yoga-site/Link';
|
||||
import { Media_Plain } from '../components/shared/Media';
|
||||
import { Link_NoRelations } from '../components/yoga-site/Link';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
export interface YogaFooter {
|
||||
id: number;
|
||||
@@ -20,7 +17,6 @@ export interface YogaFooter {
|
||||
contactUsLocation?: Link;
|
||||
copyRight?: string;
|
||||
name?: string;
|
||||
logo?: { data: Media };
|
||||
};
|
||||
}
|
||||
export interface YogaFooter_Plain {
|
||||
@@ -35,7 +31,6 @@ export interface YogaFooter_Plain {
|
||||
contactUsLocation?: Link_Plain;
|
||||
copyRight?: string;
|
||||
name?: string;
|
||||
logo?: Media_Plain;
|
||||
}
|
||||
|
||||
export interface YogaFooter_NoRelations {
|
||||
@@ -50,7 +45,6 @@ export interface YogaFooter_NoRelations {
|
||||
contactUsLocation?: Link_NoRelations;
|
||||
copyRight?: string;
|
||||
name?: string;
|
||||
logo?: number;
|
||||
}
|
||||
|
||||
export interface YogaFooter_AdminPanelLifeCycle {
|
||||
@@ -65,5 +59,4 @@ export interface YogaFooter_AdminPanelLifeCycle {
|
||||
contactUsLocation?: Link_Plain;
|
||||
copyRight?: string;
|
||||
name?: string;
|
||||
logo?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
}
|
||||
|
||||
@@ -14,8 +14,6 @@ export interface YogaPrice {
|
||||
price?: number;
|
||||
icon?: { data: Media };
|
||||
image?: { data: Media };
|
||||
pricePostfix?: string;
|
||||
description?: string;
|
||||
};
|
||||
}
|
||||
export interface YogaPrice_Plain {
|
||||
@@ -27,8 +25,6 @@ export interface YogaPrice_Plain {
|
||||
price?: number;
|
||||
icon?: Media_Plain;
|
||||
image?: Media_Plain;
|
||||
pricePostfix?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface YogaPrice_NoRelations {
|
||||
@@ -40,8 +36,6 @@ export interface YogaPrice_NoRelations {
|
||||
price?: number;
|
||||
icon?: number;
|
||||
image?: number;
|
||||
pricePostfix?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface YogaPrice_AdminPanelLifeCycle {
|
||||
@@ -53,6 +47,4 @@ export interface YogaPrice_AdminPanelLifeCycle {
|
||||
price?: number;
|
||||
icon?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
pricePostfix?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,6 @@ export interface YogaSingleService {
|
||||
image?: { data: Media };
|
||||
imageAlt?: string;
|
||||
name?: string;
|
||||
article?: any;
|
||||
locale: string;
|
||||
localizations?: { data: YogaSingleService[] };
|
||||
};
|
||||
@@ -26,7 +25,6 @@ export interface YogaSingleService_Plain {
|
||||
image?: Media_Plain;
|
||||
imageAlt?: string;
|
||||
name?: string;
|
||||
article?: any;
|
||||
locale: string;
|
||||
localizations?: YogaSingleService_Plain[];
|
||||
}
|
||||
@@ -39,7 +37,6 @@ export interface YogaSingleService_NoRelations {
|
||||
image?: number;
|
||||
imageAlt?: string;
|
||||
name?: string;
|
||||
article?: any;
|
||||
locale: string;
|
||||
localizations?: YogaSingleService[];
|
||||
}
|
||||
@@ -52,7 +49,6 @@ export interface YogaSingleService_AdminPanelLifeCycle {
|
||||
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
imageAlt?: string;
|
||||
name?: string;
|
||||
article?: any;
|
||||
locale: string;
|
||||
localizations?: YogaSingleService[];
|
||||
}
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
// Interface automatically generated by schemas-to-ts
|
||||
|
||||
import { YogaSingleSpeciality } from './yoga-single-speciality';
|
||||
import { Media } from '../components/shared/Media';
|
||||
import { YogaSingleSpeciality_Plain } from './yoga-single-speciality';
|
||||
import { Media_Plain } from '../components/shared/Media';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
export interface YogaSpecialitiesComponent {
|
||||
@@ -21,7 +19,6 @@ export interface YogaSpecialitiesComponent {
|
||||
right2?: { data: YogaSingleSpeciality };
|
||||
right3?: { data: YogaSingleSpeciality };
|
||||
right4?: { data: YogaSingleSpeciality };
|
||||
image?: { data: Media };
|
||||
locale: string;
|
||||
localizations?: { data: YogaSpecialitiesComponent[] };
|
||||
};
|
||||
@@ -40,7 +37,6 @@ export interface YogaSpecialitiesComponent_Plain {
|
||||
right2?: YogaSingleSpeciality_Plain;
|
||||
right3?: YogaSingleSpeciality_Plain;
|
||||
right4?: YogaSingleSpeciality_Plain;
|
||||
image?: Media_Plain;
|
||||
locale: string;
|
||||
localizations?: YogaSpecialitiesComponent_Plain[];
|
||||
}
|
||||
@@ -59,7 +55,6 @@ export interface YogaSpecialitiesComponent_NoRelations {
|
||||
right2?: number;
|
||||
right3?: number;
|
||||
right4?: number;
|
||||
image?: number;
|
||||
locale: string;
|
||||
localizations?: YogaSpecialitiesComponent[];
|
||||
}
|
||||
@@ -78,7 +73,6 @@ export interface YogaSpecialitiesComponent_AdminPanelLifeCycle {
|
||||
right2?: AdminPanelRelationPropertyModification<YogaSingleSpeciality_Plain>;
|
||||
right3?: AdminPanelRelationPropertyModification<YogaSingleSpeciality_Plain>;
|
||||
right4?: AdminPanelRelationPropertyModification<YogaSingleSpeciality_Plain>;
|
||||
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
locale: string;
|
||||
localizations?: YogaSpecialitiesComponent[];
|
||||
}
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
// 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 YogaSubscribeNowComponent {
|
||||
id: number;
|
||||
attributes: {
|
||||
@@ -11,7 +7,6 @@ export interface YogaSubscribeNowComponent {
|
||||
header?: string;
|
||||
placeHolderEmail?: string;
|
||||
buttonSubscribeLabel?: string;
|
||||
image?: { data: Media };
|
||||
};
|
||||
}
|
||||
export interface YogaSubscribeNowComponent_Plain {
|
||||
@@ -20,7 +15,6 @@ export interface YogaSubscribeNowComponent_Plain {
|
||||
header?: string;
|
||||
placeHolderEmail?: string;
|
||||
buttonSubscribeLabel?: string;
|
||||
image?: Media_Plain;
|
||||
}
|
||||
|
||||
export interface YogaSubscribeNowComponent_NoRelations {
|
||||
@@ -29,7 +23,6 @@ export interface YogaSubscribeNowComponent_NoRelations {
|
||||
header?: string;
|
||||
placeHolderEmail?: string;
|
||||
buttonSubscribeLabel?: string;
|
||||
image?: number;
|
||||
}
|
||||
|
||||
export interface YogaSubscribeNowComponent_AdminPanelLifeCycle {
|
||||
@@ -38,5 +31,4 @@ export interface YogaSubscribeNowComponent_AdminPanelLifeCycle {
|
||||
header?: string;
|
||||
placeHolderEmail?: string;
|
||||
buttonSubscribeLabel?: string;
|
||||
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
}
|
||||
|
||||
@@ -11,42 +11,29 @@ export const MAIN_MENU:MenuItem[] = [
|
||||
},
|
||||
{
|
||||
label: 'Szolgáltatásaink',
|
||||
href: '/serviceList'
|
||||
},
|
||||
// {
|
||||
// label: 'Oldalak',
|
||||
// children: [
|
||||
// {
|
||||
// label: 'Áraink',
|
||||
// href: '/prices'
|
||||
// },
|
||||
// {
|
||||
// label: 'FAQ',
|
||||
// href: '/faq'
|
||||
// },
|
||||
// ]
|
||||
// },
|
||||
{
|
||||
label: 'Áraink',
|
||||
href: '/prices'
|
||||
href: '/services'
|
||||
},
|
||||
{
|
||||
label: 'GY.I.K',
|
||||
href: '/faq'
|
||||
label: 'Oldalak',
|
||||
children: [
|
||||
{
|
||||
label: 'Áraink',
|
||||
href: '/prices'
|
||||
},
|
||||
{
|
||||
label: 'FAQ',
|
||||
href: '/faq'
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
label: 'Szolgáltatásaink',
|
||||
href: '/serviceList'
|
||||
label: 'Rólam',
|
||||
href: '/team'
|
||||
},
|
||||
// {
|
||||
// label: 'Rólam',
|
||||
// href: '/team'
|
||||
// },
|
||||
// {
|
||||
// label: 'Blog',
|
||||
// href: '/blog'
|
||||
// },
|
||||
{
|
||||
label: 'Blog',
|
||||
href: '/blog'
|
||||
}, {
|
||||
label: 'Kapcsolat',
|
||||
href: '/contact',
|
||||
styleClass: "contact_us"
|
||||
|
||||
@@ -39,9 +39,6 @@
|
||||
specialityRight4: {
|
||||
fields: ['*'] ,
|
||||
},
|
||||
"image": {
|
||||
"fields": ["name","mime","url"]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -8,7 +8,6 @@ import { YogaAboutUsWithBoxesComponent } from './yoga-about-us-with-boxes-compon
|
||||
import { YogaDiscountComponent } from './yoga-discount-component';
|
||||
import { YogaTextWithImageComponent } from './yoga-text-with-image-component';
|
||||
import { YogaAchivementsComponent } from './yoga-achivements-component';
|
||||
import { YogaCommon } from './yoga-common';
|
||||
import { HeaderB_Plain } from '../components/yoga-site/HeaderB';
|
||||
import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
|
||||
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
||||
@@ -17,7 +16,6 @@ import { YogaAboutUsWithBoxesComponent_Plain } from './yoga-about-us-with-boxes-
|
||||
import { YogaDiscountComponent_Plain } from './yoga-discount-component';
|
||||
import { YogaTextWithImageComponent_Plain } from './yoga-text-with-image-component';
|
||||
import { YogaAchivementsComponent_Plain } from './yoga-achivements-component';
|
||||
import { YogaCommon_Plain } from './yoga-common';
|
||||
import { HeaderB_NoRelations } from '../components/yoga-site/HeaderB';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
@@ -33,7 +31,6 @@ export interface About {
|
||||
ourMission?: { data: YogaTextWithImageComponent };
|
||||
ourVision?: { data: YogaTextWithImageComponent };
|
||||
achievements?: { data: YogaAchivementsComponent };
|
||||
common?: { data: YogaCommon };
|
||||
locale: string;
|
||||
localizations?: { data: About[] };
|
||||
};
|
||||
@@ -49,7 +46,6 @@ export interface About_Plain {
|
||||
ourMission?: YogaTextWithImageComponent_Plain;
|
||||
ourVision?: YogaTextWithImageComponent_Plain;
|
||||
achievements?: YogaAchivementsComponent_Plain;
|
||||
common?: YogaCommon_Plain;
|
||||
locale: string;
|
||||
localizations?: About_Plain[];
|
||||
}
|
||||
@@ -65,7 +61,6 @@ export interface About_NoRelations {
|
||||
ourMission?: number;
|
||||
ourVision?: number;
|
||||
achievements?: number;
|
||||
common?: number;
|
||||
locale: string;
|
||||
localizations?: About[];
|
||||
}
|
||||
@@ -81,7 +76,6 @@ export interface About_AdminPanelLifeCycle {
|
||||
ourMission?: AdminPanelRelationPropertyModification<YogaTextWithImageComponent_Plain>;
|
||||
ourVision?: AdminPanelRelationPropertyModification<YogaTextWithImageComponent_Plain>;
|
||||
achievements?: AdminPanelRelationPropertyModification<YogaAchivementsComponent_Plain>;
|
||||
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
|
||||
locale: string;
|
||||
localizations?: About[];
|
||||
}
|
||||
|
||||
@@ -4,12 +4,10 @@ import { YogaContactUs } from './yoga-contact-us';
|
||||
import { YogaGoogleMapsComponent } from './yoga-google-maps-component';
|
||||
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter } from './yoga-footer';
|
||||
import { YogaCommon } from './yoga-common';
|
||||
import { YogaContactUs_Plain } from './yoga-contact-us';
|
||||
import { YogaGoogleMapsComponent_Plain } from './yoga-google-maps-component';
|
||||
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter_Plain } from './yoga-footer';
|
||||
import { YogaCommon_Plain } from './yoga-common';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
export interface ContactPage {
|
||||
@@ -21,7 +19,6 @@ export interface ContactPage {
|
||||
google_maps?: { data: YogaGoogleMapsComponent };
|
||||
subscribe?: { data: YogaSubscribeNowComponent };
|
||||
footer?: { data: YogaFooter };
|
||||
common?: { data: YogaCommon };
|
||||
};
|
||||
}
|
||||
export interface ContactPage_Plain {
|
||||
@@ -32,7 +29,6 @@ export interface ContactPage_Plain {
|
||||
google_maps?: YogaGoogleMapsComponent_Plain;
|
||||
subscribe?: YogaSubscribeNowComponent_Plain;
|
||||
footer?: YogaFooter_Plain;
|
||||
common?: YogaCommon_Plain;
|
||||
}
|
||||
|
||||
export interface ContactPage_NoRelations {
|
||||
@@ -43,7 +39,6 @@ export interface ContactPage_NoRelations {
|
||||
google_maps?: number;
|
||||
subscribe?: number;
|
||||
footer?: number;
|
||||
common?: number;
|
||||
}
|
||||
|
||||
export interface ContactPage_AdminPanelLifeCycle {
|
||||
@@ -54,5 +49,4 @@ export interface ContactPage_AdminPanelLifeCycle {
|
||||
google_maps?: AdminPanelRelationPropertyModification<YogaGoogleMapsComponent_Plain>;
|
||||
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
|
||||
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
|
||||
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
|
||||
}
|
||||
|
||||
@@ -5,13 +5,11 @@ import { YogaAchivementsComponent } from './yoga-achivements-component';
|
||||
import { YogaBlogPostsComponent } from './yoga-blog-posts-component';
|
||||
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter } from './yoga-footer';
|
||||
import { YogaCommon } from './yoga-common';
|
||||
import { YogaFaqComponent_Plain } from './yoga-faq-component';
|
||||
import { YogaAchivementsComponent_Plain } from './yoga-achivements-component';
|
||||
import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
|
||||
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter_Plain } from './yoga-footer';
|
||||
import { YogaCommon_Plain } from './yoga-common';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
export interface FaqPage {
|
||||
@@ -24,7 +22,6 @@ export interface FaqPage {
|
||||
blogs?: { data: YogaBlogPostsComponent };
|
||||
subscribe?: { data: YogaSubscribeNowComponent };
|
||||
footer?: { data: YogaFooter };
|
||||
common?: { data: YogaCommon };
|
||||
};
|
||||
}
|
||||
export interface FaqPage_Plain {
|
||||
@@ -36,7 +33,6 @@ export interface FaqPage_Plain {
|
||||
blogs?: YogaBlogPostsComponent_Plain;
|
||||
subscribe?: YogaSubscribeNowComponent_Plain;
|
||||
footer?: YogaFooter_Plain;
|
||||
common?: YogaCommon_Plain;
|
||||
}
|
||||
|
||||
export interface FaqPage_NoRelations {
|
||||
@@ -48,7 +44,6 @@ export interface FaqPage_NoRelations {
|
||||
blogs?: number;
|
||||
subscribe?: number;
|
||||
footer?: number;
|
||||
common?: number;
|
||||
}
|
||||
|
||||
export interface FaqPage_AdminPanelLifeCycle {
|
||||
@@ -60,5 +55,4 @@ export interface FaqPage_AdminPanelLifeCycle {
|
||||
blogs?: AdminPanelRelationPropertyModification<YogaBlogPostsComponent_Plain>;
|
||||
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
|
||||
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
|
||||
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
|
||||
}
|
||||
|
||||
@@ -14,7 +14,6 @@ export interface Global {
|
||||
favicon?: { data: Media };
|
||||
siteDescription: string;
|
||||
defaultSeo?: Seo;
|
||||
logoImage?: { data: Media };
|
||||
};
|
||||
}
|
||||
export interface Global_Plain {
|
||||
@@ -23,7 +22,6 @@ export interface Global_Plain {
|
||||
favicon?: Media_Plain;
|
||||
siteDescription: string;
|
||||
defaultSeo?: Seo_Plain;
|
||||
logoImage?: Media_Plain;
|
||||
}
|
||||
|
||||
export interface Global_NoRelations {
|
||||
@@ -32,7 +30,6 @@ export interface Global_NoRelations {
|
||||
favicon?: number;
|
||||
siteDescription: string;
|
||||
defaultSeo?: Seo_NoRelations;
|
||||
logoImage?: number;
|
||||
}
|
||||
|
||||
export interface Global_AdminPanelLifeCycle {
|
||||
@@ -41,5 +38,4 @@ export interface Global_AdminPanelLifeCycle {
|
||||
favicon?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
siteDescription: string;
|
||||
defaultSeo?: Seo_Plain;
|
||||
logoImage?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
}
|
||||
|
||||
@@ -10,7 +10,6 @@ import { YogaBlogPostsComponent } from './yoga-blog-posts-component';
|
||||
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter } from './yoga-footer';
|
||||
import { YogaMainHeaderComponent } from './yoga-main-header-component';
|
||||
import { YogaCommon } from './yoga-common';
|
||||
import { YogaOurServicesComponent_Plain } from './yoga-our-services-component';
|
||||
import { YogaAboutUsComponent_Plain } from './yoga-about-us-component';
|
||||
import { YogaSpecialitiesComponent_Plain } from './yoga-specialities-component';
|
||||
@@ -21,7 +20,6 @@ import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
|
||||
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter_Plain } from './yoga-footer';
|
||||
import { YogaMainHeaderComponent_Plain } from './yoga-main-header-component';
|
||||
import { YogaCommon_Plain } from './yoga-common';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
export interface Home {
|
||||
@@ -37,7 +35,6 @@ export interface Home {
|
||||
subscribeNow?: { data: YogaSubscribeNowComponent };
|
||||
footer?: { data: YogaFooter };
|
||||
header?: { data: YogaMainHeaderComponent };
|
||||
common?: { data: YogaCommon };
|
||||
locale: string;
|
||||
localizations?: { data: Home[] };
|
||||
};
|
||||
@@ -54,7 +51,6 @@ export interface Home_Plain {
|
||||
subscribeNow?: YogaSubscribeNowComponent_Plain;
|
||||
footer?: YogaFooter_Plain;
|
||||
header?: YogaMainHeaderComponent_Plain;
|
||||
common?: YogaCommon_Plain;
|
||||
locale: string;
|
||||
localizations?: Home_Plain[];
|
||||
}
|
||||
@@ -71,7 +67,6 @@ export interface Home_NoRelations {
|
||||
subscribeNow?: number;
|
||||
footer?: number;
|
||||
header?: number;
|
||||
common?: number;
|
||||
locale: string;
|
||||
localizations?: Home[];
|
||||
}
|
||||
@@ -88,7 +83,6 @@ export interface Home_AdminPanelLifeCycle {
|
||||
subscribeNow?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
|
||||
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
|
||||
header?: AdminPanelRelationPropertyModification<YogaMainHeaderComponent_Plain>;
|
||||
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
|
||||
locale: string;
|
||||
localizations?: Home[];
|
||||
}
|
||||
|
||||
@@ -5,13 +5,11 @@ import { YogaDiscountComponent } from './yoga-discount-component';
|
||||
import { YogaBlogPostsComponent } from './yoga-blog-posts-component';
|
||||
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter } from './yoga-footer';
|
||||
import { YogaCommon } from './yoga-common';
|
||||
import { YogaPriceComponent_Plain } from './yoga-price-component';
|
||||
import { YogaDiscountComponent_Plain } from './yoga-discount-component';
|
||||
import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
|
||||
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter_Plain } from './yoga-footer';
|
||||
import { YogaCommon_Plain } from './yoga-common';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
export interface PricesPage {
|
||||
@@ -24,7 +22,6 @@ export interface PricesPage {
|
||||
blogs?: { data: YogaBlogPostsComponent };
|
||||
subscribe?: { data: YogaSubscribeNowComponent };
|
||||
footer?: { data: YogaFooter };
|
||||
common?: { data: YogaCommon };
|
||||
};
|
||||
}
|
||||
export interface PricesPage_Plain {
|
||||
@@ -36,7 +33,6 @@ export interface PricesPage_Plain {
|
||||
blogs?: YogaBlogPostsComponent_Plain;
|
||||
subscribe?: YogaSubscribeNowComponent_Plain;
|
||||
footer?: YogaFooter_Plain;
|
||||
common?: YogaCommon_Plain;
|
||||
}
|
||||
|
||||
export interface PricesPage_NoRelations {
|
||||
@@ -48,7 +44,6 @@ export interface PricesPage_NoRelations {
|
||||
blogs?: number;
|
||||
subscribe?: number;
|
||||
footer?: number;
|
||||
common?: number;
|
||||
}
|
||||
|
||||
export interface PricesPage_AdminPanelLifeCycle {
|
||||
@@ -60,5 +55,4 @@ export interface PricesPage_AdminPanelLifeCycle {
|
||||
blogs?: AdminPanelRelationPropertyModification<YogaBlogPostsComponent_Plain>;
|
||||
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
|
||||
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
|
||||
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
|
||||
}
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
// Interface automatically generated by schemas-to-ts
|
||||
|
||||
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter } from './yoga-footer';
|
||||
import { YogaCommon } from './yoga-common';
|
||||
import { YogaSingleService } from './yoga-single-service';
|
||||
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter_Plain } from './yoga-footer';
|
||||
import { YogaCommon_Plain } from './yoga-common';
|
||||
import { YogaSingleService_Plain } from './yoga-single-service';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
export interface ServiceListPage {
|
||||
id: number;
|
||||
attributes: {
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
subscribeNow?: { data: YogaSubscribeNowComponent };
|
||||
footer?: { data: YogaFooter };
|
||||
common?: { data: YogaCommon };
|
||||
services: { data: YogaSingleService[] };
|
||||
};
|
||||
}
|
||||
export interface ServiceListPage_Plain {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
subscribeNow?: YogaSubscribeNowComponent_Plain;
|
||||
footer?: YogaFooter_Plain;
|
||||
common?: YogaCommon_Plain;
|
||||
services: YogaSingleService_Plain[];
|
||||
}
|
||||
|
||||
export interface ServiceListPage_NoRelations {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
subscribeNow?: number;
|
||||
footer?: number;
|
||||
common?: number;
|
||||
services: number[];
|
||||
}
|
||||
|
||||
export interface ServiceListPage_AdminPanelLifeCycle {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
subscribeNow?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
|
||||
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
|
||||
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
|
||||
services: AdminPanelRelationPropertyModification<YogaSingleService_Plain>;
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
// Interface automatically generated by schemas-to-ts
|
||||
|
||||
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter } from './yoga-footer';
|
||||
import { YogaCommon } from './yoga-common';
|
||||
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter_Plain } from './yoga-footer';
|
||||
import { YogaCommon_Plain } from './yoga-common';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
export interface ServicePage {
|
||||
id: number;
|
||||
attributes: {
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
subscribeNow?: { data: YogaSubscribeNowComponent };
|
||||
footer?: { data: YogaFooter };
|
||||
common?: { data: YogaCommon };
|
||||
};
|
||||
}
|
||||
export interface ServicePage_Plain {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
subscribeNow?: YogaSubscribeNowComponent_Plain;
|
||||
footer?: YogaFooter_Plain;
|
||||
common?: YogaCommon_Plain;
|
||||
}
|
||||
|
||||
export interface ServicePage_NoRelations {
|
||||
id: number;
|
||||
createdAt: Date; updatedAt: Date; publishedAt?: Date; header?: string;
|
||||
description?: string;
|
||||
subscribeNow?: number;
|
||||
footer?: number;
|
||||
common?: 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>;
|
||||
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
|
||||
}
|
||||
@@ -7,7 +7,6 @@ import { YogaCustomerFeedbackComponent } from './yoga-customer-feedback-componen
|
||||
import { YogaBlogPostsComponent } from './yoga-blog-posts-component';
|
||||
import { YogaSubscribeNowComponent } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter } from './yoga-footer';
|
||||
import { YogaCommon } from './yoga-common';
|
||||
import { YogaOurServicesComponent_Plain } from './yoga-our-services-component';
|
||||
import { YogaContactUs_Plain } from './yoga-contact-us';
|
||||
import { YogaSpecialitiesComponent_Plain } from './yoga-specialities-component';
|
||||
@@ -15,7 +14,6 @@ import { YogaCustomerFeedbackComponent_Plain } from './yoga-customer-feedback-co
|
||||
import { YogaBlogPostsComponent_Plain } from './yoga-blog-posts-component';
|
||||
import { YogaSubscribeNowComponent_Plain } from './yoga-subscribe-now-component';
|
||||
import { YogaFooter_Plain } from './yoga-footer';
|
||||
import { YogaCommon_Plain } from './yoga-common';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
export interface ServicesPage {
|
||||
@@ -31,7 +29,6 @@ export interface ServicesPage {
|
||||
subscribe?: { data: YogaSubscribeNowComponent };
|
||||
footer?: { data: YogaFooter };
|
||||
title?: string;
|
||||
common?: { data: YogaCommon };
|
||||
};
|
||||
}
|
||||
export interface ServicesPage_Plain {
|
||||
@@ -46,7 +43,6 @@ export interface ServicesPage_Plain {
|
||||
subscribe?: YogaSubscribeNowComponent_Plain;
|
||||
footer?: YogaFooter_Plain;
|
||||
title?: string;
|
||||
common?: YogaCommon_Plain;
|
||||
}
|
||||
|
||||
export interface ServicesPage_NoRelations {
|
||||
@@ -61,7 +57,6 @@ export interface ServicesPage_NoRelations {
|
||||
subscribe?: number;
|
||||
footer?: number;
|
||||
title?: string;
|
||||
common?: number;
|
||||
}
|
||||
|
||||
export interface ServicesPage_AdminPanelLifeCycle {
|
||||
@@ -76,5 +71,4 @@ export interface ServicesPage_AdminPanelLifeCycle {
|
||||
subscribe?: AdminPanelRelationPropertyModification<YogaSubscribeNowComponent_Plain>;
|
||||
footer?: AdminPanelRelationPropertyModification<YogaFooter_Plain>;
|
||||
title?: string;
|
||||
common?: AdminPanelRelationPropertyModification<YogaCommon_Plain>;
|
||||
}
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
// 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;
|
||||
}
|
||||
@@ -1,11 +1,8 @@
|
||||
// Interface automatically generated by schemas-to-ts
|
||||
|
||||
import { Link } from '../components/yoga-site/Link';
|
||||
import { Media } from '../components/shared/Media';
|
||||
import { Link_Plain } from '../components/yoga-site/Link';
|
||||
import { Media_Plain } from '../components/shared/Media';
|
||||
import { Link_NoRelations } from '../components/yoga-site/Link';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
export interface YogaFooter {
|
||||
id: number;
|
||||
@@ -20,7 +17,6 @@ export interface YogaFooter {
|
||||
contactUsLocation?: Link;
|
||||
copyRight?: string;
|
||||
name?: string;
|
||||
logo?: { data: Media };
|
||||
};
|
||||
}
|
||||
export interface YogaFooter_Plain {
|
||||
@@ -35,7 +31,6 @@ export interface YogaFooter_Plain {
|
||||
contactUsLocation?: Link_Plain;
|
||||
copyRight?: string;
|
||||
name?: string;
|
||||
logo?: Media_Plain;
|
||||
}
|
||||
|
||||
export interface YogaFooter_NoRelations {
|
||||
@@ -50,7 +45,6 @@ export interface YogaFooter_NoRelations {
|
||||
contactUsLocation?: Link_NoRelations;
|
||||
copyRight?: string;
|
||||
name?: string;
|
||||
logo?: number;
|
||||
}
|
||||
|
||||
export interface YogaFooter_AdminPanelLifeCycle {
|
||||
@@ -65,5 +59,4 @@ export interface YogaFooter_AdminPanelLifeCycle {
|
||||
contactUsLocation?: Link_Plain;
|
||||
copyRight?: string;
|
||||
name?: string;
|
||||
logo?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
}
|
||||
|
||||
@@ -14,8 +14,6 @@ export interface YogaPrice {
|
||||
price?: number;
|
||||
icon?: { data: Media };
|
||||
image?: { data: Media };
|
||||
pricePostfix?: string;
|
||||
description?: string;
|
||||
};
|
||||
}
|
||||
export interface YogaPrice_Plain {
|
||||
@@ -27,8 +25,6 @@ export interface YogaPrice_Plain {
|
||||
price?: number;
|
||||
icon?: Media_Plain;
|
||||
image?: Media_Plain;
|
||||
pricePostfix?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface YogaPrice_NoRelations {
|
||||
@@ -40,8 +36,6 @@ export interface YogaPrice_NoRelations {
|
||||
price?: number;
|
||||
icon?: number;
|
||||
image?: number;
|
||||
pricePostfix?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export interface YogaPrice_AdminPanelLifeCycle {
|
||||
@@ -53,6 +47,4 @@ export interface YogaPrice_AdminPanelLifeCycle {
|
||||
price?: number;
|
||||
icon?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
pricePostfix?: string;
|
||||
description?: string;
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@ export interface YogaSingleService {
|
||||
image?: { data: Media };
|
||||
imageAlt?: string;
|
||||
name?: string;
|
||||
article?: any;
|
||||
article?: string;
|
||||
locale: string;
|
||||
localizations?: { data: YogaSingleService[] };
|
||||
};
|
||||
@@ -26,7 +26,7 @@ export interface YogaSingleService_Plain {
|
||||
image?: Media_Plain;
|
||||
imageAlt?: string;
|
||||
name?: string;
|
||||
article?: any;
|
||||
article?: string;
|
||||
locale: string;
|
||||
localizations?: YogaSingleService_Plain[];
|
||||
}
|
||||
@@ -39,7 +39,7 @@ export interface YogaSingleService_NoRelations {
|
||||
image?: number;
|
||||
imageAlt?: string;
|
||||
name?: string;
|
||||
article?: any;
|
||||
article?: string;
|
||||
locale: string;
|
||||
localizations?: YogaSingleService[];
|
||||
}
|
||||
@@ -52,7 +52,7 @@ export interface YogaSingleService_AdminPanelLifeCycle {
|
||||
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
imageAlt?: string;
|
||||
name?: string;
|
||||
article?: any;
|
||||
article?: string;
|
||||
locale: string;
|
||||
localizations?: YogaSingleService[];
|
||||
}
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
// Interface automatically generated by schemas-to-ts
|
||||
|
||||
import { YogaSingleSpeciality } from './yoga-single-speciality';
|
||||
import { Media } from '../components/shared/Media';
|
||||
import { YogaSingleSpeciality_Plain } from './yoga-single-speciality';
|
||||
import { Media_Plain } from '../components/shared/Media';
|
||||
import { AdminPanelRelationPropertyModification } from '../common/AdminPanelRelationPropertyModification';
|
||||
|
||||
export interface YogaSpecialitiesComponent {
|
||||
@@ -21,7 +19,6 @@ export interface YogaSpecialitiesComponent {
|
||||
right2?: { data: YogaSingleSpeciality };
|
||||
right3?: { data: YogaSingleSpeciality };
|
||||
right4?: { data: YogaSingleSpeciality };
|
||||
image?: { data: Media };
|
||||
locale: string;
|
||||
localizations?: { data: YogaSpecialitiesComponent[] };
|
||||
};
|
||||
@@ -40,7 +37,6 @@ export interface YogaSpecialitiesComponent_Plain {
|
||||
right2?: YogaSingleSpeciality_Plain;
|
||||
right3?: YogaSingleSpeciality_Plain;
|
||||
right4?: YogaSingleSpeciality_Plain;
|
||||
image?: Media_Plain;
|
||||
locale: string;
|
||||
localizations?: YogaSpecialitiesComponent_Plain[];
|
||||
}
|
||||
@@ -59,7 +55,6 @@ export interface YogaSpecialitiesComponent_NoRelations {
|
||||
right2?: number;
|
||||
right3?: number;
|
||||
right4?: number;
|
||||
image?: number;
|
||||
locale: string;
|
||||
localizations?: YogaSpecialitiesComponent[];
|
||||
}
|
||||
@@ -78,7 +73,6 @@ export interface YogaSpecialitiesComponent_AdminPanelLifeCycle {
|
||||
right2?: AdminPanelRelationPropertyModification<YogaSingleSpeciality_Plain>;
|
||||
right3?: AdminPanelRelationPropertyModification<YogaSingleSpeciality_Plain>;
|
||||
right4?: AdminPanelRelationPropertyModification<YogaSingleSpeciality_Plain>;
|
||||
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
locale: string;
|
||||
localizations?: YogaSpecialitiesComponent[];
|
||||
}
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
// 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 YogaSubscribeNowComponent {
|
||||
id: number;
|
||||
attributes: {
|
||||
@@ -11,7 +7,6 @@ export interface YogaSubscribeNowComponent {
|
||||
header?: string;
|
||||
placeHolderEmail?: string;
|
||||
buttonSubscribeLabel?: string;
|
||||
image?: { data: Media };
|
||||
};
|
||||
}
|
||||
export interface YogaSubscribeNowComponent_Plain {
|
||||
@@ -20,7 +15,6 @@ export interface YogaSubscribeNowComponent_Plain {
|
||||
header?: string;
|
||||
placeHolderEmail?: string;
|
||||
buttonSubscribeLabel?: string;
|
||||
image?: Media_Plain;
|
||||
}
|
||||
|
||||
export interface YogaSubscribeNowComponent_NoRelations {
|
||||
@@ -29,7 +23,6 @@ export interface YogaSubscribeNowComponent_NoRelations {
|
||||
header?: string;
|
||||
placeHolderEmail?: string;
|
||||
buttonSubscribeLabel?: string;
|
||||
image?: number;
|
||||
}
|
||||
|
||||
export interface YogaSubscribeNowComponent_AdminPanelLifeCycle {
|
||||
@@ -38,5 +31,4 @@ export interface YogaSubscribeNowComponent_AdminPanelLifeCycle {
|
||||
header?: string;
|
||||
placeHolderEmail?: string;
|
||||
buttonSubscribeLabel?: string;
|
||||
image?: AdminPanelRelationPropertyModification<Media_Plain>;
|
||||
}
|
||||
|
||||
@@ -65,11 +65,6 @@
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-achivements-component.yoga-achivements-component"
|
||||
},
|
||||
"common": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-common.yoga-common"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,11 +37,6 @@
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-footer.yoga-footer"
|
||||
},
|
||||
"common": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-common.yoga-common"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,11 +42,6 @@
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-footer.yoga-footer"
|
||||
},
|
||||
"common": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-common.yoga-common"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,11 +20,7 @@
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": false,
|
||||
"allowedTypes": [
|
||||
"images",
|
||||
"files",
|
||||
"videos"
|
||||
]
|
||||
"allowedTypes": ["images", "files", "videos"]
|
||||
},
|
||||
"siteDescription": {
|
||||
"type": "text",
|
||||
@@ -34,17 +30,6 @@
|
||||
"type": "component",
|
||||
"repeatable": false,
|
||||
"component": "shared.seo"
|
||||
},
|
||||
"logoImage": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": false,
|
||||
"allowedTypes": [
|
||||
"images",
|
||||
"files",
|
||||
"videos",
|
||||
"audios"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,11 +65,6 @@
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-main-header-component.yoga-main-header-component"
|
||||
},
|
||||
"common": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-common.yoga-common"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,8 +4,7 @@
|
||||
"info": {
|
||||
"singularName": "prices-page",
|
||||
"pluralName": "prices-pages",
|
||||
"displayName": "PricesPage",
|
||||
"description": ""
|
||||
"displayName": "PricesPage"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
@@ -42,11 +41,6 @@
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-footer.yoga-footer"
|
||||
},
|
||||
"common": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-common.yoga-common"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
{
|
||||
"kind": "singleType",
|
||||
"collectionName": "service_list_pages",
|
||||
"info": {
|
||||
"singularName": "service-list-page",
|
||||
"pluralName": "service-list-pages",
|
||||
"displayName": "ServiceListPage"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"common": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-common.yoga-common"
|
||||
},
|
||||
"services": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::yoga-single-service.yoga-single-service"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
/**
|
||||
* service-list-page controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::service-list-page.service-list-page');
|
||||
@@ -1,7 +0,0 @@
|
||||
/**
|
||||
* service-list-page router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::service-list-page.service-list-page');
|
||||
@@ -1,7 +0,0 @@
|
||||
/**
|
||||
* service-list-page service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::service-list-page.service-list-page');
|
||||
@@ -1,36 +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"
|
||||
},
|
||||
"common": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-common.yoga-common"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -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');
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user