[yoga-11] add common type and add logo

This commit is contained in:
Roland Schneider
2025-06-08 20:51:52 +02:00
parent 90a7dbf827
commit ca60a9a2f4
44 changed files with 390 additions and 24 deletions

View File

@@ -65,6 +65,11 @@
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-achivements-component.yoga-achivements-component"
},
"common": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-common.yoga-common"
}
}
}

View File

@@ -37,6 +37,11 @@
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-footer.yoga-footer"
},
"common": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-common.yoga-common"
}
}
}

View File

@@ -42,6 +42,11 @@
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-footer.yoga-footer"
},
"common": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-common.yoga-common"
}
}
}

View File

@@ -20,7 +20,11 @@
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": ["images", "files", "videos"]
"allowedTypes": [
"images",
"files",
"videos"
]
},
"siteDescription": {
"type": "text",
@@ -30,6 +34,17 @@
"type": "component",
"repeatable": false,
"component": "shared.seo"
},
"logoImage": {
"type": "media",
"multiple": false,
"required": false,
"allowedTypes": [
"images",
"files",
"videos",
"audios"
]
}
}
}

View File

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

View File

@@ -26,6 +26,11 @@
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-footer.yoga-footer"
},
"common": {
"type": "relation",
"relation": "oneToOne",
"target": "api::yoga-common.yoga-common"
}
}
}

View File

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

View File

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

View File

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

View File

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

View File

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