Added all kinds of things

This commit is contained in:
DrMint 2021-12-17 19:22:08 +01:00
parent 2befffdcfe
commit f8bfddb530
37 changed files with 318 additions and 77 deletions

View File

@ -4,7 +4,7 @@
"info": {
"singularName": "category",
"pluralName": "categories",
"displayName": "Category",
"displayName": "Categories",
"description": ""
},
"options": {

View File

@ -4,7 +4,7 @@
"info": {
"singularName": "chronology-era",
"pluralName": "chronology-eras",
"displayName": "Chronology Era",
"displayName": "Chronology Eras",
"description": ""
},
"options": {

View File

@ -4,7 +4,7 @@
"info": {
"singularName": "chronology-item",
"pluralName": "chronology-items",
"displayName": "Chronology Item",
"displayName": "Chronology Items",
"description": ""
},
"options": {
@ -35,10 +35,11 @@
"pluginOptions": {},
"type": "string"
},
"translations": {
"events": {
"displayName": "Event",
"type": "component",
"repeatable": true,
"component": "translations.chronology-item"
"component": "collections-component.event"
}
}
}

View File

@ -4,7 +4,7 @@
"info": {
"singularName": "currency",
"pluralName": "currencies",
"displayName": "Currency",
"displayName": "Currencies",
"description": ""
},
"options": {

View File

@ -4,7 +4,7 @@
"info": {
"singularName": "game-platform",
"pluralName": "game-platforms",
"displayName": "Game Platform",
"displayName": "Game Platforms",
"description": ""
},
"options": {
@ -13,10 +13,12 @@
"pluginOptions": {},
"attributes": {
"name": {
"type": "string"
"type": "string",
"required": true
},
"short": {
"type": "string"
"type": "string",
"required": true
}
}
}

View File

@ -0,0 +1,20 @@
{
"kind": "collectionType",
"collectionName": "glossary_item_types",
"info": {
"singularName": "glossary-item-type",
"pluralName": "glossary-item-types",
"displayName": "Glossary Item Types"
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"type": {
"type": "string",
"required": true,
"unique": true
}
}
}

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@
"info": {
"singularName": "glossary-item",
"pluralName": "glossary-items",
"displayName": "Glossary Item",
"displayName": "Glossary Items",
"description": ""
},
"options": {
@ -12,15 +12,6 @@
},
"pluginOptions": {},
"attributes": {
"type": {
"type": "enumeration",
"enum": [
"Character",
"Place",
"Term",
"Common_noun"
]
},
"title": {
"displayName": "Glossary Item",
"type": "component",
@ -38,6 +29,11 @@
"regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
"unique": true,
"required": true
},
"type": {
"type": "relation",
"relation": "oneToOne",
"target": "api::glossary-item-type.glossary-item-type"
}
}
}

View File

@ -4,7 +4,7 @@
"info": {
"singularName": "language",
"pluralName": "languages",
"displayName": "Language",
"displayName": "Languages",
"description": ""
},
"options": {
@ -23,7 +23,8 @@
"regex": "^[a-z]+-[a-z]+$|^[a-z]+$"
},
"localized_name": {
"type": "string"
"type": "string",
"required": true
}
}
}

View File

