Added the audio and video sets

This commit is contained in:
DrMint 2021-12-18 20:23:32 +01:00
parent f8bfddb530
commit 23e467d4fc
30 changed files with 255 additions and 42 deletions

View File

@ -0,0 +1,34 @@
{
"kind": "collectionType",
"collectionName": "audio_sets",
"info": {
"singularName": "audio-set",
"pluralName": "audio-sets",
"displayName": "🟡 Audio Sets",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"slug": {
"type": "string",
"required": true,
"unique": true,
"regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"translations": {
"displayName": "Audio Sets",
"type": "component",
"repeatable": true,
"component": "translations.audio-sets"
},
"library_contents": {
"type": "relation",
"relation": "oneToMany",
"target": "api::library-content.library-content",
"mappedBy": "audio_set"
}
}
}

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@
"info": { "info": {
"singularName": "chronology-era", "singularName": "chronology-era",
"pluralName": "chronology-eras", "pluralName": "chronology-eras",
"displayName": "Chronology Eras", "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 Items", "displayName": "🟢 Chronology Items",
"description": "" "description": ""
}, },
"options": { "options": {

View File

@ -4,7 +4,8 @@
"info": { "info": {
"singularName": "glossary-item-type", "singularName": "glossary-item-type",
"pluralName": "glossary-item-types", "pluralName": "glossary-item-types",
"displayName": "Glossary Item Types" "displayName": "🟣 Glossary Item Types",
"description": ""
}, },
"options": { "options": {
"draftAndPublish": false "draftAndPublish": false

View File

@ -4,7 +4,7 @@
"info": { "info": {
"singularName": "glossary-item", "singularName": "glossary-item",
"pluralName": "glossary-items", "pluralName": "glossary-items",
"displayName": "Glossary Items", "displayName": "🟣 Glossary Items",
"description": "" "description": ""
}, },
"options": { "options": {

View File

@ -4,7 +4,7 @@
"info": { "info": {
"singularName": "library-content", "singularName": "library-content",
"pluralName": "library-contents", "pluralName": "library-contents",
"displayName": "Library Contents", "displayName": "🟠 Library Contents",
"description": "" "description": ""
}, },
"options": { "options": {
@ -46,10 +46,25 @@
"type": "dynamiczone", "type": "dynamiczone",
"components": [ "components": [
"range.page-range", "range.page-range",
"range.audiovisual-range" "range.time-range",
"range.game-aspect",
"range.other"
], ],
"required": true, "required": true,
"max": 1 "max": 1,
"min": 1
},
"audio_set": {
"type": "relation",
"relation": "manyToOne",
"target": "api::audio-set.audio-set",
"inversedBy": "library_contents"
},
"video_set": {
"type": "relation",
"relation": "manyToOne",
"target": "api::video-set.video-set",
"inversedBy": "library_contents"
} }
} }
} }

View File

@ -4,7 +4,7 @@
"info": { "info": {
"singularName": "library-item", "singularName": "library-item",
"pluralName": "library-items", "pluralName": "library-items",
"displayName": "Library Items", "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 Variants", "displayName": "🔴 Library Variants",
"description": "" "description": ""
}, },
"options": { "options": {

View File

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

View File

@ -4,7 +4,7 @@
"info": { "info": {
"singularName": "recorder", "singularName": "recorder",
"pluralName": "recorders", "pluralName": "recorders",
"displayName": "Recorders", "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 Sets", "displayName": "🟡 Scan Sets",
"description": "" "description": ""
}, },
"options": { "options": {

View File

@ -4,7 +4,7 @@
"info": { "info": {
"singularName": "source", "singularName": "source",
"pluralName": "sources", "pluralName": "sources",
"displayName": "Sources", "displayName": "Sources",
"description": "" "description": ""
}, },
"options": { "options": {
@ -24,7 +24,8 @@
}, },
"name": { "name": {
"type": "string", "type": "string",
"required": false "required": true,
"unique": true
} }
} }
} }

View File

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

View File

@ -0,0 +1,34 @@
{
"kind": "collectionType",
"collectionName": "video_sets",
"info": {
"singularName": "video-set",
"pluralName": "video-sets",
"displayName": "🟡 Video Sets",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"slug": {
"type": "string",
"unique": true,
"required": true,
"regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$"
},
"translations": {
"displayName": "Video Sets",
"type": "component",
"repeatable": true,
"component": "translations.video-sets"
},
"library_contents": {
"type": "relation",
"relation": "oneToMany",
"target": "api::library-content.library-content",
"mappedBy": "video_set"
}
}
}

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@
"info": { "info": {
"singularName": "weapon-story-type", "singularName": "weapon-story-type",
"pluralName": "weapon-story-types", "pluralName": "weapon-story-types",
"displayName": "Weapon Story Types", "displayName": "🟤 Weapon Story Types",
"description": "" "description": ""
}, },
"options": { "options": {

View File

@ -4,7 +4,7 @@
"info": { "info": {
"singularName": "weapon-story", "singularName": "weapon-story",
"pluralName": "weapon-stories", "pluralName": "weapon-stories",
"displayName": "Weapon Stories", "displayName": "🟤 Weapon Stories",
"description": "" "description": ""
}, },
"options": { "options": {

View File

@ -44,6 +44,11 @@
}, },
"footnotes": { "footnotes": {
"type": "text" "type": "text"
},
"Subbers": {
"type": "relation",
"relation": "oneToMany",
"target": "api::recorder.recorder"
} }
} }
} }

