@nocobase/plugin-graph-collection-manager 0.21.0-alpha.7 → 0.21.0-alpha.9

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.
@@ -730,4 +730,4 @@ Error generating stack: `+s.message+`
730
730
  overflow: auto;
731
731
  margin: calc(var(--nb-spacing) * -1);
732
732
  position: relative;
733
- `,id:"graph_container",children:_.jsx(L.SchemaComponent,{schema:{type:"void","x-component":"div",properties:{editor:{type:"void","x-component":"GraphDrawPage"}}},components:{GraphDrawPage:kM,DeleteOutlined:ue.DeleteOutlined},scope:{useCollectionValues:VY,useCreateActionAndRefreshCM:Xv}})}),$M="graph-collection-manager";class IM extends L.Plugin{load(){return Be(this,null,function*(){this.app.pluginSettingsManager.add("data-source-manager/main.graph",{title:`{{t("Graphical interface", { ns: "${$M}" })}}`,Component:qY,topLevelName:"data-source-manager/main",pluginKey:$M,aclSnippet:"pm.data-source-manager.graph"})})}}J.PluginGraphCollectionPlugin=IM,J.default=IM,Object.defineProperties(J,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
733
+ `,id:"graph_container",children:_.jsx(L.SchemaComponent,{schema:{type:"void","x-component":"div",properties:{editor:{type:"void","x-component":"GraphDrawPage"}}},components:{GraphDrawPage:kM,DeleteOutlined:ue.DeleteOutlined},scope:{useCollectionValues:VY,useCreateActionAndRefreshCM:Xv}})}),$M="graph-collection-manager";class IM extends L.Plugin{load(){return Be(this,null,function*(){this.app.pluginSettingsManager.add("data-source-manager/main.graph",{title:`{{t("Graphical interface", { ns: "${$M}" })}}`,Component:qY,topLevelName:"data-source-manager/main",pluginKey:$M,skipAclConfigure:!0,aclSnippet:"pm.data-source-manager.graph-collection-manager"})})}}J.PluginGraphCollectionPlugin=IM,J.default=IM,Object.defineProperties(J,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,7 +1,7 @@
1
1
  module.exports = {
2
2
  "@ant-design/icons": "5.2.6",
3
3
  "@formily/shared": "2.3.0",
4
- "@nocobase/client": "0.21.0-alpha.7",
4
+ "@nocobase/client": "0.21.0-alpha.9",
5
5
  "react": "18.2.0",
6
6
  "@emotion/css": "11.11.2",
7
7
  "@formily/react": "2.3.0",
@@ -9,9 +9,9 @@ module.exports = {
9
9
  "lodash": "4.17.21",
10
10
  "react-router-dom": "6.21.0",
11
11
  "@formily/reactive": "2.3.0",
12
- "@nocobase/utils": "0.21.0-alpha.7",
12
+ "@nocobase/utils": "0.21.0-alpha.9",
13
13
  "react-i18next": "11.18.6",
14
- "@nocobase/server": "0.21.0-alpha.7",
14
+ "@nocobase/server": "0.21.0-alpha.9",
15
15
  "ahooks": "3.7.8",
16
- "@nocobase/database": "0.21.0-alpha.7"
16
+ "@nocobase/database": "0.21.0-alpha.9"
17
17
  };
@@ -1,8 +1,6 @@
1
- var __create = Object.create;
2
1
  var __defProp = Object.defineProperty;
3
2
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
3
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
4
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
5
  var __export = (target, all) => {
8
6
  for (var name in all)
@@ -16,14 +14,6 @@ var __copyProps = (to, from, except, desc) => {
16
14
  }
17
15
  return to;
18
16
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
17
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
18
  var server_exports = {};
29
19
  __export(server_exports, {
@@ -32,11 +22,12 @@ __export(server_exports, {
32
22
  });
33
23
  module.exports = __toCommonJS(server_exports);
34
24
  var import_server = require("@nocobase/server");
35
- var import_path = __toESM(require("path"));
36
25
  class PluginGraphCollectionManagerServer extends import_server.Plugin {
37
26
  async load() {
38
- await this.importCollections(import_path.default.resolve(__dirname, "collections"));
39
- this.app.acl.allow("graphPositions", "*");
27
+ this.app.acl.registerSnippet({
28
+ name: "pm.data-source-manager.graph-collection-manager",
29
+ actions: ["graphPositions:*"]
30
+ });
40
31
  }
41
32
  }
42
33
  var server_default = PluginGraphCollectionManagerServer;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "可视化数据表管理",
5
5
  "description": "An ER diagram-like tool. Currently only the Master database is supported.",
6
6
  "description.zh-CN": "类似 ER 图的工具,目前只支持主数据库。",
7
- "version": "0.21.0-alpha.7",
7
+ "version": "0.21.0-alpha.9",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./dist/server/index.js",
10
10
  "homepage": "https://docs.nocobase.com/handbook/graph-collection-manager",
@@ -35,7 +35,7 @@
35
35
  "@nocobase/test": "0.x",
36
36
  "@nocobase/utils": "0.x"
37
37
  },
38
- "gitHead": "b1be3993f8aa81173d01bc390aa8e4c5adcc0e2d",
38
+ "gitHead": "a6fe6c4ee532c04e5a50ec777bf76436ca624cbd",
39
39
  "keywords": [
40
40
  "Data model tools"
41
41
  ]