@ -4,7 +4,7 @@
"info": {
"singularName": "library-content",
"pluralName": "library-contents",
"displayName": "Library Content",
"displayName": "Library Contents",
"description": ""
},
"options": {
@ -46,7 +46,7 @@
"type": "dynamiczone",
"components": [
"range.page-range",
"range.video-range"
"range.audiovisual-range"
],
"required": true,
"max": 1

View File

@ -4,7 +4,7 @@
"info": {
"singularName": "library-item",
"pluralName": "library-items",
"displayName": "Library Item",
"displayName": "Library Items",
"description": ""
},
"options": {

View File

@ -4,7 +4,7 @@
"info": {
"singularName": "library-variant",
"pluralName": "library-variants",
"displayName": "Library Variant",
"displayName": "Library Variants",
"description": ""
},
"options": {

View File

@ -4,7 +4,7 @@
"info": {
"singularName": "post",
"pluralName": "posts",
"displayName": "Post",
"displayName": "Posts",
"description": ""
},
"options": {

View File

@ -4,7 +4,7 @@
"info": {
"singularName": "recorder",
"pluralName": "recorders",
"displayName": "Recorder",
"displayName": "Recorders",
"description": ""
},
"options": {

View File

@ -4,7 +4,7 @@
"info": {
"singularName": "scan-set",
"pluralName": "scan-sets",
"displayName": "Scan Set",
"displayName": "Scan Sets",
"description": ""
},
"options": {

View File

@ -0,0 +1,30 @@
{
"kind": "collectionType",
"collectionName": "sources",
"info": {
"singularName": "source",
"pluralName": "sources",
"displayName": "Sources",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"source": {
"type": "dynamiczone",
"components": [
"source.url-source",
"source.library-text"
],
"max": 1,
"min": 1,
"required": true
},
"name": {
"type": "string",
"required": false
}
}
}

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@
"info": {
"singularName": "text-set",
"pluralName": "text-sets",
"displayName": "Text Set",
"displayName": "Text Sets",
"description": ""
},
"options": {

View File

@ -0,0 +1,28 @@
{
"kind": "collectionType",
"collectionName": "weapon_story_types",
"info": {
"singularName": "weapon-story-type",
"pluralName": "weapon-story-types",
"displayName": "Weapon Story Types",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"slug": {
"type": "string",
"regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
"unique": true,
"required": true
},
"translations": {
"displayName": "Weapon Story Type",
"type": "component",
"repeatable": true,
"component": "translations.weapon-story-type"
}
}
}

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@
"info": {
"singularName": "weapon-story",
"pluralName": "weapon-stories",
"displayName": "Weapon Story",
"displayName": "Weapon Stories",
"description": ""
},
"options": {
@ -12,28 +12,10 @@
},
"pluginOptions": {},
"attributes": {
"type": {
"type": "enumeration",
"enum": [
"Axe",
"Chakram",
"Combat_Bracers",
"Hammer",
"Longsword",
"Mace",
"One_handed_Sword",
"Pole_Axe",
"Rod",
"Spear",
"Staff",
"Sword",
"Two_handed_Sword"
]
},
"name": {
"displayName": "Weapon Story",
"type": "component",
"repeatable": false,
"repeatable": true,
"component": "translations.weapon-story"
},
"slug": {
@ -46,6 +28,11 @@
"type": "component",
"repeatable": true,
"component": "collections-component.weapon-story"
},
"type": {
"type": "relation",
"relation": "oneToOne",
"target": "api::weapon-story-type.weapon-story-type"
}
}
}

View File

@ -41,6 +41,9 @@
"type": "relation",
"relation": "oneToOne",
"target": "api::language.language"
},
"footnotes": {
"type": "text"
}
}
}

View File

@ -0,0 +1,21 @@
{
"collectionName": "components_collections_component_events",
"info": {
"displayName": "Event",
"icon": "bullseye",
"description": ""
},
"options": {},
"attributes": {
"translations": {
"type": "component",
"repeatable": true,
"component": "translations.chronology-item"
},
"source": {
"type": "relation",
"relation": "oneToOne",
"target": "api::source.source"
}
}
}

View File

@ -17,6 +17,11 @@
"type": "component",
"repeatable": true,
"component": "translations.glossary-definition"
},
"source": {
"type": "relation",
"relation": "oneToOne",
"target": "api::source.source"
}
}
}

View File

@ -14,18 +14,14 @@
"component": "translations.weapon-story-story"
},
"category": {
"type": "enumeration",
"enum": [
"DOD1",
"DOD2",
"DOD3",
"NieR",
"NieR_Automata",
"NieR_1_22",
"SINoALICE",
"Reincarnation"
],
"required": true
"type": "relation",
"relation": "oneToOne",
"target": "api::category.category"
},
"source": {
"type": "relation",
"relation": "oneToOne",
"target": "api::source.source"
}
}
}

View File

@ -0,0 +1,18 @@
{
"collectionName": "components_range_audiovisual_ranges",
"info": {
"displayName": "Audiovisual Range",
"icon": "camera"
},
"options": {},
"attributes": {
"starting_time": {
"type": "time",
"required": true
},
"ending_time": {
"type": "time",
"required": true
}
}
}

View File

@ -1,16 +0,0 @@
{
"collectionName": "components_range_video_ranges",
"info": {
"displayName": "Video Range",
"icon": "file-video"
},
"options": {},
"attributes": {
"starting_time": {
"type": "time"
},
"ending_time": {
"type": "time"
}
}
}

View File

@ -0,0 +1,21 @@
{
"collectionName": "components_source_library_texts",
"info": {
"displayName": "Library Text",
"icon": "align-right"
},
"options": {},
"attributes": {
"text_set": {
"type": "relation",
"relation": "oneToOne",
"target": "api::text-set.text-set"
},
"range": {
"type": "component",
"repeatable": false,
"component": "range.page-range",
"required": true
}
}
}

View File

@ -0,0 +1,26 @@
{
"collectionName": "components_source_url_sources",
"info": {
"displayName": "URL Source",
"icon": "laptop",
"description": ""
},
"options": {},
"attributes": {
"title": {
"type": "string"
},
"url": {
"type": "string"
},
"note": {
"type": "text"
},
"source": {
"type": "component",
"repeatable": false,
"component": "basics.source",
"required": true
}
}
}

View File

@ -17,6 +17,9 @@
},
"description": {
"type": "text"
},
"note": {
"type": "text"
}
}
}

View File

@ -0,0 +1,18 @@
{
"collectionName": "components_translations_weapon_story_types",
"info": {
"displayName": "Weapon Story Type",
"icon": "broom"
},
"options": {},
"attributes": {
"name": {
"type": "string"
},
"language": {
"type": "relation",
"relation": "oneToOne",
"target": "api::language.language"
}
}
}