openatc-components 0.2.7 → 0.2.8

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.
@@ -1,142 +0,0 @@
1
- /**
2
- * Copyright (c) 2020 kedacom
3
- * OpenATC is licensed under Mulan PSL v2.
4
- * You can use this software according to the terms and conditions of the Mulan PSL v2.
5
- * You may obtain a copy of Mulan PSL v2 at:
6
- * http://license.coscl.org.cn/MulanPSL2
7
- * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
8
- * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
9
- * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10
- * See the Mulan PSL v2 for more details.
11
- **/
12
- // import Edgebase from '@openatc/edgebase-front'
13
- let images = [{
14
- id: 1,
15
- // name: 'East-Straight',
16
- name: 'edge.phase.es',
17
- // img: require('./images/East-Straight.svg'),
18
- class: 'iconfont icon-icon-test2'
19
- },
20
- {
21
- id: 2,
22
- // name: 'East-Left',
23
- name: 'edge.phase.el',
24
- // img: require('./images/East-Left.svg'),
25
- class: 'iconfont icon-icon-test4'
26
- },
27
- {
28
- id: 3,
29
- // name: 'East-Right',
30
- name: 'edge.phase.er',
31
- // img: require('./images/East-Right.svg'),
32
- class: 'iconfont icon-icon-test3'
33
- },
34
- {
35
- id: 4,
36
- // name: 'East-Back',
37
- name: 'edge.phase.eb',
38
- // img: require('./images/East-Back.svg'),
39
- class: 'iconfont icon-icon-test6'
40
- },
41
- {
42
- id: 5,
43
- // name: 'West-Straight',
44
- name: 'edge.phase.ws',
45
- // img: require('./images/West-Straight.svg'),
46
- class: 'iconfont icon-icon-test5'
47
- },
48
- {
49
- id: 6,
50
- // name: 'West-Left',
51
- name: 'edge.phase.wl',
52
- // img: require('./images/West-Left.svg'),
53
- class: 'iconfont icon-icon-test7'
54
- },
55
- {
56
- id: 7,
57
- // name: 'West-Right',
58
- name: 'edge.phase.wr',
59
- // img: require('./images/West-Right.svg'),
60
- class: 'iconfont icon-icon-test9'
61
- },
62
- {
63
- id: 8,
64
- // name: 'West-Back',
65
- name: 'edge.phase.wb',
66
- // img: require('./images/West-Back.svg'),
67
- class: 'iconfont icon-icon-test8'
68
- },
69
- {
70
- id: 9,
71
- // name: 'North-Straight',
72
- name: 'edge.phase.ns',
73
- // img: require('./images/North-Straight.svg'),
74
- class: 'iconfont icon-icon-test10'
75
- },
76
- {
77
- id: 10,
78
- // name: 'North-Left',
79
- name: 'edge.phase.nl',
80
- // img: require('./images/North-Left.svg'),
81
- class: 'iconfont icon-icon-test12'
82
- },
83
- {
84
- id: 11,
85
- // name: 'North-Right',
86
- name: 'edge.phase.nr',
87
- // img: require('./images/North-Right.svg'),
88
- class: 'iconfont icon-icon-test13'
89
- },
90
- {
91
- id: 12,
92
- // name: 'North-Back',
93
- name: 'edge.phase.nb',
94
- // img: require('./images/North-Back.svg'),
95
- class: 'iconfont icon-icon-test11'
96
- },
97
- {
98
- id: 13,
99
- // name: 'South-Straight',
100
- name: 'edge.phase.ss',
101
- // img: require('./images/South-Straight.svg'),
102
- class: 'iconfont icon-icon-test15'
103
- },
104
- {
105
- id: 14,
106
- // name: 'South-Left',
107
- name: 'edge.phase.sl',
108
- // img: require('./images/South-Left.svg'),
109
- class: 'iconfont icon-icon-test14'
110
- },
111
- {
112
- id: 15,
113
- // name: 'South-Right',
114
- name: 'edge.phase.sr',
115
- // img: require('./images/South-Right.svg'),
116
- class: 'iconfont icon-icon-test'
117
- },
118
- {
119
- id: 16,
120
- // name: 'South-Back',
121
- name: 'edge.phase.sb',
122
- // img: require('./images/South-Back.svg'),
123
- class: 'iconfont icon-icon-test1'
124
- }]
125
-
126
- const getDirName = (arr) => {
127
- let res = ''
128
- let nameArr = []
129
- for (let item of arr) {
130
- let id = item.id
131
- for (let img of images) {
132
- if (id === img.id) {
133
- let name = img.name
134
- nameArr.push(name)
135
- }
136
- }
137
- }
138
- res = nameArr
139
- return res
140
- }
141
-
142
- export {getDirName}