Added rein-emblems
This commit is contained in:
parent
74ce2e6236
commit
b2d48af933
|
@ -19,7 +19,7 @@
|
|||
},
|
||||
"thumbnail": {
|
||||
"type": "media",
|
||||
"multiple": true,
|
||||
"multiple": false,
|
||||
"required": false,
|
||||
"allowedTypes": [
|
||||
"images"
|
||||
|
@ -30,6 +30,19 @@
|
|||
"type": "component",
|
||||
"repeatable": true,
|
||||
"component": "translations.rein-costumes"
|
||||
},
|
||||
"sprite": {
|
||||
"allowedTypes": [
|
||||
"images"
|
||||
],
|
||||
"type": "media",
|
||||
"multiple": false
|
||||
},
|
||||
"emblem": {
|
||||
"type": "relation",
|
||||
"relation": "manyToOne",
|
||||
"target": "api::rein-emblem.rein-emblem",
|
||||
"inversedBy": "costumes"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"kind": "collectionType",
|
||||
"collectionName": "rein_emblems",
|
||||
"info": {
|
||||
"singularName": "rein-emblem",
|
||||
"pluralName": "rein-emblems",
|
||||
"displayName": "⬜ Re[in] Emblems",
|
||||
"description": ""
|
||||
},
|
||||
"options": {
|
||||
"draftAndPublish": false
|
||||
},
|
||||
"attributes": {
|
||||
"slug": {
|
||||
"type": "string",
|
||||
"required": true,
|
||||
"unique": true,
|
||||
"regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
|
||||
},
|
||||
"translations": {
|
||||
"displayName": "Rein Emblems",
|
||||
"type": "component",
|
||||
"repeatable": true,
|
||||
"component": "translations.rein-emblems",
|
||||
"required": false
|
||||
},
|
||||
"costumes": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::rein-costume.rein-costume",
|
||||
"mappedBy": "emblem"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
/**
|
||||
* rein-emblem controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::rein-emblem.rein-emblem');
|
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
/**
|
||||
* rein-emblem router
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::rein-emblem.rein-emblem');
|
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
/**
|
||||
* rein-emblem service
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::rein-emblem.rein-emblem');
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"collectionName": "components_translations_rein_emblems",
|
||||
"info": {
|
||||
"displayName": "Rein Emblems",
|
||||
"description": ""
|
||||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"name": {
|
||||
"type": "string",
|
||||
"required": true
|
||||
},
|
||||
"description": {
|
||||
"type": "text",
|
||||
"required": true
|
||||
},
|
||||
"language": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::language.language"
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue