@ledvance/group-ui-biz-bundle 1.0.0

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.
Files changed (40) hide show
  1. package/.babelrc +31 -0
  2. package/.eslintignore +6 -0
  3. package/.eslintrc.js +27 -0
  4. package/.prettierignore +0 -0
  5. package/.prettierrc.js +1 -0
  6. package/.versionrc +5 -0
  7. package/package.json +73 -0
  8. package/rn-cli.config.js +8 -0
  9. package/src/modules/mood/AddMoodPage.tsx +826 -0
  10. package/src/modules/mood/DynamicMoodEditorPage.tsx +547 -0
  11. package/src/modules/mood/MoodItem.tsx +114 -0
  12. package/src/modules/mood/MoodPage.tsx +332 -0
  13. package/src/modules/mood/RecommendMoodItem.tsx +75 -0
  14. package/src/modules/mood/SceneAction.ts +459 -0
  15. package/src/modules/mood/SceneInfo.ts +886 -0
  16. package/src/modules/mood/StaticMoodEditorPage.tsx +251 -0
  17. package/src/modules/mood/tools.ts +12 -0
  18. package/src/modules/select/SelectPage.d.ts +12 -0
  19. package/src/modules/select/SelectPage.tsx +139 -0
  20. package/src/modules/time_schedule/Interface.ts +85 -0
  21. package/src/modules/time_schedule/ScheduleCard.tsx +111 -0
  22. package/src/modules/time_schedule/TimeScheduleActions.ts +81 -0
  23. package/src/modules/time_schedule/TimeScheduleDetailPage.tsx +704 -0
  24. package/src/modules/time_schedule/TimeSchedulePage.tsx +246 -0
  25. package/src/modules/timer/TimerAction.d.ts +12 -0
  26. package/src/modules/timer/TimerAction.ts +150 -0
  27. package/src/modules/timer/TimerPage.d.ts +2 -0
  28. package/src/modules/timer/TimerPage.tsx +351 -0
  29. package/src/navigation/Routers.d.ts +5 -0
  30. package/src/navigation/Routers.ts +97 -0
  31. package/src/navigation/tools.d.ts +0 -0
  32. package/src/navigation/tools.ts +0 -0
  33. package/src/res/GroupBizRes.ts +4 -0
  34. package/src/res/materialiconsFilledCancel.png +0 -0
  35. package/src/res/materialiconsFilledCancel@2x.png +0 -0
  36. package/src/res/materialiconsFilledCancel@3x.png +0 -0
  37. package/src/res/materialiconsOutlinedArrowsNavAddBox.png +0 -0
  38. package/src/res/materialiconsOutlinedArrowsNavAddBox@2x.png +0 -0
  39. package/src/res/materialiconsOutlinedArrowsNavAddBox@3x.png +0 -0
  40. package/tsconfig.json +51 -0
