@riil-frontend/component-topology 2.15.6 → 2.15.7
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 +4 -4
- package/es/core/models/PluginManager.js +41 -0
- package/es/core/models/TopoApp.js +75 -50
- package/es/core/models/TopoGraphView.js +1 -28
- package/es/core/models/plugins/index.js +2 -0
- package/es/core/models/plugins/resourceWebControllUrl.js +8 -7
- package/es/core/viewer/components/plugins/BaseInfo/components/ResourceOverview/index.js +32 -15
- package/es/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.js +2 -2
- package/es/core/viewer/components/titlebar/widgets/EditButton.js +5 -4
- package/es/core/viewer/contextmenu/buildNodeContextmenu.js +2 -1
- package/es/models/topoMod.js +23 -6
- package/es/utils/tree.js +4 -2
- package/lib/core/models/PluginManager.js +48 -0
- package/lib/core/models/TopoApp.js +75 -49
- package/lib/core/models/TopoGraphView.js +1 -29
- package/lib/core/models/plugins/index.js +11 -0
- package/lib/core/models/plugins/resourceWebControllUrl.js +8 -7
- package/lib/core/viewer/components/plugins/BaseInfo/components/ResourceOverview/index.js +32 -15
- package/lib/core/viewer/components/plugins/ResourceWebControllUrlSettingDialog.js +2 -2
- package/lib/core/viewer/components/titlebar/widgets/EditButton.js +5 -4
- package/lib/core/viewer/contextmenu/buildNodeContextmenu.js +2 -1
- package/lib/models/topoMod.js +23 -6
- package/lib/utils/tree.js +4 -2
- package/package.json +2 -2
package/lib/utils/tree.js
CHANGED
|
@@ -53,7 +53,9 @@ function formatTree(json, funcPermissions) {
|
|
|
53
53
|
type: type,
|
|
54
54
|
name: name,
|
|
55
55
|
showDefault: showDefault,
|
|
56
|
-
permission: node.operation,
|
|
56
|
+
// permission: node.operation,
|
|
57
|
+
// FIXME 拓扑数据权限临时方案,待移除
|
|
58
|
+
permission: funcPermissions.createTopo ? 'delete' : 'read',
|
|
57
59
|
children: node !== null && node !== void 0 && node.children ? loop(node.children) : []
|
|
58
60
|
};
|
|
59
61
|
});
|
|
@@ -155,7 +157,7 @@ var loopTreeFun = function loopTreeFun(data, callback) {
|
|
|
155
157
|
loopTreeFun(item.children, callback);
|
|
156
158
|
}
|
|
157
159
|
|
|
158
|
-
|
|
160
|
+
callback(item, index, arr);
|
|
159
161
|
});
|
|
160
162
|
};
|
|
161
163
|
/**
|
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.7",
|
|
4
4
|
"description": "拓扑",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "build-scripts start",
|
|
@@ -111,6 +111,6 @@
|
|
|
111
111
|
"access": "public"
|
|
112
112
|
},
|
|
113
113
|
"license": "MIT",
|
|
114
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@2.15.
|
|
114
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@2.15.7/build/index.html",
|
|
115
115
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
|
116
116
|
}
|