Added subtype for video and more langui

This commit is contained in:
DrMint 2022-02-14 06:16:52 +01:00
parent 800260263b
commit 500abc2d92
7 changed files with 109 additions and 21 deletions

View File

@ -0,0 +1,26 @@
{
"kind": "collectionType",
"collectionName": "video_subtypes",
"info": {
"singularName": "video-subtype",
"pluralName": "video-subtypes",
"displayName": "Video Subtypes",
"description": ""
},
"options": {
"draftAndPublish": false
},
"attributes": {
"slug": {
"type": "string",
"regex": "^[a-z0-9]+(?:-[a-z0-9]+)*$",
"unique": true,
"required": true
},
"titles": {
"type": "component",
"repeatable": true,
"component": "translations.simple-title"
}
}
}

View File

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

View File

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

View File

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

View File

@ -147,6 +147,60 @@
}, },
"chronology_walkthrough_description": { "chronology_walkthrough_description": {
"type": "string" "type": "string"
},
"library_item_front_matter": {
"type": "string"
},
"library_item_back_matter": {
"type": "string"
},
"library_item_type_textual": {
"type": "string"
},
"library_item_type_audio": {
"type": "string"
},
"library_item_type_game": {
"type": "string"
},
"library_item_type_video": {
"type": "string"
},
"library_item_type_other": {
"type": "string"
},
"library_item_open_content": {
"type": "string"
},
"library_item_view_scans": {
"type": "string"
},
"content_read_content": {
"type": "string"
},
"content_watch_content": {
"type": "string"
},
"content_listen_content": {
"type": "string"
},
"global_category": {
"type": "string"
},
"global_categories": {
"type": "string"
},
"global_paperback": {
"type": "string"
},
"global_hardcover": {
"type": "string"
},
"global_left_to_right": {
"type": "string"
},
"global_right_to_left": {
"type": "string"
} }
} }
} }

View File

@ -7,11 +7,6 @@
}, },
"options": {}, "options": {},
"attributes": { "attributes": {
"languages": {
"type": "relation",
"relation": "oneToMany",
"target": "api::language.language"
},
"subtype": { "subtype": {
"type": "relation", "type": "relation",
"relation": "oneToOne", "relation": "oneToOne",

View File

@ -7,24 +7,10 @@
}, },
"options": {}, "options": {},
"attributes": { "attributes": {
"resolution": { "subtype": {
"type": "enumeration",
"enum": [
"SD_480p",
"HD_720p",
"FullHD_1080p",
"QuadHD_2160p"
]
},
"audio_languages": {
"type": "relation",
"relation": "oneToMany",
"target": "api::language.language"
},
"sub_languages": {
"type": "relation", "type": "relation",
"relation": "oneToOne", "relation": "oneToOne",
"target": "api::language.language" "target": "api::video-subtype.video-subtype"
} }
} }
} }