From db7d5ff083b1a58cdc8db91ffdf407e2b4c6d6f2 Mon Sep 17 00:00:00 2001 From: DrMint Date: Mon, 7 Feb 2022 05:04:55 +0100 Subject: [PATCH] Added audio and video sets --- .../content/content-types/content/schema.json | 12 +++++ src/components/sets/audio-set.json | 45 +++++++++++++++++ src/components/sets/video-set.json | 49 +++++++++++++++++++ src/components/source/library-text.json | 10 ---- 4 files changed, 106 insertions(+), 10 deletions(-) create mode 100644 src/components/sets/audio-set.json create mode 100644 src/components/sets/video-set.json delete mode 100644 src/components/source/library-text.json diff --git a/src/api/content/content-types/content/schema.json b/src/api/content/content-types/content/schema.json index 4715b69..ad82294 100644 --- a/src/api/content/content-types/content/schema.json +++ b/src/api/content/content-types/content/schema.json @@ -45,6 +45,18 @@ "type": "component", "repeatable": true, "component": "sets.text-set" + }, + "video_set": { + "displayName": "Video Set", + "type": "component", + "repeatable": true, + "component": "sets.video-set" + }, + "audio_set": { + "displayName": "audio_set", + "type": "component", + "repeatable": true, + "component": "sets.audio-set" } } } diff --git a/src/components/sets/audio-set.json b/src/components/sets/audio-set.json new file mode 100644 index 0000000..ea224f5 --- /dev/null +++ b/src/components/sets/audio-set.json @@ -0,0 +1,45 @@ +{ + "collectionName": "components_sets_audio_sets", + "info": { + "displayName": "audio_set", + "icon": "headphones" + }, + "options": {}, + "attributes": { + "language": { + "type": "relation", + "relation": "oneToOne", + "target": "api::language.language" + }, + "status": { + "type": "enumeration", + "enum": [ + "Incomplete", + "Draft", + "Review", + "Done" + ], + "default": "Incomplete" + }, + "audiofile": { + "allowedTypes": [ + "files" + ], + "type": "media", + "multiple": true + }, + "source_language": { + "type": "relation", + "relation": "oneToOne", + "target": "api::language.language" + }, + "dubbers": { + "type": "relation", + "relation": "oneToOne", + "target": "api::recorder.recorder" + }, + "notes": { + "type": "text" + } + } +} diff --git a/src/components/sets/video-set.json b/src/components/sets/video-set.json new file mode 100644 index 0000000..0bf0964 --- /dev/null +++ b/src/components/sets/video-set.json @@ -0,0 +1,49 @@ +{ + "collectionName": "components_sets_video_sets", + "info": { + "displayName": "Video Set", + "icon": "film" + }, + "options": {}, + "attributes": { + "language": { + "type": "relation", + "relation": "oneToOne", + "target": "api::language.language" + }, + "status": { + "type": "enumeration", + "enum": [ + "Incomplete", + "Draft", + "Review", + "Done" + ], + "default": "Incomplete", + "required": true + }, + "source_language": { + "type": "relation", + "relation": "oneToOne", + "target": "api::language.language" + }, + "video_url": { + "type": "string" + }, + "subfile": { + "allowedTypes": [ + "files" + ], + "type": "media", + "multiple": false + }, + "subbers": { + "type": "relation", + "relation": "oneToOne", + "target": "api::recorder.recorder" + }, + "notes": { + "type": "text" + } + } +} diff --git a/src/components/source/library-text.json b/src/components/source/library-text.json deleted file mode 100644 index 844d864..0000000 --- a/src/components/source/library-text.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "collectionName": "components_source_library_texts", - "info": { - "displayName": "Library Text", - "icon": "align-justify", - "description": "" - }, - "options": {}, - "attributes": {} -}