@riil-frontend/component-topology 2.1.3-dev.5 → 2.1.4

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.
Files changed (63) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/build/1.js +2 -2
  3. package/build/2.js +1 -1
  4. package/build/index.css +1 -1
  5. package/build/index.html +1 -1
  6. package/build/index.js +30 -30
  7. package/demo/1/345/237/272/346/234/254/usage.md +0 -18
  8. package/demo/3/344/270/232/345/212/241/347/233/221/346/216/247/346/213/223/346/211/221/src/CustomNodeIcon.jsx +3 -2
  9. package/demo/3/344/270/232/345/212/241/347/233/221/346/216/247/346/213/223/346/211/221/src/DataStreamTopo.jsx +7 -2
  10. package/demo/3/344/270/232/345/212/241/347/233/221/346/216/247/346/213/223/346/211/221/src/EditorContextMenu.jsx +1 -1
  11. package/demo/3/344/270/232/345/212/241/347/233/221/346/216/247/346/213/223/346/211/221/src/data/appInstall/data1.json +1 -2
  12. package/demo/3/344/270/232/345/212/241/347/233/221/346/216/247/346/213/223/346/211/221/src/mock/cmdb/v1/api/authority/ci/commonQuery +1 -0
  13. package/demo/3/344/270/232/345/212/241/347/233/221/346/216/247/346/213/223/346/211/221/src/mock/model/v1/api/modelTree +1 -0
  14. package/demo/3/344/270/232/345/212/241/347/233/221/346/216/247/346/213/223/346/211/221/src/mock/topo/v1/api/attributes/once +1 -1
  15. package/demo/3/344/270/232/345/212/241/347/233/221/346/216/247/346/213/223/346/211/221/src/mock/topo/v1/api/attributes/once.json +1 -1
  16. package/demo/3/344/270/232/345/212/241/347/233/221/346/216/247/346/213/223/346/211/221/src/mock/topo/v1/api/structure/byCondition/2 +1 -0
  17. package/demo/3/344/270/232/345/212/241/347/233/221/346/216/247/346/213/223/346/211/221/src/mock/topo/v1/api/structure/relationList +1 -0
  18. package/es/components/Link/index.module.scss +1 -0
  19. package/es/components/Link/setting.js +1 -1
  20. package/es/components/edit/ResourceViewAttributeSetting/ResourceViewAttributeSettingPlugin.js +1 -0
  21. package/es/models/linkDynamicStyle.js +20 -16
  22. package/es/models/topoCreateMod.js +1 -0
  23. package/es/models/topoMod.js +5 -1
  24. package/es/utils/topoData.js +14 -12
  25. package/es/utils/topoIconUtil.js +4 -1
  26. package/lib/components/Link/index.module.scss +1 -0
  27. package/lib/components/Link/setting.js +2 -2
  28. package/lib/components/edit/ResourceViewAttributeSetting/ResourceViewAttributeSettingPlugin.js +2 -0
  29. package/lib/models/linkDynamicStyle.js +20 -16
  30. package/lib/models/topoCreateMod.js +1 -0
  31. package/lib/models/topoMod.js +6 -1
  32. package/lib/utils/topoData.js +14 -12
  33. package/lib/utils/topoIconUtil.js +4 -1
  34. package/package.json +6 -6
  35. package/public/icons/c_b_firewall.svg +318 -0
  36. package/public/icons/c_b_hub.svg +88 -0
  37. package/public/icons/c_b_server.svg +52 -0
  38. package/demo/1/345/237/272/346/234/254/usage1.md +0 -7
  39. package/demo/5/345/244/232/345/256/236/344/276/213/js/TopoCenterViewer.jsx +0 -101
  40. package/demo/5/345/244/232/345/256/236/344/276/213/js/createMockRequest.js +0 -43
  41. package/demo/5/345/244/232/345/256/236/344/276/213/js/mock/appserver/v1/api/authFunc/checkFuncAuthentication +0 -14
  42. package/demo/5/345/244/232/345/256/236/344/276/213/js/mock/appserver/v1/api/authFunc/checkFuncAuthentication.json +0 -14
  43. package/demo/5/345/244/232/345/256/236/344/276/213/js/mock/model/v1/api/getAllDict +0 -1029
  44. package/demo/5/345/244/232/345/256/236/344/276/213/js/mock/topo/v1/api/alarm +0 -0
  45. package/demo/5/345/244/232/345/256/236/344/276/213/js/mock/topo/v1/api/alarm.json +0 -0
  46. package/demo/5/345/244/232/345/256/236/344/276/213/js/mock/topo/v1/api/attributes/once +0 -2596
  47. package/demo/5/345/244/232/345/256/236/344/276/213/js/mock/topo/v1/api/attributes/once.json +0 -2596
  48. package/demo/5/345/244/232/345/256/236/344/276/213/js/mock/topo/v1/api/attributes/polling +0 -2293
  49. package/demo/5/345/244/232/345/256/236/344/276/213/js/mock/topo/v1/api/attributes/polling.json +0 -2293
  50. package/demo/5/345/244/232/345/256/236/344/276/213/js/mock/topo/v1/api/auth/permission/2 +0 -1
  51. package/demo/5/345/244/232/345/256/236/344/276/213/js/mock/topo/v1/api/auth/permission/2.json +0 -1
  52. package/demo/5/345/244/232/345/256/236/344/276/213/js/mock/topo/v1/api/menu +0 -48
  53. package/demo/5/345/244/232/345/256/236/344/276/213/js/mock/topo/v1/api/menu.json +0 -48
  54. package/demo/5/345/244/232/345/256/236/344/276/213/js/mock/topo/v1/api/shape +0 -1
  55. package/demo/5/345/244/232/345/256/236/344/276/213/js/mock/topo/v1/api/shape.json +0 -1
  56. package/demo/5/345/244/232/345/256/236/344/276/213/js/mock/topo/v1/api/structure/both/2 +0 -618
  57. package/demo/5/345/244/232/345/256/236/344/276/213/js/mock/topo/v1/api/structure/both/2.json +0 -618
  58. package/demo/5/345/244/232/345/256/236/344/276/213/js/mock/topo/v1/api/structure/relationList +0 -192
  59. package/demo/5/345/244/232/345/256/236/344/276/213/js/mock/topo/v1/api/structure/relationList.json +0 -192
  60. package/demo/5/345/244/232/345/256/236/344/276/213/js/mock/topo/v1/api/webUrl/list +0 -1
  61. package/demo/5/345/244/232/345/256/236/344/276/213/js/mock/topo/v1/api/webUrl/list.json +0 -1
  62. package/demo/5/345/244/232/345/256/236/344/276/213/js/request.js +0 -7
  63. package/demo/5/345/244/232/345/256/236/344/276/213//345/244/232/345/256/236/344/276/213.md +0 -10
