convert about types from component to collection-type

This commit is contained in:
Schneider Roland
2025-01-19 21:57:33 +01:00
parent 741dd19588
commit c706a4c7d2
80 changed files with 2428 additions and 630 deletions

View File

@@ -26,37 +26,35 @@
}
}
},
"ourServices": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "yoga-site.our-services-component",
"required": true
"contactUs": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-contact-us.yoga-contact-us"
},
"aboutUs": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "yoga-site.about-us",
"required": true
"prices": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-price-component.yoga-price-component"
},
"ourSpecialities": {
"type": "component",
"repeatable": false,
"pluginOptions": {
"i18n": {
"localized": true
}
},
"component": "yoga-site.our-specialities-component"
"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"
}
}
}

View File

@@ -1,38 +0,0 @@
{
"kind": "collectionType",
"collectionName": "cars",
"info": {
"singularName": "car",
"pluralName": "cars",
"displayName": "car",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string"
},
"description": {
"type": "text"
},
"image": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images",
"files",
"videos",
"audios"
]
},
"myquote": {
"type": "component",
"repeatable": true,
"component": "shared.quote"
}
}
}

View File

@@ -1,7 +0,0 @@
/**
* car controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::car.car');

View File

@@ -1,7 +0,0 @@
/**
* car router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::car.car');

View File

@@ -1,7 +0,0 @@
/**
* car service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::car.car');

View File

@@ -0,0 +1,90 @@
{
"kind": "collectionType",
"collectionName": "yoga_about_us_components",
"info": {
"singularName": "yoga-about-us-component",
"pluralName": "yoga-about-us-components",
"displayName": "YogaAboutUsComponent",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"title": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"header": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"description": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "text"
},
"content": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "text"
},
"buttonText": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"image": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images",
"files"
],
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"name": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"buttonLink": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
}
}
}

View File

@@ -0,0 +1,7 @@
/**
* yoga-about-us-component controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::yoga-about-us-component.yoga-about-us-component');

View File

@@ -0,0 +1,7 @@
/**
* yoga-about-us-component router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::yoga-about-us-component.yoga-about-us-component');

View File

@@ -0,0 +1,7 @@
/**
* yoga-about-us-component service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::yoga-about-us-component.yoga-about-us-component');

View File

@@ -0,0 +1,83 @@
{
"kind": "collectionType",
"collectionName": "yoga_contact_uses",
"info": {
"singularName": "yoga-contact-us",
"pluralName": "yoga-contact-uses",
"displayName": "YogaContactUs"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"title": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"header": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"firstName": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"lastName": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"phone": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"email": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"message": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "text"
},
"buttonText": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
}
}
}

View File

@@ -0,0 +1,7 @@
/**
* yoga-contact-us controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::yoga-contact-us.yoga-contact-us');

View File

@@ -0,0 +1,7 @@
/**
* yoga-contact-us router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::yoga-contact-us.yoga-contact-us');

View File

@@ -0,0 +1,7 @@
/**
* yoga-contact-us service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::yoga-contact-us.yoga-contact-us');

View File

@@ -0,0 +1,23 @@
{
"kind": "collectionType",
"collectionName": "yoga_customer_feedback_components",
"info": {
"singularName": "yoga-customer-feedback-component",
"pluralName": "yoga-customer-feedback-components",
"displayName": "YogaCustomerFeedbackComponent"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string"
},
"feedbacks": {
"type": "relation",
"relation": "oneToMany",
"target": "api::yoga-customer-feedback.yoga-customer-feedback"
}
}
}

View File

@@ -0,0 +1,7 @@
/**
* yoga-customer-feedback-component controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::yoga-customer-feedback-component.yoga-customer-feedback-component');

View File

@@ -0,0 +1,7 @@
/**
* yoga-customer-feedback-component router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::yoga-customer-feedback-component.yoga-customer-feedback-component');

View File

@@ -0,0 +1,7 @@
/**
* yoga-customer-feedback-component service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::yoga-customer-feedback-component.yoga-customer-feedback-component');

View File

@@ -0,0 +1,37 @@
{
"kind": "collectionType",
"collectionName": "yoga_customer_feedbacks",
"info": {
"singularName": "yoga-customer-feedback",
"pluralName": "yoga-customer-feedbacks",
"displayName": "YogaCustomerFeedback"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string"
},
"customerName": {
"type": "string"
},
"feedback": {
"type": "text"
},
"customerImage": {
"allowedTypes": [
"images",
"files",
"videos",
"audios"
],
"type": "media",
"multiple": false
},
"customerDescription": {
"type": "string"
}
}
}

View File

@@ -0,0 +1,7 @@
/**
* yoga-customer-feedback controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::yoga-customer-feedback.yoga-customer-feedback');

View File

@@ -0,0 +1,7 @@
/**
* yoga-customer-feedback router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::yoga-customer-feedback.yoga-customer-feedback');

View File

@@ -0,0 +1,7 @@
/**
* yoga-customer-feedback service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::yoga-customer-feedback.yoga-customer-feedback');

View File

@@ -0,0 +1,57 @@
{
"kind": "collectionType",
"collectionName": "yoga_our_services_components",
"info": {
"singularName": "yoga-our-services-component",
"pluralName": "yoga-our-services-components",
"displayName": "YogaOurServicesComponent",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"title": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"header": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"description": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "text"
},
"services": {
"type": "relation",
"relation": "oneToMany",
"target": "api::yoga-single-service.yoga-single-service"
},
"name": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
}
}
}

View File

@@ -0,0 +1,7 @@
/**
* yoga-our-services-component controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::yoga-our-services-component.yoga-our-services-component');

View File

@@ -0,0 +1,7 @@
/**
* yoga-our-services-component router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::yoga-our-services-component.yoga-our-services-component');

View File

@@ -0,0 +1,7 @@
/**
* yoga-our-services-component service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::yoga-our-services-component.yoga-our-services-component');

View File

@@ -0,0 +1,49 @@
{
"kind": "collectionType",
"collectionName": "yoga_price_components",
"info": {
"singularName": "yoga-price-component",
"pluralName": "yoga-price-components",
"displayName": "YogaPriceComponent",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"title": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"header": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"description": {
"type": "text",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"prices": {
"type": "relation",
"relation": "oneToMany",
"target": "api::yoga-price.yoga-price"
}
}
}

View File

@@ -0,0 +1,7 @@
/**
* yoga-price-component controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::yoga-price-component.yoga-price-component');

View File

@@ -0,0 +1,7 @@
/**
* yoga-price-component router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::yoga-price-component.yoga-price-component');

View File

@@ -0,0 +1,7 @@
/**
* yoga-price-component service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::yoga-price-component.yoga-price-component');

View File

@@ -0,0 +1,50 @@
{
"kind": "collectionType",
"collectionName": "yoga_prices",
"info": {
"singularName": "yoga-price",
"pluralName": "yoga-prices",
"displayName": "YogaPrice"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {},
"attributes": {
"header": {
"type": "string"
},
"option1": {
"type": "string"
},
"option2": {
"type": "string"
},
"buttonText": {
"type": "string"
},
"price": {
"type": "integer"
},
"icon": {
"allowedTypes": [
"images",
"files",
"videos",
"audios"
],
"type": "media",
"multiple": false
},
"image": {
"allowedTypes": [
"images",
"files",
"videos",
"audios"
],
"type": "media",
"multiple": false
}
}
}

View File

@@ -0,0 +1,7 @@
/**
* yoga-price controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::yoga-price.yoga-price');

View File

@@ -0,0 +1,7 @@
/**
* yoga-price router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::yoga-price.yoga-price');

View File

@@ -0,0 +1,7 @@
/**
* yoga-price service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::yoga-price.yoga-price');

View File

@@ -0,0 +1,74 @@
{
"kind": "collectionType",
"collectionName": "yoga_single_services",
"info": {
"singularName": "yoga-single-service",
"pluralName": "yoga-single-services",
"displayName": "YogaSingleService"
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"header": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"description": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "text"
},
"buttonLink": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"image": {
"allowedTypes": [
"images",
"files",
"videos",
"audios"
],
"type": "media",
"multiple": false,
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"imageAlt": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
},
"name": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string"
}
}
}

View File

@@ -0,0 +1,7 @@
/**
* yoga-single-service controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::yoga-single-service.yoga-single-service');

View File

@@ -0,0 +1,7 @@
/**
* yoga-single-service router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::yoga-single-service.yoga-single-service');

View File

@@ -0,0 +1,7 @@
/**
* yoga-single-service service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::yoga-single-service.yoga-single-service');

View File

@@ -0,0 +1,46 @@
{
"kind": "collectionType",
"collectionName": "yoga_single_specialities",
"info": {
"singularName": "yoga-single-speciality",
"pluralName": "yoga-single-specialities",
"displayName": "YogaSingleSpeciality",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"title": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"description": {
"type": "text",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"name": {
"pluginOptions": {
"i18n": {
"localized": true
}
},
"type": "string",
"required": true,
"unique": true
}
}
}

View File

@@ -0,0 +1,7 @@
/**
* yoga-single-speciality controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::yoga-single-speciality.yoga-single-speciality');

View File

@@ -0,0 +1,7 @@
/**
* yoga-single-speciality router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::yoga-single-speciality.yoga-single-speciality');

View File

@@ -0,0 +1,7 @@
/**
* yoga-single-speciality service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::yoga-single-speciality.yoga-single-speciality');

View File

@@ -0,0 +1,92 @@
{
"kind": "collectionType",
"collectionName": "yoga_specialities_components",
"info": {
"singularName": "yoga-specialities-component",
"pluralName": "yoga-specialities-components",
"displayName": "YogaSpecialitiesComponent",
"description": ""
},
"options": {
"draftAndPublish": true
},
"pluginOptions": {
"i18n": {
"localized": true
}
},
"attributes": {
"title": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"header": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"description": {
"type": "text",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"name": {
"type": "string",
"pluginOptions": {
"i18n": {
"localized": true
}
}
},
"left1": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-single-speciality.yoga-single-speciality"
},
"left2": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-single-speciality.yoga-single-speciality"
},
"left3": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-single-speciality.yoga-single-speciality"
},
"left4": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-single-speciality.yoga-single-speciality"
},
"right1": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-single-speciality.yoga-single-speciality"
},
"right2": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-single-speciality.yoga-single-speciality"
},
"right3": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-single-speciality.yoga-single-speciality"
},
"right4": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-single-speciality.yoga-single-speciality"
}
}
}

View File

@@ -0,0 +1,7 @@
/**
* yoga-specialities-component controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('api::yoga-specialities-component.yoga-specialities-component');

View File

@@ -0,0 +1,7 @@
/**
* yoga-specialities-component router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('api::yoga-specialities-component.yoga-specialities-component');

View File

@@ -0,0 +1,7 @@
/**
* yoga-specialities-component service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('api::yoga-specialities-component.yoga-specialities-component');

View File

@@ -1,27 +0,0 @@
{
"collectionName": "components_yoga_site_aboutuses",
"info": {
"displayName": "aboutUs"
},
"options": {},
"attributes": {
"title": {
"type": "string"
},
"header": {
"type": "string"
},
"description": {
"type": "text"
},
"content": {
"type": "text"
},
"buttonLabel": {
"type": "string"
},
"buttonLink": {
"type": "string"
}
}
}

View File

@@ -1,59 +0,0 @@
{
"collectionName": "components_yoga_site_our_specialities_components",
"info": {
"displayName": "OurSpecialitiesComponent",
"description": ""
},
"options": {},
"attributes": {
"title": {
"type": "string"
},
"header": {
"type": "string"
},
"description": {
"type": "text"
},
"specialityLeft1": {
"type": "component",
"repeatable": false,
"component": "shared.title-description"
},
"specialityLeft2": {
"type": "component",
"repeatable": false,
"component": "shared.title-description"
},
"specialityLeft3": {
"type": "component",
"repeatable": false,
"component": "shared.title-description"
},
"specialityLeft4": {
"type": "component",
"repeatable": false,
"component": "shared.title-description"
},
"specialityRight1": {
"type": "component",
"repeatable": false,
"component": "shared.title-description"
},
"specialityRight2": {
"type": "component",
"repeatable": false,
"component": "shared.title-description"
},
"specialityRight3": {
"type": "component",
"repeatable": false,
"component": "shared.title-description"
},
"specialityRight4": {
"type": "component",
"repeatable": false,
"component": "shared.title-description"
}
}
}