diff --git a/client/index.js b/client/index.js deleted file mode 100644 index 648664d..0000000 --- a/client/index.js +++ /dev/null @@ -1,10 +0,0 @@ -import {startApp} from 'superdesk-core/scripts/index'; - -setTimeout(() => { - startApp( - [], - {}, - ); -}); - -export default angular.module('main.superdesk', []); diff --git a/client/index.ts b/client/index.ts new file mode 100644 index 0000000..71aeae7 --- /dev/null +++ b/client/index.ts @@ -0,0 +1,15 @@ +import {startApp} from 'superdesk-core/scripts/index'; + +setTimeout(() => { + startApp( + [ + { + id: 'broadcasting', + load: () => import('superdesk-core/scripts/extensions/broadcasting'), + }, + ], + {}, + ); +}); + +export default angular.module('main.superdesk', []); diff --git a/client/superdesk.config.js b/client/superdesk.config.js index 00f7ce4..c3e888d 100644 --- a/client/superdesk.config.js +++ b/client/superdesk.config.js @@ -10,7 +10,7 @@ module.exports = function(grunt) { 'superdesk-publisher' ], importApps: [ - '..', + '../index', 'superdesk-publisher' ], defaultRoute: '/workspace/personal', diff --git a/server/data/vocabularies.json b/server/data/vocabularies.json index a558a84..c79a213 100644 --- a/server/data/vocabularies.json +++ b/server/data/vocabularies.json @@ -2322,5 +2322,180 @@ "name": "Low", "qcode": 3 }] + }, + { + "_id": "show_part", + "display_name": "Show Part", + "type": "manageable", + "unique_field": "qcode", + "selection_type": "do not show", + "init_version": 3, + "items": [{ + "is_active": true, + "name": "Uvod", + "qcode": "Uvod" + }, + { + "is_active": true, + "name": "Odjava", + "qcode": "Odjava" + }, + { + "is_active": true, + "name": "Hladna najava", + "qcode": "Hladna najava" + }, + { + "is_active": true, + "name": "REC", + "qcode": "REC" + }, + { + "is_active": true, + "name": "SLIKA", + "qcode": "SLIKA" + }, + { + "is_active": true, + "name": "PODATAK", + "qcode": "PODATAK" + }, + { + "is_active": true, + "name": "KALENDAR", + "qcode": "KALENDAR" + }, + { + "is_active": true, + "name": "ICUTANJEJEODGOVOR", + "qcode": "ICUTANJEJEODGOVOR" + }], + "schema": { + "name": {"translate": true}, + "qcode": {"type": "string"}, + "color": {"type": "color", "label": "Сolor"} + } + }, + { + "_id": "rundown_item_types", + "display_name": "Item Type", + "type": "manageable", + "unique_field": "qcode", + "selection_type": "do not show", + "init_version": 3, + "items": [{ + "is_active": true, + "name": "PRLG", + "qcode": "PRLG" + }, + { + "is_active": true, + "name": "AACC", + "qcode": "AACC" + }, + { + "is_active": true, + "name": "GOST", + "qcode": "GOST" + }, + { + "is_active": true, + "name": "OFF", + "qcode": "OFF" + }, + { + "is_active": true, + "name": "TON", + "qcode": "TON" + }], + "schema": { + "name": {"translate": true}, + "qcode": {"type": "string"}, + "color": {"type": "color", "label": "Сolor"} + } + }, + { + "_id": "rundown_subitem_types", + "display_name": "Subitem Type", + "type": "manageable", + "unique_field": "qcode", + "selection_type": "do not show", + "init_version": 3, + "items": [{ + "is_active": true, + "name": "POKR", + "qcode": "POKR" + }, + { + "is_active": true, + "name": "WALL", + "qcode": "WALL" + }, + { + "is_active": true, + "name": "GRAF", + "qcode": "GRAF" + }], + "schema": { + "name": {"translate": true}, + "qcode": {"type": "string"}, + "color": {"type": "color", "label": "Сolor"} + } + }, + { + "_id": "rundown_item_status", + "display_name": "Rundown Item Status", + "type": "manageable", + "unique_field": "qcode", + "selection_type": "do not show", + "init_version": 3, + "items": [{ + "is_active": true, + "name": "pending", + "qcode": "pending", + "color": "#ff5630" + },{ + "is_active": true, + "name": "in approval", + "qcode": "in-approval", + "color": "#ff991f" + },{ + "is_active": true, + "name": "approved", + "qcode": "approved", + "color": "#36b37e" + }], + "schema": { + "name": {"translate": true}, + "qcode": {"type": "string"}, + "color": {"type": "color", "label": "Сolor"} + } + }, + { + "_id": "camera", + "display_name": "Camera", + "type": "manageable", + "unique_field": "qcode", + "selection_type": "do not show", + "init_version": 1, + "items": [{ + "is_active": true, + "name": "K1", + "qcode": "K1" + },{ + "is_active": true, + "name": "K2", + "qcode": "K2" + },{ + "is_active": true, + "name": "K3", + "qcode": "K3" + }], + "schema": { + "name": {"type": "string"}, + "qcode": {"type": "string"} + } } ] + +] diff --git a/server/settings.py b/server/settings.py index f34ad8b..ad7c14d 100644 --- a/server/settings.py +++ b/server/settings.py @@ -75,6 +75,7 @@ def env(variable, fallback_value=None): INSTALLED_APPS = [ 'apps.languages', + 'apps.rundowns', ] # special characters that are disallowed