@eohjsc/react-native-smart-city 0.7.0 → 0.7.3-rc0
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/README.md +2 -2
- package/assets/images/Automation-fill.svg +85 -0
- package/assets/images/Scenario-filled.svg +22 -0
- package/assets/images/schedule-fill.svg +48 -0
- package/package.json +3 -3
- package/src/commons/Action/ItemQuickAction.js +1 -1
- package/src/commons/DateTimeRangeChange/index.js +1 -1
- package/src/commons/Device/ItemDevice.js +3 -19
- package/src/commons/MenuActionMore/MenuActionMoreStyles.js +2 -1
- package/src/commons/MenuActionMore/index.js +1 -1
- package/src/commons/NavBar/NavBarStyles.js +1 -1
- package/src/commons/SubUnit/OneTap/ItemOneTap.js +3 -3
- package/src/commons/Unit/HeaderUnit/index.js +29 -21
- package/src/commons/Widgets/IFrameWithConfig/IFrameWithConfig.js +44 -1
- package/src/commons/Widgets/IFrameWithConfig/__tests__/IFrameWithConfig.test.js +69 -0
- package/src/commons/WrapParallaxScrollView/index.js +9 -10
- package/src/configs/Constants.js +3 -3
- package/src/navigations/AddDeviceStack.js +2 -2
- package/src/navigations/AddGatewayStack.js +2 -2
- package/src/navigations/AddLGDeviceStack.js +2 -2
- package/src/navigations/AddMemberStack.js +2 -2
- package/src/navigations/AddSubUnitStack.js +2 -2
- package/src/navigations/AddUnitStack.js +2 -2
- package/src/navigations/AllGatewayStack.js +2 -2
- package/src/navigations/AutomateStack.js +2 -2
- package/src/navigations/EmergencyContactsStack.js +2 -2
- package/src/navigations/GatewayStack.js +2 -2
- package/src/navigations/HanetCameraStack.js +2 -2
- package/src/navigations/Main.js +2 -2
- package/src/navigations/NotificationStack.js +2 -2
- package/src/navigations/SharedStack.js +2 -2
- package/src/navigations/SmartAccountStack.js +2 -2
- package/src/navigations/SmartIrStack.js +2 -2
- package/src/navigations/SmartLockStack.js +2 -2
- package/src/navigations/SmartStack.js +2 -2
- package/src/navigations/TemplateStack.js +2 -2
- package/src/navigations/UnitStack.js +2 -2
- package/src/navigations/utils.js +1 -4
- package/src/screens/Automate/Styles/indexStyles.js +6 -0
- package/src/screens/Automate/__test__/index.test.js +3 -28
- package/src/screens/Automate/index.js +48 -31
- package/src/screens/SharedUnit/index.js +5 -0
- package/src/screens/Unit/Detail.js +1 -5
- package/src/screens/Unit/MoreMenu.js +6 -5
- package/src/screens/Unit/__test__/MoreMenu.test.js +5 -1
- package/src/screens/Unit/components/AutomateScript/index.js +3 -3
- package/src/screens/UnitSummary/components/WaterQuality/Item/index.js +1 -1
- package/src/screens/UnitSummary/index.js +5 -1
- package/src/utils/Apis/axios.js +4 -2
- package/assets/images/OneTap.svg +0 -14
- package/assets/images/Schedule.svg +0 -39
- package/assets/images/ValueChange.svg +0 -49
package/src/utils/Apis/axios.js
CHANGED
|
@@ -17,7 +17,9 @@ const api = create({
|
|
|
17
17
|
|
|
18
18
|
if (__DEV__ && process.env.NODE_ENV !== 'test') {
|
|
19
19
|
api.axiosInstance.interceptors.request.use((request) => {
|
|
20
|
-
console.log(
|
|
20
|
+
console.log(
|
|
21
|
+
`${new Date()} ${request.method.toUpperCase()} ${request.url || ''}`
|
|
22
|
+
);
|
|
21
23
|
if (process.env.DEBUG_AXIOS_DETAIL_REQUEST) {
|
|
22
24
|
if (request.data) {
|
|
23
25
|
console.log(JSON.stringify(request.data));
|
|
@@ -28,7 +30,7 @@ if (__DEV__ && process.env.NODE_ENV !== 'test') {
|
|
|
28
30
|
});
|
|
29
31
|
|
|
30
32
|
api.axiosInstance.interceptors.response.use((response) => {
|
|
31
|
-
console.log(`${response.status} ${response.config.url}`);
|
|
33
|
+
console.log(`${new Date()} ${response.status} ${response.config.url}`);
|
|
32
34
|
if (process.env.DEBUG_AXIOS_DETAIL_REQUEST) {
|
|
33
35
|
console.log(response.data);
|
|
34
36
|
}
|
package/assets/images/OneTap.svg
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
<svg width="33" height="33" viewBox="0 0 33 33" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M16.5 18.5928H8.5C7.39453 18.5928 6.5 17.699 6.5 16.5928C6.5 15.4865 7.39453 14.5928 8.5 14.5928H16.5C17.6055 14.5928 18.5 15.4865 18.5 16.5928C18.5 17.699 17.6055 18.5928 16.5 18.5928Z" fill="url(#paint0_linear)"/>
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M24.5 6.59277H28.5C30.707 6.59277 32.5 8.38654 32.5 10.5928V28.5928C32.5 30.799 30.707 32.5928 28.5 32.5928H10.5C8.29297 32.5928 6.5 30.799 6.5 28.5928V24.5928H4.5C2.29297 24.5928 0.5 22.799 0.5 20.5928V4.59277C0.5 2.38654 2.29297 0.592773 4.5 0.592773H20.5C22.707 0.592773 24.5 2.38654 24.5 4.59277V6.59277ZM4.5 4.59277V20.5928H20.5V4.59277H4.5ZM28.5 28.5928H10.5V24.5928H20.5C22.707 24.5928 24.5 22.799 24.5 20.5928V10.5928H28.5V28.5928Z" fill="url(#paint1_linear)"/>
|
|
4
|
-
<defs>
|
|
5
|
-
<linearGradient id="paint0_linear" x1="0.5" y1="0.592773" x2="32.4646" y2="32.5928" gradientUnits="userSpaceOnUse">
|
|
6
|
-
<stop stop-color="#2B6B9F"/>
|
|
7
|
-
<stop offset="1" stop-color="#D5FFCB"/>
|
|
8
|
-
</linearGradient>
|
|
9
|
-
<linearGradient id="paint1_linear" x1="0.5" y1="0.592773" x2="32.4646" y2="32.5928" gradientUnits="userSpaceOnUse">
|
|
10
|
-
<stop stop-color="#2B6B9F"/>
|
|
11
|
-
<stop offset="1" stop-color="#D5FFCB"/>
|
|
12
|
-
</linearGradient>
|
|
13
|
-
</defs>
|
|
14
|
-
</svg>
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<g clip-path="url(#clip0)">
|
|
3
|
-
<path d="M16.332 21.377L18.5464 25.1419L20.0979 23.5904L16.332 21.377Z" fill="url(#paint0_linear)"/>
|
|
4
|
-
<path d="M19.5571 26.1531L23.3215 28.3659L21.1083 24.6016L19.5571 26.1531Z" fill="url(#paint1_linear)"/>
|
|
5
|
-
<path d="M19.2856 7.71777V8.49292H20.7142V7.71777C20.2415 7.79895 19.7584 7.79895 19.2856 7.71777Z" fill="url(#paint2_linear)"/>
|
|
6
|
-
<path d="M20 9.92188C11.7157 9.92188 5 16.6376 5 24.9219C5 33.2062 11.7157 39.9219 20 39.9219C28.2843 39.9219 35 33.2062 35 24.9219C34.9906 16.6415 28.2804 9.93134 20 9.92188ZM20 38.4934C12.5046 38.4934 6.42853 32.4173 6.42853 24.9219C6.42853 17.4265 12.5046 11.3504 20 11.3504C27.4951 11.3504 33.5715 17.4265 33.5715 24.9219C33.5633 32.4137 27.4918 38.4851 20 38.4934Z" fill="url(#paint3_linear)"/>
|
|
7
|
-
<path d="M20.0001 6.35041C21.7753 6.35041 23.2142 4.9115 23.2142 3.13629C23.2142 1.36109 21.7753 -0.078125 20.0001 -0.078125C18.2249 -0.078125 16.7856 1.36109 16.7856 3.13629C16.7878 4.91059 18.2258 6.34858 20.0001 6.35041ZM20.0001 2.42188C20.3947 2.42188 20.7142 2.7417 20.7142 3.13629C20.7142 3.53058 20.3943 3.85041 20.0001 3.85041C19.6055 3.85041 19.2856 3.53058 19.2856 3.13629C19.2856 2.7417 19.6055 2.42188 20.0001 2.42188Z" fill="url(#paint4_linear)"/>
|
|
8
|
-
<path d="M19.9999 12.7793C13.2936 12.7793 7.85693 18.216 7.85693 24.9223C7.85693 31.6285 13.2936 37.0652 19.9999 37.0652C26.7061 37.0652 32.1428 31.6285 32.1428 24.9223C32.1352 18.2191 26.7031 12.7869 19.9999 12.7793ZM19.2855 14.9222C19.2855 14.5277 19.6053 14.2078 19.9999 14.2078C20.3945 14.2078 20.714 14.5277 20.714 14.9222V16.3508C20.714 16.7454 20.3942 17.0652 19.9999 17.0652C19.6053 17.0652 19.2855 16.7454 19.2855 16.3508V14.9222ZM11.4284 25.6367H9.99988C9.60529 25.6367 9.28546 25.3168 9.28546 24.9223C9.28546 24.5277 9.60529 24.2078 9.99988 24.2078H11.4284C11.823 24.2078 12.1428 24.5277 12.1428 24.9223C12.1428 25.3168 11.823 25.6367 11.4284 25.6367ZM20.714 34.9223C20.714 35.3169 20.3942 35.6364 19.9999 35.6364C19.6053 35.6364 19.2855 35.3169 19.2855 34.9223V33.4937C19.2855 33.0991 19.6053 32.7793 19.9999 32.7793C20.3945 32.7793 20.714 33.0991 20.714 33.4937V34.9223ZM25.8376 30.8829C25.6075 31.1131 25.2511 31.1585 24.9706 30.9937L18.037 26.9172C18.0306 26.9135 18.0278 26.9065 18.0211 26.9022C17.9815 26.872 17.9454 26.8375 17.9134 26.7994C17.8691 26.7634 17.8295 26.7216 17.7956 26.6758C17.7919 26.67 17.7855 26.6679 17.7828 26.6624L13.7047 19.7288C13.5039 19.3891 13.6159 18.9512 13.9556 18.7501C14.1799 18.617 14.4588 18.617 14.6834 18.7501L21.6176 22.8266C21.624 22.8309 21.6271 22.8379 21.6335 22.8416C21.6726 22.8721 21.7086 22.9066 21.7412 22.9444C21.7852 22.9807 21.8245 23.0222 21.8584 23.068C21.8621 23.0735 21.8685 23.0765 21.8718 23.0823L25.9484 30.0156C26.1135 30.2964 26.0677 30.6528 25.8376 30.8829ZM29.9999 25.6367H28.5714C28.1768 25.6367 27.8569 25.3168 27.8569 24.9223C27.8569 24.5277 28.1768 24.2078 28.5714 24.2078H29.9999C30.3945 24.2078 30.7143 24.5277 30.7143 24.9223C30.714 25.3168 30.3942 25.6367 29.9999 25.6367Z" fill="url(#paint5_linear)"/>
|
|
9
|
-
</g>
|
|
10
|
-
<defs>
|
|
11
|
-
<linearGradient id="paint0_linear" x1="16.332" y1="21.377" x2="20.0928" y2="25.1428" gradientUnits="userSpaceOnUse">
|
|
12
|
-
<stop stop-color="#2B6B9F"/>
|
|
13
|
-
<stop offset="1" stop-color="#D5FFCB"/>
|
|
14
|
-
</linearGradient>
|
|
15
|
-
<linearGradient id="paint1_linear" x1="19.5571" y1="24.6016" x2="23.3173" y2="28.3659" gradientUnits="userSpaceOnUse">
|
|
16
|
-
<stop stop-color="#2B6B9F"/>
|
|
17
|
-
<stop offset="1" stop-color="#D5FFCB"/>
|
|
18
|
-
</linearGradient>
|
|
19
|
-
<linearGradient id="paint2_linear" x1="19.2856" y1="7.71777" x2="19.9344" y2="8.91471" gradientUnits="userSpaceOnUse">
|
|
20
|
-
<stop stop-color="#2B6B9F"/>
|
|
21
|
-
<stop offset="1" stop-color="#D5FFCB"/>
|
|
22
|
-
</linearGradient>
|
|
23
|
-
<linearGradient id="paint3_linear" x1="5" y1="9.92187" x2="34.9668" y2="39.9219" gradientUnits="userSpaceOnUse">
|
|
24
|
-
<stop stop-color="#2B6B9F"/>
|
|
25
|
-
<stop offset="1" stop-color="#D5FFCB"/>
|
|
26
|
-
</linearGradient>
|
|
27
|
-
<linearGradient id="paint4_linear" x1="16.7856" y1="-0.078125" x2="23.2071" y2="6.3504" gradientUnits="userSpaceOnUse">
|
|
28
|
-
<stop stop-color="#2B6B9F"/>
|
|
29
|
-
<stop offset="1" stop-color="#D5FFCB"/>
|
|
30
|
-
</linearGradient>
|
|
31
|
-
<linearGradient id="paint5_linear" x1="7.85693" y1="12.7793" x2="32.116" y2="37.0652" gradientUnits="userSpaceOnUse">
|
|
32
|
-
<stop stop-color="#2B6B9F"/>
|
|
33
|
-
<stop offset="1" stop-color="#D5FFCB"/>
|
|
34
|
-
</linearGradient>
|
|
35
|
-
<clipPath id="clip0">
|
|
36
|
-
<rect width="40" height="40" fill="white"/>
|
|
37
|
-
</clipPath>
|
|
38
|
-
</defs>
|
|
39
|
-
</svg>
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<g clip-path="url(#clip0)">
|
|
3
|
-
<path d="M39.9609 19.4151C39.9609 16.0576 37.5367 13.2553 34.3461 12.6674C34.4469 7.7329 29.6475 3.91545 24.7266 5.38009C23.2367 2.22626 20.0429 0 16.2573 0C11.214 0 7.08931 4.01089 6.90686 9.01047C2.92786 9.87659 0.0390625 13.4122 0.0390625 17.5438C0.0390625 22.3593 3.95639 26.2766 8.77196 26.2766H33.0993C36.8825 26.2766 39.9609 23.1983 39.9609 19.4151Z" fill="url(#paint0_linear)"/>
|
|
4
|
-
<path d="M27.4194 28.2794C26.8033 27.9714 26.0538 28.221 25.7457 28.8374L23.2506 33.8276C22.833 34.6629 23.4486 35.6334 24.3655 35.6334C24.8231 35.6334 25.2637 35.3806 25.4823 34.9435L27.9774 29.9533C28.2855 29.337 28.0357 28.5876 27.4194 28.2794Z" fill="url(#paint1_linear)"/>
|
|
5
|
-
<path d="M38.647 28.2794C38.0308 27.9714 37.2813 28.221 36.9732 28.8374L34.4781 33.8276C34.0605 34.6629 34.6762 35.6334 35.593 35.6334C36.0507 35.6334 36.4913 35.3806 36.7098 34.9435L39.2049 29.9533C39.513 29.337 39.2633 28.5876 38.647 28.2794Z" fill="url(#paint2_linear)"/>
|
|
6
|
-
<path d="M16.1914 28.2794C15.5753 27.9714 14.8257 28.221 14.5177 28.8374L12.0226 33.8276C11.6049 34.6629 12.2206 35.6334 13.1375 35.6334C13.5951 35.6334 14.0357 35.3806 14.2543 34.9435L16.7494 29.9533C17.0575 29.337 16.8077 28.5876 16.1914 28.2794Z" fill="url(#paint3_linear)"/>
|
|
7
|
-
<path d="M4.96339 28.2794C4.34726 27.9714 3.59771 28.221 3.28964 28.8374L0.794526 33.8276C0.376906 34.6629 0.992575 35.6334 1.90945 35.6334C2.36707 35.6334 2.80769 35.3806 3.02625 34.9435L5.52136 29.9533C5.82943 29.337 5.57969 28.5876 4.96339 28.2794Z" fill="url(#paint4_linear)"/>
|
|
8
|
-
<path d="M19.9336 32.6456C19.3174 32.3376 18.5679 32.5873 18.2599 33.2036L15.7647 38.1938C15.3471 39.029 15.9628 39.9996 16.8797 39.9996C17.3373 39.9996 17.7779 39.7468 17.9965 39.3097L20.4916 34.3194C20.7996 33.7032 20.5499 32.9538 19.9336 32.6456Z" fill="url(#paint5_linear)"/>
|
|
9
|
-
<path d="M31.1621 32.6456C30.5459 32.3376 29.7964 32.5873 29.4884 33.2036L26.9933 38.1938C26.5756 39.029 27.1913 39.9996 28.1082 39.9996C28.5658 39.9996 29.0064 39.7468 29.225 39.3097L31.7201 34.3194C32.0281 33.7032 31.7784 32.9538 31.1621 32.6456Z" fill="url(#paint6_linear)"/>
|
|
10
|
-
<path d="M8.70607 32.6456C8.08985 32.3376 7.34038 32.5873 7.03232 33.2036L4.5372 38.1938C4.11958 39.029 4.73525 39.9996 5.65213 39.9996C6.10975 39.9996 6.55037 39.7468 6.76893 39.3097L9.26404 34.3194C9.57211 33.7032 9.32236 32.9538 8.70607 32.6456Z" fill="url(#paint7_linear)"/>
|
|
11
|
-
</g>
|
|
12
|
-
<defs>
|
|
13
|
-
<linearGradient id="paint0_linear" x1="0.0390625" y1="0" x2="24.1366" y2="36.6517" gradientUnits="userSpaceOnUse">
|
|
14
|
-
<stop stop-color="#2B6B9F"/>
|
|
15
|
-
<stop offset="1" stop-color="#D5FFCB"/>
|
|
16
|
-
</linearGradient>
|
|
17
|
-
<linearGradient id="paint1_linear" x1="23.1172" y1="28.1475" x2="30.0234" y2="32.7581" gradientUnits="userSpaceOnUse">
|
|
18
|
-
<stop stop-color="#2B6B9F"/>
|
|
19
|
-
<stop offset="1" stop-color="#D5FFCB"/>
|
|
20
|
-
</linearGradient>
|
|
21
|
-
<linearGradient id="paint2_linear" x1="34.3447" y1="28.1475" x2="41.2509" y2="32.7581" gradientUnits="userSpaceOnUse">
|
|
22
|
-
<stop stop-color="#2B6B9F"/>
|
|
23
|
-
<stop offset="1" stop-color="#D5FFCB"/>
|
|
24
|
-
</linearGradient>
|
|
25
|
-
<linearGradient id="paint3_linear" x1="11.8892" y1="28.1475" x2="18.7954" y2="32.7582" gradientUnits="userSpaceOnUse">
|
|
26
|
-
<stop stop-color="#2B6B9F"/>
|
|
27
|
-
<stop offset="1" stop-color="#D5FFCB"/>
|
|
28
|
-
</linearGradient>
|
|
29
|
-
<linearGradient id="paint4_linear" x1="0.661133" y1="28.1475" x2="7.56733" y2="32.7581" gradientUnits="userSpaceOnUse">
|
|
30
|
-
<stop stop-color="#2B6B9F"/>
|
|
31
|
-
<stop offset="1" stop-color="#D5FFCB"/>
|
|
32
|
-
</linearGradient>
|
|
33
|
-
<linearGradient id="paint5_linear" x1="15.6313" y1="32.5137" x2="22.5375" y2="37.1244" gradientUnits="userSpaceOnUse">
|
|
34
|
-
<stop stop-color="#2B6B9F"/>
|
|
35
|
-
<stop offset="1" stop-color="#D5FFCB"/>
|
|
36
|
-
</linearGradient>
|
|
37
|
-
<linearGradient id="paint6_linear" x1="26.8599" y1="32.5137" x2="33.766" y2="37.1243" gradientUnits="userSpaceOnUse">
|
|
38
|
-
<stop stop-color="#2B6B9F"/>
|
|
39
|
-
<stop offset="1" stop-color="#D5FFCB"/>
|
|
40
|
-
</linearGradient>
|
|
41
|
-
<linearGradient id="paint7_linear" x1="4.40381" y1="32.5137" x2="11.31" y2="37.1244" gradientUnits="userSpaceOnUse">
|
|
42
|
-
<stop stop-color="#2B6B9F"/>
|
|
43
|
-
<stop offset="1" stop-color="#D5FFCB"/>
|
|
44
|
-
</linearGradient>
|
|
45
|
-
<clipPath id="clip0">
|
|
46
|
-
<rect width="40" height="40" fill="white"/>
|
|
47
|
-
</clipPath>
|
|
48
|
-
</defs>
|
|
49
|
-
</svg>
|