@eohjsc/react-native-smart-city 0.5.5 → 0.5.7-rc1
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/commons/ActionGroup/OnOffTemplate/OnOffButtonTemplate.js +27 -3
- package/src/commons/ActionGroup/OnOffTemplate/index.js +47 -32
- package/src/commons/ActionGroup/__test__/index.test.js +40 -1
- package/src/commons/ActionTemplate/OnOffButtonAction.js +8 -2
- package/src/commons/ActionTemplate/OneButtonAction.js +5 -1
- package/src/configs/API.js +6 -0
- package/src/configs/AccessibilityLabel.js +7 -0
- package/src/configs/Constants.js +5 -0
- package/src/navigations/UnitStack.js +6 -0
- package/src/screens/Automate/AddNewAction/ChooseAction.js +1 -89
- package/src/screens/Automate/AddNewAction/NewActionWrapper.js +10 -2
- package/src/screens/Automate/AddNewAction/RenderActionItem.js +92 -0
- package/src/screens/Automate/AddNewAction/SetupConfigCondition.js +23 -11
- package/src/screens/Automate/AddNewAction/SetupScriptDelay.js +2 -2
- package/src/screens/Automate/AddNewAction/Styles/SetupSensorStyles.js +3 -3
- package/src/screens/Automate/AddNewAction/__test__/SetupConfigCondition.test.js +10 -17
- package/src/screens/Automate/EditActionsList/Styles/indexStyles.js +32 -6
- package/src/screens/Automate/EditActionsList/UpdateActionScript.js +141 -0
- package/src/screens/Automate/EditActionsList/UpdateDelayScript.js +94 -0
- package/src/screens/Automate/EditActionsList/UpdateNotifyScript.js +115 -0
- package/src/screens/Automate/EditActionsList/__tests__/UpdateActionScript.test.js +174 -0
- package/src/screens/Automate/EditActionsList/__tests__/UpdateDelayScript.test.js +119 -0
- package/src/screens/Automate/EditActionsList/__tests__/UpdateNotifyScript.test.js +138 -0
- package/src/screens/Automate/EditActionsList/__tests__/index.test.js +121 -50
- package/src/screens/Automate/EditActionsList/index.js +276 -167
- package/src/screens/Automate/ScriptDetail/index.js +11 -6
- package/src/screens/ChangePosition/index.js +1 -1
- package/src/screens/ChangePosition/styles.js +4 -0
- package/src/utils/I18n/translations/en.js +17 -4
- package/src/utils/I18n/translations/vi.js +17 -4
- package/src/utils/Route/index.js +2 -0
|
@@ -99,7 +99,9 @@ export default {
|
|
|
99
99
|
is_above: 'trên',
|
|
100
100
|
edit_actions_list: 'Chỉnh sửa danh sách hành động',
|
|
101
101
|
des_edit_actions_list:
|
|
102
|
-
'Nhấn giữ và di chuyển để sắp xếp lại thứ tự các hành động',
|
|
102
|
+
'Nhấn giữ vào số thứ tự và di chuyển để sắp xếp lại thứ tự các hành động.',
|
|
103
|
+
hold_longer_than_1s:
|
|
104
|
+
'Nhấn giữ vào tên hành động lâu hơn 1s để cập nhật hành động.',
|
|
103
105
|
sub_unit: 'Khu vực',
|
|
104
106
|
sub_units: 'Khu vực',
|
|
105
107
|
device: 'Thiết bị',
|
|
@@ -744,6 +746,10 @@ export default {
|
|
|
744
746
|
notification: 'Thông báo',
|
|
745
747
|
send_notification: 'Gửi thông báo',
|
|
746
748
|
title_notification: 'Chủ đề: “Cảnh báo”',
|
|
749
|
+
update_title_notification: 'Cập nhật tiêu đề',
|
|
750
|
+
update_message_notification: 'Cập nhật nội dung cảnh báo',
|
|
751
|
+
update_action: 'Cập nhật hành động',
|
|
752
|
+
updated_action_order: 'Đã cập nhật thứ tự hành động',
|
|
747
753
|
message_notification:
|
|
748
754
|
'Nội dung cảnh báo: “Nhiệt độ tại phòng làm việc đang cao vui lòng kiểm tra.”',
|
|
749
755
|
promotions: 'Ưu đãi',
|
|
@@ -1028,13 +1034,17 @@ export default {
|
|
|
1028
1034
|
tap_to_run: 'Nhấn để chạy',
|
|
1029
1035
|
how_to_start: 'Cách khởi động',
|
|
1030
1036
|
'set_up {name}': 'Thiết lập {name}',
|
|
1037
|
+
choose_action: 'Lựa chọn hành động',
|
|
1031
1038
|
action: 'hành động',
|
|
1032
1039
|
power: 'Nguồn điện',
|
|
1033
1040
|
actions_list: 'Dánh sách hành động',
|
|
1034
1041
|
delete_action: 'Xoá hành động ?',
|
|
1035
1042
|
message_delete_action:
|
|
1036
1043
|
'Bạn có chắc chắn muốn xóa hành động của {actionName} trong {stationName} không ?',
|
|
1037
|
-
message_delete_notify:
|
|
1044
|
+
message_delete_notify:
|
|
1045
|
+
'Bạn có chắc chắn muốn xóa thông báo "{title}" này không?',
|
|
1046
|
+
message_delete_delay:
|
|
1047
|
+
'Bạn có chắc chắn muốn xóa trì hoãn "{delay} giây" này không?',
|
|
1038
1048
|
add_script: 'Thêm Kịch Bản',
|
|
1039
1049
|
delete_script: 'Xóa kịch bản',
|
|
1040
1050
|
title_delete_script: 'Xóa kịch bản "{scriptName}"?',
|
|
@@ -1067,6 +1077,8 @@ export default {
|
|
|
1067
1077
|
delay_the_action: 'Trì hoãn hành động',
|
|
1068
1078
|
wait: 'Chờ đợi',
|
|
1069
1079
|
set_timeout_seconds: 'Cài đặt thời gian chờ (giây)',
|
|
1080
|
+
update_waiting_time: 'Cập nhật thời gian chờ (giây)',
|
|
1081
|
+
update_successfully: 'Cập nhật thành công',
|
|
1070
1082
|
maximum_3600_seconds: 'Tối đa 3600 giây',
|
|
1071
1083
|
wait_time_seconds: 'Chờ {delay} giây',
|
|
1072
1084
|
smart_account: 'Tài khoản thông minh',
|
|
@@ -1429,7 +1441,8 @@ export default {
|
|
|
1429
1441
|
io_method: 'Giao thức Input/Output',
|
|
1430
1442
|
change_position: 'Thay đổi vị trí',
|
|
1431
1443
|
updated_widget_successfully: 'Đã cập nhật tiện ích thành công',
|
|
1432
|
-
sub_text_change_position:
|
|
1444
|
+
sub_text_change_position:
|
|
1445
|
+
'Nhấn giữ vào số thứ tự và di chuyển để sắp xếp lại các tiện ích.',
|
|
1433
1446
|
transfer_ownership: 'Chuyển quyền sở hữu',
|
|
1434
1447
|
text_change_owner: 'Quyền sở hữu đơn vị này cho người dùng bạn đã chọn.',
|
|
1435
1448
|
text_alert_change_owner:
|
|
@@ -1440,7 +1453,7 @@ export default {
|
|
|
1440
1453
|
'[Era] kính mong quý khách hàng thông cảm cho sự bất tiện này.\n\nTrân trọng ',
|
|
1441
1454
|
value_must_be_greater_than_min: 'Giá trị phải lớn hơn {min}',
|
|
1442
1455
|
value_must_be_less_than_max: 'Giá trị phải nhỏ hơn {max}',
|
|
1443
|
-
please_enter_a_number: 'Vui lòng nhập một số',
|
|
1456
|
+
please_enter_a_number: 'Vui lòng nhập một số và chọn điều kiện',
|
|
1444
1457
|
not_support_plug_and_play: 'Không hỗ trợ kết nối tự động',
|
|
1445
1458
|
reach_max_stations_per_unit:
|
|
1446
1459
|
'Bạn đã đạt đến số lượng tối đa {length} khu vực cho mỗi địa điểm.',
|
package/src/utils/Route/index.js
CHANGED