@@ -0,0 +1,886 @@
1
+ import I18n from '@ledvance/base/src/i18n'
2
+
3
+ export interface SceneInfo {
4
+ // 2hex
5
+ id: number
6
+ // 2hex
7
+ fanEnable?: boolean
8
+ // 2hex
9
+ fanSpeed?: number
10
+ mode: number
11
+ // 26hex/node
12
+ nodes: SceneNodeInfo[]
13
+
14
+ // 以下为兼容strip light
15
+ speed: number
16
+ segmented: number,
17
+ // 过渡 0 不过渡, 1 过渡
18
+ excessive: number,
19
+ // 拓展 other
20
+ expand: number,
21
+ // 方向 0 顺时针方向, 1 逆时针方向
22
+ direction: number,
23
+
24
+ }
25
+
26
+ export interface SceneNodeInfo {
27
+ // 节点切换间隔时长 2hex
28
+ switchingInterval: number
29
+ // 节点切换时长 2hex
30
+ transitionTime: number
31
+ // 节点切换模式 2hex
32
+ transitionMode: number
33
+ // 色相 0~360 4hex
34
+ h: number
35
+ // 饱和度 0~1000 4hex
36
+ s: number
37
+ // 明度 0~1000 4hex
38
+ v: number
39
+ // 灯泡亮度 0~1000 4hex
40
+ brightness: number
41
+ // 色温值 0~1000 4hex
42
+ colorTemp: number
43
+ // 节点类型
44
+ isColorNode: boolean
45
+ }
46
+
47
+ export interface StripSceneInfo {
48
+ // 版本号
49
+ version: number
50
+ // 场景号
51
+ id: number
52
+ // 变化方式
53
+ mode: number
54
+ // 速度
55
+ speed: number
56
+ // 段落 0 全段, 1 分段
57
+ segmented: number
58
+ // 循环 0 不循环, 1 循环
59
+ loop: number
60
+ // 过渡 0 不过渡, 1 过渡
61
+ excessive: number
62
+ // 拓展 other
63
+ expand: number
64
+ // 方向 0 顺时针方向, 1 逆时针方向
65
+ direction: number
66
+ // 设置 目前灯用不上
67
+ reserved1: number
68
+ reserved2: number
69
+ nodes: StripNodeInfo[]
70
+ }
71
+
72
+ export interface StripNodeInfo {
73
+ // 0~360
74
+ h: number
75
+ // 饱和度 0~100
76
+ s: number
77
+ // 明度 1~100
78
+ v: number
79
+ // 灯泡亮度 10~1000 4hex
80
+ brightness: number
81
+ // 色温值 0~1000 4hex
82
+ colorTemp: number
83
+ // 节点类型
84
+ isColorNode: boolean
85
+ }
86
+
87
+ export enum SceneNodeTransitionMode {
88
+ Static,
89
+ Jump,
90
+ Gradient
91
+ }
92
+
93
+ export enum SceneMode {
94
+ SourceJump = 1,
95
+ StripJump = 2,
96
+ StringJump = 10,
97
+ SourceGradient = 2,
98
+ StripGradient = 1,
99
+ StringGradient = 16
100
+ }
101
+
102
+
103
+ export interface StripLightSceneMode {
104
+ [key: string]: {
105
+ title: string;
106
+ mode: number;
107
+ turnOn?: boolean;
108
+ paragraph?: boolean;
109
+ other?: {
110
+ label: string
111
+ value: number
112
+ }[];
113
+ };
114
+ }
115
+
116
+ export const lightSceneMode = {
117
+ '1': { title: I18n.getLang('other_lights_modes_jump_text'), mode: 1 },
118
+ '2': { title: I18n.getLang('other_lights_modes_gradient_text'), mode: 2 },
119
+ }
120
+
121
+ export const stringLightSceneMode: StripLightSceneMode = {
122
+ '13': { title: I18n.getLang('strip_lights_modes_flow_text'), mode: 13, turnOn: true }, // 流水
123
+ '2': { title: I18n.getLang('strip_lights_modes_rainbow_text'), mode: 2, turnOn: true }, // 彩虹
124
+ '14': { title: I18n.getLang('string_lights_modes_chase_text'), mode: 14, turnOn: true }, // 追光
125
+ '15': { title: I18n.getLang('string_lights_modes_dazzle_text'), mode: 15 }, // 炫彩
126
+ '16': { title: I18n.getLang('other_lights_modes_gradient_text'), mode: 16 }, // 渐变
127
+ '10': { title: I18n.getLang('other_lights_modes_jump_text'), mode: 10 }, // 跳变
128
+ '11': { title: I18n.getLang('strip_lights_modes_breath_text'), mode: 11 }, // 呼吸
129
+ '12': { title: I18n.getLang('string_lights_modes_blink_text'), mode: 12 } // 闪烁
130
+ }
131
+
132
+ export const stripLightSceneMode: StripLightSceneMode = {
133
+ '1': { title: I18n.getLang('other_lights_modes_gradient_text'), mode: 1, paragraph: true }, // 渐变
134
+ '2': { title: I18n.getLang('other_lights_modes_jump_text'), mode: 2, paragraph: true }, // 跳变
135
+ '3': { title: I18n.getLang('strip_lights_modes_breath_text'), mode: 3, paragraph: true }, // 呼吸
136
+ '4': { title: I18n.getLang('string_lights_modes_blink_text'), mode: 4, paragraph: true }, // 闪烁
137
+ '10': { title: I18n.getLang('strip_lights_modes_flow_text'), mode: 10, turnOn: true }, // 流水
138
+ '11': { title: I18n.getLang('strip_lights_modes_rainbow_text'), mode: 11, turnOn: true }, // 彩虹
139
+ '5': {
140
+ title: I18n.getLang('strip_lights_modes_meteor_text'), mode: 5, turnOn: true, other: [
141
+ { label: I18n.getLang('strip_lights_modes_meteor_text'), value: 0 },
142
+ { label: I18n.getLang('add_new_dynamic_mood_strip_lights_selectionfield2_value_text'), value: 1 },
143
+ { label: I18n.getLang('strip_lights_modes_magic_meteor'), value: 2 }]
144
+ }, // 流星
145
+ '6': { title: I18n.getLang('strip_lights_modes_pileup_text'), mode: 6, turnOn: true, paragraph: true }, // 堆积
146
+ '7': { title: I18n.getLang('strip_lights_modes_fall_text'), mode: 7, turnOn: true, paragraph: true }, // 飘落
147
+ '8': { title: I18n.getLang('strip_lights_modes_follow_text'), mode: 8, turnOn: true }, // 追光
148
+ '9': { title: I18n.getLang('strip_lights_modes_flutter_text'), mode: 9, turnOn: true }, // 飘动
149
+ '12': { title: I18n.getLang('strip_lights_modes_flash_text'), mode: 12, paragraph: true }, // 闪现
150
+ '13': { title: I18n.getLang('strip_lights_modes_rebound_text'), mode: 13, other: [{ label: I18n.getLang('strip_lights_modes_rebound_text'), value: 0 }, { label: I18n.getLang('strip_lights_modes_magic_rebound_text'), value: 1 }] }, // 反弹
151
+ '14': { title: I18n.getLang('strip_lights_modes_shuttle_text'), mode: 14, }, // 穿梭
152
+ '15': { title: I18n.getLang('strip_lights_modes_random_text'), mode: 15 }, // 乱闪
153
+ '16': {
154
+ title: I18n.getLang('strip_lights_modes_switch_text'), mode: 16, other: [
155
+ { label: I18n.getLang('add_new_dynamic_mood_strip_lights_switch_tab_text5'), value: 0 },
156
+ { label: I18n.getLang('add_new_dynamic_mood_strip_lights_switch_tab_text6'), value: 1 }]
157
+ } // 开合
158
+ }
159
+
160
+ /**
161
+ * 萤石云端 Scene 物模型
162
+ */
163
+ export interface RemoteSceneInfo {
164
+ n: string // 名字
165
+ i: string // 涂鸦的场景值(dp value)
166
+ s: string // 不再使用
167
+ t: number // 不再使用
168
+ e: boolean // 不再使用
169
+ // cb: RemoteSceneNodeInfo[] // 不再使用
170
+ }
171
+
172
+ export interface RemoteSceneNodeInfo {
173
+ ct: number
174
+ b: number
175
+ c: string
176
+ }
177
+
178
+ /**
179
+ * UI 展示用物模型
180
+ */
181
+ export interface ScenePageUIState {
182
+ currentScene: SceneUIState | undefined
183
+ scenes: SceneUIState[]
184
+ flag: symbol
185
+ }
186
+
187
+ export interface SceneUIState extends SceneInfo {
188
+ name: string
189
+ image: string
190
+ }
191
+
192
+ export interface StripScenePageUIState {
193
+ currentScene: StripSceneUIState | undefined
194
+ scenes: StripSceneUIState[]
195
+ flag: symbol
196
+ }
197
+
198
+ export interface StripSceneUIState extends StripSceneInfo {
199
+ name: string
200
+ image: string
201
+ }
202
+
203
+ interface DefSceneType {
204
+ isSupportColor?: boolean
205
+ isSupportBrightness?: boolean
206
+ isSupportTemperature?: boolean
207
+ isSupportFan?: boolean
208
+ isStringLight?: boolean
209
+ isStripLight?: boolean
210
+ }
211
+ export function getDefSceneList(props: DefSceneType): RemoteSceneInfo[] {
212
+ if (props.isStringLight) {
213
+ return getStringLightSceneList()
214
+ }
215
+ if (props.isStripLight) {
216
+ return getStripLightSceneList()
217
+ }
218
+ if (props.isSupportFan) {
219
+ return getFanDefSceneList()
220
+ }
221
+ if (props.isSupportColor) {
222
+ if (props.isSupportTemperature && props.isSupportBrightness) {
223
+ return getRGBWDefSceneList()
224
+ }
225
+ if (props.isSupportTemperature || props.isSupportBrightness) {
226
+ return getRGBDefSceneList()
227
+ }
228
+ return getOnlyRGBDefSceneList()
229
+ }
230
+ if (props.isSupportTemperature && props.isSupportBrightness) {
231
+ return getTWDefSceneList()
232
+ }
233
+ if (props.isSupportBrightness) {
234
+ return getDIMDefSceneList()
235
+ }
236
+ return []
237
+ }
238
+
239
+ export function getDefFantasyScene({
240
+ isStringLight = false,
241
+ // isStripLight = false
242
+ }) {
243
+ if (isStringLight) {
244
+ return getStringLightSceneList()
245
+ }
246
+ return getStripLightSceneList()
247
+ }
248
+
249
+ function getRGBWDefSceneList(): RemoteSceneInfo[] {
250
+ return [
251
+ {
252
+ n: I18n.getLang('mesh_device_detail_lighting_goodnight'),
253
+ i: '000e0d0000000000000000c80000',
254
+ s: '',
255
+ t: 0,
256
+ e: false,
257
+ },
258
+ {
259
+ n: I18n.getLang('mesh_device_detail_lighting_read'),
260
+ i: '010e0d0000000000000003e801f4',
261
+ s: '',
262
+ t: 0,
263
+ e: false,
264
+ },
265
+ {
266
+ n: I18n.getLang('mesh_device_detail_lighting_work'),
267
+ i: '020e0d0000000000000003e803e8',
268
+ s: '',
269
+ t: 0,
270
+ e: false,
271
+ },
272
+ {
273
+ n: I18n.getLang('mesh_device_detail_lighting_leisure'),
274
+ i: '030e0d0000000000000001f401f4',
275
+ s: '',
276
+ t: 0,
277
+ e: false,
278
+ },
279
+ {
280
+ n: I18n.getLang('mesh_device_detail_lighting_color_mode'),
281
+ i: '05464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000464601003d03e803e80000000046460100ae03e803e800000000464601011303e803e800000000',
282
+ s: '',
283
+ t: 0,
284
+ e: false,
285
+ },
286
+ {
287
+ n: I18n.getLang('mesh_device_detail_lighting_white_mode'),
288
+ i: '0646460100000000000003e8000046460100000000000003e8019046460100000000000003e803e8',
289
+ s: '',
290
+ t: 0,
291
+ e: false,
292
+ },
293
+ ]
294
+ }
295
+
296
+ function getRGBDefSceneList(): RemoteSceneInfo[] {
297
+ return [
298
+ {
299
+ n: I18n.getLang('mesh_device_detail_lighting_goodnight'),
300
+ i: '000e0d0000000000000000c803e8',
301
+ s: '',
302
+ t: 0,
303
+ e: false,
304
+ },
305
+ {
306
+ n: I18n.getLang('mesh_device_detail_lighting_read'),
307
+ i: '010e0d0000000000000003e803e8',
308
+ s: '',
309
+ t: 0,
310
+ e: false,
311
+ },
312
+ {
313
+ n: I18n.getLang('mesh_device_detail_lighting_work'),
314
+ i: '020e0d0000000000000003e803e8',
315
+ s: '',
316
+ t: 0,
317
+ e: false,
318
+ },
319
+ {
320
+ n: I18n.getLang('mesh_device_detail_lighting_leisure'),
321
+ i: '030e0d0000000000000001f403e8',
322
+ s: '',
323
+ t: 0,
324
+ e: false,
325
+ },
326
+ {
327
+ n: I18n.getLang('mesh_device_detail_lighting_color_mode'),
328
+ i: '05464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000464601003d03e803e80000000046460100ae03e803e800000000464601011303e803e800000000',
329
+ s: '',
330
+ t: 0,
331
+ e: false,
332
+ },
333
+ {
334
+ n: I18n.getLang('mesh_device_detail_lighting_white_mode'),
335
+ i: '0646460100000000000003e8000046460100000000000003e8019046460100000000000003e803e8',
336
+ s: '',
337
+ t: 0,
338
+ e: false,
339
+ },
340
+ ]
341
+ }
342
+
343
+ function getOnlyRGBDefSceneList(): RemoteSceneInfo[] {
344
+ return [
345
+ {
346
+ n: I18n.getLang('mesh_device_detail_lighting_goodnight'),
347
+ i: '000e0d00002e03e802cc00000000',
348
+ s: '',
349
+ t: 0,
350
+ e: false,
351
+ },
352
+ {
353
+ n: I18n.getLang('mesh_device_detail_lighting_read'),
354
+ i: '010e0d000084000003e800000000',
355
+ s: '',
356
+ t: 0,
357
+ e: false,
358
+ },
359
+ {
360
+ n: I18n.getLang('mesh_device_detail_lighting_work'),
361
+ i: '020e0d00001403e803e800000000',
362
+ s: '',
363
+ t: 0,
364
+ e: false,
365
+ },
366
+ {
367
+ n: I18n.getLang('mesh_device_detail_lighting_leisure'),
368
+ i: '030e0d0000e80383031c00000000',
369
+ s: '',
370
+ t: 0,
371
+ e: false,
372
+ },
373
+ {
374
+ n: I18n.getLang('mesh_device_detail_lighting_color_mode'),
375
+ i: '05464601000003e803e800000000464601007803e803e80000000046460100f003e803e800000000464601003d03e803e80000000046460100ae03e803e800000000464601011303e803e800000000',
376
+ s: '',
377
+ t: 0,
378
+ e: false,
379
+ },
380
+ {
381
+ n: I18n.getLang('mesh_device_detail_lighting_white_mode'),
382
+ i: '0646460100000000000003e8000046460100000000000003e8019046460100000000000003e803e8',
383
+ s: '',
384
+ t: 0,
385
+ e: false,
386
+ },
387
+ ]
388
+ }
389
+
390
+ function getFanDefSceneList(): RemoteSceneInfo[] {
391
+ return [
392
+ {
393
+ n: I18n.getLang('mesh_device_detail_lighting_goodnight'),
394
+ i: '00000128280000000000000000c80000',
395
+ s: '',
396
+ t: 0,
397
+ e: false,
398
+ },
399
+ {
400
+ n: I18n.getLang('mesh_device_detail_lighting_read'),
401
+ i: '0100010e0d0000000000000003e801f4',
402
+ s: '',
403
+ t: 0,
404
+ e: false,
405
+ },
406
+ {
407
+ n: I18n.getLang('mesh_device_detail_lighting_work'),
408
+ i: '0200010e0d0000000000000003e803e8',
409
+ s: '',
410
+ t: 0,
411
+ e: false,
412
+ },
413
+ {
414
+ n: I18n.getLang('mesh_device_detail_lighting_leisure'),
415
+ i: '0300010e0d0000000000000001f401f4',
416
+ s: '',
417
+ t: 0,
418
+ e: false,
419
+ },
420
+ ]
421
+ }
422
+
423
+ function getTWDefSceneList(): RemoteSceneInfo[] {
424
+ return [
425
+ {
426
+ n: I18n.getLang('mesh_device_detail_lighting_goodnight'),
427
+ i: '000e0d0000000000000000c80000',
428
+ s: '',
429
+ t: 0,
430
+ e: false,
431
+ },
432
+ {
433
+ n: I18n.getLang('mesh_device_detail_lighting_read'),
434
+ i: '010e0d0000000000000003e801f4',
435
+ s: '',
436
+ t: 0,
437
+ e: false,
438
+ },
439
+ {
440
+ n: I18n.getLang('mesh_device_detail_lighting_work'),
441
+ i: '020e0d0000000000000003e803e8',
442
+ s: '',
443
+ t: 0,
444
+ e: false,
445
+ },
446
+ {
447
+ n: I18n.getLang('mesh_device_detail_lighting_leisure'),
448
+ i: '030e0d0000000000000001f401f4',
449
+ s: '',
450
+ t: 0,
451
+ e: false,
452
+ },
453
+ ]
454
+ }
455
+
456
+ function getDIMDefSceneList(): RemoteSceneInfo[] {
457
+ return [
458
+ {
459
+ n: I18n.getLang('mesh_device_detail_lighting_goodnight'),
460
+ i: '000e0d0000000000000000c803e8',
461
+ s: '',
462
+ t: 0,
463
+ e: false,
464
+ },
465
+ {
466
+ n: I18n.getLang('mesh_device_detail_lighting_read'),
467
+ i: '010e0d0000000000000003e803e8',
468
+ s: '',
469
+ t: 0,
470
+ e: false,
471
+ },
472
+ {
473
+ n: I18n.getLang('mesh_device_detail_lighting_work'),
474
+ i: '020e0d0000000000000003e803e8',
475
+ s: '',
476
+ t: 0,
477
+ e: false,
478
+ },
479
+ {
480
+ n: I18n.getLang('mesh_device_detail_lighting_leisure'),
481
+ i: '030e0d0000000000000001f403e8',
482
+ s: '',
483
+ t: 0,
484
+ e: false,
485
+ },
486
+ ]
487
+ }
488
+
489
+ function getStringLightSceneList(): RemoteSceneInfo[] {
490
+ return [
491
+ {
492
+ n: I18n.getLang('strip_lights_modes_flow_text'),
493
+ i: '010d0d3232000000640000640000000064003c64000000006400f06400000000',
494
+ s: '',
495
+ t: 0,
496
+ e: false,
497
+ },
498
+ {
499
+ n: I18n.getLang('strip_lights_modes_rainbow_text'),
500
+ i: '0102023232000000640000640000000064003c64000000006400f06400000000',
501
+ s: '',
502
+ t: 0,
503
+ e: false,
504
+ },
505
+ {
506
+ n: I18n.getLang('string_lights_modes_chase_text'),
507
+ i: '010e0e3232000000640000640000000064003c640000000064007864000000006400b464000000006400f0640000000064012c6400000000',
508
+ s: '',
509
+ t: 0,
510
+ e: false,
511
+ },
512
+ {
513
+ n: I18n.getLang('string_lights_modes_dazzle_text'),
514
+ i: '010f0f3232000000640000640000000064003c640000000064007864000000006400b464000000006400f0640000000064012c6400000000',
515
+ s: '',
516
+ t: 0,
517
+ e: false
518
+ },
519
+ {
520
+ n: I18n.getLang('other_lights_modes_gradient_text'),
521
+ i: '01101032320000006400f0640000000064012c640000000064003c6400000000',
522
+ s: '',
523
+ t: 0,
524
+ e: false,
525
+ },
526
+ {
527
+ n: I18n.getLang('other_lights_modes_jump_text'),
528
+ i: '010a0a32320000006400f0640000000064012c640000000064003c6400000000',
529
+ s: '',
530
+ t: 0,
531
+ e: false,
532
+ },
533
+ {
534
+ n: I18n.getLang('strip_lights_modes_breath_text'),
535
+ i: '010b0b32320000006400f0640000000064012c640000000064003c6400000000',
536
+ s: '',
537
+ t: 0,
538
+ e: false,
539
+ },
540
+ {
541
+ n: I18n.getLang('string_lights_modes_blink_text'),
542
+ i: '010c0c32320000006400f0640000000064012c640000000064003c6400000000',
543
+ s: '',
544
+ t: 0,
545
+ e: false,
546
+ },
547
+ ]
548
+ }
549
+
550
+ function getStripLightSceneList(): RemoteSceneInfo[] {
551
+ return [
552
+ {
553
+ n: I18n.getLang('strip_lights_mood_text1'),
554
+ i: '01150a5252e000006400c16100b43000b55200c463',
555
+ s: '',
556
+ t: 0,
557
+ e: false,
558
+ },
559
+ {
560
+ n: I18n.getLang('strip_lights_mood_text2'),
561
+ i: '01160a64646000006400925f00c660',
562
+ s: '',
563
+ t: 0,
564
+ e: false,
565
+ },
566
+ {
567
+ n: I18n.getLang('strip_lights_mood_text3'),
568
+ i: '0117035e5e6000006400382f001e5c00d545011a64',
569
+ s: '',
570
+ t: 0,
571
+ e: false,
572
+ },
573
+ {
574
+ n: I18n.getLang('strip_lights_mood_text4'),
575
+ i: '0118026464e000006400b239010a64012d64013f64',
576
+ s: '',
577
+ t: 0,
578
+ e: false
579
+ },
580
+ {
581
+ n: I18n.getLang('strip_lights_mood_text5'),
582
+ i: '01190a54546000006400b12c00c064',
583
+ s: '',
584
+ t: 0,
585
+ e: false,
586
+ },
587
+ {
588
+ n: I18n.getLang('strip_lights_mood_text6'),
589
+ i: '011a034b4be000006400e039010953',
590
+ s: '',
591
+ t: 0,
592
+ e: false,
593
+ },
594
+ {
595
+ n: I18n.getLang('strip_lights_mood_text7'),
596
+ i: '011b035f5f6000006400ae3900c45d00f964',
597
+ s: '',
598
+ t: 0,
599
+ e: false,
600
+ },
601
+ {
602
+ n: I18n.getLang('strip_lights_mood_text8'),
603
+ i: '011c0a5a5ae0000052009d64008e64',
604
+ s: '',
605
+ t: 0,
606
+ e: false,
607
+ },
608
+ {
609
+ n: I18n.getLang('strip_lights_mood_text9'),
610
+ i: '011d035252e000006400ae6400a66400c16400cc64',
611
+ s: '',
612
+ t: 0,
613
+ e: false,
614
+ },
615
+ {
616
+ n: I18n.getLang('strip_lights_mood_text10'),
617
+ i: '011e0a5252e000006400196400225e002c5b001464000c64',
618
+ s: '',
619
+ t: 0,
620
+ e: false,
621
+ },
622
+ {
623
+ n: I18n.getLang('strip_lights_mood_text11'),
624
+ i: '0147054d4d0000006401034500c143',
625
+ s: '',
626
+ t: 0,
627
+ e: false,
628
+ },
629
+ {
630
+ n: I18n.getLang('strip_lights_mood_text12'),
631
+ i: '014806323200000064014e41001f49',
632
+ s: '',
633
+ t: 0,
634
+ e: false,
635
+ },
636
+ {
637
+ n: I18n.getLang('strip_lights_mood_text13'),
638
+ i: '0149070e0e0000006400da37015241005c37',
639
+ s: '',
640
+ t: 0,
641
+ e: false,
642
+ },
643
+ {
644
+ n: I18n.getLang('strip_lights_mood_text14'),
645
+ i: '014a0832320000006400f75000294f010d3800a327',
646
+ s: '',
647
+ t: 0,
648
+ e: false,
649
+ },
650
+ {
651
+ n: I18n.getLang('strip_lights_mood_text15'),
652
+ i: '014b0932320000006401034500413a00254b005e42',
653
+ s: '',
654
+ t: 0,
655
+ e: false,
656
+ },
657
+ {
658
+ n: I18n.getLang('strip_lights_mood_text16'),
659
+ i: '014c0c32320000006400d84d00c143010345005c37',
660
+ s: '',
661
+ t: 0,
662
+ e: false,
663
+ },
664
+ {
665
+ n: I18n.getLang('strip_lights_mood_text17'),
666
+ i: '014d0d323200000064002864005e4200c16400ff50',
667
+ s: '',
668
+ t: 0,
669
+ e: false,
670
+ },
671
+ {
672
+ n: I18n.getLang('strip_lights_mood_text18'),
673
+ i: '014e0e323200000064003e5f00be5c',
674
+ s: '',
675
+ t: 0,
676
+ e: false,
677
+ },
678
+ {
679
+ n: I18n.getLang('strip_lights_mood_text19'),
680
+ i: '014f0f19190000006400bc64002d4e00006400643c',
681
+ s: '',
682
+ t: 0,
683
+ e: false,
684
+ },
685
+ {
686
+ n: I18n.getLang('strip_lights_mood_text20'),
687
+ i: '01501032320000006400e64700643c01194d00b839',
688
+ s: '',
689
+ t: 0,
690
+ e: false,
691
+ },
692
+ {
693
+ n: I18n.getLang('strip_lights_mood_text21'),
694
+ i: '011f025f5f6000006401106400d26400ad64008b64',
695
+ s: '',
696
+ t: 0,
697
+ e: false,
698
+ },
699
+ {
700
+ n: I18n.getLang('strip_lights_mood_text22'),
701
+ i: '01200a55556000006400c258013e3300ff46011d64',
702
+ s: '',
703
+ t: 0,
704
+ e: false,
705
+ },
706
+ {
707
+ n: I18n.getLang('strip_lights_mood_text23'),
708
+ i: '0121033c3c6000006400bf18010417',
709
+ s: '',
710
+ t: 0,
711
+ e: false,
712
+ },
713
+ {
714
+ n: I18n.getLang('strip_lights_mood_text24'),
715
+ i: '01220464646000006400d75c00bc5300371e002c3f01613f',
716
+ s: '',
717
+ t: 0,
718
+ e: false,
719
+ },
720
+ {
721
+ n: I18n.getLang('strip_lights_mood_text25'),
722
+ i: '01230264646000006401084b00b12f00cd57',
723
+ s: '',
724
+ t: 0,
725
+ e: false,
726
+ },
727
+ {
728
+ n: I18n.getLang('strip_lights_mood_text26'),
729
+ i: '01240a4b4b6000006400bc2600d65501186400f94d',
730
+ s: '',
731
+ t: 0,
732
+ e: false,
733
+ },
734
+ {
735
+ n: I18n.getLang('strip_lights_mood_text27'),
736
+ i: '01250343436000006400b735009b5400cd61',
737
+ s: '',
738
+ t: 0,
739
+ e: false,
740
+ },
741
+ {
742
+ n: I18n.getLang('strip_lights_mood_text28'),
743
+ i: '0126015959e000006401194701493d00cd61002664',
744
+ s: '',
745
+ t: 0,
746
+ e: false,
747
+ },
748
+ {
749
+ n: I18n.getLang('strip_lights_mood_text29'),
750
+ i: '0129026161e0000064000b6400d964002b6400916400b964',
751
+ s: '',
752
+ t: 0,
753
+ e: false,
754
+ },
755
+ {
756
+ n: I18n.getLang('strip_lights_mood_text30'),
757
+ i: '012a01646460000064011564010564014564012f64',
758
+ s: '',
759
+ t: 0,
760
+ e: false,
761
+ },
762
+ {
763
+ n: I18n.getLang('strip_lights_mood_text31'),
764
+ i: '012b035a5ae000006400005701166400da6400b364009564',
765
+ s: '',
766
+ t: 0,
767
+ e: false,
768
+ },
769
+ {
770
+ n: I18n.getLang('strip_lights_mood_text32'),
771
+ i: '012c0a484860000064003d64010c5b00ba49001761',
772
+ s: '',
773
+ t: 0,
774
+ e: false,
775
+ },
776
+ {
777
+ n: I18n.getLang('strip_lights_mood_text33'),
778
+ i: '012d02595960000064009c6300bc62007b60',
779
+ s: '',
780
+ t: 0,
781
+ e: false,
782
+ },
783
+ {
784
+ n: I18n.getLang('strip_lights_mood_text34'),
785
+ i: '012e035a5a60000064013e36010c56011f23',
786
+ s: '',
787
+ t: 0,
788
+ e: false,
789
+ },
790
+ {
791
+ n: I18n.getLang('strip_lights_mood_text35'),
792
+ i: '012f026464e000006400dc4200b64a00e14d',
793
+ s: '',
794
+ t: 0,
795
+ e: false,
796
+ },
797
+ {
798
+ n: I18n.getLang('strip_lights_mood_text36'),
799
+ i: '0130025e5e6000006400006400786400bb64',
800
+ s: '',
801
+ t: 0,
802
+ e: false,
803
+ },
804
+ {
805
+ n: I18n.getLang('strip_lights_mood_text37'),
806
+ i: '01330352526000006400885000d23900fb27',
807
+ s: '',
808
+ t: 0,
809
+ e: false,
810
+ },
811
+ {
812
+ n: I18n.getLang('strip_lights_mood_text38'),
813
+ i: '0134035d5d6000006400f73601352b00c634009129',
814
+ s: '',
815
+ t: 0,
816
+ e: false,
817
+ },
818
+ {
819
+ n: I18n.getLang('strip_lights_mood_text39'),
820
+ i: '01350352526000004d01126201305d',
821
+ s: '',
822
+ t: 0,
823
+ e: false,
824
+ },
825
+ {
826
+ n: I18n.getLang('strip_lights_mood_text40'),
827
+ i: '01360249496000006400663c003c49001e64',
828
+ s: '',
829
+ t: 0,
830
+ e: false,
831
+ },
832
+ {
833
+ n: I18n.getLang('strip_lights_mood_text41'),
834
+ i: '01370a5a5a6000006400335800186401004500e35e00ac30',
835
+ s: '',
836
+ t: 0,
837
+ e: false,
838
+ },
839
+ {
840
+ n: I18n.getLang('strip_lights_mood_text42'),
841
+ i: '0138025757e0000064010c64011a41014759001564003c38',
842
+ s: '',
843
+ t: 0,
844
+ e: false,
845
+ },
846
+ {
847
+ n: I18n.getLang('strip_lights_mood_text43'),
848
+ i: '0139034848e000006400596400b347',
849
+ s: '',
850
+ t: 0,
851
+ e: false,
852
+ },
853
+ {
854
+ n: I18n.getLang('strip_lights_mood_text44'),
855
+ i: '013a025d5de000004d00b45e011c6400e84900c65f',
856
+ s: '',
857
+ t: 0,
858
+ e: false,
859
+ },
860
+ ]
861
+ }
862
+
863
+ export const MAXSCENE = 8
864
+
865
+ export const AddScene = {
866
+ name: 'add',
867
+ image: '',
868
+ id: 9,
869
+ nodes: [],
870
+ }
871
+
872
+ export const NEWSCENE = {
873
+ image: 'scene_goodnight',
874
+ name: '',
875
+ nodes: [{
876
+ brightness: 100,
877
+ colorTemp: 0,
878
+ h: 0,
879
+ isColorNode: false,
880
+ s: 100,
881
+ switchingInterval: 13,
882
+ transitionMode: 0,
883
+ transitionTime: 13,
884
+ v: 100,
885
+ }],
886
+ }