@riil-frontend/component-topology 8.0.0-a.1 → 8.0.0-a.2
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/index.js +1 -1
- package/es/core/common/icons/basicIcons.js +1 -1
- package/es/core/common/icons/icon.js +6 -2
- package/es/core/models/TopoApp.js +1 -1
- package/es/core/store/models/topoConfig.js +6 -1
- package/lib/core/common/icons/basicIcons.js +1 -1
- package/lib/core/common/icons/icon.js +6 -2
- package/lib/core/models/TopoApp.js +1 -1
- package/lib/core/store/models/topoConfig.js +6 -1
- package/package.json +2 -2
@@ -37,11 +37,15 @@ export function getResourceIcons(topo) {
|
|
37
37
|
*/
|
38
38
|
|
39
39
|
export function getBasicIcons(topo, containsGroupIcon) {
|
40
|
+
var nodeIcons = topoManager.iconLibManager.getNodeIcons().filter(function (icon) {
|
41
|
+
return !icon.ciType;
|
42
|
+
});
|
43
|
+
|
40
44
|
if (containsGroupIcon === false) {
|
41
|
-
return basicIcons;
|
45
|
+
return [].concat(nodeIcons, basicIcons);
|
42
46
|
}
|
43
47
|
|
44
|
-
return [topoManager.iconLibManager.getGroupIcon()].concat(basicIcons);
|
48
|
+
return [topoManager.iconLibManager.getGroupIcon()].concat(nodeIcons, basicIcons);
|
45
49
|
}
|
46
50
|
export function getGroupDefaultIcons(topo) {
|
47
51
|
return [].concat(topoManager.iconLibManager.getIcons());
|
@@ -23,7 +23,7 @@ import topoFactory from "./topoFactory";
|
|
23
23
|
import ElementTagTipConfig from "./tagstips/ElementTagTipConfig";
|
24
24
|
import SelectionModel from "./SelectionModel"; // eslint-disable-next-line no-undef
|
25
25
|
|
26
|
-
var version = typeof "8.0.0-a.
|
26
|
+
var version = typeof "8.0.0-a.2" === 'string' ? "8.0.0-a.2" : null;
|
27
27
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
28
28
|
/**
|
29
29
|
* 拓扑显示和编辑
|
@@ -385,7 +385,12 @@ export default function (topoApp) {
|
|
385
385
|
alarmListDefaultOpen: displayConfig.alarmListDefaultOpen,
|
386
386
|
extraConfig: JSON.stringify(_extends({}, displayConfig, {
|
387
387
|
// 背景图,便于加载拓扑直接显示背景图
|
388
|
-
background: topoApp.store.getModelState("background").current
|
388
|
+
background: topoApp.store.getModelState("background").current,
|
389
|
+
// 增加保存日志,便于排查链路重复问题 2023-4-12 19:27:18
|
390
|
+
saveHistories: [{
|
391
|
+
date: new Date().toLocaleString(),
|
392
|
+
version: topoApp.version
|
393
|
+
}].concat(displayConfig.saveHistories || [])
|
389
394
|
}))
|
390
395
|
};
|
391
396
|
rlog.debug('saveGlobalConfig', config);
|
@@ -62,11 +62,15 @@ function getResourceIcons(topo) {
|
|
62
62
|
|
63
63
|
|
64
64
|
function getBasicIcons(topo, containsGroupIcon) {
|
65
|
+
var nodeIcons = _manager["default"].iconLibManager.getNodeIcons().filter(function (icon) {
|
66
|
+
return !icon.ciType;
|
67
|
+
});
|
68
|
+
|
65
69
|
if (containsGroupIcon === false) {
|
66
|
-
return _basicIcons["default"];
|
70
|
+
return [].concat(nodeIcons, _basicIcons["default"]);
|
67
71
|
}
|
68
72
|
|
69
|
-
return [_manager["default"].iconLibManager.getGroupIcon()].concat(_basicIcons["default"]);
|
73
|
+
return [_manager["default"].iconLibManager.getGroupIcon()].concat(nodeIcons, _basicIcons["default"]);
|
70
74
|
}
|
71
75
|
|
72
76
|
function getGroupDefaultIcons(topo) {
|
@@ -54,7 +54,7 @@ var _ElementTagTipConfig = _interopRequireDefault(require("./tagstips/ElementTag
|
|
54
54
|
var _SelectionModel = _interopRequireDefault(require("./SelectionModel"));
|
55
55
|
|
56
56
|
// eslint-disable-next-line no-undef
|
57
|
-
var version = typeof "8.0.0-a.
|
57
|
+
var version = typeof "8.0.0-a.2" === 'string' ? "8.0.0-a.2" : null;
|
58
58
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
59
59
|
/**
|
60
60
|
* 拓扑显示和编辑
|
@@ -407,7 +407,12 @@ function _default(topoApp) {
|
|
407
407
|
alarmListDefaultOpen: displayConfig.alarmListDefaultOpen,
|
408
408
|
extraConfig: JSON.stringify((0, _extends2["default"])({}, displayConfig, {
|
409
409
|
// 背景图,便于加载拓扑直接显示背景图
|
410
|
-
background: topoApp.store.getModelState("background").current
|
410
|
+
background: topoApp.store.getModelState("background").current,
|
411
|
+
// 增加保存日志,便于排查链路重复问题 2023-4-12 19:27:18
|
412
|
+
saveHistories: [{
|
413
|
+
date: new Date().toLocaleString(),
|
414
|
+
version: topoApp.version
|
415
|
+
}].concat(displayConfig.saveHistories || [])
|
411
416
|
}))
|
412
417
|
};
|
413
418
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@riil-frontend/component-topology",
|
3
|
-
"version": "8.0.0-a.
|
3
|
+
"version": "8.0.0-a.2",
|
4
4
|
"description": "拓扑",
|
5
5
|
"scripts": {
|
6
6
|
"start": "build-scripts start",
|
@@ -116,6 +116,6 @@
|
|
116
116
|
"access": "public"
|
117
117
|
},
|
118
118
|
"license": "MIT",
|
119
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@8.0.0-a.
|
119
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@8.0.0-a.2/build/index.html",
|
120
120
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
121
121
|
}
|