iobroker.agent-dvr 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,205 @@
1
+ {
2
+ "i18n": true,
3
+ "type": "tabs",
4
+ "items": {
5
+ "tabConnection": {
6
+ "type": "tab",
7
+ "label": "tabConnection",
8
+ "items": {
9
+ "ip": {
10
+ "type": "text",
11
+ "label": "cfgIp",
12
+ "newLine": true,
13
+ "xs": 12, "sm": 12, "md": 6, "lg": 4, "xl": 4
14
+ },
15
+ "port": {
16
+ "type": "number",
17
+ "label": "cfgPort",
18
+ "min": 1,
19
+ "max": 65535,
20
+ "xs": 12, "sm": 6, "md": 4, "lg": 3, "xl": 3
21
+ },
22
+ "user": {
23
+ "type": "text",
24
+ "label": "cfgUser",
25
+ "newLine": true,
26
+ "xs": 12, "sm": 6, "md": 4, "lg": 3, "xl": 3
27
+ },
28
+ "pass": {
29
+ "type": "password",
30
+ "label": "cfgPass",
31
+ "xs": 12, "sm": 6, "md": 4, "lg": 3, "xl": 3
32
+ },
33
+ "pollSeconds": {
34
+ "type": "number",
35
+ "label": "cfgPollSeconds",
36
+ "min": 5,
37
+ "max": 3600,
38
+ "newLine": true,
39
+ "xs": 12, "sm": 6, "md": 4, "lg": 3, "xl": 3
40
+ },
41
+ "httpTimeoutMs": {
42
+ "type": "number",
43
+ "label": "cfgHttpTimeoutMs",
44
+ "min": 1000,
45
+ "max": 30000,
46
+ "xs": 12, "sm": 6, "md": 4, "lg": 3, "xl": 3
47
+ }
48
+ }
49
+ },
50
+ "tabFeatures": {
51
+ "type": "tab",
52
+ "label": "tabFeatures",
53
+ "items": {
54
+ "enableSystemControls": {
55
+ "type": "checkbox",
56
+ "label": "cfgEnableSystemControls",
57
+ "newLine": true,
58
+ "xs": 12, "sm": 6, "md": 4, "lg": 4, "xl": 4
59
+ },
60
+ "enablePtz": {
61
+ "type": "checkbox",
62
+ "label": "cfgEnablePtz",
63
+ "xs": 12, "sm": 6, "md": 4, "lg": 4, "xl": 4
64
+ },
65
+ "enableUrls": {
66
+ "type": "checkbox",
67
+ "label": "cfgEnableUrls",
68
+ "xs": 12, "sm": 6, "md": 4, "lg": 4, "xl": 4
69
+ },
70
+ "enableEventDps": {
71
+ "type": "checkbox",
72
+ "label": "cfgEnableEventDps",
73
+ "newLine": true,
74
+ "xs": 12, "sm": 6, "md": 4, "lg": 4, "xl": 4
75
+ },
76
+ "enablePush": {
77
+ "type": "checkbox",
78
+ "label": "cfgEnablePush",
79
+ "xs": 12, "sm": 6, "md": 4, "lg": 4, "xl": 4
80
+ },
81
+ "enableOverview": {
82
+ "type": "checkbox",
83
+ "label": "cfgEnableOverview",
84
+ "xs": 12, "sm": 6, "md": 4, "lg": 4, "xl": 4
85
+ },
86
+ "storeRawJson": {
87
+ "type": "checkbox",
88
+ "label": "cfgStoreRawJson",
89
+ "newLine": true,
90
+ "xs": 12, "sm": 6, "md": 4, "lg": 4, "xl": 4
91
+ }
92
+ }
93
+ },
94
+ "tabWidget": {
95
+ "type": "tab",
96
+ "label": "tabWidget",
97
+ "items": {
98
+ "enableWidget": {
99
+ "type": "checkbox",
100
+ "label": "cfgEnableWidget",
101
+ "newLine": true,
102
+ "xs": 12, "sm": 6, "md": 4, "lg": 4, "xl": 4
103
+ },
104
+ "widgetMode": {
105
+ "type": "select",
106
+ "label": "cfgWidgetMode",
107
+ "options": [
108
+ { "value": "nojs", "label": "cfgWidgetModeNojs" },
109
+ { "value": "js", "label": "cfgWidgetModeJs" }
110
+ ],
111
+ "xs": 12, "sm": 6, "md": 6, "lg": 5, "xl": 5
112
+ },
113
+ "widgetAnzahl": {
114
+ "type": "number",
115
+ "label": "cfgWidgetAnzahl",
116
+ "min": 1,
117
+ "max": 500,
118
+ "newLine": true,
119
+ "xs": 12, "sm": 6, "md": 4, "lg": 3, "xl": 3
120
+ },
121
+ "widgetMinCol": {
122
+ "type": "number",
123
+ "label": "cfgWidgetMinCol",
124
+ "min": 80,
125
+ "max": 600,
126
+ "xs": 12, "sm": 6, "md": 4, "lg": 3, "xl": 3
127
+ },
128
+ "widgetMaxModalWidth": {
129
+ "type": "number",
130
+ "label": "cfgWidgetMaxModalWidth",
131
+ "min": 300,
132
+ "max": 2000,
133
+ "xs": 12, "sm": 6, "md": 4, "lg": 3, "xl": 3
134
+ },
135
+ "widgetShowTags": {
136
+ "type": "checkbox",
137
+ "label": "cfgWidgetShowTags",
138
+ "newLine": true,
139
+ "xs": 12, "sm": 6, "md": 4, "lg": 4, "xl": 4
140
+ },
141
+ "widgetTagPosition": {
142
+ "type": "select",
143
+ "label": "cfgWidgetTagPosition",
144
+ "options": [
145
+ { "value": "top-left", "label": "cfgTagPosTopLeft" },
146
+ { "value": "top-right", "label": "cfgTagPosTopRight" },
147
+ { "value": "bottom-left", "label": "cfgTagPosBotLeft" },
148
+ { "value": "bottom-right", "label": "cfgTagPosBotRight" }
149
+ ],
150
+ "xs": 12, "sm": 6, "md": 4, "lg": 4, "xl": 4
151
+ },
152
+ "widgetLiveAspect": {
153
+ "type": "text",
154
+ "label": "cfgWidgetLiveAspect",
155
+ "newLine": true,
156
+ "xs": 12, "sm": 6, "md": 4, "lg": 3, "xl": 3
157
+ },
158
+ "widgetPlayerUrl": {
159
+ "type": "text",
160
+ "label": "cfgWidgetPlayerUrl",
161
+ "newLine": true,
162
+ "xs": 12, "sm": 12, "md": 8, "lg": 8, "xl": 8
163
+ }
164
+ }
165
+ },
166
+ "tabAdvanced": {
167
+ "type": "tab",
168
+ "label": "tabAdvanced",
169
+ "items": {
170
+ "maxDepth": {
171
+ "type": "number",
172
+ "label": "cfgMaxDepth",
173
+ "min": 1,
174
+ "max": 10,
175
+ "newLine": true,
176
+ "xs": 12, "sm": 6, "md": 4, "lg": 3, "xl": 3
177
+ },
178
+ "maxArray": {
179
+ "type": "number",
180
+ "label": "cfgMaxArray",
181
+ "min": 1,
182
+ "max": 500,
183
+ "xs": 12, "sm": 6, "md": 4, "lg": 3, "xl": 3
184
+ },
185
+ "eventTagsDynamic": {
186
+ "type": "checkbox",
187
+ "label": "cfgEventTagsDynamic",
188
+ "newLine": true,
189
+ "xs": 12, "sm": 6, "md": 4, "lg": 4, "xl": 4
190
+ },
191
+ "eventTagsIgnore": {
192
+ "type": "text",
193
+ "label": "cfgEventTagsIgnore",
194
+ "newLine": true,
195
+ "xs": 12, "sm": 6, "md": 6, "lg": 4, "xl": 4
196
+ },
197
+ "eventTags": {
198
+ "type": "text",
199
+ "label": "cfgEventTags",
200
+ "xs": 12, "sm": 6, "md": 6, "lg": 4, "xl": 4
201
+ }
202
+ }
203
+ }
204
+ }
205
+ }
@@ -0,0 +1,118 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var widget_i18n_exports = {};
20
+ __export(widget_i18n_exports, {
21
+ getWidgetLabels: () => getWidgetLabels,
22
+ isSupportedLang: () => isSupportedLang
23
+ });
24
+ module.exports = __toCommonJS(widget_i18n_exports);
25
+ const WIDGET_LABELS = {
26
+ de: {
27
+ noRecordings: "Keine Aufnahmen",
28
+ search: "Suche \u2026",
29
+ all: "Alle",
30
+ download: "Herunterladen",
31
+ live: "LIVE"
32
+ },
33
+ en: {
34
+ noRecordings: "No recordings",
35
+ search: "Search \u2026",
36
+ all: "All",
37
+ download: "Download",
38
+ live: "LIVE"
39
+ },
40
+ fr: {
41
+ noRecordings: "Aucun enregistrement",
42
+ search: "Rechercher \u2026",
43
+ all: "Tous",
44
+ download: "T\xE9l\xE9charger",
45
+ live: "LIVE"
46
+ },
47
+ it: {
48
+ noRecordings: "Nessuna registrazione",
49
+ search: "Cerca \u2026",
50
+ all: "Tutti",
51
+ download: "Scarica",
52
+ live: "LIVE"
53
+ },
54
+ es: {
55
+ noRecordings: "Sin grabaciones",
56
+ search: "Buscar \u2026",
57
+ all: "Todos",
58
+ download: "Descargar",
59
+ live: "LIVE"
60
+ },
61
+ pt: {
62
+ noRecordings: "Sem grava\xE7\xF5es",
63
+ search: "Pesquisar \u2026",
64
+ all: "Todos",
65
+ download: "Baixar",
66
+ live: "AO VIVO"
67
+ },
68
+ nl: {
69
+ noRecordings: "Geen opnames",
70
+ search: "Zoeken \u2026",
71
+ all: "Alle",
72
+ download: "Downloaden",
73
+ live: "LIVE"
74
+ },
75
+ pl: {
76
+ noRecordings: "Brak nagra\u0144",
77
+ search: "Szukaj \u2026",
78
+ all: "Wszystkie",
79
+ download: "Pobierz",
80
+ live: "NA \u017BYWO"
81
+ },
82
+ ru: {
83
+ noRecordings: "\u041D\u0435\u0442 \u0437\u0430\u043F\u0438\u0441\u0435\u0439",
84
+ search: "\u041F\u043E\u0438\u0441\u043A \u2026",
85
+ all: "\u0412\u0441\u0435",
86
+ download: "\u0421\u043A\u0430\u0447\u0430\u0442\u044C",
87
+ live: "\u0412 \u042D\u0424\u0418\u0420\u0415"
88
+ },
89
+ uk: {
90
+ noRecordings: "\u041D\u0435\u043C\u0430\u0454 \u0437\u0430\u043F\u0438\u0441\u0456\u0432",
91
+ search: "\u041F\u043E\u0448\u0443\u043A \u2026",
92
+ all: "\u0423\u0441\u0456",
93
+ download: "\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0438\u0442\u0438",
94
+ live: "\u041D\u0410\u0416\u0418\u0412\u041E"
95
+ },
96
+ "zh-cn": {
97
+ noRecordings: "\u65E0\u5F55\u50CF",
98
+ search: "\u641C\u7D22 \u2026",
99
+ all: "\u5168\u90E8",
100
+ download: "\u4E0B\u8F7D",
101
+ live: "\u76F4\u64AD"
102
+ }
103
+ };
104
+ const SUPPORTED = new Set(Object.keys(WIDGET_LABELS));
105
+ function getWidgetLabels(rawLang) {
106
+ var _a;
107
+ const lang = (rawLang || "en").toLowerCase();
108
+ return (_a = WIDGET_LABELS[lang]) != null ? _a : WIDGET_LABELS.en;
109
+ }
110
+ function isSupportedLang(lang) {
111
+ return SUPPORTED.has(lang.toLowerCase());
112
+ }
113
+ // Annotate the CommonJS export names for ESM import in node:
114
+ 0 && (module.exports = {
115
+ getWidgetLabels,
116
+ isSupportedLang
117
+ });
118
+ //# sourceMappingURL=widget-i18n.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/lib/widget-i18n.ts"],
4
+ "sourcesContent": ["export interface WidgetLabels {\n\tnoRecordings: string;\n\tsearch: string;\n\tall: string;\n\tdownload: string;\n\tlive: string;\n}\n\nconst WIDGET_LABELS: Record<string, WidgetLabels> = {\n\tde: {\n\t\tnoRecordings: 'Keine Aufnahmen',\n\t\tsearch: 'Suche \u2026',\n\t\tall: 'Alle',\n\t\tdownload: 'Herunterladen',\n\t\tlive: 'LIVE',\n\t},\n\ten: {\n\t\tnoRecordings: 'No recordings',\n\t\tsearch: 'Search \u2026',\n\t\tall: 'All',\n\t\tdownload: 'Download',\n\t\tlive: 'LIVE',\n\t},\n\tfr: {\n\t\tnoRecordings: 'Aucun enregistrement',\n\t\tsearch: 'Rechercher \u2026',\n\t\tall: 'Tous',\n\t\tdownload: 'T\u00E9l\u00E9charger',\n\t\tlive: 'LIVE',\n\t},\n\tit: {\n\t\tnoRecordings: 'Nessuna registrazione',\n\t\tsearch: 'Cerca \u2026',\n\t\tall: 'Tutti',\n\t\tdownload: 'Scarica',\n\t\tlive: 'LIVE',\n\t},\n\tes: {\n\t\tnoRecordings: 'Sin grabaciones',\n\t\tsearch: 'Buscar \u2026',\n\t\tall: 'Todos',\n\t\tdownload: 'Descargar',\n\t\tlive: 'LIVE',\n\t},\n\tpt: {\n\t\tnoRecordings: 'Sem grava\u00E7\u00F5es',\n\t\tsearch: 'Pesquisar \u2026',\n\t\tall: 'Todos',\n\t\tdownload: 'Baixar',\n\t\tlive: 'AO VIVO',\n\t},\n\tnl: {\n\t\tnoRecordings: 'Geen opnames',\n\t\tsearch: 'Zoeken \u2026',\n\t\tall: 'Alle',\n\t\tdownload: 'Downloaden',\n\t\tlive: 'LIVE',\n\t},\n\tpl: {\n\t\tnoRecordings: 'Brak nagra\u0144',\n\t\tsearch: 'Szukaj \u2026',\n\t\tall: 'Wszystkie',\n\t\tdownload: 'Pobierz',\n\t\tlive: 'NA \u017BYWO',\n\t},\n\tru: {\n\t\tnoRecordings: '\u041D\u0435\u0442 \u0437\u0430\u043F\u0438\u0441\u0435\u0439',\n\t\tsearch: '\u041F\u043E\u0438\u0441\u043A \u2026',\n\t\tall: '\u0412\u0441\u0435',\n\t\tdownload: '\u0421\u043A\u0430\u0447\u0430\u0442\u044C',\n\t\tlive: '\u0412 \u042D\u0424\u0418\u0420\u0415',\n\t},\n\tuk: {\n\t\tnoRecordings: '\u041D\u0435\u043C\u0430\u0454 \u0437\u0430\u043F\u0438\u0441\u0456\u0432',\n\t\tsearch: '\u041F\u043E\u0448\u0443\u043A \u2026',\n\t\tall: '\u0423\u0441\u0456',\n\t\tdownload: '\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0438\u0442\u0438',\n\t\tlive: '\u041D\u0410\u0416\u0418\u0412\u041E',\n\t},\n\t'zh-cn': {\n\t\tnoRecordings: '\u65E0\u5F55\u50CF',\n\t\tsearch: '\u641C\u7D22 \u2026',\n\t\tall: '\u5168\u90E8',\n\t\tdownload: '\u4E0B\u8F7D',\n\t\tlive: '\u76F4\u64AD',\n\t},\n};\n\nconst SUPPORTED = new Set(Object.keys(WIDGET_LABELS));\n\nexport function getWidgetLabels(rawLang: string): WidgetLabels {\n\tconst lang = (rawLang || 'en').toLowerCase();\n\treturn WIDGET_LABELS[lang] ?? WIDGET_LABELS.en;\n}\n\nexport function isSupportedLang(lang: string): boolean {\n\treturn SUPPORTED.has(lang.toLowerCase());\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQA,MAAM,gBAA8C;AAAA,EACnD,IAAI;AAAA,IACH,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,IAAI;AAAA,IACH,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,IAAI;AAAA,IACH,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,IAAI;AAAA,IACH,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,IAAI;AAAA,IACH,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,IAAI;AAAA,IACH,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,IAAI;AAAA,IACH,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,IAAI;AAAA,IACH,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,IAAI;AAAA,IACH,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,IAAI;AAAA,IACH,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM;AAAA,EACP;AAAA,EACA,SAAS;AAAA,IACR,cAAc;AAAA,IACd,QAAQ;AAAA,IACR,KAAK;AAAA,IACL,UAAU;AAAA,IACV,MAAM;AAAA,EACP;AACD;AAEA,MAAM,YAAY,IAAI,IAAI,OAAO,KAAK,aAAa,CAAC;AAE7C,SAAS,gBAAgB,SAA+B;AA1F/D;AA2FC,QAAM,QAAQ,WAAW,MAAM,YAAY;AAC3C,UAAO,mBAAc,IAAI,MAAlB,YAAuB,cAAc;AAC7C;AAEO,SAAS,gBAAgB,MAAuB;AACtD,SAAO,UAAU,IAAI,KAAK,YAAY,CAAC;AACxC;",
6
+ "names": []
7
+ }