@@ -1,192 +0,0 @@
1
- [
2
- {
3
- "id": "r649681720974508032",
4
- "resourceId": null,
5
- "typeCode": "networkLink",
6
- "tags": null,
7
- "alerts": null,
8
- "manageStatus": null,
9
- "attributes": {
10
- "srcName": "GigabitEthernet 0/4",
11
- "dstName": "GigabitEthernet 0/7",
12
- "displayName": "172.17.164.1(Gi 0/4) - 172.17.164.10(Gi 0/7)",
13
- "dstType": "networkInterface",
14
- "linkRealBandwidth": 1000,
15
- "srcUnique": "00000000176a1f45",
16
- "srcType": "networkInterface",
17
- "dstUnique": "00000000176a220b",
18
- "isFrom": false,
19
- "linkBandwidth": 1000,
20
- "name": "172.17.164.1(Gi 0/4) - 172.17.164.10(Gi 0/7)",
21
- "linkType": "networkLink",
22
- "distanceToOutlet": 2147483647
23
- },
24
- "extraResult": null
25
- },
26
- {
27
- "id": "r649681721062588416",
28
- "resourceId": null,
29
- "typeCode": "networkLink",
30
- "tags": null,
31
- "alerts": null,
32
- "manageStatus": null,
33
- "attributes": {
34
- "srcName": "GigabitEthernet 0/48",
35
- "dstName": "GigabitEthernet 0/4",
36
- "displayName": "172.17.164.1(Gi 0/48) - 172.17.166.1(Gi 0/4)",
37
- "dstType": "networkInterface",
38
- "linkRealBandwidth": 1000,
39
- "srcUnique": "00000000176a2082",
40
- "srcType": "networkInterface",
41
- "dstUnique": "00000000176a21c2",
42
- "isFrom": true,
43
- "linkBandwidth": 1000,
44
- "name": "172.17.164.1(Gi 0/48) - 172.17.166.1(Gi 0/4)",
45
- "linkType": "networkLink",
46
- "distanceToOutlet": 2147483647
47
- },
48
- "extraResult": null
49
- },
50
- {
51
- "id": "r649681721020645376",
52
- "resourceId": null,
53
- "typeCode": "networkLink",
54
- "tags": null,
55
- "alerts": null,
56
- "manageStatus": null,
57
- "attributes": {
58
- "srcName": "GigabitEthernet 0/48",
59
- "dstName": "GigabitEthernet 0/15",
60
- "displayName": "172.17.166.10(Gi 0/48) - 172.17.164.1(Gi 0/15)",
61
- "dstType": "networkInterface",
62
- "linkRealBandwidth": 1000,
63
- "srcUnique": "00000000176a1ae9",
64
- "srcType": "networkInterface",
65
- "dstUnique": "00000000176a1f92",
66
- "isFrom": false,
67
- "linkBandwidth": 1000,
68
- "name": "172.17.166.10(Gi 0/48) - 172.17.164.1(Gi 0/15)",
69
- "linkType": "networkLink",
70
- "distanceToOutlet": 2147483647
71
- },
72
- "extraResult": null
73
- },
74
- {
75
- "id": "r649681721180028928",
76
- "resourceId": null,
77
- "typeCode": "networkAggLink",
78
- "tags": null,
79
- "alerts": null,
80
- "manageStatus": null,
81
- "attributes": {
82
- "desAggIfList": "10,14",
83
- "srcAggIfList": "22,24",
84
- "srcName": "AggregatePort 1",
85
- "dstName": "AggregatePort 3",
86
- "displayName": "172.17.166.20(AggregatePort 1) - 172.17.164.1(AggregatePort 3)",
87
- "dstType": "ruijieAggNetworkIf",
88
- "linkRealBandwidth": 2000,
89
- "srcUnique": "00000000176a1d6e",
90
- "srcType": "ruijieAggNetworkIf",
91
- "dstUnique": "00000000176a1eec",
92
- "isFrom": true,
93
- "linkBandwidth": 2000,
94
- "name": "172.17.166.20(AggregatePort 1) - 172.17.164.1(AggregatePort 3)",
95
- "linkType": "networkAggLink",
96
- "distanceToOutlet": 2147483647
97
- },
98
- "extraResult": null
99
- },
100
- {
101
- "id": "r649681720844484608",
102
- "resourceId": null,
103
- "typeCode": "networkLink",
104
- "tags": null,
105
- "alerts": null,
106
- "manageStatus": null,
107
- "attributes": {
108
- "srcName": "GigabitEthernet 0/41",
109
- "dstName": "GigabitEthernet 0/49",
110
- "linkBandwidth": 1000,
111
- "dstUnique": "00000000176a1c45",
112
- "displayName": "172.17.166.10(Gi 0/41) - 172.17.166.27(Gi 0/49)",
113
- "linkRealBandwidth": 1000,
114
- "dstType": "networkInterface",
115
- "name": "172.17.166.10(Gi 0/41) - 172.17.166.27(Gi 0/49)",
116
- "linkType": "networkLink",
117
- "distanceToOutlet": 2147483647,
118
- "srcUnique": "00000000176a1aa6",
119
- "srcType": "networkInterface"
120
- },
121
- "extraResult": null
122
- },
123
- {
124
- "id": "r653417183514198016",
125
- "resourceId": null,
126
- "typeCode": "networkLink",
127
- "tags": null,
128
- "alerts": null,
129
- "manageStatus": null,
130
- "attributes": {
131
- "srcName": "GigabitEthernet 0/33",
132
- "dstName": "GigabitEthernet 0/23",
133
- "linkBandwidth": 1000,
134
- "dstUnique": "00000000176a1e84",
135
- "displayName": "172.17.166.10(Gi 0/33) - 172.17.166.20(Gi 0/23)",
136
- "linkRealBandwidth": 1000,
137
- "dstType": "networkInterface",
138
- "name": "172.17.166.10(Gi 0/33) - 172.17.166.20(Gi 0/23)",
139
- "linkType": "networkLink",
140
- "distanceToOutlet": 2147483647,
141
- "srcUnique": "00000000176a1a7a",
142
- "srcType": "networkInterface"
143
- },
144
- "extraResult": null
145
- },
146
- {
147
- "id": "r649681720768987136",
148
- "resourceId": null,
149
- "typeCode": "networkLink",
150
- "tags": null,
151
- "alerts": null,
152
- "manageStatus": null,
153
- "attributes": {
154
- "srcName": "GigabitEthernet 0/24",
155
- "dstName": "GigabitEthernet 0/39",
156
- "linkBandwidth": 1000,
157
- "dstUnique": "00000000176a1a9c",
158
- "displayName": "172.17.166.30(Gi 0/24) - 172.17.166.10(Gi 0/39)",
159
- "linkRealBandwidth": 1000,
160
- "dstType": "networkInterface",
161
- "name": "172.17.166.30(Gi 0/24) - 172.17.166.10(Gi 0/39)",
162
- "linkType": "networkLink",
163
- "distanceToOutlet": 2147483647,
164
- "srcUnique": "00000000176a1636",
165
- "srcType": "networkInterface"
166
- },
167
- "extraResult": null
168
- },
169
- {
170
- "id": "r653417183396757504",
171
- "resourceId": null,
172
- "typeCode": "networkLink",
173
- "tags": null,
174
- "alerts": null,
175
- "manageStatus": null,
176
- "attributes": {
177
- "srcName": "GigabitEthernet 0/49",
178
- "dstName": "GigabitEthernet 0/47",
179
- "linkBandwidth": 1000,
180
- "dstUnique": "00000000176a2185",
181
- "displayName": "172.17.166.28(Gi 0/49) - 172.17.166.26(Gi 0/47)",
182
- "linkRealBandwidth": 1000,
183
- "dstType": "networkInterface",
184
- "name": "172.17.166.28(Gi 0/49) - 172.17.166.26(Gi 0/47)",
185
- "linkType": "networkLink",
186
- "distanceToOutlet": 2147483647,
187
- "srcUnique": "00000000176a1d48",
188
- "srcType": "networkInterface"
189
- },
190
- "extraResult": null
191
- }
192
- ]
@@ -1,192 +0,0 @@
1
- [
2
- {
3
- "id": "r649681720974508032",
4
- "resourceId": null,
5
- "typeCode": "networkLink",
6
- "tags": null,
7
- "alerts": null,
8
- "manageStatus": null,
9
- "attributes": {
10
- "srcName": "GigabitEthernet 0/4",
11
- "dstName": "GigabitEthernet 0/7",
12
- "displayName": "172.17.164.1(Gi 0/4) - 172.17.164.10(Gi 0/7)",
13
- "dstType": "networkInterface",
14
- "linkRealBandwidth": 1000,
15
- "srcUnique": "00000000176a1f45",
16
- "srcType": "networkInterface",
17
- "dstUnique": "00000000176a220b",
18
- "isFrom": false,
19
- "linkBandwidth": 1000,
20
- "name": "172.17.164.1(Gi 0/4) - 172.17.164.10(Gi 0/7)",
21
- "linkType": "networkLink",
22
- "distanceToOutlet": 2147483647
23
- },
24
- "extraResult": null
25
- },
26
- {
27
- "id": "r649681721062588416",
28
- "resourceId": null,
29
- "typeCode": "networkLink",
30
- "tags": null,
31
- "alerts": null,
32
- "manageStatus": null,
33
- "attributes": {
34
- "srcName": "GigabitEthernet 0/48",
35
- "dstName": "GigabitEthernet 0/4",
36
- "displayName": "172.17.164.1(Gi 0/48) - 172.17.166.1(Gi 0/4)",
37
- "dstType": "networkInterface",
38
- "linkRealBandwidth": 1000,
39
- "srcUnique": "00000000176a2082",
40
- "srcType": "networkInterface",
41
- "dstUnique": "00000000176a21c2",
42
- "isFrom": true,
43
- "linkBandwidth": 1000,
44
- "name": "172.17.164.1(Gi 0/48) - 172.17.166.1(Gi 0/4)",
45
- "linkType": "networkLink",
46
- "distanceToOutlet": 2147483647
47
- },
48
- "extraResult": null
49
- },
50
- {
51
- "id": "r649681721020645376",
52
- "resourceId": null,
53
- "typeCode": "networkLink",
54
- "tags": null,
55
- "alerts": null,
56
- "manageStatus": null,
57
- "attributes": {
58
- "srcName": "GigabitEthernet 0/48",
59
- "dstName": "GigabitEthernet 0/15",
60
- "displayName": "172.17.166.10(Gi 0/48) - 172.17.164.1(Gi 0/15)",
61
- "dstType": "networkInterface",
62
- "linkRealBandwidth": 1000,
63
- "srcUnique": "00000000176a1ae9",
64
- "srcType": "networkInterface",
65
- "dstUnique": "00000000176a1f92",
66
- "isFrom": false,
67
- "linkBandwidth": 1000,
68
- "name": "172.17.166.10(Gi 0/48) - 172.17.164.1(Gi 0/15)",
69
- "linkType": "networkLink",
70
- "distanceToOutlet": 2147483647
71
- },
72
- "extraResult": null
73
- },
74
- {
75
- "id": "r649681721180028928",
76
- "resourceId": null,
77
- "typeCode": "networkAggLink",
78
- "tags": null,
79
- "alerts": null,
80
- "manageStatus": null,
81
- "attributes": {
82
- "desAggIfList": "10,14",
83
- "srcAggIfList": "22,24",
84
- "srcName": "AggregatePort 1",
85
- "dstName": "AggregatePort 3",
86
- "displayName": "172.17.166.20(AggregatePort 1) - 172.17.164.1(AggregatePort 3)",
87
- "dstType": "ruijieAggNetworkIf",
88
- "linkRealBandwidth": 2000,
89
- "srcUnique": "00000000176a1d6e",
90
- "srcType": "ruijieAggNetworkIf",
91
- "dstUnique": "00000000176a1eec",
92
- "isFrom": true,
93
- "linkBandwidth": 2000,
94
- "name": "172.17.166.20(AggregatePort 1) - 172.17.164.1(AggregatePort 3)",
95
- "linkType": "networkAggLink",
96
- "distanceToOutlet": 2147483647
97
- },
98
- "extraResult": null
99
- },
100
- {
101
- "id": "r649681720844484608",
102
- "resourceId": null,
103
- "typeCode": "networkLink",
104
- "tags": null,
105
- "alerts": null,
106
- "manageStatus": null,
107
- "attributes": {
108
- "srcName": "GigabitEthernet 0/41",
109
- "dstName": "GigabitEthernet 0/49",
110
- "linkBandwidth": 1000,
111
- "dstUnique": "00000000176a1c45",
112
- "displayName": "172.17.166.10(Gi 0/41) - 172.17.166.27(Gi 0/49)",
113
- "linkRealBandwidth": 1000,
114
- "dstType": "networkInterface",
115
- "name": "172.17.166.10(Gi 0/41) - 172.17.166.27(Gi 0/49)",
116
- "linkType": "networkLink",
117
- "distanceToOutlet": 2147483647,
118
- "srcUnique": "00000000176a1aa6",
119
- "srcType": "networkInterface"
120
- },
121
- "extraResult": null
122
- },
123
- {
124
- "id": "r653417183514198016",
125
- "resourceId": null,
126
- "typeCode": "networkLink",
127
- "tags": null,
128
- "alerts": null,
129
- "manageStatus": null,
130
- "attributes": {
131
- "srcName": "GigabitEthernet 0/33",
132
- "dstName": "GigabitEthernet 0/23",
133
- "linkBandwidth": 1000,
134
- "dstUnique": "00000000176a1e84",
135
- "displayName": "172.17.166.10(Gi 0/33) - 172.17.166.20(Gi 0/23)",
136
- "linkRealBandwidth": 1000,
137
- "dstType": "networkInterface",
138
- "name": "172.17.166.10(Gi 0/33) - 172.17.166.20(Gi 0/23)",
139
- "linkType": "networkLink",
140
- "distanceToOutlet": 2147483647,
141
- "srcUnique": "00000000176a1a7a",
142
- "srcType": "networkInterface"
143
- },
144
- "extraResult": null
145
- },
146
- {
147
- "id": "r649681720768987136",
148
- "resourceId": null,
149
- "typeCode": "networkLink",
150
- "tags": null,
151
- "alerts": null,
152
- "manageStatus": null,
153
- "attributes": {
154
- "srcName": "GigabitEthernet 0/24",
155
- "dstName": "GigabitEthernet 0/39",
156
- "linkBandwidth": 1000,
157
- "dstUnique": "00000000176a1a9c",
158
- "displayName": "172.17.166.30(Gi 0/24) - 172.17.166.10(Gi 0/39)",
159
- "linkRealBandwidth": 1000,
160
- "dstType": "networkInterface",
161
- "name": "172.17.166.30(Gi 0/24) - 172.17.166.10(Gi 0/39)",
162
- "linkType": "networkLink",
163
- "distanceToOutlet": 2147483647,
164
- "srcUnique": "00000000176a1636",
165
- "srcType": "networkInterface"
166
- },
167
- "extraResult": null
168
- },
169
- {
170
- "id": "r653417183396757504",
171
- "resourceId": null,
172
- "typeCode": "networkLink",
173
- "tags": null,
174
- "alerts": null,
175
- "manageStatus": null,
176
- "attributes": {
177
- "srcName": "GigabitEthernet 0/49",
178
- "dstName": "GigabitEthernet 0/47",
179
- "linkBandwidth": 1000,
180
- "dstUnique": "00000000176a2185",
181
- "displayName": "172.17.166.28(Gi 0/49) - 172.17.166.26(Gi 0/47)",
182
- "linkRealBandwidth": 1000,
183
- "dstType": "networkInterface",
184
- "name": "172.17.166.28(Gi 0/49) - 172.17.166.26(Gi 0/47)",
185
- "linkType": "networkLink",
186
- "distanceToOutlet": 2147483647,
187
- "srcUnique": "00000000176a1d48",
188
- "srcType": "networkInterface"
189
- },
190
- "extraResult": null
191
- }
192
- ]
@@ -1,7 +0,0 @@
1
- import createMockRequest from './createMockRequest';
2
-
3
- const request = createMockRequest({
4
- baseURL: '/demo/2拓扑中心/js/mock'
5
- });
6
-
7
- export default request;
@@ -1,10 +0,0 @@
1
- ---
2
- title: 显示模式
3
- order: 1
4
- ---
5
-
6
-
7
-
8
- ```jsx
9
- <DemoCode src="./js/TopoCenterViewer.jsx" />
10
- ```