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": { "info": {
"singularName": "category", "singularName": "category",
"pluralName": "categories", "pluralName": "categories",
"displayName": "Category", "displayName": "Categories",
"description": "" "description": ""
}, },
"options": { "options": {

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@
"info": { "info": {
"singularName": "game-platform", "singularName": "game-platform",
"pluralName": "game-platforms", "pluralName": "game-platforms",
"displayName": "Game Platform", "displayName": "Game Platforms",
"description": "" "description": ""
}, },
"options": { "options": {
@ -13,10 +13,12 @@
"pluginOptions": {}, "pluginOptions": {},
"attributes": { "attributes": {
"name": { "name": {
"type": "string" "type": "string",
"required": true
}, },
"short": { "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": { "info": {
"singularName": "glossary-item", "singularName": "glossary-item",
"pluralName": "glossary-items", "pluralName": "glossary-items",
"displayName": "Glossary Item", "displayName": "Glossary Items",
"description": "" "description": ""
}, },
"options": { "options": {
@ -12,15 +12,6 @@
}, },
"pluginOptions": {}, "pluginOptions": {},
"attributes": { "attributes": {
"type": {
"type": "enumeration",
"enum": [
"Character",
"Place",
"Term",
"Common_noun"
]
},
"title": { "title": {
"displayName": "Glossary Item", "displayName": "Glossary Item",
"type": "component", "type": "component",
@ -38,6 +29,11 @@
"regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$", "regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
"unique": true, "unique": true,
"required": true "required": true
},
"type": {
"type": "relation",
"relation": "oneToOne",
"target": "api::glossary-item-type.glossary-item-type"
} }
} }
} }

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@
"info": { "info": {
"singularName": "scan-set", "singularName": "scan-set",
"pluralName": "scan-sets", "pluralName": "scan-sets",
"displayName": "Scan Set", "displayName": "Scan Sets",
"description": "" "description": ""
}, },
"options": { "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": { "info": {
"singularName": "text-set", "singularName": "text-set",
"pluralName": "text-sets", "pluralName": "text-sets",
"displayName": "Text Set", "displayName": "Text Sets",
"description": "" "description": ""
}, },
"options": { "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": { "info": {
"singularName": "weapon-story", "singularName": "weapon-story",
"pluralName": "weapon-stories", "pluralName": "weapon-stories",
"displayName": "Weapon Story", "displayName": "Weapon Stories",
"description": "" "description": ""
}, },
"options": { "options": {
@ -12,28 +12,10 @@
}, },
"pluginOptions": {}, "pluginOptions": {},
"attributes": { "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": { "name": {
"displayName": "Weapon Story", "displayName": "Weapon Story",
"type": "component", "type": "component",
"repeatable": false, "repeatable": true,
"component": "translations.weapon-story" "component": "translations.weapon-story"
}, },
"slug": { "slug": {
@ -46,6 +28,11 @@
"type": "component", "type": "component",
"repeatable": true, "repeatable": true,
"component": "collections-component.weapon-story" "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", "type": "relation",
"relation": "oneToOne", "relation": "oneToOne",
"target": "api::language.language" "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", "type": "component",
"repeatable": true, "repeatable": true,
"component": "translations.glossary-definition" "component": "translations.glossary-definition"
},
"source": {
"type": "relation",
"relation": "oneToOne",
"target": "api::source.source"
} }
} }
} }

View File

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

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": { "description": {
"type": "text" "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"
}
}
}