@ledvance/base 1.3.45 → 1.3.47
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/localazy.json +24 -7
- package/package.json +1 -1
- package/src/api/native.ts +4 -3
- package/src/components/AdvanceList.tsx +1 -1
- package/src/components/ApplyForDeviceItem.tsx +1 -1
- package/src/components/ApplyForText.tsx +1 -1
- package/src/components/BallDirectionView.tsx +5 -5
- package/src/components/BatteryPercentageView.tsx +75 -0
- package/src/components/DiySceneNodeView.tsx +2 -2
- package/src/components/DrawToolView.tsx +3 -3
- package/src/components/FanAdjustView.tsx +2 -2
- package/src/components/MoodStripAdjustView.tsx +2 -2
- package/src/components/PressActionView.tsx +158 -0
- package/src/components/ShowSelect.tsx +2 -2
- package/src/components/SocketItem.tsx +1 -1
- package/src/components/Stepper.tsx +2 -2
- package/src/components/Tag.tsx +1 -1
- package/src/components/TextField.tsx +1 -1
- package/src/components/TextFieldStyleButton.tsx +1 -1
- package/src/components/UATabTitle.tsx +1 -1
- package/src/i18n/strings.ts +617 -158
- package/src/res/index.ts +137 -56
- package/src/utils/common.ts +0 -69
- package/translateKey.txt +23 -6
- package/src/res/arrow_temp_down.png +0 -0
- package/src/res/arrow_temp_down@2x.png +0 -0
- package/src/res/arrow_temp_down@3x.png +0 -0
- package/src/res/arrow_temp_up.png +0 -0
- package/src/res/arrow_temp_up@2x.png +0 -0
- package/src/res/arrow_temp_up@3x.png +0 -0
- package/src/res/cash.png +0 -0
- package/src/res/cash@2x.png +0 -0
- package/src/res/cash@3x.png +0 -0
- package/src/res/componentsIOsButtonsButtonAdd.png +0 -0
- package/src/res/componentsIOsButtonsButtonAdd@2x.png +0 -0
- package/src/res/componentsIOsButtonsButtonAdd@3x.png +0 -0
- package/src/res/device_panel_schedule_add.png +0 -0
- package/src/res/device_panel_schedule_alert.png +0 -0
- package/src/res/flag_icon.png +0 -0
- package/src/res/football_icon.png +0 -0
- package/src/res/ic_colorize.png +0 -0
- package/src/res/ic_colorize@2x.png +0 -0
- package/src/res/ic_colorize@3x.png +0 -0
- package/src/res/ic_disabled_light.png +0 -0
- package/src/res/ic_disabled_light@2x.png +0 -0
- package/src/res/ic_disabled_light@3x.png +0 -0
- package/src/res/ic_minus.png +0 -0
- package/src/res/ic_minus@2x.png +0 -0
- package/src/res/ic_minus@3x.png +0 -0
- package/src/res/ic_mood_del.png +0 -0
- package/src/res/ic_mood_del@2x.png +0 -0
- package/src/res/ic_mood_del@3x.png +0 -0
- package/src/res/ic_paint_bucket.png +0 -0
- package/src/res/ic_paint_bucket@2x.png +0 -0
- package/src/res/ic_paint_bucket@3x.png +0 -0
- package/src/res/ic_plus.png +0 -0
- package/src/res/ic_plus@2x.png +0 -0
- package/src/res/ic_plus@3x.png +0 -0
- package/src/res/ic_text_field_input_error.png +0 -0
- package/src/res/ic_text_field_input_error@2x.png +0 -0
- package/src/res/ic_text_field_input_error@3x.png +0 -0
- package/src/res/ic_top_arrow.png +0 -0
- package/src/res/ic_top_arrow@2x.png +0 -0
- package/src/res/ic_top_arrow@3x.png +0 -0
- package/src/res/iconsMaterialOutlinedArrowsNavArrowForwardIos.png +0 -0
- package/src/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@2x.png +0 -0
- package/src/res/iconsMaterialOutlinedArrowsNavArrowForwardIos@3x.png +0 -0
- package/src/res/iconsMaterialOutlinedArrowsNavCheck.png +0 -0
- package/src/res/iconsMaterialOutlinedArrowsNavCheck@2x.png +0 -0
- package/src/res/iconsMaterialOutlinedArrowsNavCheck@3x.png +0 -0
- package/src/res/iconsMaterialOutlinedCalendarCalendarToday.png +0 -0
- package/src/res/iconsMaterialOutlinedCalendarCalendarToday@2x.png +0 -0
- package/src/res/iconsMaterialOutlinedCalendarCalendarToday@3x.png +0 -0
- package/src/res/iconsMaterialOutlinedCommunicationInfo.png +0 -0
- package/src/res/iconsMaterialOutlinedCommunicationInfo@2x.png +0 -0
- package/src/res/iconsMaterialOutlinedCommunicationInfo@3x.png +0 -0
- package/src/res/iconsMaterialOutlinedEditorFileDownload.png +0 -0
- package/src/res/iconsMaterialOutlinedEditorFileDownload@2x.png +0 -0
- package/src/res/iconsMaterialOutlinedEditorFileDownload@3x.png +0 -0
- package/src/res/iconsMaterialOutlinedEditorInventory.png +0 -0
- package/src/res/iconsMaterialOutlinedEditorInventory@2x.png +0 -0
- package/src/res/iconsMaterialOutlinedEditorInventory@3x.png +0 -0
- package/src/res/iconsMaterialOutlinedOtherBarChart.png +0 -0
- package/src/res/iconsMaterialOutlinedOtherBarChart@2x.png +0 -0
- package/src/res/iconsMaterialOutlinedOtherBarChart@3x.png +0 -0
- package/src/res/iconsMaterialOutlinedOtherEnergySavingsLeaf.png +0 -0
- package/src/res/iconsMaterialOutlinedOtherEnergySavingsLeaf@2x.png +0 -0
- package/src/res/iconsMaterialOutlinedOtherEnergySavingsLeaf@3x.png +0 -0
- package/src/res/iconsMaterialOutlinedOtherJoin.png +0 -0
- package/src/res/iconsMaterialOutlinedOtherJoin@2x.png +0 -0
- package/src/res/iconsMaterialOutlinedOtherJoin@3x.png +0 -0
- package/src/res/iconsMaterialOutlinedTimeAccessTime.png +0 -0
- package/src/res/iconsMaterialOutlinedTimeAccessTime@2x.png +0 -0
- package/src/res/iconsMaterialOutlinedTimeAccessTime@3x.png +0 -0
- package/src/res/iconsMaterialOutlinedWheatherWbCloudy.png +0 -0
- package/src/res/iconsMaterialOutlinedWheatherWbCloudy@2x.png +0 -0
- package/src/res/iconsMaterialOutlinedWheatherWbCloudy@3x.png +0 -0
- package/src/res/illustrationsFeaturesLogs.png +0 -0
- package/src/res/illustrationsFeaturesLogs@2x.png +0 -0
- package/src/res/illustrationsFeaturesLogs@3x.png +0 -0
- package/src/res/illustrationsHomeRoutines.png +0 -0
- package/src/res/illustrationsHomeRoutines@2x.png +0 -0
- package/src/res/illustrationsHomeRoutines@3x.png +0 -0
- package/src/res/leverkusen_icon.png +0 -0
- package/src/res/light_off.png +0 -0
- package/src/res/light_off@2x.png +0 -0
- package/src/res/light_off@3x.png +0 -0
- package/src/res/light_on.png +0 -0
- package/src/res/light_on@2x.png +0 -0
- package/src/res/light_on@3x.png +0 -0
- package/src/res/materialiconsFilledCancel.png +0 -0
- package/src/res/materialiconsFilledCancel@2x.png +0 -0
- package/src/res/materialiconsFilledCancel@3x.png +0 -0
- package/src/res/materialiconsOutlinedArrowsNavAddBox.png +0 -0
- package/src/res/materialiconsOutlinedArrowsNavAddBox@2x.png +0 -0
- package/src/res/materialiconsOutlinedArrowsNavAddBox@3x.png +0 -0
- package/src/res/materialiconsOutlinedArrowsNavKeyboardArrowLeft.png +0 -0
- package/src/res/materialiconsOutlinedArrowsNavKeyboardArrowLeft@2x.png +0 -0
- package/src/res/materialiconsOutlinedArrowsNavKeyboardArrowLeft@3x.png +0 -0
- package/src/res/materialiconsOutlinedArrowsNavKeyboardArrowRight.png +0 -0
- package/src/res/materialiconsOutlinedArrowsNavKeyboardArrowRight@2x.png +0 -0
- package/src/res/materialiconsOutlinedArrowsNavKeyboardArrowRight@3x.png +0 -0
- package/src/res/materialiconsOutlinedArrowsNavRemove.png +0 -0
- package/src/res/materialiconsOutlinedArrowsNavRemove@2x.png +0 -0
- package/src/res/materialiconsOutlinedArrowsNavRemove@3x.png +0 -0
- package/src/res/materialiconsOutlinedArrowsNavWarningAmber.png +0 -0
- package/src/res/materialiconsOutlinedArrowsNavWarningAmber@2x.png +0 -0
- package/src/res/materialiconsOutlinedArrowsNavWarningAmber@3x.png +0 -0
- package/src/res/offlineWifi.png +0 -0
- package/src/res/offlineWifi@2x.png +0 -0
- package/src/res/offlineWifi@3x.png +0 -0
- package/src/res/olympic.png +0 -0
- package/src/res/pic_co_alert_effect.png +0 -0
- package/src/res/pic_co_alert_effect@2x.png +0 -0
- package/src/res/pic_co_alert_effect@3x.png +0 -0
- package/src/res/pic_co_alert_free.png +0 -0
- package/src/res/pic_co_alert_free@2x.png +0 -0
- package/src/res/pic_co_alert_free@3x.png +0 -0
- package/src/res/pic_smoke_alert_effct.png +0 -0
- package/src/res/pic_smoke_alert_effct@2x.png +0 -0
- package/src/res/pic_smoke_alert_effct@3x.png +0 -0
- package/src/res/pic_smoke_alert_free.png +0 -0
- package/src/res/pic_smoke_alert_free@2x.png +0 -0
- package/src/res/pic_smoke_alert_free@3x.png +0 -0
- package/src/res/pic_water_alert_effct.png +0 -0
- package/src/res/pic_water_alert_effct@2x.png +0 -0
- package/src/res/pic_water_alert_effct@3x.png +0 -0
- package/src/res/pic_water_alert_free.png +0 -0
- package/src/res/pic_water_alert_free@2x.png +0 -0
- package/src/res/pic_water_alert_free@3x.png +0 -0
- package/src/res/refresh.png +0 -0
- package/src/res/refresh@2x.png +0 -0
- package/src/res/refresh@3x.png +0 -0
- package/src/res/src_res_all.png +0 -0
- package/src/res/src_res_colorring@2x.png +0 -0
- package/src/res/src_res_colorring@3x.png +0 -0
- package/src/res/src_res_cycle.png +0 -0
- package/src/res/src_res_half.png +0 -0
- package/src/res/src_res_halfborder.png +0 -0
- package/src/res/src_res_like.png +0 -0
- package/src/res/src_res_minus.png +0 -0
- package/src/res/src_res_ringdown@2x.png +0 -0
- package/src/res/src_res_ringdown@3x.png +0 -0
- package/src/res/src_res_unlike.png +0 -0
package/src/res/index.ts
CHANGED
|
@@ -10,30 +10,44 @@ export default {
|
|
|
10
10
|
switch_1: 'switch_1',
|
|
11
11
|
switch_2: 'switch_2',
|
|
12
12
|
switch_3: 'switch_3',
|
|
13
|
-
|
|
13
|
+
switch_usb: 'switch_usb',
|
|
14
|
+
new_switch_1: 'new_switch_1',
|
|
15
|
+
new_switch_2: 'new_switch_2',
|
|
16
|
+
new_switch_3: 'new_switch_3',
|
|
17
|
+
new_switch_4: 'new_switch_4',
|
|
18
|
+
new_switch_usb: 'new_switch_usb',
|
|
19
|
+
group_switch_1: 'group_switch_1',
|
|
20
|
+
group_switch_2: 'group_switch_2',
|
|
21
|
+
group_switch_3: 'group_switch_3',
|
|
22
|
+
group_switch_4: 'group_switch_4',
|
|
23
|
+
new_group_switch_1: 'new_group_switch_1',
|
|
24
|
+
new_group_switch_2: 'new_group_switch_2',
|
|
25
|
+
new_group_switch_3: 'new_group_switch_3',
|
|
26
|
+
new_group_switch_4: 'new_group_switch_4',
|
|
27
|
+
new_group_switch_5: 'new_group_switch_5',
|
|
14
28
|
ic_cancel: 'ic_cancel',
|
|
15
29
|
ic_more: 'ic_more',
|
|
16
|
-
device_panel_timer_add:
|
|
30
|
+
device_panel_timer_add: 'materialicons_outlined_arrows_nav_add_box',
|
|
17
31
|
device_panel_schedule_alert: 'device_panel_schedule_alert',
|
|
18
|
-
device_panel_schedule_add:
|
|
19
|
-
ic_arrows_nav_clear:
|
|
20
|
-
ic_info:
|
|
21
|
-
ic_warning_amber:
|
|
32
|
+
device_panel_schedule_add: 'device_panel_schedule_add',
|
|
33
|
+
ic_arrows_nav_clear: 'materialicons_filled_cancel',
|
|
34
|
+
ic_info: 'icons_material_outlined_communication_info',
|
|
35
|
+
ic_warning_amber: 'materialicons_outlined_arrows_nav_warning_amber',
|
|
22
36
|
ic_check: 'ic_check',
|
|
23
|
-
ic_uncheck:
|
|
37
|
+
ic_uncheck: 'components_ios_buttons_button_add',
|
|
24
38
|
rn_ic_download: 'rn_ic_download',
|
|
25
|
-
|
|
26
|
-
summary_icon1:
|
|
27
|
-
summary_icon2:
|
|
28
|
-
summary_icon3:
|
|
29
|
-
energy_consumption_right:
|
|
30
|
-
energy_consumption_chart:
|
|
31
|
-
energy_consumption_cash:
|
|
32
|
-
energy_consumption_greenery:
|
|
33
|
-
app_music_check:
|
|
34
|
-
|
|
35
|
-
download_icon:
|
|
36
|
-
energy_consumption_empty:
|
|
39
|
+
schedule_empty: 'illustrations_home_routines',
|
|
40
|
+
summary_icon1: 'icons_material_outlined_calendar_calendar_today',
|
|
41
|
+
summary_icon2: 'icons_material_outlined_time_access_time',
|
|
42
|
+
summary_icon3: 'icons_material_outlined_editor_inventory',
|
|
43
|
+
energy_consumption_right: 'icons_material_outlined_arrows_nav_arrow_forward_ios',
|
|
44
|
+
energy_consumption_chart: 'icons_material_outlined_other_bar_chart',
|
|
45
|
+
energy_consumption_cash: 'cash',
|
|
46
|
+
energy_consumption_greenery: 'icons_material_outlined_other_energy_savings_leaf',
|
|
47
|
+
app_music_check: 'icons_material_outlined_arrows_nav_check',
|
|
48
|
+
co2_icon: 'icons_material_outlined_communication_info',
|
|
49
|
+
download_icon: 'icons_material_outlined_editor_file_download',
|
|
50
|
+
energy_consumption_empty: 'illustrations_features_logs',
|
|
37
51
|
rhythm_icon1: 'rhythm_icon1',
|
|
38
52
|
rhythm_icon2: 'rhythm_icon2',
|
|
39
53
|
rhythm_icon3: 'rhythm_icon3',
|
|
@@ -50,46 +64,113 @@ export default {
|
|
|
50
64
|
add: 'add',
|
|
51
65
|
delete: 'delete',
|
|
52
66
|
icon_edit_scene: 'icon_edit_scene',
|
|
53
|
-
light_on:
|
|
54
|
-
light_off:
|
|
67
|
+
light_on: 'light_on',
|
|
68
|
+
light_off: 'light_off',
|
|
55
69
|
rn_image_contact_sensor_open: 'rn_image_contact_sensor_open',
|
|
56
70
|
rn_image_contact_sensor_close: 'rn_image_contact_sensor_close',
|
|
57
71
|
rn_image_motion_detected: 'rn_image_motion_detected',
|
|
58
72
|
rn_image_no_motion_detected: 'rn_image_no_motion_detected',
|
|
59
|
-
sensor_status:
|
|
60
|
-
automation_status:
|
|
61
|
-
ic_colorize:
|
|
62
|
-
ic_mood_del:
|
|
63
|
-
ic_paint_bucket:
|
|
64
|
-
ic_text_field_input_error:
|
|
65
|
-
ic_minus:
|
|
66
|
-
ic_plus:
|
|
67
|
-
ic_disabled_light:
|
|
68
|
-
ic_top_arrow:
|
|
69
|
-
offline_wifi:
|
|
70
|
-
football_icon:
|
|
71
|
-
leverkusen_icon:
|
|
72
|
-
olympic_icon:
|
|
73
|
-
ic_refresh:
|
|
74
|
-
ic_co_alert_effect:
|
|
75
|
-
ic_co_alert_free:
|
|
76
|
-
ic_smoke_alert_effect:
|
|
77
|
-
ic_smoke_alert_free:
|
|
78
|
-
ic_water_alert_effect:
|
|
79
|
-
ic_water_alert_free:
|
|
80
|
-
flag_icon:
|
|
81
|
-
arrow_temp_up:
|
|
82
|
-
arrow_temp_down:
|
|
83
|
-
arrow_left:
|
|
84
|
-
arrow_right:
|
|
85
|
-
ringdown:
|
|
73
|
+
sensor_status: 'icons_material_outlined_other_join',
|
|
74
|
+
automation_status: 'icons_material_outlined_wheather_wb_cloudy',
|
|
75
|
+
ic_colorize: 'ic_colorize',
|
|
76
|
+
ic_mood_del: 'ic_mood_del',
|
|
77
|
+
ic_paint_bucket: 'ic_paint_bucket',
|
|
78
|
+
ic_text_field_input_error: 'ic_text_field_input_error',
|
|
79
|
+
ic_minus: 'ic_minus',
|
|
80
|
+
ic_plus: 'ic_plus',
|
|
81
|
+
ic_disabled_light: 'ic_disabled_light',
|
|
82
|
+
ic_top_arrow: 'ic_top_arrow',
|
|
83
|
+
offline_wifi: 'offline_wifi',
|
|
84
|
+
football_icon: 'football_icon',
|
|
85
|
+
leverkusen_icon: 'leverkusen_icon',
|
|
86
|
+
olympic_icon: 'olympic',
|
|
87
|
+
ic_refresh: 'refresh',
|
|
88
|
+
ic_co_alert_effect: 'pic_co_alert_effect',
|
|
89
|
+
ic_co_alert_free: 'pic_co_alert_free',
|
|
90
|
+
ic_smoke_alert_effect: 'pic_smoke_alert_effct',
|
|
91
|
+
ic_smoke_alert_free: 'pic_smoke_alert_free',
|
|
92
|
+
ic_water_alert_effect: 'pic_water_alert_effct',
|
|
93
|
+
ic_water_alert_free: 'pic_water_alert_free',
|
|
94
|
+
flag_icon: 'flag_icon',
|
|
95
|
+
arrow_temp_up: 'arrow_temp_up',
|
|
96
|
+
arrow_temp_down: 'arrow_temp_down',
|
|
97
|
+
arrow_left: 'materialicons_outlined_arrows_nav_keyboard_arrow_left',
|
|
98
|
+
arrow_right: 'materialicons_outlined_arrows_nav_keyboard_arrow_right',
|
|
99
|
+
ringdown: 'src_res_ringdown',
|
|
86
100
|
halfcircle: require('./src_res_halfcircle.png'),
|
|
87
|
-
coloring:
|
|
88
|
-
all:
|
|
89
|
-
half:
|
|
90
|
-
halfborder:
|
|
91
|
-
un_like:
|
|
92
|
-
like:
|
|
93
|
-
cycle:
|
|
94
|
-
minus:
|
|
101
|
+
coloring: 'src_res_colorring',
|
|
102
|
+
all: 'src_res_all',
|
|
103
|
+
half: 'src_res_half',
|
|
104
|
+
halfborder: 'src_res_halfborder',
|
|
105
|
+
un_like: 'src_res_unlike',
|
|
106
|
+
like: 'src_res_like',
|
|
107
|
+
cycle: 'src_res_cycle',
|
|
108
|
+
minus: 'src_res_minus',
|
|
109
|
+
ic_warning_amber_sun: 'biological_rhythm',
|
|
110
|
+
ic_warning_amber_sun_12: 'biological_rhythm_12',
|
|
111
|
+
ic_warning_amber_new: 'biological_rhythm_new',
|
|
112
|
+
ic_warning_amber_new_12: 'biological_rhythm_new_12',
|
|
113
|
+
biorhythom_add: 'icons_material_outlined_arrows_nav_add',
|
|
114
|
+
biorhythom_select_right_icon: 'icons_material_outlined_arrows_nav_arrow_forward_ios',
|
|
115
|
+
biorhythom_icon1: 'icons_material_outlined_wheather_wb_twilight',
|
|
116
|
+
biorhythom_icon2: 'icons_material_outlined_wheather_wb_sunny',
|
|
117
|
+
biorhythom_icon3: 'icons_material_outlined_wheather_bedtime',
|
|
118
|
+
biorhythom_icon4: 'icons_material_outlined_wheather_partly_cloudy_day',
|
|
119
|
+
biorhythom_icon5: 'icons_material_outlined_time_access_alarm',
|
|
120
|
+
biorhythom_icon6: 'icons_material_outlined_other_notifications_none',
|
|
121
|
+
biorhythom_icon7: 'icons_material_outlined_buildings_home',
|
|
122
|
+
biorhythom_icon8: 'icons_material_outlined_other_bed',
|
|
123
|
+
biorhythom_icon9: 'icons_material_outlined_other_chair',
|
|
124
|
+
biorhythom_icon10: 'icons_material_outlined_other_directions_car',
|
|
125
|
+
biorhythom_icon11: 'icons_material_outlined_other_business_center',
|
|
126
|
+
biorhythom_icon12: 'icons_material_outlined_account_groups',
|
|
127
|
+
biorhythom_icon13: 'icons_material_outlined_other_menu_book',
|
|
128
|
+
biorhythom_icon14: 'icons_material_outlined_other_headphones',
|
|
129
|
+
biorhythom_icon15: 'icons_material_outlined_other_music_note',
|
|
130
|
+
biorhythom_icon16: 'icons_material_outlined_other_fitness_center',
|
|
131
|
+
biorhythom_icon17: 'icons_material_outlined_other_sports_esports',
|
|
132
|
+
biorhythom_icon18: 'icons_material_outlined_other_tv',
|
|
133
|
+
biorhythom_icon19: 'icons_material_outlined_other_restaurant',
|
|
134
|
+
biorhythom_icon20: 'icons_material_outlined_other_coffee',
|
|
135
|
+
biorhythom_icon21: 'icons_material_outlined_wheather_star_outline',
|
|
136
|
+
biorhythom_icon22: 'icons_material_outlined_editor_favorite_border',
|
|
137
|
+
biorhythom_icon23: 'icons_material_outlined_other_sentiment_satisfied',
|
|
138
|
+
biorhythom_icon24: 'icons_material_outlined_other_potted_plant',
|
|
139
|
+
rhythm_icon1_1: 'icons_material_outlined_wheather_wb_twilight',
|
|
140
|
+
rhythm_icon2_1: 'icons_material_outlined_wheather_wb_sunny',
|
|
141
|
+
rhythm_icon3_1: 'icons_material_outlined_other_chair',
|
|
142
|
+
rhythm_icon4_1: 'icons_material_outlined_wheather_bedtime',
|
|
143
|
+
rhythm_icon12_1: 'icons_material_outlined_time_access_alarm',
|
|
144
|
+
rhythm_icon12: 'rhythm_icon12',
|
|
145
|
+
pic_switch_one_channel: 'pic_switch_one_channel',
|
|
146
|
+
pic_switch_two_channel: 'pic_switch_two_channel',
|
|
147
|
+
pic_switch_four_channel: 'pic_switch_four_channel',
|
|
148
|
+
app_music_music: 'app_music_music',
|
|
149
|
+
app_music_ball: 'app_music_ball',
|
|
150
|
+
app_music_game: 'app_music_game',
|
|
151
|
+
app_music_romantic: 'app_music_romantic',
|
|
152
|
+
app_music_center_off: 'illustrations_features_music_disabled',
|
|
153
|
+
app_music_center_on_light: 'illustrations_features_music',
|
|
154
|
+
app_music_center_on_dark: 'illustrations_features_music_dark',
|
|
155
|
+
home_data_bg: 'bkg_data',
|
|
156
|
+
delay_24h: 'delay_24h_unselect',
|
|
157
|
+
delay_48h: 'delay_48h_unselect',
|
|
158
|
+
delay_72h: 'delay_72h_unselect',
|
|
159
|
+
start: 'button_start',
|
|
160
|
+
stop: 'button_start',
|
|
161
|
+
take_photo: 'icon_take_photo',
|
|
162
|
+
record_video: 'icon_record_video',
|
|
163
|
+
clarity_hd: 'icon_clarity_hd',
|
|
164
|
+
clarity_sd: 'icon_clarity_sd',
|
|
165
|
+
mic_off: 'icon_mic_off',
|
|
166
|
+
mic_on: 'icon_mic_on',
|
|
167
|
+
screen_full: 'icon_screen_full',
|
|
168
|
+
screen_normal: 'icon_screen_normal',
|
|
169
|
+
volume_off: 'icon_volume_off',
|
|
170
|
+
volume_on: 'icon_volume_on',
|
|
171
|
+
camera_direction: 'icon_camera_direction',
|
|
172
|
+
wifi: 'icon_camera_wifi',
|
|
173
|
+
sd_card: 'sd_card',
|
|
174
|
+
cloud: 'cloud',
|
|
175
|
+
smart_phone: 'smartphone',
|
|
95
176
|
}
|
package/src/utils/common.ts
CHANGED
|
@@ -158,68 +158,6 @@ export const exportCsvFile = (headers: any[], values: any[][], functionName: str
|
|
|
158
158
|
})
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
// 导出文件
|
|
162
|
-
export const exportFile = (list, priceStr, priceUnit) => {
|
|
163
|
-
const price = isNaN(Number(priceStr)) ? 0 : Number(priceStr)
|
|
164
|
-
const value = list?.map(item => {
|
|
165
|
-
return [item?.key, item?.value, price * item?.value]
|
|
166
|
-
})
|
|
167
|
-
const data = [
|
|
168
|
-
['Date', `${I18n.getLang('consumption_data_annual_bar_chart_system_back_text')} (kWh)`,`Price(${priceUnit})`],
|
|
169
|
-
...value,
|
|
170
|
-
]
|
|
171
|
-
const timestamp = dayjs().format('YYYYMMDDHHmmss')
|
|
172
|
-
|
|
173
|
-
// Excel默认并不是以UTF-8来打开文件,所以在csv开头加入BOM,告诉Excel文件使用utf-8的编码方式
|
|
174
|
-
const BOM = "\uFEFF";
|
|
175
|
-
// 将CSV数据转换为CSV格式的字符串
|
|
176
|
-
const csvData = data.map(row => row.join(','))
|
|
177
|
-
|
|
178
|
-
// 创建 CSV 文件内容
|
|
179
|
-
const csvContent = csvData.join('\n')
|
|
180
|
-
|
|
181
|
-
// 定义文件保存路径
|
|
182
|
-
const documentsPath = RNFetchBlob.fs.dirs.DocumentDir
|
|
183
|
-
const filePath = Platform.OS === 'android' ? RNFetchBlob.fs.dirs.DownloadDir + `/energyConsumption${timestamp}.csv` : `${documentsPath}/energyConsumption${timestamp}.csv`
|
|
184
|
-
RNFetchBlob.fs.writeFile(filePath, BOM + csvContent, 'utf8')
|
|
185
|
-
.then(() => {
|
|
186
|
-
openDownloadFile(filePath)
|
|
187
|
-
})
|
|
188
|
-
.catch(error => {
|
|
189
|
-
console.error('导出 CSV 文件时出现错误:', error)
|
|
190
|
-
})
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
export const exportHistoryFile = (list) => {
|
|
194
|
-
const value = list?.map(item => {
|
|
195
|
-
return item?.actions?.map(val => {
|
|
196
|
-
return [val?.date, val?.time, val?.action, tagTitle[val?.dpId - 1]]
|
|
197
|
-
})
|
|
198
|
-
})
|
|
199
|
-
const data = [
|
|
200
|
-
['Date', 'Time', 'Status', 'Jack'],
|
|
201
|
-
...value?.flat(),
|
|
202
|
-
]
|
|
203
|
-
const timestamp = dayjs().format('YYYYMMDDHHmmss')
|
|
204
|
-
|
|
205
|
-
// 将CSV数据转换为CSV格式的字符串
|
|
206
|
-
const csvData = data.map(row => row.join(','))
|
|
207
|
-
|
|
208
|
-
// 创建 CSV 文件内容
|
|
209
|
-
const csvContent = csvData.join('\n')
|
|
210
|
-
|
|
211
|
-
// 定义文件保存路径
|
|
212
|
-
const documentsPath = RNFetchBlob.fs.dirs.DocumentDir
|
|
213
|
-
const filePath = Platform.OS === 'android' ? RNFetchBlob.fs.dirs.DownloadDir + `/history${timestamp}.csv` : `${documentsPath}/history${timestamp}.csv`
|
|
214
|
-
RNFetchBlob.fs.writeFile(filePath, csvContent, 'utf8')
|
|
215
|
-
.then(() => {
|
|
216
|
-
openDownloadFile(filePath)
|
|
217
|
-
})
|
|
218
|
-
.catch(error => {
|
|
219
|
-
console.error('导出 CSV 文件时出现错误:', error)
|
|
220
|
-
})
|
|
221
|
-
}
|
|
222
|
-
|
|
223
161
|
//月份格式化
|
|
224
162
|
export const monthFormat = (v: number | string) => {
|
|
225
163
|
const monthText = [
|
|
@@ -258,13 +196,6 @@ export const monthFormatShort = (v: number | string) => {
|
|
|
258
196
|
return monthText[Number(v) - 1]
|
|
259
197
|
}
|
|
260
198
|
|
|
261
|
-
export const tagTitle = [
|
|
262
|
-
I18n.getLang('feature_summary_action_component_6'),
|
|
263
|
-
I18n.getLang('feature_summary_action_component_7'),
|
|
264
|
-
I18n.getLang('feature_summary_action_component_8'),
|
|
265
|
-
I18n.getLang('feature_summary_action_component_9'),
|
|
266
|
-
]
|
|
267
|
-
|
|
268
199
|
export function isTimeSpanValid(timeData) {
|
|
269
200
|
const startTime = timeData.startTime
|
|
270
201
|
const endTime = timeData.endTime
|
package/translateKey.txt
CHANGED
|
@@ -141,11 +141,6 @@ cancel_dialog_delete_item_wakeupschedule_titel
|
|
|
141
141
|
fixedTimeCycle_socket_headline
|
|
142
142
|
randomtimecycle_sockets_headline_text
|
|
143
143
|
history_socket_headline_text
|
|
144
|
-
feature_summary_action_component_5
|
|
145
|
-
feature_summary_action_component_6
|
|
146
|
-
feature_summary_action_component_7
|
|
147
|
-
feature_summary_action_component_8
|
|
148
|
-
feature_summary_action_component_9
|
|
149
144
|
sockets_feature_2_socket_text_min_off
|
|
150
145
|
sockets_feature_2_socket_text_min_on
|
|
151
146
|
timer_powerstrip_socket1_switched_off_text
|
|
@@ -157,7 +152,6 @@ consumption_data_field2_value_text3
|
|
|
157
152
|
timer_nightplug_active_timer_subheadline2_text
|
|
158
153
|
addTimeCycle_settings_sec_text
|
|
159
154
|
addTimeCycle_settings_sec_text2
|
|
160
|
-
power_strip_tile_socket_4_headline
|
|
161
155
|
conflict_dialog_active_item_fixedtimecycle_description
|
|
162
156
|
conflict_dialog_active_item_randomtimecycle_description
|
|
163
157
|
timeschedule_add_schedule_Lighting_applyfor_selection2_text
|
|
@@ -372,6 +366,10 @@ power_strip_feature_2_socket_2_text_min_on
|
|
|
372
366
|
power_strip_feature_2_socket_2_text_min_off
|
|
373
367
|
power_strip_feature_2_socket_3_text_min_on
|
|
374
368
|
power_strip_feature_2_socket_3_text_min_off
|
|
369
|
+
power_strip_feature_2_socket_4_text_min_on
|
|
370
|
+
power_strip_feature_2_socket_4_text_min_off
|
|
371
|
+
power_strip_feature_2_socket_5_text_min_on
|
|
372
|
+
power_strip_feature_2_socket_5_text_min_off
|
|
375
373
|
power_strip_feature_2_socket_usb_text_min_off
|
|
376
374
|
power_strip_feature_2_socket_usb_text_min_on
|
|
377
375
|
generation_data_description_text
|
|
@@ -1036,3 +1034,22 @@ offline
|
|
|
1036
1034
|
consumption_data_field4_button_text
|
|
1037
1035
|
consumption_data_price_per_l_headline_text
|
|
1038
1036
|
consumption_data_price_per_l_description_text
|
|
1037
|
+
power_strip_tile_socket_1_headline
|
|
1038
|
+
power_strip_tile_socket_2_headline
|
|
1039
|
+
power_strip_tile_socket_3_headline
|
|
1040
|
+
power_strip_tile_socket_4_headline
|
|
1041
|
+
power_strip_tile_socket_5_headline
|
|
1042
|
+
power_strip_tile_socket_usb_headline
|
|
1043
|
+
manual_search_button_socket
|
|
1044
|
+
socket1_active_timer_field_small_off_text
|
|
1045
|
+
socket1_active_timer_field_small_on_text
|
|
1046
|
+
socket2_active_timer_field_small_off_text
|
|
1047
|
+
socket2_active_timer_field_small_on_text
|
|
1048
|
+
socket3_active_timer_field_small_off_text
|
|
1049
|
+
socket3_active_timer_field_small_on_text
|
|
1050
|
+
socket4_active_timer_field_small_off_text
|
|
1051
|
+
socket4_active_timer_field_small_on_text
|
|
1052
|
+
socket5_active_timer_field_small_off_text
|
|
1053
|
+
socket5_active_timer_field_small_on_text
|
|
1054
|
+
socketusb_active_timer_field_small_off_text
|
|
1055
|
+
socketusb_active_timer_field_small_on_text
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/res/cash.png
DELETED
|
Binary file
|
package/src/res/cash@2x.png
DELETED
|
Binary file
|
package/src/res/cash@3x.png
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/res/flag_icon.png
DELETED
|
Binary file
|
|
Binary file
|
package/src/res/ic_colorize.png
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/res/ic_minus.png
DELETED
|
Binary file
|
package/src/res/ic_minus@2x.png
DELETED
|
Binary file
|
package/src/res/ic_minus@3x.png
DELETED
|
Binary file
|
package/src/res/ic_mood_del.png
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/res/ic_plus.png
DELETED
|
Binary file
|
package/src/res/ic_plus@2x.png
DELETED
|
Binary file
|
package/src/res/ic_plus@3x.png
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/res/ic_top_arrow.png
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/src/res/light_off.png
DELETED
|
Binary file
|
package/src/res/light_off@2x.png
DELETED
|
Binary file
|
package/src/res/light_off@3x.png
DELETED
|
Binary file
|
package/src/res/light_on.png
DELETED
|
Binary file
|
package/src/res/light_on@2x.png
DELETED
|
Binary file
|
package/src/res/light_on@3x.png
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|