@nocobase/plugin-graph-collection-manager 0.21.0-alpha.1 → 0.21.0-alpha.10

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.
@@ -1,5 +1,5 @@
1
1
  import { Plugin } from '@nocobase/client';
2
- export declare class GraphCollectionPlugin extends Plugin {
2
+ export declare class PluginGraphCollectionPlugin extends Plugin {
3
3
  load(): Promise<void>;
4
4
  }
5
- export default GraphCollectionPlugin;
5
+ export default PluginGraphCollectionPlugin;
@@ -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.GraphCollectionPlugin=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.1",
4
+ "@nocobase/client": "0.21.0-alpha.10",
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.1",
12
+ "@nocobase/utils": "0.21.0-alpha.10",
13
13
  "react-i18next": "11.18.6",
14
- "@nocobase/server": "0.21.0-alpha.1",
14
+ "@nocobase/server": "0.21.0-alpha.10",
15
15
  "ahooks": "3.7.8",
16
- "@nocobase/database": "0.21.0-alpha.1"
16
+ "@nocobase/database": "0.21.0-alpha.10"
17
17
  };
@@ -1,5 +1,5 @@
1
1
  import { Plugin } from '@nocobase/server';
2
- export declare class GraphCollectionManagerPlugin extends Plugin {
2
+ export declare class PluginGraphCollectionManagerServer extends Plugin {
3
3
  load(): Promise<void>;
4
4
  }
5
- export default GraphCollectionManagerPlugin;
5
+ export default PluginGraphCollectionManagerServer;
@@ -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,31 +14,24 @@ 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, {
30
- GraphCollectionManagerPlugin: () => GraphCollectionManagerPlugin,
20
+ PluginGraphCollectionManagerServer: () => PluginGraphCollectionManagerServer,
31
21
  default: () => server_default
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
- class GraphCollectionManagerPlugin extends import_server.Plugin {
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
- var server_default = GraphCollectionManagerPlugin;
33
+ var server_default = PluginGraphCollectionManagerServer;
43
34
  // Annotate the CommonJS export names for ESM import in node:
44
35
  0 && (module.exports = {
45
- GraphCollectionManagerPlugin
36
+ PluginGraphCollectionManagerServer
46
37
  });
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.1",
7
+ "version": "0.21.0-alpha.10",
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": "afd2f3d1341b85ea9daa7b2667dd4ace1fafb7ff",
38
+ "gitHead": "98adf5ec996a4f359c6ca1c4a6ac837c43b6e268",
39
39
  "keywords": [
40
40
  "Data model tools"
41
41
  ]