View File

@ -1,18 +0,0 @@
{
"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

@ -0,0 +1,13 @@
{
"collectionName": "components_range_game_aspects",
"info": {
"displayName": "Game Aspect",
"icon": "tv"
},
"options": {},
"attributes": {
"note": {
"type": "text"
}
}
}

View File

@ -0,0 +1,13 @@
{
"collectionName": "components_range_others",
"info": {
"displayName": "Other",
"icon": "question-circle"
},
"options": {},
"attributes": {
"note": {
"type": "text"
}
}
}

View File

@ -0,0 +1,16 @@
{
"collectionName": "components_range_time_ranges",
"info": {
"displayName": "Time Range",
"icon": "hourglass-half"
},
"options": {},
"attributes": {
"starting_time": {
"type": "time"
},
"ending_time": {
"type": "time"
}
}
}

View File

@ -2,7 +2,8 @@
"collectionName": "components_source_library_texts", "collectionName": "components_source_library_texts",
"info": { "info": {
"displayName": "Library Text", "displayName": "Library Text",
"icon": "align-right" "icon": "align-justify",
"description": ""
}, },
"options": {}, "options": {},
"attributes": { "attributes": {
@ -10,12 +11,6 @@
"type": "relation", "type": "relation",
"relation": "oneToOne", "relation": "oneToOne",
"target": "api::text-set.text-set" "target": "api::text-set.text-set"
},
"range": {
"type": "component",
"repeatable": false,
"component": "range.page-range",
"required": true
} }
} }
} }

View File

@ -0,0 +1,15 @@
{
"collectionName": "components_translations_audio_sets",
"info": {
"displayName": "Audio Sets",
"icon": "file-audio"
},
"options": {},
"attributes": {
"language": {
"type": "relation",
"relation": "oneToOne",
"target": "api::language.language"
}
}
}

View File

@ -0,0 +1,35 @@
{
"collectionName": "components_translations_video_sets",
"info": {
"displayName": "Video Sets",
"icon": "file-video",
"description": ""
},
"options": {},
"attributes": {
"language": {
"type": "relation",
"relation": "oneToOne",
"target": "api::language.language"
},
"video_url": {
"type": "string"
},
"video_embed": {
"type": "string"
},
"source": {
"type": "component",
"repeatable": false,
"component": "basics.source",
"required": true
},
"subfile": {
"allowedTypes": [
"files"
],
"type": "media",
"multiple": false
}
}
}