Added subtype for video and more langui
This commit is contained in:
parent
800260263b
commit
500abc2d92
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
/**
|
||||
* video-subtype controller
|
||||
*/
|
||||
|
||||
const { createCoreController } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreController('api::video-subtype.video-subtype');
|
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
/**
|
||||
* video-subtype router.
|
||||
*/
|
||||
|
||||
const { createCoreRouter } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreRouter('api::video-subtype.video-subtype');
|
|
@ -0,0 +1,9 @@
|
|||
'use strict';
|
||||
|
||||
/**
|
||||
* video-subtype service.
|
||||
*/
|
||||
|
||||
const { createCoreService } = require('@strapi/strapi').factories;
|
||||
|
||||
module.exports = createCoreService('api::video-subtype.video-subtype');
|
|
@ -147,6 +147,60 @@
|
|||
},
|
||||
"chronology_walkthrough_description": {
|
||||
"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"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,11 +7,6 @@
|
|||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"languages": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::language.language"
|
||||
},
|
||||
"subtype": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
|
|
|
@ -7,24 +7,10 @@
|
|||
},
|
||||
"options": {},
|
||||
"attributes": {
|
||||
"resolution": {
|
||||
"type": "enumeration",
|
||||
"enum": [
|
||||
"SD_480p",
|
||||
"HD_720p",
|
||||
"FullHD_1080p",
|
||||
"QuadHD_2160p"
|
||||
]
|
||||
},
|
||||
"audio_languages": {
|
||||
"type": "relation",
|
||||
"relation": "oneToMany",
|
||||
"target": "api::language.language"
|
||||
},
|
||||
"sub_languages": {
|
||||
"subtype": {
|
||||
"type": "relation",
|
||||
"relation": "oneToOne",
|
||||
"target": "api::language.language"
|
||||
"target": "api::video-subtype.video-subtype"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue