@riil-frontend/component-topology 5.0.15 → 5.0.16
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 +1 -1
- package/build/index.js +12 -12
- package/es/components/BatchAttrMetric/SelectTable.js +21 -0
- package/es/components/BatchAttrMetric/index.js +1 -1
- package/es/components/BatchAttrMetric/setting.js +6 -21
- package/es/core/components/ResourceViewAttributeSetting/Setting.js +13 -1
- package/es/core/models/TopoApp.js +1 -1
- package/es/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleContainer.js +3 -3
- package/es/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/WebConsoleForm.js +96 -3
- package/es/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/hooks/useWebConsole.js +15 -7
- package/lib/components/BatchAttrMetric/SelectTable.js +29 -0
- package/lib/components/BatchAttrMetric/index.js +1 -1
- package/lib/components/BatchAttrMetric/setting.js +6 -22
- package/lib/core/components/ResourceViewAttributeSetting/Setting.js +12 -0
- package/lib/core/models/TopoApp.js +1 -1
- package/lib/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleContainer.js +3 -2
- package/lib/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/WebConsoleForm.js +106 -3
- package/lib/core/viewer/components/plugins/ResourceDetail/components/WebConsole/WebConsoleForm/hooks/useWebConsole.js +15 -7
- package/package.json +2 -2
|
@@ -25,7 +25,7 @@ function queryWebConsoleUrlById(_x) {
|
|
|
25
25
|
|
|
26
26
|
function _queryWebConsoleUrlById() {
|
|
27
27
|
_queryWebConsoleUrlById = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(id) {
|
|
28
|
-
var _list
|
|
28
|
+
var _list, list;
|
|
29
29
|
|
|
30
30
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
31
31
|
while (1) {
|
|
@@ -37,29 +37,31 @@ function _queryWebConsoleUrlById() {
|
|
|
37
37
|
|
|
38
38
|
case 3:
|
|
39
39
|
list = _context2.sent;
|
|
40
|
-
|
|
40
|
+
;
|
|
41
|
+
return _context2.abrupt("return", (_list = list[list.length - 1]) === null || _list === void 0 ? void 0 : _list.webUrl);
|
|
41
42
|
|
|
42
|
-
case
|
|
43
|
-
_context2.prev =
|
|
43
|
+
case 8:
|
|
44
|
+
_context2.prev = 8;
|
|
44
45
|
_context2.t0 = _context2["catch"](0);
|
|
45
46
|
|
|
46
47
|
_rlog["default"].error('资源web控制台.加载数据异常', _context2.t0);
|
|
47
48
|
|
|
48
|
-
case
|
|
49
|
+
case 11:
|
|
49
50
|
return _context2.abrupt("return", null);
|
|
50
51
|
|
|
51
|
-
case
|
|
52
|
+
case 12:
|
|
52
53
|
case "end":
|
|
53
54
|
return _context2.stop();
|
|
54
55
|
}
|
|
55
56
|
}
|
|
56
|
-
}, _callee2, null, [[0,
|
|
57
|
+
}, _callee2, null, [[0, 8]]);
|
|
57
58
|
}));
|
|
58
59
|
return _queryWebConsoleUrlById.apply(this, arguments);
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
function useWebConsole(props) {
|
|
62
63
|
var ciId = props.ciId;
|
|
64
|
+
var ipv4Address = props.ipv4Address;
|
|
63
65
|
|
|
64
66
|
var _useState = (0, _react.useState)(null),
|
|
65
67
|
webConsoleUrl = _useState[0],
|
|
@@ -69,6 +71,12 @@ function useWebConsole(props) {
|
|
|
69
71
|
var requestWebConsoleUrl = (0, _ahooks.useRequest)(queryWebConsoleUrlById, {
|
|
70
72
|
manual: true,
|
|
71
73
|
onSuccess: function onSuccess(result) {
|
|
74
|
+
if (ipv4Address != undefined) {
|
|
75
|
+
result = result === undefined ? "http://" + ipv4Address : result;
|
|
76
|
+
} else {
|
|
77
|
+
result = result === undefined ? null : result;
|
|
78
|
+
}
|
|
79
|
+
|
|
72
80
|
setWebConsoleUrl(result);
|
|
73
81
|
}
|
|
74
82
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riil-frontend/component-topology",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.16",
|
|
4
4
|
"description": "拓扑",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "build-scripts start",
|
|
@@ -115,6 +115,6 @@
|
|
|
115
115
|
"access": "public"
|
|
116
116
|
},
|
|
117
117
|
"license": "MIT",
|
|
118
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@5.0.
|
|
118
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@5.0.16/build/index.html",
|
|
119
119
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
|
120
120
|
}
|