@eohjsc/react-native-smart-city 0.2.53 → 0.2.57
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/assets/images/SonosSpeaker/buttonpause-active.svg +3 -0
- package/assets/images/SonosSpeaker/buttonpause-notactive.svg +3 -0
- package/assets/images/SonosSpeaker/picture-main-notactive.svg +5 -0
- package/assets/images/SonosSpeaker/picture-main.svg +6 -0
- package/assets/images/SonosSpeaker/picture-volume.svg +3 -0
- package/package.json +2 -1
- package/src/commons/AlertAction/index.js +3 -3
- package/src/commons/DateTimeRangeChange/index.js +2 -2
- package/src/commons/Device/HistoryChart.js +9 -39
- package/src/commons/Device/HorizontalBarChart.js +1 -1
- package/src/commons/Device/PMSensor/PMSensorIndicatior.js +1 -1
- package/src/commons/Device/PMSensor/PMSensorIndicatorStyles.js +2 -1
- package/src/commons/Device/SonosSpeaker/__test__/SonosSpeaker.test.js +57 -0
- package/src/commons/Device/SonosSpeaker/index.js +88 -0
- package/src/commons/Device/SonosSpeaker/styles.js +57 -0
- package/src/commons/Form/CurrencyInput.js +163 -0
- package/src/commons/Form/__test__/CurrencyInput.test.js +65 -0
- package/src/commons/Sharing/RowMember.js +3 -0
- package/src/commons/ThreeButtonHistory/__test__/ThreeButtonHistory.test.js +17 -8
- package/src/commons/ThreeButtonHistory/index.js +52 -23
- package/src/configs/Constants.js +2 -2
- package/src/screens/ActivityLog/ItemLog.js +9 -0
- package/src/screens/ActivityLog/__test__/ItemLog.test.js +43 -0
- package/src/screens/AddCommon/SelectSubUnit.js +1 -1
- package/src/screens/SubUnit/AddSubUnit.js +78 -59
- package/src/screens/Unit/Detail.js +7 -1
- package/src/screens/Unit/ManageUnit.js +3 -4
- package/src/screens/Unit/SmartAccount.js +2 -3
- package/src/screens/Unit/SmartAccountItem.js +1 -1
- package/src/screens/Unit/SmartAccountStyles.js +1 -1
- package/src/screens/Unit/Summaries.js +5 -1
- package/src/screens/Unit/hook/useStateAlertRemove.js +3 -1
- package/src/screens/UnitSummary/components/3PPowerConsumption/index.js +1 -1
- package/src/screens/UnitSummary/components/PowerConsumption/index.js +1 -1
- package/src/screens/UnitSummary/components/UvIndex/index.js +10 -2
- package/src/screens/UnitSummary/components/WaterQuality/Item/index.js +1 -3
- package/src/screens/UnitSummary/index.js +3 -2
- package/src/utils/I18n/translations/en.json +6 -2
- package/src/utils/I18n/translations/vi.json +7 -3
|
@@ -68,7 +68,9 @@ const UnitSummary = memo(({ route }) => {
|
|
|
68
68
|
|
|
69
69
|
const fetchSummaryDetail = useCallback(async () => {
|
|
70
70
|
const { success, data } = await axiosGet(
|
|
71
|
-
API.UNIT.UNIT_SUMMARY_DETAIL(unit.id, summary.id)
|
|
71
|
+
API.UNIT.UNIT_SUMMARY_DETAIL(unit.id, summary.id),
|
|
72
|
+
{},
|
|
73
|
+
true
|
|
72
74
|
);
|
|
73
75
|
setLoading(false);
|
|
74
76
|
if (success) {
|
|
@@ -136,7 +138,6 @@ const styles = StyleSheet.create({
|
|
|
136
138
|
container: {
|
|
137
139
|
flex: 1,
|
|
138
140
|
backgroundColor: Colors.Gray2,
|
|
139
|
-
paddingBottom: 60,
|
|
140
141
|
},
|
|
141
142
|
textHeader: {
|
|
142
143
|
color: Colors.Gray9,
|
|
@@ -186,7 +186,8 @@
|
|
|
186
186
|
"explanation": "Do everything with just one button",
|
|
187
187
|
"value_change": "Value change",
|
|
188
188
|
"schedule": "Schedule",
|
|
189
|
-
"
|
|
189
|
+
"setup_the_conditions": "Setup the conditions",
|
|
190
|
+
"setup_the_schedule": "Setup the Schedule",
|
|
190
191
|
"des_launch_one_tap": "Quick button create at the dashboard",
|
|
191
192
|
"active_list": "Actions List",
|
|
192
193
|
"text_very_good_level": "Very good",
|
|
@@ -839,5 +840,8 @@
|
|
|
839
840
|
"connected_via_internet": "Connected via Internet",
|
|
840
841
|
"name_your_unit": "Name your unit",
|
|
841
842
|
"script_updated_by": "Script updated by",
|
|
842
|
-
"qr_scan_guidelines": "The QR code will be detected automatically when it’s positioned within the guide lines."
|
|
843
|
+
"qr_scan_guidelines": "The QR code will be detected automatically when it’s positioned within the guide lines.",
|
|
844
|
+
"now_playing": "Now Playing",
|
|
845
|
+
"pause": "Pause",
|
|
846
|
+
"volume": "Volume"
|
|
843
847
|
}
|
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
"launch_one_tap": "Khởi chạy một lần chạm",
|
|
44
44
|
"explanation": "Làm mọi thứ chỉ với một nút",
|
|
45
45
|
"value_change": "Thay đổi giá trị",
|
|
46
|
-
"
|
|
46
|
+
"setup_the_conditions": "Cài đặt điều kiện",
|
|
47
|
+
"setup_the_schedule": "Cài đặt thời gian ",
|
|
47
48
|
"schedule": "Lịch trình",
|
|
48
49
|
"des_launch_one_tap": "Tạo nút nhanh trên trang tổng quan",
|
|
49
50
|
"active_list": "Danh sách hành động",
|
|
@@ -341,7 +342,7 @@
|
|
|
341
342
|
"current_wind_speed": "Tốc độ gió hiện tại",
|
|
342
343
|
"history": "Lịch sử",
|
|
343
344
|
"wind_speed": "Tốc độ gió",
|
|
344
|
-
"from": "
|
|
345
|
+
"from": "Từ",
|
|
345
346
|
"to": "đến",
|
|
346
347
|
"condition": "Điều kiện",
|
|
347
348
|
"shared_unit": "Khu vực được chia sẻ",
|
|
@@ -840,5 +841,8 @@
|
|
|
840
841
|
"connected_via_internet": "Đã kết nối điều khiển thông qua Internet",
|
|
841
842
|
"name_your_unit": "Đặt tên cho khu vực của bạn",
|
|
842
843
|
"script_updated_by": "Kịch bản được cập nhật bởi",
|
|
843
|
-
"qr_scan_guidelines": "Mã QR sẽ được phát hiện tự động khi nó được định vị trong các dòng hướng dẫn."
|
|
844
|
+
"qr_scan_guidelines": "Mã QR sẽ được phát hiện tự động khi nó được định vị trong các dòng hướng dẫn.",
|
|
845
|
+
"now_playing": "Đang chạy",
|
|
846
|
+
"pause": "Tạm dừng",
|
|
847
|
+
"volume": "Âm lượng"
|
|
844
848
|
}
|