@ledvance/base 1.0.15 → 1.0.16
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 +1 -1
- package/src/api/native.d.ts +2 -0
- package/src/api/native.ts +26 -0
- package/src/i18n/strings.d.ts +151 -1
- package/src/i18n/strings.ts +6171 -6986
package/package.json
CHANGED
package/src/api/native.d.ts
CHANGED
|
@@ -14,4 +14,6 @@ export declare class NativeApi {
|
|
|
14
14
|
static deleteDevice(deviceId: string, isReset: boolean): Promise<NativeResult<any>>;
|
|
15
15
|
static renameDevice(deviceId: string, name: string): Promise<NativeResult<any>>;
|
|
16
16
|
static toDeviceSettingsPage(deviceId: string): void;
|
|
17
|
+
static putJson(deviceId: string, featureType: string, json: string): Promise<Result<any>>;
|
|
18
|
+
static getJson(deviceId: string, featureType: string): Promise<Result<string>>;
|
|
17
19
|
}
|
package/src/api/native.ts
CHANGED
|
@@ -9,6 +9,8 @@ interface LDVDevicePanelManager {
|
|
|
9
9
|
deleteDevice: (deviceId: string, isReset: boolean, callback: (result: any) => void) => void
|
|
10
10
|
rename: (deviceId: string, name: string, callback: (result: any) => void) => void
|
|
11
11
|
toDeviceSettingsPage: (deviceId: string) => void
|
|
12
|
+
putJson: (deviceId: string, featureType: string, json: string, callback: (res: NativeResult<any>) => void) => void
|
|
13
|
+
getJson: (deviceId: string, featureType: string, callback: (res: NativeResult<string>) => void) => void
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
const devicePanel: LDVDevicePanelManager = NativeModules.LDVDevicePanelManager
|
|
@@ -181,4 +183,28 @@ export class NativeApi {
|
|
|
181
183
|
static toDeviceSettingsPage(deviceId: string): void {
|
|
182
184
|
toDeviceSettingsPage(deviceId)
|
|
183
185
|
}
|
|
186
|
+
|
|
187
|
+
static putJson(deviceId: string, featureType: string, json: string): Promise<Result<any>> {
|
|
188
|
+
return new Promise<Result<any>>(resolve => {
|
|
189
|
+
devicePanel.putJson(deviceId, featureType, json, nativeRes => {
|
|
190
|
+
resolve({
|
|
191
|
+
success: nativeRes.result,
|
|
192
|
+
data: nativeRes.data,
|
|
193
|
+
msg: nativeRes.msg,
|
|
194
|
+
})
|
|
195
|
+
})
|
|
196
|
+
})
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
static getJson(deviceId: string, featureType: string): Promise<Result<string>> {
|
|
200
|
+
return new Promise<Result<string>>(resolve => {
|
|
201
|
+
devicePanel.getJson(deviceId, featureType, nativeRes => {
|
|
202
|
+
resolve({
|
|
203
|
+
success: nativeRes.result,
|
|
204
|
+
data: nativeRes.data,
|
|
205
|
+
msg: nativeRes.msg,
|
|
206
|
+
})
|
|
207
|
+
})
|
|
208
|
+
})
|
|
209
|
+
}
|
|
184
210
|
}
|
package/src/i18n/strings.d.ts
CHANGED
|
@@ -242,6 +242,12 @@ declare const _default: {
|
|
|
242
242
|
devicemusic_game_text: string;
|
|
243
243
|
devicemusic_romantic_text: string;
|
|
244
244
|
devicemusic_music_text: string;
|
|
245
|
+
light_sources_feature_2_text_min_off: string;
|
|
246
|
+
light_sources_feature_2_text_min_on: string;
|
|
247
|
+
light_sources_feature_2_switched_off_text: string;
|
|
248
|
+
light_sources_feature_2_switched_on_text: string;
|
|
249
|
+
switch_overcharge_headline_text: string;
|
|
250
|
+
switch_overcharge_headline_description: string;
|
|
245
251
|
};
|
|
246
252
|
cs: {
|
|
247
253
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -486,6 +492,12 @@ declare const _default: {
|
|
|
486
492
|
devicemusic_game_text: string;
|
|
487
493
|
devicemusic_romantic_text: string;
|
|
488
494
|
devicemusic_music_text: string;
|
|
495
|
+
light_sources_feature_2_text_min_off: string;
|
|
496
|
+
light_sources_feature_2_text_min_on: string;
|
|
497
|
+
light_sources_feature_2_switched_off_text: string;
|
|
498
|
+
light_sources_feature_2_switched_on_text: string;
|
|
499
|
+
switch_overcharge_headline_text: string;
|
|
500
|
+
switch_overcharge_headline_description: string;
|
|
489
501
|
};
|
|
490
502
|
en: {
|
|
491
503
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -730,6 +742,12 @@ declare const _default: {
|
|
|
730
742
|
devicemusic_game_text: string;
|
|
731
743
|
devicemusic_romantic_text: string;
|
|
732
744
|
devicemusic_music_text: string;
|
|
745
|
+
light_sources_feature_2_text_min_off: string;
|
|
746
|
+
light_sources_feature_2_text_min_on: string;
|
|
747
|
+
light_sources_feature_2_switched_off_text: string;
|
|
748
|
+
light_sources_feature_2_switched_on_text: string;
|
|
749
|
+
switch_overcharge_headline_text: string;
|
|
750
|
+
switch_overcharge_headline_description: string;
|
|
733
751
|
};
|
|
734
752
|
bg: {
|
|
735
753
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -974,6 +992,12 @@ declare const _default: {
|
|
|
974
992
|
devicemusic_game_text: string;
|
|
975
993
|
devicemusic_romantic_text: string;
|
|
976
994
|
devicemusic_music_text: string;
|
|
995
|
+
light_sources_feature_2_text_min_off: string;
|
|
996
|
+
light_sources_feature_2_text_min_on: string;
|
|
997
|
+
light_sources_feature_2_switched_off_text: string;
|
|
998
|
+
light_sources_feature_2_switched_on_text: string;
|
|
999
|
+
switch_overcharge_headline_text: string;
|
|
1000
|
+
switch_overcharge_headline_description: string;
|
|
977
1001
|
};
|
|
978
1002
|
da: {
|
|
979
1003
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -1218,6 +1242,12 @@ declare const _default: {
|
|
|
1218
1242
|
devicemusic_game_text: string;
|
|
1219
1243
|
devicemusic_romantic_text: string;
|
|
1220
1244
|
devicemusic_music_text: string;
|
|
1245
|
+
light_sources_feature_2_text_min_off: string;
|
|
1246
|
+
light_sources_feature_2_text_min_on: string;
|
|
1247
|
+
light_sources_feature_2_switched_off_text: string;
|
|
1248
|
+
light_sources_feature_2_switched_on_text: string;
|
|
1249
|
+
switch_overcharge_headline_text: string;
|
|
1250
|
+
switch_overcharge_headline_description: string;
|
|
1221
1251
|
};
|
|
1222
1252
|
de: {
|
|
1223
1253
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -1462,6 +1492,12 @@ declare const _default: {
|
|
|
1462
1492
|
devicemusic_game_text: string;
|
|
1463
1493
|
devicemusic_romantic_text: string;
|
|
1464
1494
|
devicemusic_music_text: string;
|
|
1495
|
+
light_sources_feature_2_text_min_off: string;
|
|
1496
|
+
light_sources_feature_2_text_min_on: string;
|
|
1497
|
+
light_sources_feature_2_switched_off_text: string;
|
|
1498
|
+
light_sources_feature_2_switched_on_text: string;
|
|
1499
|
+
switch_overcharge_headline_text: string;
|
|
1500
|
+
switch_overcharge_headline_description: string;
|
|
1465
1501
|
};
|
|
1466
1502
|
el: {
|
|
1467
1503
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -1706,6 +1742,12 @@ declare const _default: {
|
|
|
1706
1742
|
devicemusic_game_text: string;
|
|
1707
1743
|
devicemusic_romantic_text: string;
|
|
1708
1744
|
devicemusic_music_text: string;
|
|
1745
|
+
light_sources_feature_2_text_min_off: string;
|
|
1746
|
+
light_sources_feature_2_text_min_on: string;
|
|
1747
|
+
light_sources_feature_2_switched_off_text: string;
|
|
1748
|
+
light_sources_feature_2_switched_on_text: string;
|
|
1749
|
+
switch_overcharge_headline_text: string;
|
|
1750
|
+
switch_overcharge_headline_description: string;
|
|
1709
1751
|
};
|
|
1710
1752
|
es: {
|
|
1711
1753
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -1950,6 +1992,12 @@ declare const _default: {
|
|
|
1950
1992
|
devicemusic_game_text: string;
|
|
1951
1993
|
devicemusic_romantic_text: string;
|
|
1952
1994
|
devicemusic_music_text: string;
|
|
1995
|
+
light_sources_feature_2_text_min_off: string;
|
|
1996
|
+
light_sources_feature_2_text_min_on: string;
|
|
1997
|
+
light_sources_feature_2_switched_off_text: string;
|
|
1998
|
+
light_sources_feature_2_switched_on_text: string;
|
|
1999
|
+
switch_overcharge_headline_text: string;
|
|
2000
|
+
switch_overcharge_headline_description: string;
|
|
1953
2001
|
};
|
|
1954
2002
|
fr: {
|
|
1955
2003
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -2194,6 +2242,12 @@ declare const _default: {
|
|
|
2194
2242
|
devicemusic_game_text: string;
|
|
2195
2243
|
devicemusic_romantic_text: string;
|
|
2196
2244
|
devicemusic_music_text: string;
|
|
2245
|
+
light_sources_feature_2_text_min_off: string;
|
|
2246
|
+
light_sources_feature_2_text_min_on: string;
|
|
2247
|
+
light_sources_feature_2_switched_off_text: string;
|
|
2248
|
+
light_sources_feature_2_switched_on_text: string;
|
|
2249
|
+
switch_overcharge_headline_text: string;
|
|
2250
|
+
switch_overcharge_headline_description: string;
|
|
2197
2251
|
};
|
|
2198
2252
|
hr: {
|
|
2199
2253
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -2438,6 +2492,12 @@ declare const _default: {
|
|
|
2438
2492
|
devicemusic_game_text: string;
|
|
2439
2493
|
devicemusic_romantic_text: string;
|
|
2440
2494
|
devicemusic_music_text: string;
|
|
2495
|
+
light_sources_feature_2_text_min_off: string;
|
|
2496
|
+
light_sources_feature_2_text_min_on: string;
|
|
2497
|
+
light_sources_feature_2_switched_off_text: string;
|
|
2498
|
+
light_sources_feature_2_switched_on_text: string;
|
|
2499
|
+
switch_overcharge_headline_text: string;
|
|
2500
|
+
switch_overcharge_headline_description: string;
|
|
2441
2501
|
};
|
|
2442
2502
|
hu: {
|
|
2443
2503
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -2682,6 +2742,12 @@ declare const _default: {
|
|
|
2682
2742
|
devicemusic_game_text: string;
|
|
2683
2743
|
devicemusic_romantic_text: string;
|
|
2684
2744
|
devicemusic_music_text: string;
|
|
2745
|
+
light_sources_feature_2_text_min_off: string;
|
|
2746
|
+
light_sources_feature_2_text_min_on: string;
|
|
2747
|
+
light_sources_feature_2_switched_off_text: string;
|
|
2748
|
+
light_sources_feature_2_switched_on_text: string;
|
|
2749
|
+
switch_overcharge_headline_text: string;
|
|
2750
|
+
switch_overcharge_headline_description: string;
|
|
2685
2751
|
};
|
|
2686
2752
|
it: {
|
|
2687
2753
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -2926,6 +2992,12 @@ declare const _default: {
|
|
|
2926
2992
|
devicemusic_game_text: string;
|
|
2927
2993
|
devicemusic_romantic_text: string;
|
|
2928
2994
|
devicemusic_music_text: string;
|
|
2995
|
+
light_sources_feature_2_text_min_off: string;
|
|
2996
|
+
light_sources_feature_2_text_min_on: string;
|
|
2997
|
+
light_sources_feature_2_switched_off_text: string;
|
|
2998
|
+
light_sources_feature_2_switched_on_text: string;
|
|
2999
|
+
switch_overcharge_headline_text: string;
|
|
3000
|
+
switch_overcharge_headline_description: string;
|
|
2929
3001
|
};
|
|
2930
3002
|
ko: {
|
|
2931
3003
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -3170,6 +3242,12 @@ declare const _default: {
|
|
|
3170
3242
|
devicemusic_game_text: string;
|
|
3171
3243
|
devicemusic_romantic_text: string;
|
|
3172
3244
|
devicemusic_music_text: string;
|
|
3245
|
+
light_sources_feature_2_text_min_off: string;
|
|
3246
|
+
light_sources_feature_2_text_min_on: string;
|
|
3247
|
+
light_sources_feature_2_switched_off_text: string;
|
|
3248
|
+
light_sources_feature_2_switched_on_text: string;
|
|
3249
|
+
switch_overcharge_headline_text: string;
|
|
3250
|
+
switch_overcharge_headline_description: string;
|
|
3173
3251
|
};
|
|
3174
3252
|
lv: {
|
|
3175
3253
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -3414,6 +3492,12 @@ declare const _default: {
|
|
|
3414
3492
|
devicemusic_game_text: string;
|
|
3415
3493
|
devicemusic_romantic_text: string;
|
|
3416
3494
|
devicemusic_music_text: string;
|
|
3495
|
+
light_sources_feature_2_text_min_off: string;
|
|
3496
|
+
light_sources_feature_2_text_min_on: string;
|
|
3497
|
+
light_sources_feature_2_switched_off_text: string;
|
|
3498
|
+
light_sources_feature_2_switched_on_text: string;
|
|
3499
|
+
switch_overcharge_headline_text: string;
|
|
3500
|
+
switch_overcharge_headline_description: string;
|
|
3417
3501
|
};
|
|
3418
3502
|
nb: {
|
|
3419
3503
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -3658,6 +3742,12 @@ declare const _default: {
|
|
|
3658
3742
|
devicemusic_game_text: string;
|
|
3659
3743
|
devicemusic_romantic_text: string;
|
|
3660
3744
|
devicemusic_music_text: string;
|
|
3745
|
+
light_sources_feature_2_text_min_off: string;
|
|
3746
|
+
light_sources_feature_2_text_min_on: string;
|
|
3747
|
+
light_sources_feature_2_switched_off_text: string;
|
|
3748
|
+
light_sources_feature_2_switched_on_text: string;
|
|
3749
|
+
switch_overcharge_headline_text: string;
|
|
3750
|
+
switch_overcharge_headline_description: string;
|
|
3661
3751
|
};
|
|
3662
3752
|
nl: {
|
|
3663
3753
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -3902,6 +3992,12 @@ declare const _default: {
|
|
|
3902
3992
|
devicemusic_game_text: string;
|
|
3903
3993
|
devicemusic_romantic_text: string;
|
|
3904
3994
|
devicemusic_music_text: string;
|
|
3995
|
+
light_sources_feature_2_text_min_off: string;
|
|
3996
|
+
light_sources_feature_2_text_min_on: string;
|
|
3997
|
+
light_sources_feature_2_switched_off_text: string;
|
|
3998
|
+
light_sources_feature_2_switched_on_text: string;
|
|
3999
|
+
switch_overcharge_headline_text: string;
|
|
4000
|
+
switch_overcharge_headline_description: string;
|
|
3905
4001
|
};
|
|
3906
4002
|
pl: {
|
|
3907
4003
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -4146,8 +4242,14 @@ declare const _default: {
|
|
|
4146
4242
|
devicemusic_game_text: string;
|
|
4147
4243
|
devicemusic_romantic_text: string;
|
|
4148
4244
|
devicemusic_music_text: string;
|
|
4245
|
+
light_sources_feature_2_text_min_off: string;
|
|
4246
|
+
light_sources_feature_2_text_min_on: string;
|
|
4247
|
+
light_sources_feature_2_switched_off_text: string;
|
|
4248
|
+
light_sources_feature_2_switched_on_text: string;
|
|
4249
|
+
switch_overcharge_headline_text: string;
|
|
4250
|
+
switch_overcharge_headline_description: string;
|
|
4149
4251
|
};
|
|
4150
|
-
|
|
4252
|
+
'pt-BR': {
|
|
4151
4253
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
4152
4254
|
power_off_memory_default_state_title: string;
|
|
4153
4255
|
sockets_ce: string;
|
|
@@ -4390,6 +4492,12 @@ declare const _default: {
|
|
|
4390
4492
|
devicemusic_game_text: string;
|
|
4391
4493
|
devicemusic_romantic_text: string;
|
|
4392
4494
|
devicemusic_music_text: string;
|
|
4495
|
+
light_sources_feature_2_text_min_off: string;
|
|
4496
|
+
light_sources_feature_2_text_min_on: string;
|
|
4497
|
+
light_sources_feature_2_switched_off_text: string;
|
|
4498
|
+
light_sources_feature_2_switched_on_text: string;
|
|
4499
|
+
switch_overcharge_headline_text: string;
|
|
4500
|
+
switch_overcharge_headline_description: string;
|
|
4393
4501
|
};
|
|
4394
4502
|
pt_BR: {
|
|
4395
4503
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -4634,6 +4742,12 @@ declare const _default: {
|
|
|
4634
4742
|
devicemusic_game_text: string;
|
|
4635
4743
|
devicemusic_romantic_text: string;
|
|
4636
4744
|
devicemusic_music_text: string;
|
|
4745
|
+
light_sources_feature_2_text_min_off: string;
|
|
4746
|
+
light_sources_feature_2_text_min_on: string;
|
|
4747
|
+
light_sources_feature_2_switched_off_text: string;
|
|
4748
|
+
light_sources_feature_2_switched_on_text: string;
|
|
4749
|
+
switch_overcharge_headline_text: string;
|
|
4750
|
+
switch_overcharge_headline_description: string;
|
|
4637
4751
|
};
|
|
4638
4752
|
ro: {
|
|
4639
4753
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -4878,6 +4992,12 @@ declare const _default: {
|
|
|
4878
4992
|
devicemusic_game_text: string;
|
|
4879
4993
|
devicemusic_romantic_text: string;
|
|
4880
4994
|
devicemusic_music_text: string;
|
|
4995
|
+
light_sources_feature_2_text_min_off: string;
|
|
4996
|
+
light_sources_feature_2_text_min_on: string;
|
|
4997
|
+
light_sources_feature_2_switched_off_text: string;
|
|
4998
|
+
light_sources_feature_2_switched_on_text: string;
|
|
4999
|
+
switch_overcharge_headline_text: string;
|
|
5000
|
+
switch_overcharge_headline_description: string;
|
|
4881
5001
|
};
|
|
4882
5002
|
ru: {
|
|
4883
5003
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -5122,6 +5242,12 @@ declare const _default: {
|
|
|
5122
5242
|
devicemusic_game_text: string;
|
|
5123
5243
|
devicemusic_romantic_text: string;
|
|
5124
5244
|
devicemusic_music_text: string;
|
|
5245
|
+
light_sources_feature_2_text_min_off: string;
|
|
5246
|
+
light_sources_feature_2_text_min_on: string;
|
|
5247
|
+
light_sources_feature_2_switched_off_text: string;
|
|
5248
|
+
light_sources_feature_2_switched_on_text: string;
|
|
5249
|
+
switch_overcharge_headline_text: string;
|
|
5250
|
+
switch_overcharge_headline_description: string;
|
|
5125
5251
|
};
|
|
5126
5252
|
sk: {
|
|
5127
5253
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -5366,6 +5492,12 @@ declare const _default: {
|
|
|
5366
5492
|
devicemusic_game_text: string;
|
|
5367
5493
|
devicemusic_romantic_text: string;
|
|
5368
5494
|
devicemusic_music_text: string;
|
|
5495
|
+
light_sources_feature_2_text_min_off: string;
|
|
5496
|
+
light_sources_feature_2_text_min_on: string;
|
|
5497
|
+
light_sources_feature_2_switched_off_text: string;
|
|
5498
|
+
light_sources_feature_2_switched_on_text: string;
|
|
5499
|
+
switch_overcharge_headline_text: string;
|
|
5500
|
+
switch_overcharge_headline_description: string;
|
|
5369
5501
|
};
|
|
5370
5502
|
sv: {
|
|
5371
5503
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -5610,6 +5742,12 @@ declare const _default: {
|
|
|
5610
5742
|
devicemusic_game_text: string;
|
|
5611
5743
|
devicemusic_romantic_text: string;
|
|
5612
5744
|
devicemusic_music_text: string;
|
|
5745
|
+
light_sources_feature_2_text_min_off: string;
|
|
5746
|
+
light_sources_feature_2_text_min_on: string;
|
|
5747
|
+
light_sources_feature_2_switched_off_text: string;
|
|
5748
|
+
light_sources_feature_2_switched_on_text: string;
|
|
5749
|
+
switch_overcharge_headline_text: string;
|
|
5750
|
+
switch_overcharge_headline_description: string;
|
|
5613
5751
|
};
|
|
5614
5752
|
tr: {
|
|
5615
5753
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -5854,6 +5992,12 @@ declare const _default: {
|
|
|
5854
5992
|
devicemusic_game_text: string;
|
|
5855
5993
|
devicemusic_romantic_text: string;
|
|
5856
5994
|
devicemusic_music_text: string;
|
|
5995
|
+
light_sources_feature_2_text_min_off: string;
|
|
5996
|
+
light_sources_feature_2_text_min_on: string;
|
|
5997
|
+
light_sources_feature_2_switched_off_text: string;
|
|
5998
|
+
light_sources_feature_2_switched_on_text: string;
|
|
5999
|
+
switch_overcharge_headline_text: string;
|
|
6000
|
+
switch_overcharge_headline_description: string;
|
|
5857
6001
|
};
|
|
5858
6002
|
uk: {
|
|
5859
6003
|
add_new_dynamic_mood_color_changing_mode_value: string;
|
|
@@ -6098,6 +6242,12 @@ declare const _default: {
|
|
|
6098
6242
|
devicemusic_game_text: string;
|
|
6099
6243
|
devicemusic_romantic_text: string;
|
|
6100
6244
|
devicemusic_music_text: string;
|
|
6245
|
+
light_sources_feature_2_text_min_off: string;
|
|
6246
|
+
light_sources_feature_2_text_min_on: string;
|
|
6247
|
+
light_sources_feature_2_switched_off_text: string;
|
|
6248
|
+
light_sources_feature_2_switched_on_text: string;
|
|
6249
|
+
switch_overcharge_headline_text: string;
|
|
6250
|
+
switch_overcharge_headline_description: string;
|
|
6101
6251
|
};
|
|
6102
6252
|
};
|
|
6103
6253
|
export default _default;
|