@riil-frontend/component-topology 2.15.47 → 2.15.48
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/build/1.js +2 -2
- package/build/2.js +1 -1
- package/build/index.js +25 -25
- package/es/core/components/DisplaySettingDrawer/LinkTip.js +2 -2
- package/es/core/components/DisplaySettingDrawer/hooks/useDisplaySetting.js +1 -1
- package/es/core/models/AttributeMetricDisplay.js +1 -1
- package/es/core/models/TopoApp.js +1 -1
- package/es/core/models/attributeFormatter/index.js +1 -1
- package/es/core/models/topoFactory.js +2 -2
- package/es/core/viewer/components/plugins/BaseInfo/components/ResourceOverview/index.js +4 -4
- package/lib/core/components/DisplaySettingDrawer/LinkTip.js +2 -2
- package/lib/core/components/DisplaySettingDrawer/hooks/useDisplaySetting.js +1 -1
- package/lib/core/models/AttributeMetricDisplay.js +1 -1
- package/lib/core/models/TopoApp.js +1 -1
- package/lib/core/models/attributeFormatter/index.js +1 -1
- package/lib/core/models/topoFactory.js +2 -2
- package/lib/core/viewer/components/plugins/BaseInfo/components/ResourceOverview/index.js +4 -4
- package/package.json +2 -2
|
@@ -5,10 +5,10 @@ import BasicConfig from "./ResourceDisplay/BasicConfig"; // 源端口、目的
|
|
|
5
5
|
|
|
6
6
|
var CommonOptions = [{
|
|
7
7
|
value: 'attribute:source_id',
|
|
8
|
-
label: '
|
|
8
|
+
label: '源端口'
|
|
9
9
|
}, {
|
|
10
10
|
value: 'attribute:destination_id',
|
|
11
|
-
label: '
|
|
11
|
+
label: '目的端口'
|
|
12
12
|
}, {
|
|
13
13
|
value: 'metric:total_flow_rate',
|
|
14
14
|
label: '总流速'
|
|
@@ -50,7 +50,7 @@ export default (function (props) {
|
|
|
50
50
|
switch (_context2.prev = _context2.next) {
|
|
51
51
|
case 0:
|
|
52
52
|
values = settingRef.current.getValues();
|
|
53
|
-
console.
|
|
53
|
+
console.info('保存显示配置', values); // 保存配置
|
|
54
54
|
// const prevDisplayConfig = topo.store.getModelState('displayConfig');
|
|
55
55
|
|
|
56
56
|
displayConfig = _extends({}, values);
|
|
@@ -75,7 +75,7 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
|
75
75
|
function getItems(cfg) {
|
|
76
76
|
var isCustom = cfg.isCustom,
|
|
77
77
|
data = cfg.data;
|
|
78
|
-
var items = (isCustom ? data[ciType] : data) || []; //
|
|
78
|
+
var items = (isCustom ? data[ciType] : data) || []; // 过滤类型不存在的属性和指标、图片名称
|
|
79
79
|
|
|
80
80
|
return filterUnExistedFields(items, ciTypeMeta);
|
|
81
81
|
}
|
|
@@ -20,7 +20,7 @@ import { updateEdgeExpanded } from "../utils/edgeUtil";
|
|
|
20
20
|
import PluginManager from "./PluginManager";
|
|
21
21
|
import topoFactory from "./topoFactory"; // eslint-disable-next-line no-undef
|
|
22
22
|
|
|
23
|
-
var version = typeof "2.15.
|
|
23
|
+
var version = typeof "2.15.48" === 'string' ? "2.15.48" : null;
|
|
24
24
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
|
25
25
|
/**
|
|
26
26
|
* 拓扑显示和编辑
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var n =
|
|
1
|
+
var n = 1;
|
|
2
2
|
|
|
3
3
|
var TopoFactory = /*#__PURE__*/function () {
|
|
4
4
|
function TopoFactory() {
|
|
@@ -8,7 +8,7 @@ var TopoFactory = /*#__PURE__*/function () {
|
|
|
8
8
|
var _proto = TopoFactory.prototype;
|
|
9
9
|
|
|
10
10
|
_proto.add = function add(name, topo) {
|
|
11
|
-
var uid = name || "" + n++;
|
|
11
|
+
var uid = name || "topo" + n++;
|
|
12
12
|
this.map[uid] = topo;
|
|
13
13
|
return uid;
|
|
14
14
|
};
|
|
@@ -85,10 +85,10 @@ function BaseInfoRender(type, data) {
|
|
|
85
85
|
label: '目的IP地址:',
|
|
86
86
|
objKey: 'destination_ipv4'
|
|
87
87
|
}, {
|
|
88
|
-
label: '
|
|
88
|
+
label: '源端口:',
|
|
89
89
|
objKey: 'source_Interface'
|
|
90
90
|
}, {
|
|
91
|
-
label: '
|
|
91
|
+
label: '目的端口:',
|
|
92
92
|
objKey: 'destination_Interface'
|
|
93
93
|
}]
|
|
94
94
|
};
|
|
@@ -195,8 +195,8 @@ export default function ResourceOverview(props) {
|
|
|
195
195
|
destination_ipv4: '',
|
|
196
196
|
// 目的IP地址
|
|
197
197
|
source_Interface: '',
|
|
198
|
-
//
|
|
199
|
-
destination_Interface: '' //
|
|
198
|
+
// 源端口
|
|
199
|
+
destination_Interface: '' // 目的端口
|
|
200
200
|
|
|
201
201
|
}),
|
|
202
202
|
baseInfo = _useState[0],
|
|
@@ -16,10 +16,10 @@ var _BasicConfig = _interopRequireDefault(require("./ResourceDisplay/BasicConfig
|
|
|
16
16
|
// 源端口、目的端口、总流量、带宽利用率
|
|
17
17
|
var CommonOptions = [{
|
|
18
18
|
value: 'attribute:source_id',
|
|
19
|
-
label: '
|
|
19
|
+
label: '源端口'
|
|
20
20
|
}, {
|
|
21
21
|
value: 'attribute:destination_id',
|
|
22
|
-
label: '
|
|
22
|
+
label: '目的端口'
|
|
23
23
|
}, {
|
|
24
24
|
value: 'metric:total_flow_rate',
|
|
25
25
|
label: '总流速'
|
|
@@ -61,7 +61,7 @@ var _default = function _default(props) {
|
|
|
61
61
|
switch (_context2.prev = _context2.next) {
|
|
62
62
|
case 0:
|
|
63
63
|
values = settingRef.current.getValues();
|
|
64
|
-
console.
|
|
64
|
+
console.info('保存显示配置', values); // 保存配置
|
|
65
65
|
// const prevDisplayConfig = topo.store.getModelState('displayConfig');
|
|
66
66
|
|
|
67
67
|
displayConfig = (0, _extends2["default"])({}, values);
|
|
@@ -93,7 +93,7 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
|
93
93
|
function getItems(cfg) {
|
|
94
94
|
var isCustom = cfg.isCustom,
|
|
95
95
|
data = cfg.data;
|
|
96
|
-
var items = (isCustom ? data[ciType] : data) || []; //
|
|
96
|
+
var items = (isCustom ? data[ciType] : data) || []; // 过滤类型不存在的属性和指标、图片名称
|
|
97
97
|
|
|
98
98
|
return filterUnExistedFields(items, ciTypeMeta);
|
|
99
99
|
}
|
|
@@ -48,7 +48,7 @@ var _PluginManager = _interopRequireDefault(require("./PluginManager"));
|
|
|
48
48
|
var _topoFactory = _interopRequireDefault(require("./topoFactory"));
|
|
49
49
|
|
|
50
50
|
// eslint-disable-next-line no-undef
|
|
51
|
-
var version = typeof "2.15.
|
|
51
|
+
var version = typeof "2.15.48" === 'string' ? "2.15.48" : null;
|
|
52
52
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
|
53
53
|
/**
|
|
54
54
|
* 拓扑显示和编辑
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports["default"] = void 0;
|
|
5
|
-
var n =
|
|
5
|
+
var n = 1;
|
|
6
6
|
|
|
7
7
|
var TopoFactory = /*#__PURE__*/function () {
|
|
8
8
|
function TopoFactory() {
|
|
@@ -12,7 +12,7 @@ var TopoFactory = /*#__PURE__*/function () {
|
|
|
12
12
|
var _proto = TopoFactory.prototype;
|
|
13
13
|
|
|
14
14
|
_proto.add = function add(name, topo) {
|
|
15
|
-
var uid = name || "" + n++;
|
|
15
|
+
var uid = name || "topo" + n++;
|
|
16
16
|
this.map[uid] = topo;
|
|
17
17
|
return uid;
|
|
18
18
|
};
|
|
@@ -116,10 +116,10 @@ function BaseInfoRender(type, data) {
|
|
|
116
116
|
label: '目的IP地址:',
|
|
117
117
|
objKey: 'destination_ipv4'
|
|
118
118
|
}, {
|
|
119
|
-
label: '
|
|
119
|
+
label: '源端口:',
|
|
120
120
|
objKey: 'source_Interface'
|
|
121
121
|
}, {
|
|
122
|
-
label: '
|
|
122
|
+
label: '目的端口:',
|
|
123
123
|
objKey: 'destination_Interface'
|
|
124
124
|
}]
|
|
125
125
|
};
|
|
@@ -226,8 +226,8 @@ function ResourceOverview(props) {
|
|
|
226
226
|
destination_ipv4: '',
|
|
227
227
|
// 目的IP地址
|
|
228
228
|
source_Interface: '',
|
|
229
|
-
//
|
|
230
|
-
destination_Interface: '' //
|
|
229
|
+
// 源端口
|
|
230
|
+
destination_Interface: '' // 目的端口
|
|
231
231
|
|
|
232
232
|
}),
|
|
233
233
|
baseInfo = _useState[0],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riil-frontend/component-topology",
|
|
3
|
-
"version": "2.15.
|
|
3
|
+
"version": "2.15.48",
|
|
4
4
|
"description": "拓扑",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "build-scripts start",
|
|
@@ -110,6 +110,6 @@
|
|
|
110
110
|
"access": "public"
|
|
111
111
|
},
|
|
112
112
|
"license": "MIT",
|
|
113
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@2.15.
|
|
113
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@2.15.48/build/index.html",
|
|
114
114
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
|
115
115
|
}
|