home and about page
This commit is contained in:
@@ -26,36 +26,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"contactUs": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-contact-us.yoga-contact-us"
|
||||
},
|
||||
"prices": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-price-component.yoga-price-component"
|
||||
},
|
||||
"ourSpecialities": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-specialities-component.yoga-specialities-component"
|
||||
},
|
||||
"aboutUs": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-about-us-component.yoga-about-us-component"
|
||||
},
|
||||
"feedbacks": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-customer-feedback-component.yoga-customer-feedback-component"
|
||||
},
|
||||
"ourServices": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-our-services-component.yoga-our-services-component"
|
||||
},
|
||||
"blogs": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
@@ -70,6 +40,31 @@
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-footer.yoga-footer"
|
||||
},
|
||||
"aboutUs": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-about-us-with-boxes-component.yoga-about-us-with-boxes-component"
|
||||
},
|
||||
"discount": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-discount-component.yoga-discount-component"
|
||||
},
|
||||
"ourMission": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-text-with-image-component.yoga-text-with-image-component"
|
||||
},
|
||||
"ourVision": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-text-with-image-component.yoga-text-with-image-component"
|
||||
},
|
||||
"achievements": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-achivements-component.yoga-achivements-component"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
70
yoga-cms/src/api/home/content-types/home/schema.json
Normal file
70
yoga-cms/src/api/home/content-types/home/schema.json
Normal file
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"kind": "singleType",
|
||||
"collectionName": "homes",
|
||||
"info": {
|
||||
"singularName": "home",
|
||||
"pluralName": "homes",
|
||||
"displayName": "Home",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {
|
||||
"i18n": {
|
||||
"localized": true
|
||||
}
|
||||
},
|
||||
"attributes": {
|
||||
"ourServices": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-our-services-component.yoga-our-services-component"
|
||||
},
|
||||
"aboutUs": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-about-us-component.yoga-about-us-component"
|
||||
},
|
||||
"ourSpecialities": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-specialities-component.yoga-specialities-component"
|
||||
},
|
||||
"contactUs": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-contact-us.yoga-contact-us"
|
||||
},
|
||||
"prices": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-price-component.yoga-price-component"
|
||||
},
|
||||
"feedbacks": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-customer-feedback-component.yoga-customer-feedback-component"
|
||||
},
|
||||
"blogs": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-blog-posts-component.yoga-blog-posts-component"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"header": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::yoga-main-header-component.yoga-main-header-component"
|
||||
}
|
||||
}
|
||||
}
|
||||
7
yoga-cms/src/api/home/controllers/home.ts
Normal file
7
yoga-cms/src/api/home/controllers/home.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* home controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::home.home');
|
||||
7
yoga-cms/src/api/home/routes/home.ts
Normal file
7
yoga-cms/src/api/home/routes/home.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* home router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::home.home');
|
||||
7
yoga-cms/src/api/home/services/home.ts
Normal file
7
yoga-cms/src/api/home/services/home.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* home service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::home.home');
|
||||
@@ -0,0 +1,47 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "yoga_about_us_with_boxes_components",
|
||||
"info": {
|
||||
"singularName": "yoga-about-us-with-boxes-component",
|
||||
"pluralName": "yoga-about-us-with-boxes-components",
|
||||
"displayName": "YogaAboutUsWithBoxesComponent",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"header": {
|
||||
"type": "string"
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"box1": {
|
||||
"type": "string"
|
||||
},
|
||||
"box2": {
|
||||
"type": "string"
|
||||
},
|
||||
"box3": {
|
||||
"type": "string"
|
||||
},
|
||||
"box4": {
|
||||
"type": "string"
|
||||
},
|
||||
"image": {
|
||||
"allowedTypes": [
|
||||
"images",
|
||||
"files",
|
||||
"videos",
|
||||
"audios"
|
||||
],
|
||||
"type": "media",
|
||||
"multiple": false
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-about-us-with-boxes-component controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::yoga-about-us-with-boxes-component.yoga-about-us-with-boxes-component');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-about-us-with-boxes-component router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::yoga-about-us-with-boxes-component.yoga-about-us-with-boxes-component');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-about-us-with-boxes-component service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::yoga-about-us-with-boxes-component.yoga-about-us-with-boxes-component');
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "yoga_achivements",
|
||||
"info": {
|
||||
"singularName": "yoga-achivement",
|
||||
"pluralName": "yoga-achivements",
|
||||
"displayName": "YogaAchievements",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"image": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": false,
|
||||
"allowedTypes": [
|
||||
"images",
|
||||
"files",
|
||||
"videos",
|
||||
"audios"
|
||||
]
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-achivement controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::yoga-achivement.yoga-achivement');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-achivement router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::yoga-achivement.yoga-achivement');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-achivement service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::yoga-achivement.yoga-achivement');
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "yoga_achivements_components",
|
||||
"info": {
|
||||
"singularName": "yoga-achivements-component",
|
||||
"pluralName": "yoga-achivements-components",
|
||||
"displayName": "YogaAchievementsComponent",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"header": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"achievements": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::yoga-achivement.yoga-achivement"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-achivements-component controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::yoga-achivements-component.yoga-achivements-component');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-achivements-component router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::yoga-achivements-component.yoga-achivements-component');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-achivements-component service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::yoga-achivements-component.yoga-achivements-component');
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "yoga_discount_components",
|
||||
"info": {
|
||||
"singularName": "yoga-discount-component",
|
||||
"pluralName": "yoga-discount-components",
|
||||
"displayName": "YogaDiscountComponent",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"headerPart1": {
|
||||
"type": "string"
|
||||
},
|
||||
"headerDiscount": {
|
||||
"type": "string"
|
||||
},
|
||||
"headerPart2": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "richtext"
|
||||
},
|
||||
"button": {
|
||||
"type": "component",
|
||||
"repeatable": false,
|
||||
"component": "yoga-site.button",
|
||||
"required": true
|
||||
},
|
||||
"name": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-discount-component controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::yoga-discount-component.yoga-discount-component');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-discount-component router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::yoga-discount-component.yoga-discount-component');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-discount-component service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::yoga-discount-component.yoga-discount-component');
|
||||
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "yoga_main_header_components",
|
||||
"info": {
|
||||
"singularName": "yoga-main-header-component",
|
||||
"pluralName": "yoga-main-header-components",
|
||||
"displayName": "YogaMainHeaderComponent"
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"header": {
|
||||
"type": "string"
|
||||
},
|
||||
"headerIType": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"image": {
|
||||
"allowedTypes": [
|
||||
"images",
|
||||
"files",
|
||||
"videos",
|
||||
"audios"
|
||||
],
|
||||
"type": "media",
|
||||
"multiple": false
|
||||
},
|
||||
"button": {
|
||||
"type": "component",
|
||||
"repeatable": false,
|
||||
"component": "yoga-site.button",
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-main-header-component controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::yoga-main-header-component.yoga-main-header-component');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-main-header-component router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::yoga-main-header-component.yoga-main-header-component');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-main-header-component service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::yoga-main-header-component.yoga-main-header-component');
|
||||
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "yoga_text_with_image_components",
|
||||
"info": {
|
||||
"singularName": "yoga-text-with-image-component",
|
||||
"pluralName": "yoga-text-with-image-components",
|
||||
"displayName": "YogaTextWithImageComponent",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": true
|
||||
},
|
||||
"pluginOptions": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"imagePosition": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"Left",
|
||||
"Right"
|
||||
]
|
||||
},
|
||||
"title": {
|
||||
"type": "string"
|
||||
},
|
||||
"header": {
|
||||
"type": "string"
|
||||
},
|
||||
"description": {
|
||||
"type": "text"
|
||||
},
|
||||
"image": {
|
||||
"type": "media",
|
||||
"multiple": false,
|
||||
"required": true,
|
||||
"allowedTypes": [
|
||||
"images",
|
||||
"files"
|
||||
]
|
||||
},
|
||||
"button": {
|
||||
"type": "component",
|
||||
"repeatable": false,
|
||||
"component": "yoga-site.button",
|
||||
"required": true
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-text-with-image-component controller
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi'
|
||||
|
||||
export default factories.createCoreController('api::yoga-text-with-image-component.yoga-text-with-image-component');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-text-with-image-component router
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreRouter('api::yoga-text-with-image-component.yoga-text-with-image-component');
|
||||
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* yoga-text-with-image-component service
|
||||
*/
|
||||
|
||||
import { factories } from '@strapi/strapi';
|
||||
|
||||
export default factories.createCoreService('api::yoga-text-with-image-component.yoga-text-with-image-component');
|
||||
Reference in New Issue
Block a user