@ledvance/base 1.3.54 → 1.3.56
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 +58 -1
- package/package.json +1 -1
- package/src/i18n/strings.ts +2199 -660
- package/src/res/index.ts +1 -1
- package/src/utils/common.ts +6 -4
- package/translateKey.txt +57 -0
package/src/res/index.ts
CHANGED
|
@@ -157,7 +157,7 @@ export default {
|
|
|
157
157
|
delay_48h: 'delay_48h_unselect',
|
|
158
158
|
delay_72h: 'delay_72h_unselect',
|
|
159
159
|
start: 'button_start',
|
|
160
|
-
stop: '
|
|
160
|
+
stop: 'button_stop',
|
|
161
161
|
take_photo: 'icon_take_photo',
|
|
162
162
|
record_video: 'icon_record_video',
|
|
163
163
|
clarity_hd: 'icon_clarity_hd',
|
package/src/utils/common.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { formatNumber, openDownloadFile } from 'api/native'
|
|
|
4
4
|
import dayjs from 'dayjs'
|
|
5
5
|
import RNFetchBlob from 'rn-fetch-blob'
|
|
6
6
|
import { cloneDeep, isEqual } from 'lodash'
|
|
7
|
-
import {
|
|
7
|
+
import {Dialog, DialogElse, Utils} from 'tuya-panel-kit'
|
|
8
8
|
import {GlobalParams} from "../models/GlobalParams";
|
|
9
9
|
|
|
10
10
|
const { toFixedString } = Utils.NumberUtils
|
|
@@ -228,7 +228,8 @@ interface DialogProps {
|
|
|
228
228
|
confirmText?: string
|
|
229
229
|
subTitle?: string
|
|
230
230
|
onConfirm: (data: any, args: { close: () => void }) => void
|
|
231
|
-
onCancel?: () => void
|
|
231
|
+
onCancel?: () => void,
|
|
232
|
+
option2?: DialogElse
|
|
232
233
|
}
|
|
233
234
|
|
|
234
235
|
// 获取文本的默认值
|
|
@@ -246,7 +247,8 @@ export function showDialog(props: DialogProps) {
|
|
|
246
247
|
confirmText,
|
|
247
248
|
subTitle,
|
|
248
249
|
onConfirm,
|
|
249
|
-
onCancel
|
|
250
|
+
onCancel,
|
|
251
|
+
option2
|
|
250
252
|
} = props
|
|
251
253
|
|
|
252
254
|
const defDialogProps = {
|
|
@@ -262,7 +264,7 @@ export function showDialog(props: DialogProps) {
|
|
|
262
264
|
}
|
|
263
265
|
const cancelProps = onCancel ? { onCancel } : {};
|
|
264
266
|
return (
|
|
265
|
-
method === 'confirm' ? Dialog.confirm({
|
|
267
|
+
method === 'confirm' ? Dialog.confirm({...defDialogProps, ...cancelProps}, option2) : Dialog.alert(defDialogProps, option2)
|
|
266
268
|
)
|
|
267
269
|
}
|
|
268
270
|
|
package/translateKey.txt
CHANGED
|
@@ -1121,3 +1121,60 @@ switch_4channels1setting
|
|
|
1121
1121
|
switch_4channels2setting
|
|
1122
1122
|
switch_4channels3setting
|
|
1123
1123
|
switch_4channels4setting
|
|
1124
|
+
hybrid_headline_text
|
|
1125
|
+
hybrid_switchstate_title
|
|
1126
|
+
hybrid_switchstate_setting_text
|
|
1127
|
+
hybrid_switchstate_setting1
|
|
1128
|
+
hybrid_switchstate_setting2
|
|
1129
|
+
hybrid_switchstate_setting3
|
|
1130
|
+
hybrid_switchstate_setting3_description
|
|
1131
|
+
motion_detection_select_detection_sensitivity_level
|
|
1132
|
+
motion_detection_sound_detection
|
|
1133
|
+
motion_detection_detect_baby_crying
|
|
1134
|
+
motion_detection_video_recording_duration
|
|
1135
|
+
dotit_volume
|
|
1136
|
+
camera_settings_device_restart
|
|
1137
|
+
camera_restart_device_dialog_content
|
|
1138
|
+
camera_settings_onvif_topic
|
|
1139
|
+
camera_settings_onvif_switch_topic
|
|
1140
|
+
camera_settings_onvif_ip_type_dynamic
|
|
1141
|
+
camera_settings_onvif_ip_type_static
|
|
1142
|
+
camera_settings_onvif_ip_type_topic
|
|
1143
|
+
camera_settings_humanoid_focus_topic
|
|
1144
|
+
camera_settings_anti_flicker_topic
|
|
1145
|
+
camera_settings_anti_flicker_50hz
|
|
1146
|
+
camera_settings_anti_flicker_60hz
|
|
1147
|
+
camera_settings_onvif_set_password_tips
|
|
1148
|
+
setting_change_title
|
|
1149
|
+
pos_mode_switching_fail_tips
|
|
1150
|
+
motion_detection_pir
|
|
1151
|
+
camera_settings_anti_dismantle_topic
|
|
1152
|
+
power_management_battery_remaining
|
|
1153
|
+
power_management_power_source
|
|
1154
|
+
power_management_power_source_battery
|
|
1155
|
+
power_management_power_source_power_cable
|
|
1156
|
+
power_management_low_battery_alarm_threshold
|
|
1157
|
+
camera_patrol
|
|
1158
|
+
camera_patrol_enable
|
|
1159
|
+
camera_select_patrol_mode
|
|
1160
|
+
camera_select_patrol_mode_panoramic
|
|
1161
|
+
camera_select_patrol_mode_panoramic_desc
|
|
1162
|
+
camera_select_patrol_mode_site
|
|
1163
|
+
camera_select_patrol_mode_site_desc
|
|
1164
|
+
camera_set_patrol_time
|
|
1165
|
+
camera_set_patrol_time_all_day
|
|
1166
|
+
camera_set_patrol_time_all_day_desc
|
|
1167
|
+
camera_set_patrol_time_timed
|
|
1168
|
+
camera_set_patrol_time_timed_desc
|
|
1169
|
+
camera_patrol_cruise_time
|
|
1170
|
+
camera_site
|
|
1171
|
+
camera_preset_point
|
|
1172
|
+
scene_next_day
|
|
1173
|
+
camera_errmsg_site_point_limit
|
|
1174
|
+
camera_edit_site_name
|
|
1175
|
+
camera_site_name
|
|
1176
|
+
camera_site_delete_dialog_title
|
|
1177
|
+
camera_site_overview_warning_max_number_text
|
|
1178
|
+
camera_site_overview_empty_button_add_text
|
|
1179
|
+
camera_site_overview_empty_information_text
|
|
1180
|
+
camera_settings_onvif_ip_topic
|