Added further translation systems

This commit is contained in:
DrMint 2022-02-12 11:01:40 +01:00
parent d9eedc05b8
commit 800260263b
16 changed files with 260 additions and 58 deletions

View File

@ -17,6 +17,11 @@
"regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
"unique": true,
"required": true
},
"titles": {
"type": "component",
"repeatable": true,
"component": "translations.simple-title"
}
}
}

View File

@ -17,6 +17,11 @@
"regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
"unique": true,
"required": true
},
"titles": {
"type": "component",
"repeatable": true,
"component": "translations.simple-title"
}
}
}

View File

@ -61,12 +61,6 @@
"pluginOptions": {},
"component": "basics.price"
},
"variants": {
"type": "relation",
"relation": "manyToOne",
"target": "api::library-variant.library-variant",
"inversedBy": "items"
},
"metadata": {
"pluginOptions": {},
"type": "dynamiczone",
@ -75,7 +69,6 @@
"metadata.video",
"metadata.game",
"metadata.audio",
"metadata.merch",
"metadata.other"
],
"max": 1
@ -117,6 +110,22 @@
"type": "component",
"repeatable": false,
"component": "collections-component.library-images"
},
"digital": {
"type": "boolean",
"default": false,
"required": true
},
"primary": {
"type": "boolean",
"default": true,
"required": true
},
"submerchs": {
"type": "relation",
"relation": "manyToMany",
"target": "api::merch-item.merch-item",
"mappedBy": "library_items"
}
}
}

View File

@ -1,22 +0,0 @@
{
"kind": "collectionType",
"collectionName": "library_variants",
"info": {
"singularName": "library-variant",
"pluralName": "library-variants",
"displayName": "🔴 Library Variants",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"items": {
"type": "relation",
"relation": "oneToMany",
"target": "api::library-item.library-item",
"mappedBy": "variants"
}
}
}

View File

@ -1,9 +0,0 @@
'use strict';
/**
* library-variant controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::library-variant.library-variant');

View File

@ -1,9 +0,0 @@
'use strict';
/**
* library-variant router.
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::library-variant.library-variant');

View File

@ -1,9 +0,0 @@
'use strict';
/**
* library-variant service.
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::library-variant.library-variant');

View File

@ -4,7 +4,8 @@
"info": {
"singularName": "merch-item",
"pluralName": "merch-items",
"displayName": "Merch Items"
"displayName": "🔵 Merch Items",
"description": ""
},
"options": {
"draftAndPublish": false
@ -15,6 +16,28 @@
"required": true,
"unique": true,
"regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"library_items": {
"type": "relation",
"relation": "manyToMany",
"target": "api::library-item.library-item",
"inversedBy": "submerchs"
},
"title": {
"type": "string",
"required": true
},
"subtitle": {
"type": "string"
},
"thumbnail": {
"allowedTypes": [
"images",
"files",
"videos"
],
"type": "media",
"multiple": false
}
}
}

View File

@ -16,6 +16,11 @@
"required": true,
"unique": true,
"regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"titles": {
"type": "component",
"repeatable": true,
"component": "translations.simple-title"
}
}
}

View File

@ -17,6 +17,11 @@
"regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
"unique": true,
"required": true
},
"titles": {
"type": "component",
"repeatable": true,
"component": "translations.simple-title"
}
}
}

View File

@ -0,0 +1,152 @@
{
"kind": "collectionType",
"collectionName": "website_interfaces",
"info": {
"singularName": "website-interface",
"pluralName": "website-interfaces",
"displayName": "⚫ Website Interfaces",
"description": ""
},
"options": {
"draftAndPublish": false
},
"attributes": {
"language": {
"type": "relation",
"relation": "oneToOne",
"target": "api::language.language"
},
"main_library": {
"type": "string"
},
"main_library_description": {
"type": "string"
},
"main_hub": {
"type": "string"
},
"main_hub_description": {
"type": "string"
},
"main_chronology": {
"type": "string"
},
"main_chronology_description": {
"type": "string"
},
"main_news": {
"type": "string"
},
"main_data": {
"type": "string"
},
"main_merch": {
"type": "string"
},
"main_gallery": {
"type": "string"
},
"main_archives": {
"type": "string"
},
"main_about_us": {
"type": "string"
},
"main_licensing": {
"type": "text"
},
"main_copyright": {
"type": "text"
},
"library_description": {
"type": "text"
},
"library_item_summary": {
"type": "string"
},
"library_item_gallery": {
"type": "string"
},
"library_item_details": {
"type": "string"
},
"library_item_subitems": {
"type": "string"
},
"library_item_variants": {
"type": "string"
},
"library_item_content": {
"type": "string"
},
"global_return_label": {
"type": "string"
},
"global_subitem_of": {
"type": "string"
},
"global_type": {
"type": "string"
},
"global_width": {
"type": "string"
},
"global_height": {
"type": "string"
},
"global_thickness": {
"type": "string"
},
"global_binding": {
"type": "string"
},
"global_language": {
"type": "string"
},
"global_languages": {
"type": "string"
},
"global_page": {
"type": "string"
},
"global_pages": {
"type": "string"
},
"global_page_order": {
"type": "string"
},
"global_release_date": {
"type": "string"
},
"global_price": {
"type": "string"
},
"library_item_physical_size": {
"type": "string"
},
"library_item_type_information": {
"type": "string"
},
"chronology_description": {
"type": "text"
},
"chronology_timelines": {
"type": "string"
},
"chronology_timelines_description": {
"type": "string"
},
"chronology_overview": {
"type": "string"
},
"chronology_overview_description": {
"type": "string"
},
"chronology_walkthrough": {
"type": "string"
},
"chronology_walkthrough_description": {
"type": "string"
}
}
}

View File

@ -0,0 +1,9 @@
'use strict';
/**
* website-interface controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('api::website-interface.website-interface');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* website-interface router.
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('api::website-interface.website-interface');

View File

@ -0,0 +1,9 @@
'use strict';
/**
* website-interface service.
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('api::website-interface.website-interface');

View File

@ -0,0 +1,20 @@
{
"collectionName": "components_translations_simple_titles",
"info": {
"displayName": "simple-title",
"icon": "align-justify",
"description": ""
},
"options": {},
"attributes": {
"language": {
"type": "relation",
"relation": "oneToOne",
"target": "api::language.language"
},
"title": {
"type": "string",
"required": true
}
}
}

View File

@ -1,7 +1,7 @@
{
"collectionName": "components_translations_titles",
"info": {
"displayName": "title",
"displayName": "tri title",
"icon": "feather",
"description": ""
},