diff --git a/src/api/rein-costume/content-types/rein-costume/schema.json b/src/api/rein-costume/content-types/rein-costume/schema.json new file mode 100644 index 0000000..f105221 --- /dev/null +++ b/src/api/rein-costume/content-types/rein-costume/schema.json @@ -0,0 +1,35 @@ +{ + "kind": "collectionType", + "collectionName": "rein_costumes", + "info": { + "singularName": "rein-costume", + "pluralName": "rein-costumes", + "displayName": "⬜ Re[in] Costumes", + "description": "" + }, + "options": { + "draftAndPublish": false + }, + "attributes": { + "slug": { + "type": "string", + "required": true, + "unique": true, + "regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$" + }, + "thumbnail": { + "type": "media", + "multiple": true, + "required": false, + "allowedTypes": [ + "images" + ] + }, + "translations": { + "displayName": "Rein Costumes", + "type": "component", + "repeatable": true, + "component": "translations.rein-costumes" + } + } +} diff --git a/src/api/rein-costume/controllers/rein-costume.js b/src/api/rein-costume/controllers/rein-costume.js new file mode 100644 index 0000000..c64fb5e --- /dev/null +++ b/src/api/rein-costume/controllers/rein-costume.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * rein-costume controller + */ + +const { createCoreController } = require('@strapi/strapi').factories; + +module.exports = createCoreController('api::rein-costume.rein-costume'); diff --git a/src/api/rein-costume/routes/rein-costume.js b/src/api/rein-costume/routes/rein-costume.js new file mode 100644 index 0000000..e862066 --- /dev/null +++ b/src/api/rein-costume/routes/rein-costume.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * rein-costume router + */ + +const { createCoreRouter } = require('@strapi/strapi').factories; + +module.exports = createCoreRouter('api::rein-costume.rein-costume'); diff --git a/src/api/rein-costume/services/rein-costume.js b/src/api/rein-costume/services/rein-costume.js new file mode 100644 index 0000000..b226490 --- /dev/null +++ b/src/api/rein-costume/services/rein-costume.js @@ -0,0 +1,9 @@ +'use strict'; + +/** + * rein-costume service + */ + +const { createCoreService } = require('@strapi/strapi').factories; + +module.exports = createCoreService('api::rein-costume.rein-costume'); diff --git a/src/api/weapon-story-group/content-types/weapon-story-group/schema.json b/src/api/weapon-story-group/content-types/weapon-story-group/schema.json index 1c1b3ce..0093078 100644 --- a/src/api/weapon-story-group/content-types/weapon-story-group/schema.json +++ b/src/api/weapon-story-group/content-types/weapon-story-group/schema.json @@ -23,6 +23,18 @@ "required": true, "unique": true, "regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$" + }, + "subgroups": { + "type": "relation", + "relation": "oneToMany", + "target": "api::weapon-story-group.weapon-story-group", + "mappedBy": "subgroup_of" + }, + "subgroup_of": { + "type": "relation", + "relation": "manyToOne", + "target": "api::weapon-story-group.weapon-story-group", + "inversedBy": "subgroups" } } } diff --git a/src/api/weapon-story/content-types/weapon-story/schema.json b/src/api/weapon-story/content-types/weapon-story/schema.json index fa42d2f..cc2a2a5 100644 --- a/src/api/weapon-story/content-types/weapon-story/schema.json +++ b/src/api/weapon-story/content-types/weapon-story/schema.json @@ -20,7 +20,7 @@ }, "slug": { "type": "string", - "required": false, + "required": true, "unique": true, "regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$" }, diff --git a/src/api/website-interface/content-types/website-interface/schema.json b/src/api/website-interface/content-types/website-interface/schema.json index 9a5a3e3..f96f826 100644 --- a/src/api/website-interface/content-types/website-interface/schema.json +++ b/src/api/website-interface/content-types/website-interface/schema.json @@ -543,6 +543,21 @@ }, "variant_of_x": { "type": "string" + }, + "dark_mode_extension_warning": { + "type": "text" + }, + "weapon": { + "type": "string" + }, + "weapons_description": { + "type": "string" + }, + "story_x": { + "type": "string" + }, + "level_x": { + "type": "string" } } } diff --git a/src/components/translations/rein-costumes.json b/src/components/translations/rein-costumes.json new file mode 100644 index 0000000..8b6fe10 --- /dev/null +++ b/src/components/translations/rein-costumes.json @@ -0,0 +1,23 @@ +{ + "collectionName": "components_translations_rein_costumes", + "info": { + "displayName": "Rein Costumes", + "description": "" + }, + "options": {}, + "attributes": { + "language": { + "type": "relation", + "relation": "oneToOne", + "target": "api::language.language" + }, + "name": { + "type": "string", + "required": true + }, + "description": { + "type": "text", + "required": true + } + } +}