@ledvance/ui-biz-bundle 1.1.56 → 1.1.58
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.
- package/package.json +2 -1
- package/src/modules/biorhythm/Router.ts +34 -0
- package/src/modules/fixedTime/Router.ts +26 -0
- package/src/modules/flags/FlagInfo.tsx +25 -25
- package/src/modules/flags/FlagPage.tsx +1 -1
- package/src/modules/flags/Router.ts +25 -0
- package/src/modules/history/Router.ts +16 -0
- package/src/modules/mood/FantasyRouter.ts +35 -0
- package/src/modules/mood/MixMood/Router.ts +44 -0
- package/src/modules/mood/Router.ts +53 -0
- package/src/modules/music/Router.ts +16 -0
- package/src/modules/powerOnBehavior/Router.ts +16 -0
- package/src/modules/randomTime/Router.ts +25 -0
- package/src/modules/sleepWakeup/Router.ts +25 -0
- package/src/modules/timeSchedule/Router.ts +25 -0
- package/src/modules/timer/Router.ts +16 -0
- package/src/navigation/Routers.d.ts +0 -7
- package/src/navigation/Routers.ts +15 -304
- package/src/newModules/childLock/ChildLockPage.tsx +97 -0
- package/src/newModules/childLock/Router.ts +16 -0
- package/src/newModules/energyConsumption/EnergyConsumptionActions.ts +23 -0
- package/src/newModules/energyConsumption/EnergyConsumptionChart.tsx +84 -0
- package/src/newModules/energyConsumption/EnergyConsumptionDetail.tsx +321 -0
- package/src/newModules/energyConsumption/EnergyConsumptionPage.tsx +392 -0
- package/src/newModules/energyConsumption/Router.ts +34 -0
- package/src/newModules/energyConsumption/co2Data.ts +23655 -0
- package/src/newModules/energyConsumption/component/BarChart.tsx +93 -0
- package/src/newModules/energyConsumption/component/EnergyModal.tsx +282 -0
- package/src/newModules/energyConsumption/component/Overview.tsx +116 -0
- package/src/newModules/fixedTime/FixedTimeActions.ts +234 -0
- package/src/newModules/fixedTime/FixedTimeDetailPage.tsx +341 -0
- package/src/newModules/fixedTime/FixedTimePage.tsx +231 -0
- package/src/newModules/fixedTime/Router.ts +25 -0
- package/src/newModules/lightMode/LightModePage.tsx +204 -0
- package/src/newModules/lightMode/Router.ts +16 -0
- package/src/newModules/mood/AddMoodPage.tsx +178 -0
- package/src/newModules/mood/DynamicMoodEditorPage.tsx +653 -0
- package/src/newModules/mood/Interface.ts +219 -0
- package/src/newModules/mood/MixDynamicMoodEditor.tsx +781 -0
- package/src/newModules/mood/MoodActions.ts +235 -0
- package/src/newModules/mood/MoodInfo.ts +2151 -0
- package/src/newModules/mood/MoodItem.tsx +148 -0
- package/src/newModules/mood/MoodPage.tsx +385 -0
- package/src/newModules/mood/MoodParse.ts +442 -0
- package/src/newModules/mood/RecommendMoodItem.tsx +68 -0
- package/src/newModules/mood/Router.ts +53 -0
- package/src/newModules/mood/StaticMoodEditorPage.tsx +343 -0
- package/src/newModules/mood/tools.ts +12 -0
- package/src/newModules/overchargeSwitch/OverchargeSwitchPage.tsx +96 -0
- package/src/newModules/overchargeSwitch/Router.ts +16 -0
- package/src/newModules/powerOnBehavior/LightBehaviorPage.tsx +266 -0
- package/src/newModules/powerOnBehavior/PlugBehaviorPage.tsx +173 -0
- package/src/newModules/powerOnBehavior/PowerOnBehaviorActions.ts +106 -0
- package/src/newModules/powerOnBehavior/Router.ts +16 -0
- package/src/newModules/randomTime/RandomTimeActions.ts +232 -0
- package/src/newModules/randomTime/RandomTimeDetailPage.tsx +322 -0
- package/src/newModules/randomTime/RandomTimePage.tsx +230 -0
- package/src/newModules/randomTime/Router.ts +25 -0
- package/src/newModules/randomTime/Summary.tsx +116 -0
- package/src/newModules/swithInching/Router.ts +16 -0
- package/src/newModules/swithInching/SwithInching.tsx +231 -0
- package/src/newModules/swithInching/SwithInchingAction.ts +55 -0
- package/src/newModules/swithInching/pickerView.tsx +91 -0
- package/src/newModules/timeSchedule/Interface.ts +111 -0
- package/src/newModules/timeSchedule/Router.ts +25 -0
- package/src/newModules/timeSchedule/TimeScheduleActions.ts +53 -0
- package/src/newModules/timeSchedule/TimeScheduleDetailPage.tsx +662 -0
- package/src/newModules/timeSchedule/TimeSchedulePage.tsx +222 -0
- package/src/newModules/timeSchedule/components/ManuaSettings.tsx +259 -0
- package/src/newModules/timeSchedule/components/ScheduleCard.tsx +109 -0
package/package.json
CHANGED
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
"name": "@ledvance/ui-biz-bundle",
|
|
5
5
|
"pid": [],
|
|
6
6
|
"uiid": "",
|
|
7
|
-
"version": "1.1.
|
|
7
|
+
"version": "1.1.58",
|
|
8
8
|
"scripts": {},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@ledvance/base": "^1.x",
|
|
11
|
+
"@ledvance/react-native-echarts-pro": "^1.x",
|
|
11
12
|
"@reduxjs/toolkit": "^1.8.6",
|
|
12
13
|
"@tuya/tuya-panel-api": "^1.12.0",
|
|
13
14
|
"@tuya/tuya-panel-lamp-sdk": "^1.14.1",
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import {NavigationRoute} from "tuya-panel-kit";
|
|
2
|
+
import BiorhythmPage from "./BiorhythmPage";
|
|
3
|
+
import BiorhythmEditPage from "./BiorhythmEditPage";
|
|
4
|
+
import BiologicalIconSelectPage from "./IconSelect";
|
|
5
|
+
import {ui_biz_routerKey} from "../../navigation/Routers";
|
|
6
|
+
|
|
7
|
+
const BiologicalRouters: NavigationRoute[] = [
|
|
8
|
+
{
|
|
9
|
+
name: ui_biz_routerKey.bi_biz_biological,
|
|
10
|
+
component: BiorhythmPage,
|
|
11
|
+
options: {
|
|
12
|
+
hideTopbar: true,
|
|
13
|
+
showOfflineView: false,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: ui_biz_routerKey.bi_biz_biological_edit,
|
|
18
|
+
component: BiorhythmEditPage,
|
|
19
|
+
options: {
|
|
20
|
+
hideTopbar: true,
|
|
21
|
+
showOfflineView: false,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: ui_biz_routerKey.bi_biz_biological_icon_select,
|
|
26
|
+
component: BiologicalIconSelectPage,
|
|
27
|
+
options: {
|
|
28
|
+
hideTopbar: true,
|
|
29
|
+
showOfflineView: false,
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
export default BiologicalRouters
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {NavigationRoute} from "tuya-panel-kit";
|
|
2
|
+
import {ui_biz_routerKey} from "../../navigation/Routers";
|
|
3
|
+
import FixedTimePage from "./FixedTimePage";
|
|
4
|
+
import FixedTimeDetailPage from "./FixedTimeDetailPage";
|
|
5
|
+
|
|
6
|
+
export const FixedTimePageRouters: NavigationRoute[] = [
|
|
7
|
+
{
|
|
8
|
+
name: ui_biz_routerKey.ui_biz_fixed_time,
|
|
9
|
+
component: FixedTimePage,
|
|
10
|
+
options: {
|
|
11
|
+
hideTopbar: true,
|
|
12
|
+
showOfflineView: false,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: ui_biz_routerKey.ui_biz_fixed_time_edit,
|
|
17
|
+
component: FixedTimeDetailPage,
|
|
18
|
+
options: {
|
|
19
|
+
hideTopbar: true,
|
|
20
|
+
showOfflineView: false,
|
|
21
|
+
},
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export default FixedTimePageRouters
|
|
@@ -64,7 +64,7 @@ export const defFlagList: FlagUiInfo[] = [
|
|
|
64
64
|
id: 252,
|
|
65
65
|
name: I18n.getLang('country_PT'),
|
|
66
66
|
...defFlagConfig,
|
|
67
|
-
colors: [{ h: 360, s: 100, v: 100 }, { h: 360, s: 100, v: 100 }, { h: 120, s: 100, v:
|
|
67
|
+
colors: [{ h: 360, s: 100, v: 100 }, { h: 360, s: 100, v: 100 }, { h: 120, s: 100, v: 64 }]
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
70
|
id: 251,
|
|
@@ -100,7 +100,7 @@ export const defFlagList: FlagUiInfo[] = [
|
|
|
100
100
|
id: 246,
|
|
101
101
|
name: I18n.getLang('country_HU'),
|
|
102
102
|
...defFlagConfig,
|
|
103
|
-
colors: [{ h: 120, s: 100, v:
|
|
103
|
+
colors: [{ h: 120, s: 100, v: 64 }, { h: 0, s: 0, v: 100 }, { h: 360, s: 100, v: 100 }]
|
|
104
104
|
},
|
|
105
105
|
{
|
|
106
106
|
id: 245,
|
|
@@ -148,7 +148,7 @@ export const defFlagList: FlagUiInfo[] = [
|
|
|
148
148
|
id: 238,
|
|
149
149
|
name: I18n.getLang('country_IT'),
|
|
150
150
|
...defFlagConfig,
|
|
151
|
-
colors: [{ h: 360, s: 100, v: 100 }, { h: 212, s: 4, v: 100 }, { h: 120, s: 100, v:
|
|
151
|
+
colors: [{ h: 360, s: 100, v: 100 }, { h: 212, s: 4, v: 100 }, { h: 120, s: 100, v: 64 }]
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
154
|
id: 237,
|
|
@@ -204,7 +204,7 @@ export const defFlagList: FlagUiInfo[] = [
|
|
|
204
204
|
id: 228,
|
|
205
205
|
name: I18n.getLang('country_IE'),
|
|
206
206
|
...defFlagConfig,
|
|
207
|
-
colors: [{ h: 45, s: 100, v: 100 }, { h: 0, s: 0, v: 100 }, { h: 147, s: 100, v:
|
|
207
|
+
colors: [{ h: 45, s: 100, v: 100 }, { h: 0, s: 0, v: 100 }, { h: 147, s: 100, v: 64 }],
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
210
|
id: 227,
|
|
@@ -258,7 +258,7 @@ export const defFlagList: FlagUiInfo[] = [
|
|
|
258
258
|
id: 219,
|
|
259
259
|
name: I18n.getLang('country_BR'),
|
|
260
260
|
...defFlagConfig,
|
|
261
|
-
colors: [{ h: 60, s: 100, v: 100 }, { h: 147, s: 100, v:
|
|
261
|
+
colors: [{ h: 60, s: 100, v: 100 }, { h: 147, s: 100, v: 64 }, { h: 0, s: 0, v: 100 },],
|
|
262
262
|
},
|
|
263
263
|
{
|
|
264
264
|
id: 218,
|
|
@@ -270,7 +270,7 @@ export const defFlagList: FlagUiInfo[] = [
|
|
|
270
270
|
id: 217,
|
|
271
271
|
name: I18n.getLang('country_AF'),
|
|
272
272
|
...defFlagConfig,
|
|
273
|
-
colors: [{ h: 147, s: 100, v:
|
|
273
|
+
colors: [{ h: 147, s: 100, v: 64 }, { h: 0, s: 100, v: 100 }, { h: 0, s: 0, v: 0 },],
|
|
274
274
|
},
|
|
275
275
|
{
|
|
276
276
|
id: 216,
|
|
@@ -282,7 +282,7 @@ export const defFlagList: FlagUiInfo[] = [
|
|
|
282
282
|
id: 215,
|
|
283
283
|
name: I18n.getLang('country_ET'),
|
|
284
284
|
...defFlagConfig,
|
|
285
|
-
colors: [{ h: 0, s: 100, v: 100 }, { h: 60, s: 100, v: 100 }, { h: 147, s: 100, v:
|
|
285
|
+
colors: [{ h: 0, s: 100, v: 100 }, { h: 60, s: 100, v: 100 }, { h: 147, s: 100, v: 64 },],
|
|
286
286
|
},
|
|
287
287
|
{
|
|
288
288
|
id: 214,
|
|
@@ -294,7 +294,7 @@ export const defFlagList: FlagUiInfo[] = [
|
|
|
294
294
|
id: 213,
|
|
295
295
|
name: I18n.getLang('country_BO'),
|
|
296
296
|
...defFlagConfig,
|
|
297
|
-
colors: [{ h: 147, s: 100, v:
|
|
297
|
+
colors: [{ h: 147, s: 100, v: 64 }, { h: 60, s: 100, v: 100 }, { h: 0, s: 100, v: 100 },],
|
|
298
298
|
},
|
|
299
299
|
{
|
|
300
300
|
id: 212,
|
|
@@ -318,7 +318,7 @@ export const defFlagList: FlagUiInfo[] = [
|
|
|
318
318
|
id: 209,
|
|
319
319
|
name: I18n.getLang('country_CI'),
|
|
320
320
|
...defFlagConfig,
|
|
321
|
-
colors: [{ h: 147, s: 100, v:
|
|
321
|
+
colors: [{ h: 147, s: 100, v: 64 }, { h: 0, s: 0, v: 100 }, { h: 45, s: 100, v: 100 },],
|
|
322
322
|
},
|
|
323
323
|
{
|
|
324
324
|
id: 208,
|
|
@@ -348,7 +348,7 @@ export const defFlagList: FlagUiInfo[] = [
|
|
|
348
348
|
id: 204,
|
|
349
349
|
name: I18n.getLang('country_IN'),
|
|
350
350
|
...defFlagConfig,
|
|
351
|
-
colors: [{ h: 147, s: 100, v:
|
|
351
|
+
colors: [{ h: 147, s: 100, v: 64 }, { h: 0, s: 0, v: 100 }, { h: 45, s: 100, v: 100 },],
|
|
352
352
|
},
|
|
353
353
|
{
|
|
354
354
|
id: 203,
|
|
@@ -360,7 +360,7 @@ export const defFlagList: FlagUiInfo[] = [
|
|
|
360
360
|
id: 202,
|
|
361
361
|
name: I18n.getLang('country_ir'),
|
|
362
362
|
...defFlagConfig,
|
|
363
|
-
colors: [{ h: 0, s: 100, v: 100 }, { h: 0, s: 0, v: 100 }, { h: 147, s: 100, v:
|
|
363
|
+
colors: [{ h: 0, s: 100, v: 100 }, { h: 0, s: 0, v: 100 }, { h: 147, s: 100, v: 64 },],
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
366
|
id: 201,
|
|
@@ -372,13 +372,13 @@ export const defFlagList: FlagUiInfo[] = [
|
|
|
372
372
|
id: 200,
|
|
373
373
|
name: I18n.getLang('country_JM'),
|
|
374
374
|
...defFlagConfig,
|
|
375
|
-
colors: [{ h: 60, s: 100, v: 100 }, { h: 0, s: 0, v: 0 }, { h: 147, s: 100, v:
|
|
375
|
+
colors: [{ h: 60, s: 100, v: 100 }, { h: 0, s: 0, v: 0 }, { h: 147, s: 100, v: 64 },],
|
|
376
376
|
},
|
|
377
377
|
{
|
|
378
378
|
id: 199,
|
|
379
379
|
name: I18n.getLang('country_CY'),
|
|
380
380
|
...defFlagConfig,
|
|
381
|
-
colors: [{ h: 147, s: 100, v:
|
|
381
|
+
colors: [{ h: 147, s: 100, v: 64 }, { h: 0, s: 0, v: 100 }, { h: 45, s: 100, v: 100 },],
|
|
382
382
|
},
|
|
383
383
|
{
|
|
384
384
|
id: 198,
|
|
@@ -402,7 +402,7 @@ export const defFlagList: FlagUiInfo[] = [
|
|
|
402
402
|
id: 195,
|
|
403
403
|
name: I18n.getLang('country_CG'),
|
|
404
404
|
...defFlagConfig,
|
|
405
|
-
colors: [{ h: 0, s: 100, v: 100 }, { h: 60, s: 100, v: 100 }, { h: 147, s: 100, v:
|
|
405
|
+
colors: [{ h: 0, s: 100, v: 100 }, { h: 60, s: 100, v: 100 }, { h: 147, s: 100, v: 64 },],
|
|
406
406
|
},
|
|
407
407
|
{
|
|
408
408
|
id: 194,
|
|
@@ -420,13 +420,13 @@ export const defFlagList: FlagUiInfo[] = [
|
|
|
420
420
|
id: 192,
|
|
421
421
|
name: I18n.getLang('country_LY'),
|
|
422
422
|
...defFlagConfig,
|
|
423
|
-
colors: [{ h: 147, s: 100, v:
|
|
423
|
+
colors: [{ h: 147, s: 100, v: 64 }, { h: 0, s: 0, v: 0 }, { h: 0, s: 100, v: 100 },],
|
|
424
424
|
},
|
|
425
425
|
{
|
|
426
426
|
id: 191,
|
|
427
427
|
name: I18n.getLang('country_LT'),
|
|
428
428
|
...defFlagConfig,
|
|
429
|
-
colors: [{ h: 0, s: 100, v: 100 }, { h: 147, s: 100, v:
|
|
429
|
+
colors: [{ h: 0, s: 100, v: 100 }, { h: 147, s: 100, v: 64 }, { h: 60, s: 100, v: 100 },],
|
|
430
430
|
},
|
|
431
431
|
{
|
|
432
432
|
id: 190,
|
|
@@ -438,7 +438,7 @@ export const defFlagList: FlagUiInfo[] = [
|
|
|
438
438
|
id: 189,
|
|
439
439
|
name: I18n.getLang('country_MG'),
|
|
440
440
|
...defFlagConfig,
|
|
441
|
-
colors: [{ h: 147, s: 100, v:
|
|
441
|
+
colors: [{ h: 147, s: 100, v: 64 }, { h: 0, s: 100, v: 100 }, { h: 0, s: 0, v: 100 },],
|
|
442
442
|
},
|
|
443
443
|
{
|
|
444
444
|
id: 188,
|
|
@@ -450,7 +450,7 @@ export const defFlagList: FlagUiInfo[] = [
|
|
|
450
450
|
id: 187,
|
|
451
451
|
name: I18n.getLang('country_MA'),
|
|
452
452
|
...defFlagConfig,
|
|
453
|
-
colors: [{ h: 147, s: 100, v:
|
|
453
|
+
colors: [{ h: 147, s: 100, v: 64 }, { h: 0, s: 100, v: 100 },],
|
|
454
454
|
},
|
|
455
455
|
{
|
|
456
456
|
id: 186,
|
|
@@ -462,7 +462,7 @@ export const defFlagList: FlagUiInfo[] = [
|
|
|
462
462
|
id: 185,
|
|
463
463
|
name: I18n.getLang('country_NA'),
|
|
464
464
|
...defFlagConfig,
|
|
465
|
-
colors: [{ h: 0, s: 100, v: 100 }, { h: 0, s: 0, v: 100 }, { h: 60, s: 100, v: 100 }, { h: 220, s: 100, v: 100 },],
|
|
465
|
+
colors: [{ h: 147, s: 100, v: 64 }, { h: 0, s: 100, v: 100 }, { h: 0, s: 0, v: 100 }, { h: 60, s: 100, v: 100 }, { h: 220, s: 100, v: 100 },],
|
|
466
466
|
},
|
|
467
467
|
{
|
|
468
468
|
id: 184,
|
|
@@ -474,19 +474,19 @@ export const defFlagList: FlagUiInfo[] = [
|
|
|
474
474
|
id: 183,
|
|
475
475
|
name: I18n.getLang('country_NG'),
|
|
476
476
|
...defFlagConfig,
|
|
477
|
-
colors: [{ h: 147, s: 100, v:
|
|
477
|
+
colors: [{ h: 147, s: 100, v: 64 }, { h: 0, s: 0, v: 100 }, { h: 147, s: 100, v: 64 },],
|
|
478
478
|
},
|
|
479
479
|
{
|
|
480
480
|
id: 182,
|
|
481
481
|
name: I18n.getLang('country_PK'),
|
|
482
482
|
...defFlagConfig,
|
|
483
|
-
colors: [{ h: 147, s: 100, v:
|
|
483
|
+
colors: [{ h: 147, s: 100, v: 64 }, { h: 0, s: 0, v: 100 },],
|
|
484
484
|
},
|
|
485
485
|
{
|
|
486
486
|
id: 181,
|
|
487
487
|
name: I18n.getLang('country_PS'),
|
|
488
488
|
...defFlagConfig,
|
|
489
|
-
colors: [{ h: 147, s: 100, v:
|
|
489
|
+
colors: [{ h: 147, s: 100, v: 64 }, { h: 0, s: 0, v: 100 }, { h: 0, s: 0, v: 0 }, { h: 0, s: 100, v: 100 },],
|
|
490
490
|
},
|
|
491
491
|
{
|
|
492
492
|
id: 180,
|
|
@@ -522,13 +522,13 @@ export const defFlagList: FlagUiInfo[] = [
|
|
|
522
522
|
id: 175,
|
|
523
523
|
name: I18n.getLang('country_ZA'),
|
|
524
524
|
...defFlagConfig,
|
|
525
|
-
colors: [{ h: 205, s: 100, v: 100 }, { h: 147, s: 100, v:
|
|
525
|
+
colors: [{ h: 0, s: 0, v: 0 },{ h: 60, s: 100, v: 100 },{ h: 205, s: 100, v: 100 }, { h: 147, s: 100, v: 64 }, { h: 0, s: 0, v: 100 }, { h: 0, s: 100, v: 100 },],
|
|
526
526
|
},
|
|
527
527
|
{
|
|
528
528
|
id: 174,
|
|
529
529
|
name: I18n.getLang('country_sy'),
|
|
530
530
|
...defFlagConfig,
|
|
531
|
-
colors: [{ h: 0, s: 0, v: 0 }, { h: 147, s: 100, v:
|
|
531
|
+
colors: [{ h: 0, s: 0, v: 0 }, { h: 147, s: 100, v: 64 }, { h: 0, s: 0, v: 100 }, { h: 0, s: 100, v: 100 },],
|
|
532
532
|
},
|
|
533
533
|
{
|
|
534
534
|
id: 173,
|
|
@@ -560,4 +560,4 @@ export const defFlagList: FlagUiInfo[] = [
|
|
|
560
560
|
...defFlagConfig,
|
|
561
561
|
colors: [{ h: 0, s: 100, v: 100 }, { h: 205, s: 100, v: 100 }, { h: 60, s: 100, v: 100 },],
|
|
562
562
|
}
|
|
563
|
-
]
|
|
563
|
+
]
|
|
@@ -106,7 +106,7 @@ const FlagPage = () => {
|
|
|
106
106
|
}, [JSON.stringify(flags)])
|
|
107
107
|
|
|
108
108
|
useUpdateEffect(() =>{
|
|
109
|
-
state.flags = state.searchText !== '' ? cloneDeep(flags).filter(flag => flag.name.includes(state.searchText)) : cloneDeep(flags)
|
|
109
|
+
state.flags = state.searchText !== '' ? cloneDeep(flags).filter(flag => (flag.name ?? '').toLowerCase().includes(state.searchText.toLowerCase())) : cloneDeep(flags)
|
|
110
110
|
}, [state.searchText, flags])
|
|
111
111
|
|
|
112
112
|
const getRemoteFlagInfo = async (isRefresh?: boolean) => {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {NavigationRoute} from "tuya-panel-kit";
|
|
2
|
+
import FlagPage from "./FlagPage";
|
|
3
|
+
import FlagEditPage from "./FlagEditPage";
|
|
4
|
+
import {ui_biz_routerKey} from "../../navigation/Routers";
|
|
5
|
+
|
|
6
|
+
const FlagPageRouters: NavigationRoute[] = [
|
|
7
|
+
{
|
|
8
|
+
name: ui_biz_routerKey.ui_biz_flag_page,
|
|
9
|
+
component: FlagPage,
|
|
10
|
+
options: {
|
|
11
|
+
hideTopbar: true,
|
|
12
|
+
showOfflineView: false,
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: ui_biz_routerKey.ui_biz_flag_page_edit,
|
|
17
|
+
component: FlagEditPage,
|
|
18
|
+
options: {
|
|
19
|
+
hideTopbar: true,
|
|
20
|
+
showOfflineView: false,
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
export default FlagPageRouters
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {NavigationRoute} from "tuya-panel-kit";
|
|
2
|
+
import HistoryPage from "./HistoryPage";
|
|
3
|
+
import {ui_biz_routerKey} from "../../navigation/Routers";
|
|
4
|
+
|
|
5
|
+
const HistoryPageRouters: NavigationRoute[] = [
|
|
6
|
+
{
|
|
7
|
+
name: ui_biz_routerKey.ui_biz_history,
|
|
8
|
+
component: HistoryPage,
|
|
9
|
+
options: {
|
|
10
|
+
hideTopbar: true,
|
|
11
|
+
showOfflineView: false,
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
export default HistoryPageRouters
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import {NavigationRoute, TransitionPresets} from "tuya-panel-kit";
|
|
2
|
+
import FantasyMoodPage from "./FantasyMood";
|
|
3
|
+
import FantasyMoodEditPage from "./FantasyMoodEditPage";
|
|
4
|
+
import SelectPage from "../select/SelectPage";
|
|
5
|
+
import {ui_biz_routerKey} from "../../navigation/Routers";
|
|
6
|
+
|
|
7
|
+
const FantasyMoodRouters: NavigationRoute[] = [
|
|
8
|
+
{
|
|
9
|
+
name: ui_biz_routerKey.ui_biz_fantasy_mood,
|
|
10
|
+
component: FantasyMoodPage,
|
|
11
|
+
options: {
|
|
12
|
+
hideTopbar: true,
|
|
13
|
+
showOfflineView: false,
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
name: ui_biz_routerKey.ui_biz_fantasy_mood_edit,
|
|
18
|
+
component: FantasyMoodEditPage,
|
|
19
|
+
options: {
|
|
20
|
+
hideTopbar: true,
|
|
21
|
+
showOfflineView: false,
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
name: ui_biz_routerKey.ui_biz_select_page,
|
|
26
|
+
component: SelectPage,
|
|
27
|
+
options: {
|
|
28
|
+
gesture: true,
|
|
29
|
+
hideTopbar: true,
|
|
30
|
+
...TransitionPresets.ModalPresentationIOS,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
]
|
|
34
|
+
|
|
35
|
+
export default FantasyMoodRouters
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {NavigationRoute, TransitionPresets} from "tuya-panel-kit";
|
|
2
|
+
import MixMoodPage from "./MixMoodPage";
|
|
3
|
+
import MixMoodEditPage from "./MixMoodEditPage";
|
|
4
|
+
import AddMixMoodPage from "./AddMixMoodPage";
|
|
5
|
+
import SelectPage from "../../select/SelectPage";
|
|
6
|
+
import {ui_biz_routerKey} from "../../../navigation/Routers";
|
|
7
|
+
|
|
8
|
+
const MixMoodRouters: NavigationRoute[] = [
|
|
9
|
+
{
|
|
10
|
+
name: ui_biz_routerKey.ui_biz_mix_mood,
|
|
11
|
+
component: MixMoodPage,
|
|
12
|
+
options: {
|
|
13
|
+
hideTopbar: true,
|
|
14
|
+
showOfflineView: false,
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
name: ui_biz_routerKey.ui_biz_mix_mood_edit,
|
|
19
|
+
component: MixMoodEditPage,
|
|
20
|
+
options: {
|
|
21
|
+
hideTopbar: true,
|
|
22
|
+
showOfflineView: false,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: ui_biz_routerKey.ui_biz_mix_mood_add,
|
|
27
|
+
component: AddMixMoodPage,
|
|
28
|
+
options: {
|
|
29
|
+
hideTopbar: true,
|
|
30
|
+
showOfflineView: false,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
name: ui_biz_routerKey.ui_biz_select_page,
|
|
35
|
+
component: SelectPage,
|
|
36
|
+
options: {
|
|
37
|
+
gesture: true,
|
|
38
|
+
hideTopbar: true,
|
|
39
|
+
...TransitionPresets.ModalPresentationIOS,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
export default MixMoodRouters
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import {NavigationRoute, TransitionPresets} from "tuya-panel-kit";
|
|
2
|
+
import DynamicMoodEditorPage from "./DynamicMoodEditorPage";
|
|
3
|
+
import StaticMoodEditorPage from "./StaticMoodEditorPage";
|
|
4
|
+
import AddMoodPage from "./AddMoodPage";
|
|
5
|
+
import MoodPage from "./MoodPage";
|
|
6
|
+
import SelectPage from "../select/SelectPage";
|
|
7
|
+
import {ui_biz_routerKey} from "../../navigation/Routers";
|
|
8
|
+
|
|
9
|
+
const MoodPageRouters: NavigationRoute[] = [
|
|
10
|
+
{
|
|
11
|
+
name: ui_biz_routerKey.ui_biz_dynamic_mood_edit,
|
|
12
|
+
component: DynamicMoodEditorPage,
|
|
13
|
+
options: {
|
|
14
|
+
hideTopbar: true,
|
|
15
|
+
showOfflineView: false,
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
name: ui_biz_routerKey.ui_biz_static_mood_edit,
|
|
20
|
+
component: StaticMoodEditorPage,
|
|
21
|
+
options: {
|
|
22
|
+
hideTopbar: true,
|
|
23
|
+
showOfflineView: false,
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: ui_biz_routerKey.ui_biz_mood_add,
|
|
28
|
+
component: AddMoodPage,
|
|
29
|
+
options: {
|
|
30
|
+
hideTopbar: true,
|
|
31
|
+
showOfflineView: false,
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: ui_biz_routerKey.ui_biz_mood,
|
|
36
|
+
component: MoodPage,
|
|
37
|
+
options: {
|
|
38
|
+
hideTopbar: true,
|
|
39
|
+
showOfflineView: false,
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: ui_biz_routerKey.ui_biz_select_page,
|
|
44
|
+
component: SelectPage,
|
|
45
|
+
options: {
|
|
46
|
+
gesture: true,
|
|
47
|
+
hideTopbar: true,
|
|
48
|
+
...TransitionPresets.ModalPresentationIOS,
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
]
|
|
52
|
+
|
|
53
|
+
export default MoodPageRouters
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {NavigationRoute} from "tuya-panel-kit";
|
|
2
|
+
import MusicPage from "./MusicPage";
|
|
3
|
+
import {ui_biz_routerKey} from "../../navigation/Routers";
|
|
4
|
+
|
|
5
|
+
const MusicPageRouters: NavigationRoute[] = [
|
|
6
|
+
{
|
|
7
|
+
name: ui_biz_routerKey.ui_biz_music,
|
|
8
|
+
component: MusicPage,
|
|
9
|
+
options: {
|
|
10
|
+
hideTopbar: true,
|
|
11
|
+
showOfflineView: false,
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
export default MusicPageRouters
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {NavigationRoute} from "tuya-panel-kit";
|
|
2
|
+
import PowerOnBehaviorPage from "./PowerOnBehaviorPage";
|
|
3
|
+
import {ui_biz_routerKey} from "../../navigation/Routers";
|
|
4
|
+
|
|
5
|
+
const PowerOnBehaviorPageRouters: NavigationRoute[] = [
|
|
6
|
+
{
|
|
7
|
+
name: ui_biz_routerKey.ui_biz_power_behavior,
|
|
8
|
+
component: PowerOnBehaviorPage,
|
|
9
|
+
options: {
|
|
10
|
+
hideTopbar: true,
|
|
11
|
+
showOfflineView: false,
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
export default PowerOnBehaviorPageRouters
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {NavigationRoute} from "tuya-panel-kit";
|
|
2
|
+
import RandomTimePage from "./RandomTimePage";
|
|
3
|
+
import RandomTimeDetailPage from "./RandomTimeDetailPage";
|
|
4
|
+
import {ui_biz_routerKey} from "../../navigation/Routers";
|
|
5
|
+
|
|
6
|
+
const RandomTimePageRouters: NavigationRoute[] = [
|
|
7
|
+
{
|
|
8
|
+
name: ui_biz_routerKey.ui_biz_random_time,
|
|
9
|
+
component: RandomTimePage,
|
|
10
|
+
options: {
|
|
11
|
+
hideTopbar: true,
|
|
12
|
+
showOfflineView: false,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: ui_biz_routerKey.ui_biz_random_time_edit,
|
|
17
|
+
component: RandomTimeDetailPage,
|
|
18
|
+
options: {
|
|
19
|
+
hideTopbar: true,
|
|
20
|
+
showOfflineView: false,
|
|
21
|
+
},
|
|
22
|
+
}
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
export default RandomTimePageRouters
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {NavigationRoute} from "tuya-panel-kit";
|
|
2
|
+
import SleepWakeUpPage from "./SleepWakeUpPage";
|
|
3
|
+
import SleepWakeUpDetailPage from "./SleepWakeUpDetailPage";
|
|
4
|
+
import {ui_biz_routerKey} from "../../navigation/Routers";
|
|
5
|
+
|
|
6
|
+
const SleepWakeUpPageRouters: NavigationRoute[] = [
|
|
7
|
+
{
|
|
8
|
+
name: ui_biz_routerKey.ui_biz_sleep_wakeUp,
|
|
9
|
+
component: SleepWakeUpPage,
|
|
10
|
+
options: {
|
|
11
|
+
hideTopbar: true,
|
|
12
|
+
showOfflineView: false,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: ui_biz_routerKey.ui_biz_sleep_wakeUp_edit,
|
|
17
|
+
component: SleepWakeUpDetailPage,
|
|
18
|
+
options: {
|
|
19
|
+
hideTopbar: true,
|
|
20
|
+
showOfflineView: false,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
export default SleepWakeUpPageRouters
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {NavigationRoute} from "tuya-panel-kit";
|
|
2
|
+
import TimeSchedulePage from "./TimeSchedulePage";
|
|
3
|
+
import TimeScheduleEditPage from "./TimeScheduleEditpage";
|
|
4
|
+
import {ui_biz_routerKey} from "../../navigation/Routers";
|
|
5
|
+
|
|
6
|
+
const TimeSchedulePageRouters: NavigationRoute[] = [
|
|
7
|
+
{
|
|
8
|
+
name: ui_biz_routerKey.ui_biz_time_schedule,
|
|
9
|
+
component: TimeSchedulePage,
|
|
10
|
+
options: {
|
|
11
|
+
hideTopbar: true,
|
|
12
|
+
showOfflineView: false,
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
name: ui_biz_routerKey.ui_biz_time_schedule_edit,
|
|
17
|
+
component: TimeScheduleEditPage,
|
|
18
|
+
options: {
|
|
19
|
+
hideTopbar: true,
|
|
20
|
+
showOfflineView: false,
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
]
|
|
24
|
+
|
|
25
|
+
export default TimeSchedulePageRouters
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {NavigationRoute} from "tuya-panel-kit";
|
|
2
|
+
import TimerPage from "./TimerPage";
|
|
3
|
+
import {ui_biz_routerKey} from "../../navigation/Routers";
|
|
4
|
+
|
|
5
|
+
const TimerPageRouters: NavigationRoute[] = [
|
|
6
|
+
{
|
|
7
|
+
name: ui_biz_routerKey.ui_biz_timer,
|
|
8
|
+
component: TimerPage,
|
|
9
|
+
options: {
|
|
10
|
+
hideTopbar: true,
|
|
11
|
+
showOfflineView: false,
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
]
|
|
15
|
+
|
|
16
|
+
export default TimerPageRouters
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { NavigationRoute } from 'tuya-panel-kit';
|
|
2
1
|
export declare const ui_biz_routerKey: {
|
|
3
2
|
ui_biz_time_schedule: string;
|
|
4
3
|
ui_biz_time_schedule_edit: string;
|
|
@@ -14,9 +13,3 @@ export declare const ui_biz_routerKey: {
|
|
|
14
13
|
ui_biz_sleep_wakeUp_edit: string;
|
|
15
14
|
ui_biz_music: string;
|
|
16
15
|
};
|
|
17
|
-
export declare const BiologicalRouters: NavigationRoute[];
|
|
18
|
-
export declare const TimeSchedulePageRouters: NavigationRoute[];
|
|
19
|
-
export declare const MoodPageRouters: NavigationRoute[];
|
|
20
|
-
export declare const TimerPageRouters: NavigationRoute[];
|
|
21
|
-
export declare const SleepWakeUpPageRouters: NavigationRoute[];
|
|
22
|
-
export declare const MusicPageRouters: NavigationRoute[];
|