@eohjsc/react-native-smart-city 0.6.2-rc20 → 0.6.2-rc22
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/OneTap.svg +14 -0
- package/assets/images/Schedule.svg +39 -0
- package/assets/images/ValueChange.svg +49 -0
- package/package.json +1 -1
- package/src/commons/SubUnit/OneTap/ItemOneTap.js +3 -3
- package/src/configs/Constants.js +3 -3
- package/src/screens/Automate/AddNewAction/ChooseAction.js +17 -3
- package/src/screens/Automate/AddNewAction/SelectControlDevices.js +27 -17
- package/src/screens/Automate/AddNewAction/SelectMonitorDevices.js +13 -7
- package/src/screens/Automate/AddNewAction/SetupScriptDelay.js +1 -1
- package/src/screens/Automate/AddNewAction/SetupScriptNotify.js +3 -3
- package/src/screens/Automate/AddNewAction/__test__/SetupScriptNotify.test.js +39 -10
- package/src/screens/Automate/AddNewAutoSmart/AddTypeSmart.js +10 -9
- package/src/screens/Automate/AddNewAutoSmart/__test__/AddNewAutoSmart.test.js +2 -0
- package/src/screens/Automate/ScriptDetail/Components/AddActionScript.js +12 -4
- package/src/screens/Automate/ScriptDetail/Components/RenameScript.js +4 -7
- package/src/screens/Automate/ScriptDetail/__test__/index.test.js +2 -0
- package/src/screens/SelectUnit/index.js +1 -1
- package/src/screens/SubUnit/AddSubUnit.js +2 -1
- package/src/screens/Unit/components/AutomateScript/index.js +3 -3
- package/assets/images/automation.svg +0 -22
- package/assets/images/schedule.svg +0 -13
- package/assets/images/script.svg +0 -23
|
@@ -0,0 +1,14 @@
|
|
|
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>
|
|
@@ -0,0 +1,39 @@
|
|
|
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>
|
|
@@ -0,0 +1,49 @@
|
|
|
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>
|
package/package.json
CHANGED
|
@@ -4,9 +4,9 @@ import { IconOutline } from '@ant-design/icons-react-native';
|
|
|
4
4
|
import moment from 'moment';
|
|
5
5
|
import Text from '../../Text';
|
|
6
6
|
import { API, Colors } from '../../../configs';
|
|
7
|
-
import OneTap from '../../../../assets/images/
|
|
8
|
-
import ValueChange from '../../../../assets/images/
|
|
9
|
-
import Schedule from '../../../../assets/images/
|
|
7
|
+
import OneTap from '../../../../assets/images/OneTap.svg';
|
|
8
|
+
import ValueChange from '../../../../assets/images/ValueChange.svg';
|
|
9
|
+
import Schedule from '../../../../assets/images/Schedule.svg';
|
|
10
10
|
import Event from '../../../../assets/images/Event.svg';
|
|
11
11
|
import CheckCircle from '../../../../assets/images/CheckCircle.svg';
|
|
12
12
|
import FImage from '../../FImage';
|
package/src/configs/Constants.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { default as AccessibilityLabel } from './AccessibilityLabel';
|
|
2
2
|
import { Platform, Dimensions, StatusBar } from 'react-native';
|
|
3
3
|
import { RFValue } from 'react-native-responsive-fontsize';
|
|
4
|
-
import OneTap from '../../assets/images/
|
|
5
|
-
import ValueChange from '../../assets/images/
|
|
6
|
-
import Schedule from '../../assets/images/
|
|
4
|
+
import OneTap from '../../assets/images/OneTap.svg';
|
|
5
|
+
import ValueChange from '../../assets/images/ValueChange.svg';
|
|
6
|
+
import Schedule from '../../assets/images/Schedule.svg';
|
|
7
7
|
import Event from '../../assets/images/Event.svg';
|
|
8
8
|
|
|
9
9
|
const X_WIDTH = 375;
|
|
@@ -14,7 +14,13 @@ import RenderActionItem from './RenderActionItem';
|
|
|
14
14
|
const ChooseAction = ({ route }) => {
|
|
15
15
|
const t = useTranslations();
|
|
16
16
|
const { navigate } = useNavigation();
|
|
17
|
-
const {
|
|
17
|
+
const {
|
|
18
|
+
unitId,
|
|
19
|
+
device,
|
|
20
|
+
automateId,
|
|
21
|
+
numberActionCanAdd,
|
|
22
|
+
multiUnit = {},
|
|
23
|
+
} = route.params;
|
|
18
24
|
const [data, setData] = useState([]);
|
|
19
25
|
const [actions, setActions] = useState([]);
|
|
20
26
|
|
|
@@ -48,7 +54,7 @@ const ChooseAction = ({ route }) => {
|
|
|
48
54
|
API.AUTOMATE.ADD_SCRIPT_ACTION(automateId),
|
|
49
55
|
{
|
|
50
56
|
list_action,
|
|
51
|
-
unit: unitId,
|
|
57
|
+
unit: unitId || multiUnit.id,
|
|
52
58
|
}
|
|
53
59
|
);
|
|
54
60
|
|
|
@@ -58,7 +64,15 @@ const ChooseAction = ({ route }) => {
|
|
|
58
64
|
merge: true,
|
|
59
65
|
params: { saveAt: moment().valueOf() },
|
|
60
66
|
});
|
|
61
|
-
}, [
|
|
67
|
+
}, [
|
|
68
|
+
actions,
|
|
69
|
+
numberActionCanAdd,
|
|
70
|
+
automateId,
|
|
71
|
+
unitId,
|
|
72
|
+
multiUnit.id,
|
|
73
|
+
navigate,
|
|
74
|
+
t,
|
|
75
|
+
]);
|
|
62
76
|
|
|
63
77
|
const handleOnSelectAction = (action) => {
|
|
64
78
|
setActions((prevActions) => {
|
|
@@ -8,8 +8,13 @@ import { useTranslations } from '../../../hooks/Common/useTranslations';
|
|
|
8
8
|
|
|
9
9
|
const SelectControlDevices = ({ route }) => {
|
|
10
10
|
const t = useTranslations();
|
|
11
|
-
const {
|
|
12
|
-
|
|
11
|
+
const {
|
|
12
|
+
unitId,
|
|
13
|
+
closeScreen,
|
|
14
|
+
automateId,
|
|
15
|
+
numberActionCanAdd,
|
|
16
|
+
multiUnit = {},
|
|
17
|
+
} = route.params || {};
|
|
13
18
|
|
|
14
19
|
const [stations, setStations] = useState([]);
|
|
15
20
|
const [listStation, setListStation] = useState([]);
|
|
@@ -19,22 +24,26 @@ const SelectControlDevices = ({ route }) => {
|
|
|
19
24
|
const [loading, setLoading] = useState(true);
|
|
20
25
|
|
|
21
26
|
const fetchDetails = useCallback(async () => {
|
|
22
|
-
await fetchWithCache(
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
index
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
27
|
+
await fetchWithCache(
|
|
28
|
+
API.UNIT.DEVICE_CONTROL(unitId || multiUnit.id),
|
|
29
|
+
{},
|
|
30
|
+
(response) => {
|
|
31
|
+
const { success, data } = response;
|
|
32
|
+
if (success) {
|
|
33
|
+
const newData = data.filter((item) => item.sensors.length > 0);
|
|
34
|
+
const listMenu = newData.map((item, index) => ({
|
|
35
|
+
text: item.name,
|
|
36
|
+
station: item,
|
|
37
|
+
index: index,
|
|
38
|
+
}));
|
|
39
|
+
setStations(newData);
|
|
40
|
+
setListMenuItem(listMenu);
|
|
41
|
+
setListStation(listMenu);
|
|
42
|
+
}
|
|
34
43
|
}
|
|
35
|
-
|
|
44
|
+
);
|
|
36
45
|
setLoading(false);
|
|
37
|
-
}, [unitId]);
|
|
46
|
+
}, [multiUnit.id, unitId]);
|
|
38
47
|
|
|
39
48
|
useEffect(() => {
|
|
40
49
|
fetchDetails();
|
|
@@ -48,9 +57,10 @@ const SelectControlDevices = ({ route }) => {
|
|
|
48
57
|
device: selectedDevice,
|
|
49
58
|
closeScreen,
|
|
50
59
|
numberActionCanAdd,
|
|
60
|
+
multiUnit,
|
|
51
61
|
});
|
|
52
62
|
},
|
|
53
|
-
[navigate, unitId, automateId, closeScreen, numberActionCanAdd]
|
|
63
|
+
[navigate, unitId, automateId, closeScreen, numberActionCanAdd, multiUnit]
|
|
54
64
|
);
|
|
55
65
|
|
|
56
66
|
if (loading) {
|
|
@@ -10,7 +10,13 @@ import { AUTOMATE_TYPE } from '../../../configs/Constants';
|
|
|
10
10
|
|
|
11
11
|
const SelectMonitorDevices = ({ route }) => {
|
|
12
12
|
const t = useTranslations();
|
|
13
|
-
const {
|
|
13
|
+
const {
|
|
14
|
+
automate = {},
|
|
15
|
+
isCreateNewAction,
|
|
16
|
+
closeScreen,
|
|
17
|
+
multiUnit = {},
|
|
18
|
+
} = route.params || {};
|
|
19
|
+
const { type, unit, sensor_id } = automate;
|
|
14
20
|
|
|
15
21
|
const [stations, setStations] = useState([]);
|
|
16
22
|
const [listStation, setListStation] = useState([]);
|
|
@@ -22,11 +28,11 @@ const SelectMonitorDevices = ({ route }) => {
|
|
|
22
28
|
|
|
23
29
|
const fetchDetails = useCallback(async () => {
|
|
24
30
|
const configs = { params: {} };
|
|
25
|
-
if (
|
|
31
|
+
if (type === AUTOMATE_TYPE.EVENT) {
|
|
26
32
|
configs.params.type = 'event';
|
|
27
33
|
}
|
|
28
34
|
await fetchWithCache(
|
|
29
|
-
API.UNIT.DEVICE_SENSOR(
|
|
35
|
+
API.UNIT.DEVICE_SENSOR(unit || multiUnit.id),
|
|
30
36
|
configs,
|
|
31
37
|
(response) => {
|
|
32
38
|
const { success, data } = response;
|
|
@@ -46,17 +52,17 @@ const SelectMonitorDevices = ({ route }) => {
|
|
|
46
52
|
}
|
|
47
53
|
);
|
|
48
54
|
setLoading(false);
|
|
49
|
-
}, [
|
|
55
|
+
}, [multiUnit.id, type, unit]);
|
|
50
56
|
|
|
51
57
|
useEffect(() => {
|
|
52
|
-
if (!
|
|
58
|
+
if (!sensor_id) {
|
|
53
59
|
return;
|
|
54
60
|
}
|
|
55
61
|
let selectSensor = {};
|
|
56
62
|
let found = false;
|
|
57
63
|
for (let i = 0; i < stations.length; i++) {
|
|
58
64
|
for (let j = 0; j < stations[i].sensors.length; j++) {
|
|
59
|
-
if (stations[i].sensors[j].id ===
|
|
65
|
+
if (stations[i].sensors[j].id === sensor_id) {
|
|
60
66
|
selectSensor = stations[i].sensors[j];
|
|
61
67
|
found = true;
|
|
62
68
|
break;
|
|
@@ -67,7 +73,7 @@ const SelectMonitorDevices = ({ route }) => {
|
|
|
67
73
|
}
|
|
68
74
|
}
|
|
69
75
|
setDefaultSelectedDevice(selectSensor);
|
|
70
|
-
}, [
|
|
76
|
+
}, [sensor_id, stations]);
|
|
71
77
|
|
|
72
78
|
useEffect(() => {
|
|
73
79
|
fetchDetails();
|
|
@@ -17,9 +17,9 @@ import moment from 'moment';
|
|
|
17
17
|
const SetupScriptNotify = ({ route }) => {
|
|
18
18
|
const t = useTranslations();
|
|
19
19
|
const { goBack, navigate } = useNavigation();
|
|
20
|
-
const { automate = {}, unitId } = route
|
|
20
|
+
const { automate = {}, unitId, multiUnit = {} } = route.params || {};
|
|
21
21
|
const { id: automateId } = automate;
|
|
22
|
-
const [notify, setNotify] = useState({ unit: unitId });
|
|
22
|
+
const [notify, setNotify] = useState({ unit: unitId || multiUnit.id });
|
|
23
23
|
|
|
24
24
|
const onChangeTitle = (value) => {
|
|
25
25
|
setNotify((state) => ({
|
|
@@ -47,7 +47,7 @@ const SetupScriptNotify = ({ route }) => {
|
|
|
47
47
|
params: { saveAt: moment().valueOf() },
|
|
48
48
|
});
|
|
49
49
|
} else {
|
|
50
|
-
ToastBottomHelper.error(t('
|
|
50
|
+
ToastBottomHelper.error(t('error_please_try_later'));
|
|
51
51
|
}
|
|
52
52
|
}, [automateId, navigate, notify, t]);
|
|
53
53
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
+
import { useNavigation, useRoute } from '@react-navigation/native';
|
|
2
|
+
import MockAdapter from 'axios-mock-adapter';
|
|
1
3
|
import React from 'react';
|
|
4
|
+
import { TouchableWithoutFeedback } from 'react-native';
|
|
2
5
|
import renderer, { act } from 'react-test-renderer';
|
|
3
|
-
import
|
|
6
|
+
import BottomButtonView from '../../../../commons/BottomButtonView';
|
|
7
|
+
import _TextInput from '../../../../commons/Form/TextInput';
|
|
8
|
+
import API from '../../../../configs/API';
|
|
4
9
|
import { SCProvider } from '../../../../context';
|
|
5
10
|
import { mockSCStore } from '../../../../context/mockStore';
|
|
6
|
-
import API from '../../../../configs/API';
|
|
7
|
-
import Routes from '../../../../utils/Route';
|
|
8
11
|
import api from '../../../../utils/Apis/axios';
|
|
9
|
-
import
|
|
10
|
-
import SetupScriptNotify from '../SetupScriptNotify';
|
|
11
|
-
import _TextInput from '../../../../commons/Form/TextInput';
|
|
12
|
-
import BottomButtonView from '../../../../commons/BottomButtonView';
|
|
12
|
+
import Routes from '../../../../utils/Route';
|
|
13
13
|
import { ToastBottomHelper } from '../../../../utils/Utils';
|
|
14
|
-
import
|
|
14
|
+
import SetupScriptNotify from '../SetupScriptNotify';
|
|
15
15
|
|
|
16
16
|
const mock = new MockAdapter(api.axiosInstance);
|
|
17
17
|
|
|
@@ -66,7 +66,36 @@ describe('Test SetupScriptNotify', () => {
|
|
|
66
66
|
await act(async () => {
|
|
67
67
|
button.props.onPressMain();
|
|
68
68
|
});
|
|
69
|
-
expect(spyToast).
|
|
69
|
+
expect(spyToast).toHaveBeenCalled();
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
it('SetupScriptNotify onPress create script notify success with multi unit', async () => {
|
|
73
|
+
route.params.unitId = null;
|
|
74
|
+
route.params.multiUnit = { id: 1 };
|
|
75
|
+
const spyToast = jest.spyOn(ToastBottomHelper, 'success');
|
|
76
|
+
mock.onPost(API.AUTOMATE.ADD_SCRIPT_NOTIFY(1)).reply(200);
|
|
77
|
+
await act(async () => {
|
|
78
|
+
tree = await renderer.create(wrapComponent(route));
|
|
79
|
+
});
|
|
80
|
+
const instance = tree.root;
|
|
81
|
+
const inputs = instance.findAllByType(_TextInput);
|
|
82
|
+
expect(inputs).toHaveLength(2);
|
|
83
|
+
|
|
84
|
+
await act(async () => {
|
|
85
|
+
inputs[0].props.onChange('Title');
|
|
86
|
+
});
|
|
87
|
+
const touchable = instance.findAllByType(TouchableWithoutFeedback);
|
|
88
|
+
await act(async () => {
|
|
89
|
+
touchable[0].props.onPress();
|
|
90
|
+
});
|
|
91
|
+
await act(async () => {
|
|
92
|
+
inputs[1].props.onChange('Message');
|
|
93
|
+
});
|
|
94
|
+
const button = instance.findByType(BottomButtonView);
|
|
95
|
+
await act(async () => {
|
|
96
|
+
button.props.onPressMain();
|
|
97
|
+
});
|
|
98
|
+
expect(spyToast).toHaveBeenCalled();
|
|
70
99
|
});
|
|
71
100
|
|
|
72
101
|
it('SetupScriptNotify onPress create script notify error', async () => {
|
|
@@ -87,6 +116,6 @@ describe('Test SetupScriptNotify', () => {
|
|
|
87
116
|
await act(async () => {
|
|
88
117
|
button.props.onPressMain();
|
|
89
118
|
});
|
|
90
|
-
expect(spyToast).
|
|
119
|
+
expect(spyToast).toHaveBeenCalled();
|
|
91
120
|
});
|
|
92
121
|
});
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
+
import { useNavigation } from '@react-navigation/native';
|
|
1
2
|
import React, { useCallback, useState } from 'react';
|
|
2
3
|
import { View } from 'react-native';
|
|
3
|
-
import
|
|
4
|
+
import ItemAutomate from '../../../commons/Automate/ItemAutomate';
|
|
4
5
|
import { HeaderCustom } from '../../../commons/Header';
|
|
5
|
-
import styles from './styles/AddNewAutoSmartStyles';
|
|
6
6
|
import Text from '../../../commons/Text';
|
|
7
|
-
import ItemAutomate from '../../../commons/Automate/ItemAutomate';
|
|
8
7
|
import { useTranslations } from '../../../hooks/Common/useTranslations';
|
|
9
8
|
import Routes from '../../../utils/Route';
|
|
9
|
+
import styles from './styles/AddNewAutoSmartStyles';
|
|
10
|
+
import { AUTOMATE_TYPE } from '../../../configs/Constants';
|
|
10
11
|
|
|
11
12
|
const AddTypeSmart = ({ smartTypes, route }) => {
|
|
12
13
|
const t = useTranslations();
|
|
13
14
|
const { navigate, goBack } = useNavigation();
|
|
14
15
|
const { automate = {}, closeScreen } = route?.params || {};
|
|
16
|
+
const { id, unit, type } = automate;
|
|
15
17
|
|
|
16
18
|
const [selectedIndex, setSelectedIndex] = useState(
|
|
17
|
-
|
|
18
|
-
? smartTypes.findIndex((obj) => obj.type === automate.type)
|
|
19
|
-
: -1
|
|
19
|
+
id ? smartTypes.findIndex((obj) => obj.type === type) : -1
|
|
20
20
|
);
|
|
21
21
|
|
|
22
22
|
const handleOnContinue = useCallback(
|
|
@@ -27,17 +27,18 @@ const AddTypeSmart = ({ smartTypes, route }) => {
|
|
|
27
27
|
...automate,
|
|
28
28
|
type: dataAutomate?.type,
|
|
29
29
|
},
|
|
30
|
+
unitId: unit,
|
|
30
31
|
closeScreen: closeScreen,
|
|
31
32
|
};
|
|
32
33
|
|
|
33
|
-
if (!
|
|
34
|
+
if (!unit && dataAutomate.type !== AUTOMATE_TYPE.SCHEDULE) {
|
|
34
35
|
navigate(Routes.SelectUnit, params);
|
|
35
36
|
return;
|
|
36
37
|
}
|
|
37
38
|
|
|
38
39
|
navigate(dataAutomate.route, params);
|
|
39
40
|
},
|
|
40
|
-
[smartTypes, automate, closeScreen, navigate]
|
|
41
|
+
[smartTypes, automate, unit, closeScreen, navigate]
|
|
41
42
|
);
|
|
42
43
|
|
|
43
44
|
const onSelectType = (index) => {
|
|
@@ -50,7 +51,7 @@ const AddTypeSmart = ({ smartTypes, route }) => {
|
|
|
50
51
|
<HeaderCustom isShowClose onClose={goBack} />
|
|
51
52
|
<View style={styles.container}>
|
|
52
53
|
<Text semibold type={'H2'} style={styles.titleCreate}>
|
|
53
|
-
{
|
|
54
|
+
{id ? t('update_smart') : t('create_smart')}
|
|
54
55
|
</Text>
|
|
55
56
|
<Text type={'Body'} style={styles.titleChoose}>
|
|
56
57
|
{t('choose_the_automation_method_you_want')}
|
|
@@ -44,6 +44,7 @@ describe('test AddNewAutoSmart', () => {
|
|
|
44
44
|
expect(mockNavigate).toBeCalledWith(Routes.SelectMonitorDevices, {
|
|
45
45
|
automate: { unit: 1, type: 'value_change' },
|
|
46
46
|
closeScreen: undefined,
|
|
47
|
+
unitId: 1,
|
|
47
48
|
});
|
|
48
49
|
});
|
|
49
50
|
|
|
@@ -62,6 +63,7 @@ describe('test AddNewAutoSmart', () => {
|
|
|
62
63
|
expect(mockNavigate).toHaveBeenCalledWith(Routes.SetSchedule, {
|
|
63
64
|
automate: { type: 'schedule', unit: 1 },
|
|
64
65
|
closeScreen: undefined,
|
|
66
|
+
unitId: 1,
|
|
65
67
|
});
|
|
66
68
|
});
|
|
67
69
|
});
|
|
@@ -40,6 +40,7 @@ const AddActionScript = memo(
|
|
|
40
40
|
closeScreen: currentScreenName,
|
|
41
41
|
numberActionCanAdd:
|
|
42
42
|
max_actions_per_automation - numberActionAdded,
|
|
43
|
+
routeName: unit ? null : Routes.SelectControlDevices,
|
|
43
44
|
};
|
|
44
45
|
|
|
45
46
|
navigate(
|
|
@@ -54,10 +55,17 @@ const AddActionScript = memo(
|
|
|
54
55
|
image: <Notify />,
|
|
55
56
|
onClick: () => {
|
|
56
57
|
setIsVisible(false);
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
58
|
+
if (unit) {
|
|
59
|
+
navigate(Routes.SetupScriptNotify, {
|
|
60
|
+
automate,
|
|
61
|
+
unitId: unit,
|
|
62
|
+
});
|
|
63
|
+
} else {
|
|
64
|
+
navigate(Routes.SelectUnit, {
|
|
65
|
+
automate,
|
|
66
|
+
routeName: Routes.SetupScriptNotify,
|
|
67
|
+
});
|
|
68
|
+
}
|
|
61
69
|
},
|
|
62
70
|
},
|
|
63
71
|
{
|
|
@@ -14,14 +14,11 @@ const RenameScript = ({ automate, setAutomate, isVisible, setIsVisible }) => {
|
|
|
14
14
|
const transY = useKeyboardAnimated();
|
|
15
15
|
|
|
16
16
|
const renameScript = useCallback(async () => {
|
|
17
|
-
const { success
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
name: inputName,
|
|
21
|
-
}
|
|
22
|
-
);
|
|
17
|
+
const { success } = await axiosPatch(API.AUTOMATE.SCRIPT(automate.id), {
|
|
18
|
+
name: inputName,
|
|
19
|
+
});
|
|
23
20
|
if (success) {
|
|
24
|
-
setAutomate((prev) => ({ ...prev, name:
|
|
21
|
+
setAutomate((prev) => ({ ...prev, name: inputName }));
|
|
25
22
|
ToastBottomHelper.success(t('rename_successfully'));
|
|
26
23
|
} else {
|
|
27
24
|
ToastBottomHelper.error(t('rename_failed'));
|
|
@@ -307,6 +307,8 @@ describe('Test ScriptDetail', () => {
|
|
|
307
307
|
unitId: route.params.preAutomate.unit,
|
|
308
308
|
automateId: route.params.preAutomate.id,
|
|
309
309
|
numberActionCanAdd: 2,
|
|
310
|
+
closeScreen: undefined,
|
|
311
|
+
routeName: null,
|
|
310
312
|
});
|
|
311
313
|
mockNavigate.mockClear();
|
|
312
314
|
await act(async () => {
|
|
@@ -64,7 +64,7 @@ const AddSubUnit = ({ route }) => {
|
|
|
64
64
|
lat: location.latitude,
|
|
65
65
|
lng: location.longitude,
|
|
66
66
|
};
|
|
67
|
-
const formData = createFormData(dataObj, ['background']);
|
|
67
|
+
const formData = createFormData(dataObj, ['background', 'lat', 'lng']);
|
|
68
68
|
const { success, data } = await axiosPost(
|
|
69
69
|
API.UNIT.CREATE_UNIT(),
|
|
70
70
|
formData,
|
|
@@ -100,6 +100,7 @@ const AddSubUnit = ({ route }) => {
|
|
|
100
100
|
headers: { 'Content-Type': 'multipart/form-data' },
|
|
101
101
|
}
|
|
102
102
|
);
|
|
103
|
+
|
|
103
104
|
if (success) {
|
|
104
105
|
ToastBottomHelper.success(t('text_create_sub_unit_success'));
|
|
105
106
|
if (addType === 'AddHassiDevice') {
|
|
@@ -4,9 +4,9 @@ import { IconOutline } from '@ant-design/icons-react-native';
|
|
|
4
4
|
import { useTranslations } from '../../../../hooks/Common/useTranslations';
|
|
5
5
|
import Text from '../../../../commons/Text';
|
|
6
6
|
import FImage from '../../../../commons/FImage';
|
|
7
|
-
import OneTap from '../../../../../assets/images/
|
|
8
|
-
import ValueChange from '../../../../../assets/images/
|
|
9
|
-
import Schedule from '../../../../../assets/images/
|
|
7
|
+
import OneTap from '../../../../../assets/images/OneTap.svg';
|
|
8
|
+
import ValueChange from '../../../../../assets/images/ValueChange.svg';
|
|
9
|
+
import Schedule from '../../../../../assets/images/Schedule.svg';
|
|
10
10
|
import Event from '../../../../../assets/images/Event.svg';
|
|
11
11
|
import styles from './styles';
|
|
12
12
|
import {
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
<svg width="34" height="33" viewBox="0 0 34 33" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<mask id="path-1-inside-1_4699_24730" fill="white">
|
|
3
|
-
<rect x="11.6667" y="15" width="10.6667" height="10" rx="0.5"/>
|
|
4
|
-
</mask>
|
|
5
|
-
<rect x="11.6667" y="15" width="10.6667" height="10" rx="0.5" stroke="black" stroke-width="2" mask="url(#path-1-inside-1_4699_24730)"/>
|
|
6
|
-
<path d="M18.6334 20C18.6334 20.7985 17.933 21.5 17 21.5C16.0671 21.5 15.3667 20.7985 15.3667 20C15.3667 19.2015 16.0671 18.5 17 18.5C17.933 18.5 18.6334 19.2015 18.6334 20Z" fill="black" stroke="black"/>
|
|
7
|
-
<path d="M14.8667 11L14.8667 15" stroke="black" stroke-linecap="round"/>
|
|
8
|
-
<path d="M14.8667 25L14.8667 30" stroke="black" stroke-linecap="round"/>
|
|
9
|
-
<path d="M19.1333 11L19.1333 15" stroke="black" stroke-linecap="round"/>
|
|
10
|
-
<path d="M19.1333 25L19.1333 31" stroke="black" stroke-linecap="round"/>
|
|
11
|
-
<path d="M11.6667 21H2.56665C2.29051 21 2.06665 21.2239 2.06665 21.5V26" stroke="black"/>
|
|
12
|
-
<path d="M11.6666 23H8.96655C8.69041 23 8.46655 23.2239 8.46655 23.5V28" stroke="black"/>
|
|
13
|
-
<path d="M22.3334 23H25.0334C25.3096 23 25.5334 23.2239 25.5334 23.5V28" stroke="black"/>
|
|
14
|
-
<path d="M22.3334 21H31.4333C31.7095 21 31.9333 21.2239 31.9333 21.5V26" stroke="black"/>
|
|
15
|
-
<ellipse cx="2.06667" cy="26" rx="1.06667" ry="1" fill="black"/>
|
|
16
|
-
<ellipse cx="8.46657" cy="28" rx="1.06667" ry="1" fill="black"/>
|
|
17
|
-
<ellipse cx="14.8667" cy="30" rx="1.06667" ry="1" fill="black"/>
|
|
18
|
-
<ellipse cx="19.1333" cy="32" rx="1.06667" ry="1" fill="black"/>
|
|
19
|
-
<ellipse cx="25.5332" cy="28" rx="1.06667" ry="1" fill="black"/>
|
|
20
|
-
<ellipse cx="31.9334" cy="26" rx="1.06667" ry="1" fill="black"/>
|
|
21
|
-
<path d="M11.72 19H4.69466C4.60984 19 4.52866 18.9803 4.45564 18.9371C2.0645 17.5233 -2.37208 12.1132 5.33895 8.21482C5.48945 8.13874 5.59832 7.99286 5.62895 7.82703C6.36101 3.86417 12.289 -2.5561 19.6911 3.45956C19.8181 3.56272 19.99 3.60318 20.1494 3.56656C23.1763 2.87116 28.2955 3.75212 28.5728 9.57331C28.5859 9.84914 28.809 10.0725 29.0799 10.1265C32.1389 10.7361 36.3073 16.6128 28.6582 18.9774C28.6112 18.9919 28.5596 19 28.5104 19H21.9409" stroke="black"/>
|
|
22
|
-
</svg>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
<svg width="33" height="32" viewBox="0 0 33 32" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<rect x="1.1001" y="3.5" width="27" height="24" rx="0.5" stroke="black"/>
|
|
3
|
-
<path d="M1.6001 8.5H28.1001" stroke="black"/>
|
|
4
|
-
<rect x="4.1001" y="11.5" width="3" height="3" fill="black" stroke="black"/>
|
|
5
|
-
<mask id="path-4-inside-1_4699_23809" fill="white">
|
|
6
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M21.2002 13H25.0002V14.487C25.9431 14.7098 26.8233 15.0947 27.6099 15.6106L28.9538 14.2667L31.6408 16.9537L30.2243 18.3702C30.6231 19.0567 30.9256 19.8062 31.1131 20.6H32.6001V24.4H31.1131C30.9079 25.2686 30.5652 26.084 30.1091 26.8221L31.6407 28.3537L28.9537 31.0407L27.4221 29.5091C26.6841 29.9651 25.8686 30.3079 25 30.5131V32H21.2V30.513C20.4061 30.3255 19.6566 30.023 18.9701 29.6242L17.5536 31.0406L14.8666 28.3536L16.2105 27.0097C15.6946 26.2231 15.3098 25.3429 15.087 24.4H13.6001V20.6H15.087C15.2918 19.7333 15.6335 18.9195 16.0881 18.1828L14.8667 17.0287L17.4766 14.2667L18.7745 15.4932C19.5135 15.036 20.3302 14.6925 21.2002 14.487V13ZM23.1003 26.4584C25.2864 26.4584 27.0586 24.6861 27.0586 22.5C27.0586 20.3139 25.2864 18.5417 23.1003 18.5417C20.9142 18.5417 19.142 20.3139 19.142 22.5C19.142 24.6861 20.9142 26.4584 23.1003 26.4584Z"/>
|
|
7
|
-
</mask>
|
|
8
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M21.2002 13H25.0002V14.487C25.9431 14.7098 26.8233 15.0947 27.6099 15.6106L28.9538 14.2667L31.6408 16.9537L30.2243 18.3702C30.6231 19.0567 30.9256 19.8062 31.1131 20.6H32.6001V24.4H31.1131C30.9079 25.2686 30.5652 26.084 30.1091 26.8221L31.6407 28.3537L28.9537 31.0407L27.4221 29.5091C26.6841 29.9651 25.8686 30.3079 25 30.5131V32H21.2V30.513C20.4061 30.3255 19.6566 30.023 18.9701 29.6242L17.5536 31.0406L14.8666 28.3536L16.2105 27.0097C15.6946 26.2231 15.3098 25.3429 15.087 24.4H13.6001V20.6H15.087C15.2918 19.7333 15.6335 18.9195 16.0881 18.1828L14.8667 17.0287L17.4766 14.2667L18.7745 15.4932C19.5135 15.036 20.3302 14.6925 21.2002 14.487V13ZM23.1003 26.4584C25.2864 26.4584 27.0586 24.6861 27.0586 22.5C27.0586 20.3139 25.2864 18.5417 23.1003 18.5417C20.9142 18.5417 19.142 20.3139 19.142 22.5C19.142 24.6861 20.9142 26.4584 23.1003 26.4584Z" fill="white"/>
|
|
9
|
-
<path d="M25.0002 13H26.0002V12H25.0002V13ZM21.2002 13V12H20.2002V13H21.2002ZM25.0002 14.487H24.0002V15.2783L24.7703 15.4602L25.0002 14.487ZM27.6099 15.6106L27.0615 16.4468L27.7417 16.893L28.317 16.3177L27.6099 15.6106ZM28.9538 14.2667L29.6609 13.5596L28.9538 12.8525L28.2467 13.5596L28.9538 14.2667ZM31.6408 16.9537L32.3479 17.6608L33.055 16.9537L32.3479 16.2466L31.6408 16.9537ZM30.2243 18.3702L29.5172 17.6631L28.9731 18.2072L29.3596 18.8726L30.2243 18.3702ZM31.1131 20.6L30.1399 20.8299L30.3218 21.6H31.1131V20.6ZM32.6001 20.6H33.6001V19.6H32.6001V20.6ZM32.6001 24.4V25.4H33.6001V24.4H32.6001ZM31.1131 24.4V23.4H30.3218L30.1399 24.1701L31.1131 24.4ZM30.1091 26.8221L29.2584 26.2964L28.8424 26.9696L29.402 27.5292L30.1091 26.8221ZM31.6407 28.3537L32.3478 29.0608L33.0549 28.3537L32.3478 27.6466L31.6407 28.3537ZM28.9537 31.0407L28.2466 31.7478L28.9537 32.4549L29.6608 31.7478L28.9537 31.0407ZM27.4221 29.5091L28.1292 28.802L27.5696 28.2424L26.8964 28.6584L27.4221 29.5091ZM25 30.5131L24.7702 29.5398L24 29.7218V30.5131H25ZM25 32V33H26V32H25ZM21.2 32H20.2V33H21.2V32ZM21.2 30.513H22.2V29.7217L21.4299 29.5398L21.2 30.513ZM18.9701 29.6242L19.4724 28.7595L18.8071 28.3729L18.263 28.9171L18.9701 29.6242ZM17.5536 31.0406L16.8465 31.7477L17.5536 32.4548L18.2607 31.7477L17.5536 31.0406ZM14.8666 28.3536L14.1595 27.6465L13.4524 28.3536L14.1595 29.0607L14.8666 28.3536ZM16.2105 27.0097L16.9176 27.7168L17.4929 27.1415L17.0467 26.4613L16.2105 27.0097ZM15.087 24.4L16.0603 24.1701L15.8783 23.4H15.087V24.4ZM13.6001 24.4H12.6001V25.4H13.6001V24.4ZM13.6001 20.6V19.6H12.6001V20.6H13.6001ZM15.087 20.6V21.6H15.8783L16.0603 20.8299L15.087 20.6ZM16.0881 18.1828L16.9391 18.7079L17.3666 18.0151L16.7749 17.4559L16.0881 18.1828ZM14.8667 17.0287L14.1399 16.3419L13.4531 17.0687L14.1799 17.7555L14.8667 17.0287ZM17.4766 14.2667L18.1634 13.5399L17.4366 12.8531L16.7498 13.5799L17.4766 14.2667ZM18.7745 15.4932L18.0877 16.22L18.6467 16.7481L19.3006 16.3436L18.7745 15.4932ZM21.2002 14.487L21.43 15.4602L22.2002 15.2783V14.487H21.2002ZM25.0002 12H21.2002V14H25.0002V12ZM26.0002 14.487V13H24.0002V14.487H26.0002ZM28.1584 14.7744C27.2764 14.1959 26.2886 13.7639 25.2301 13.5138L24.7703 15.4602C25.5976 15.6557 26.3703 15.9934 27.0615 16.4468L28.1584 14.7744ZM28.2467 13.5596L26.9028 14.9035L28.317 16.3177L29.6609 14.9738L28.2467 13.5596ZM32.3479 16.2466L29.6609 13.5596L28.2467 14.9738L30.9337 17.6608L32.3479 16.2466ZM30.9314 19.0773L32.3479 17.6608L30.9337 16.2466L29.5172 17.6631L30.9314 19.0773ZM32.0863 20.3701C31.8758 19.479 31.5363 18.6379 31.089 17.8679L29.3596 18.8726C29.7099 19.4755 29.9753 20.1333 30.1399 20.8299L32.0863 20.3701ZM32.6001 19.6H31.1131V21.6H32.6001V19.6ZM33.6001 24.4V20.6H31.6001V24.4H33.6001ZM31.1131 25.4H32.6001V23.4H31.1131V25.4ZM30.9598 27.3477C31.4713 26.52 31.856 25.6049 32.0863 24.6299L30.1399 24.1701C29.9598 24.9322 29.6591 25.648 29.2584 26.2964L30.9598 27.3477ZM32.3478 27.6466L30.8162 26.115L29.402 27.5292L30.9336 29.0608L32.3478 27.6466ZM29.6608 31.7478L32.3478 29.0608L30.9336 27.6466L28.2466 30.3336L29.6608 31.7478ZM26.715 30.2162L28.2466 31.7478L29.6608 30.3336L28.1292 28.802L26.715 30.2162ZM25.2299 31.4863C26.205 31.2559 27.1201 30.8712 27.9478 30.3598L26.8964 28.6584C26.2481 29.059 25.5323 29.3598 24.7702 29.5398L25.2299 31.4863ZM26 32V30.5131H24V32H26ZM21.2 33H25V31H21.2V33ZM20.2 30.513V32H22.2V30.513H20.2ZM18.4677 30.4888C19.2378 30.9362 20.079 31.2757 20.9701 31.4863L21.4299 29.5398C20.7333 29.3753 20.0754 29.1098 19.4724 28.7595L18.4677 30.4888ZM18.2607 31.7477L19.6772 30.3313L18.263 28.9171L16.8465 30.3335L18.2607 31.7477ZM14.1595 29.0607L16.8465 31.7477L18.2607 30.3335L15.5737 27.6465L14.1595 29.0607ZM15.5034 26.3026L14.1595 27.6465L15.5737 29.0607L16.9176 27.7168L15.5034 26.3026ZM14.1138 24.6299C14.3638 25.6884 14.7958 26.6761 15.3743 27.5582L17.0467 26.4613C16.5934 25.7702 16.2557 24.9974 16.0603 24.1701L14.1138 24.6299ZM13.6001 25.4H15.087V23.4H13.6001V25.4ZM12.6001 20.6V24.4H14.6001V20.6H12.6001ZM15.087 19.6H13.6001V21.6H15.087V19.6ZM15.237 17.6577C14.7272 18.4839 14.3437 19.3972 14.1138 20.3701L16.0603 20.8299C16.2399 20.0694 16.5398 19.3551 16.9391 18.7079L15.237 17.6577ZM16.7749 17.4559L15.5535 16.3018L14.1799 17.7555L15.4013 18.9096L16.7749 17.4559ZM15.5936 17.7155L18.2034 14.9535L16.7498 13.5799L14.1399 16.3419L15.5936 17.7155ZM16.7898 14.9935L18.0877 16.22L19.4613 14.7663L18.1634 13.5399L16.7898 14.9935ZM20.9703 13.5138C19.9936 13.7445 19.0772 14.13 18.2484 14.6427L19.3006 16.3436C19.9498 15.942 20.6667 15.6405 21.43 15.4602L20.9703 13.5138ZM20.2002 13V14.487H22.2002V13H20.2002ZM26.0586 22.5C26.0586 24.1339 24.7341 25.4584 23.1003 25.4584V27.4584C25.8387 27.4584 28.0586 25.2384 28.0586 22.5H26.0586ZM23.1003 19.5417C24.7341 19.5417 26.0586 20.8662 26.0586 22.5H28.0586C28.0586 19.7616 25.8387 17.5417 23.1003 17.5417V19.5417ZM20.142 22.5C20.142 20.8662 21.4665 19.5417 23.1003 19.5417V17.5417C20.3619 17.5417 18.142 19.7616 18.142 22.5H20.142ZM23.1003 25.4584C21.4665 25.4584 20.142 24.1339 20.142 22.5H18.142C18.142 25.2384 20.3619 27.4584 23.1003 27.4584V25.4584Z" fill="black" mask="url(#path-4-inside-1_4699_23809)"/>
|
|
10
|
-
<rect x="5.1001" y="0.5" width="2" height="5" rx="1" fill="white" stroke="black"/>
|
|
11
|
-
<rect x="22.1001" y="0.5" width="2" height="5" rx="1" fill="white" stroke="black"/>
|
|
12
|
-
<path d="M22.6001 20V23.9C22.6001 23.9552 22.6449 24 22.7001 24H24.6001" stroke="black"/>
|
|
13
|
-
</svg>
|
package/assets/images/script.svg
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
<svg width="34" height="33" viewBox="0 0 34 33" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<mask id="path-1-inside-1_4727_3519" fill="white">
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.98066 0H9.87098V1.09573C10.5882 1.25984 11.2577 1.54341 11.856 1.92357L12.8781 0.93339L14.9219 2.91329L13.8445 3.95694C14.1479 4.4628 14.378 5.01503 14.5206 5.59999H15.6516V8.39999H14.5206C14.3646 9.04004 14.1039 9.64092 13.757 10.1847L14.9218 11.3132L12.878 13.2931L11.7132 12.1646C11.1518 12.5007 10.5316 12.7532 9.87086 12.9044V14H6.98054V12.9044C6.37671 12.7662 5.80666 12.5433 5.28448 12.2494L4.20718 13.293L2.16341 11.3132L3.18553 10.323C2.79313 9.74339 2.50042 9.09478 2.33101 8.40001H1.19995V5.60001H2.33103C2.48676 4.96139 2.74667 4.36176 3.09243 3.8189L2.16345 2.96851L4.14855 0.933361L5.13579 1.83708C5.69782 1.50025 6.31896 1.24715 6.98066 1.09573V0ZM8.4258 9.91665C10.0886 9.91665 11.4366 8.61081 11.4366 6.99998C11.4366 5.38915 10.0886 4.08331 8.4258 4.08331C6.76301 4.08331 5.41505 5.38915 5.41505 6.99998C5.41505 8.61081 6.76301 9.91665 8.4258 9.91665Z"/>
|
|
4
|
-
</mask>
|
|
5
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M6.98066 0H9.87098V1.09573C10.5882 1.25984 11.2577 1.54341 11.856 1.92357L12.8781 0.93339L14.9219 2.91329L13.8445 3.95694C14.1479 4.4628 14.378 5.01503 14.5206 5.59999H15.6516V8.39999H14.5206C14.3646 9.04004 14.1039 9.64092 13.757 10.1847L14.9218 11.3132L12.878 13.2931L11.7132 12.1646C11.1518 12.5007 10.5316 12.7532 9.87086 12.9044V14H6.98054V12.9044C6.37671 12.7662 5.80666 12.5433 5.28448 12.2494L4.20718 13.293L2.16341 11.3132L3.18553 10.323C2.79313 9.74339 2.50042 9.09478 2.33101 8.40001H1.19995V5.60001H2.33103C2.48676 4.96139 2.74667 4.36176 3.09243 3.8189L2.16345 2.96851L4.14855 0.933361L5.13579 1.83708C5.69782 1.50025 6.31896 1.24715 6.98066 1.09573V0ZM8.4258 9.91665C10.0886 9.91665 11.4366 8.61081 11.4366 6.99998C11.4366 5.38915 10.0886 4.08331 8.4258 4.08331C6.76301 4.08331 5.41505 5.38915 5.41505 6.99998C5.41505 8.61081 6.76301 9.91665 8.4258 9.91665Z" fill="white"/>
|
|
6
|
-
<path d="M9.87098 0H10.871V-1H9.87098V0ZM6.98066 0V-1H5.98066V0H6.98066ZM9.87098 1.09573H8.87098V1.89274L9.64791 2.07053L9.87098 1.09573ZM11.856 1.92357L11.3197 2.76759L11.9853 3.19055L12.5518 2.64181L11.856 1.92357ZM12.8781 0.93339L13.5739 0.21515L12.8781 -0.458901L12.1823 0.21515L12.8781 0.93339ZM14.9219 2.91329L15.6176 3.63153L16.3591 2.91329L15.6176 2.19505L14.9219 2.91329ZM13.8445 3.95694L13.1487 3.2387L12.5788 3.79078L12.9869 4.47125L13.8445 3.95694ZM14.5206 5.59999L13.5491 5.83689L13.7351 6.59999H14.5206V5.59999ZM15.6516 5.59999H16.6516V4.59999H15.6516V5.59999ZM15.6516 8.39999V9.39999H16.6516V8.39999H15.6516ZM14.5206 8.39999V7.39999H13.7352L13.5491 8.1631L14.5206 8.39999ZM13.757 10.1847L12.9139 9.64695L12.4749 10.3351L13.0612 10.903L13.757 10.1847ZM14.9218 11.3132L15.6176 12.0314L16.359 11.3132L15.6176 10.595L14.9218 11.3132ZM12.878 13.2931L12.1822 14.0113L12.878 14.6854L13.5738 14.0113L12.878 13.2931ZM11.7132 12.1646L12.409 11.4464L11.8579 10.9125L11.1995 11.3066L11.7132 12.1646ZM9.87086 12.9044L9.64781 11.9296L8.87086 12.1074V12.9044H9.87086ZM9.87086 14V15H10.8709V14H9.87086ZM6.98054 14H5.98054V15H6.98054V14ZM6.98054 12.9044H7.98054V12.1074L7.20363 11.9296L6.98054 12.9044ZM5.28448 12.2494L5.77495 11.378L5.12465 11.012L4.58869 11.5312L5.28448 12.2494ZM4.20718 13.293L3.51138 14.0113L4.20718 14.6853L4.90297 14.0113L4.20718 13.293ZM2.16341 11.3132L1.46761 10.5949L0.726205 11.3132L1.46761 12.0314L2.16341 11.3132ZM3.18553 10.323L3.88133 11.0412L4.48411 10.4573L4.01359 9.76233L3.18553 10.323ZM2.33101 8.40001L3.30255 8.16313L3.11648 7.40001H2.33101V8.40001ZM1.19995 8.40001H0.199951V9.40001H1.19995V8.40001ZM1.19995 5.60001V4.60001H0.199951V5.60001H1.19995ZM2.33103 5.60001V6.60001H3.11649L3.30257 5.83692L2.33103 5.60001ZM3.09243 3.8189L3.93588 4.3561L4.38684 3.64808L3.76765 3.08128L3.09243 3.8189ZM2.16345 2.96851L1.4476 2.27026L0.726859 3.00916L1.48823 3.70613L2.16345 2.96851ZM4.14855 0.933361L4.82377 0.195742L4.10916 -0.458408L3.4327 0.23511L4.14855 0.933361ZM5.13579 1.83708L4.46057 2.5747L5.01043 3.07804L5.64985 2.69484L5.13579 1.83708ZM6.98066 1.09573L7.20372 2.07053L7.98066 1.89274V1.09573H6.98066ZM9.87098 -1H6.98066V1H9.87098V-1ZM10.871 1.09573V0H8.87098V1.09573H10.871ZM12.3923 1.07954C11.6989 0.638996 10.9236 0.310766 10.094 0.120924L9.64791 2.07053C10.2527 2.20892 10.8164 2.44783 11.3197 2.76759L12.3923 1.07954ZM12.1823 0.21515L11.1602 1.20533L12.5518 2.64181L13.5739 1.65163L12.1823 0.21515ZM15.6176 2.19505L13.5739 0.21515L12.1823 1.65163L14.2261 3.63153L15.6176 2.19505ZM14.5403 4.67518L15.6176 3.63153L14.2261 2.19505L13.1487 3.2387L14.5403 4.67518ZM15.4921 5.36308C15.3251 4.67817 15.056 4.03266 14.7021 3.44263L12.9869 4.47125C13.2398 4.89294 13.4308 5.3519 13.5491 5.83689L15.4921 5.36308ZM15.6516 4.59999H14.5206V6.59999H15.6516V4.59999ZM16.6516 8.39999V5.59999H14.6516V8.39999H16.6516ZM14.5206 9.39999H15.6516V7.39999H14.5206V9.39999ZM14.6 10.7225C15.0044 10.0885 15.3094 9.38634 15.4922 8.63687L13.5491 8.1631C13.4197 8.69373 13.2033 9.19328 12.9139 9.64695L14.6 10.7225ZM15.6176 10.595L14.4528 9.4665L13.0612 10.903L14.226 12.0314L15.6176 10.595ZM13.5738 14.0113L15.6176 12.0314L14.226 10.595L12.1822 12.5749L13.5738 14.0113ZM11.0174 12.8829L12.1822 14.0113L13.5738 12.5749L12.409 11.4464L11.0174 12.8829ZM10.0939 13.8792C10.8582 13.7043 11.5763 13.412 12.2268 13.0226L11.1995 11.3066C10.7273 11.5893 10.2049 11.8021 9.64781 11.9296L10.0939 13.8792ZM10.8709 14V12.9044H8.87086V14H10.8709ZM6.98054 15H9.87086V13H6.98054V15ZM5.98054 12.9044V14H7.98054V12.9044H5.98054ZM4.79401 13.1209C5.39899 13.4614 6.059 13.7193 6.75745 13.8792L7.20363 11.9296C6.69443 11.813 6.21433 11.6252 5.77495 11.378L4.79401 13.1209ZM4.90297 14.0113L5.98028 12.9677L4.58869 11.5312L3.51138 12.5748L4.90297 14.0113ZM1.46761 12.0314L3.51138 14.0113L4.90297 12.5748L2.8592 10.5949L1.46761 12.0314ZM2.48974 9.60473L1.46761 10.5949L2.8592 12.0314L3.88133 11.0412L2.48974 9.60473ZM1.35948 8.6369C1.55785 9.45048 1.90025 10.2083 2.35748 10.8836L4.01359 9.76233C3.68601 9.27849 3.44298 8.73907 3.30255 8.16313L1.35948 8.6369ZM1.19995 9.40001H2.33101V7.40001H1.19995V9.40001ZM0.199951 5.60001V8.40001H2.19995V5.60001H0.199951ZM2.33103 4.60001H1.19995V6.60001H2.33103V4.60001ZM2.24898 3.28169C1.8459 3.91456 1.54185 4.61531 1.3595 5.36311L3.30257 5.83692C3.43167 5.30746 3.64745 4.80896 3.93588 4.3561L2.24898 3.28169ZM3.76765 3.08128L2.83867 2.23089L1.48823 3.70613L2.41722 4.55652L3.76765 3.08128ZM2.8793 3.66676L4.86441 1.63161L3.4327 0.23511L1.4476 2.27026L2.8793 3.66676ZM3.47334 1.67098L4.46057 2.5747L5.81101 1.09946L4.82377 0.195742L3.47334 1.67098ZM6.75759 0.120924C5.99218 0.296076 5.27297 0.589034 4.62174 0.979323L5.64985 2.69484C6.12267 2.41147 6.64574 2.19822 7.20372 2.07053L6.75759 0.120924ZM5.98066 0V1.09573H7.98066V0H5.98066ZM10.4366 6.99998C10.4366 8.02884 9.56647 8.91665 8.4258 8.91665V10.9166C10.6107 10.9166 12.4366 9.19278 12.4366 6.99998H10.4366ZM8.4258 5.08331C9.56647 5.08331 10.4366 5.97112 10.4366 6.99998H12.4366C12.4366 4.80717 10.6107 3.08331 8.4258 3.08331V5.08331ZM6.41505 6.99998C6.41505 5.97112 7.28513 5.08331 8.4258 5.08331V3.08331C6.24089 3.08331 4.41505 4.80717 4.41505 6.99998H6.41505ZM8.4258 8.91665C7.28513 8.91665 6.41505 8.02884 6.41505 6.99998H4.41505C4.41505 9.19278 6.24089 10.9166 8.4258 10.9166V8.91665Z" fill="black" mask="url(#path-1-inside-1_4727_3519)"/>
|
|
7
|
-
<rect x="8.42578" y="6" width="20.6452" height="21" fill="white"/>
|
|
8
|
-
<path d="M28.5548 12H32.5838C32.639 12 32.6838 11.9552 32.6838 11.9V7.5C32.6838 6.39543 31.7884 5.5 30.6838 5.5H28.5548M24.3258 32H3.19995C2.09538 32 1.19995 31.1046 1.19995 30V27.1C1.19995 27.0448 1.24472 27 1.29995 27H24.3258C24.381 27 24.4258 27.0448 24.4258 27.1V31.9C24.4258 31.9552 24.381 32 24.3258 32Z" stroke="black"/>
|
|
9
|
-
<path d="M24.4258 32H26.5548C27.6594 32 28.5548 31.1046 28.5548 30V27" stroke="black"/>
|
|
10
|
-
<path d="M7.90967 27V5.6C7.90967 5.54477 7.95444 5.5 8.00967 5.5H30.6193" stroke="black"/>
|
|
11
|
-
<path d="M30.6192 5.5C28.5547 5.5 28.5547 7.5 28.5547 11.9999V27.5" stroke="black"/>
|
|
12
|
-
<rect x="17.1838" y="15.5" width="15.5161" height="10" fill="white" stroke="black"/>
|
|
13
|
-
<path d="M17.2 17H32.6838" stroke="black"/>
|
|
14
|
-
<path d="M28.0386 19.5L30.0289 21.4282C30.0695 21.4675 30.0695 21.5325 30.0289 21.5718L28.0386 23.5" stroke="black"/>
|
|
15
|
-
<path d="M22.8774 19.5L20.8871 21.4282C20.8465 21.4675 20.8465 21.5325 20.8871 21.5718L22.8774 23.5" stroke="black"/>
|
|
16
|
-
<path d="M25.9742 19L24.9419 24" stroke="black"/>
|
|
17
|
-
<path d="M25.9741 8L13.587 8" stroke="black" stroke-linecap="square"/>
|
|
18
|
-
<path d="M11.5225 8H10.4902" stroke="black" stroke-linecap="square"/>
|
|
19
|
-
<path d="M14.6194 15H10.4904" stroke="black" stroke-linecap="square"/>
|
|
20
|
-
<path d="M14.6194 18H10.4904" stroke="black" stroke-linecap="square"/>
|
|
21
|
-
<path d="M14.6194 21H10.4904" stroke="black" stroke-linecap="square"/>
|
|
22
|
-
<path d="M25.9741 11L13.587 11" stroke="black" stroke-linecap="square"/>
|
|
23
|
-
</svg>
|