@nocobase/plugin-collection-tree 1.9.0-beta.8 → 2.0.0-alpha.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/dist/externalVersion.js
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "
|
|
12
|
-
"@nocobase/database": "
|
|
13
|
-
"@nocobase/utils": "
|
|
11
|
+
"@nocobase/client": "2.0.0-alpha.2",
|
|
12
|
+
"@nocobase/database": "2.0.0-alpha.2",
|
|
13
|
+
"@nocobase/utils": "2.0.0-alpha.2",
|
|
14
14
|
"lodash": "4.17.21",
|
|
15
|
-
"@nocobase/data-source-manager": "
|
|
16
|
-
"@nocobase/server": "
|
|
15
|
+
"@nocobase/data-source-manager": "2.0.0-alpha.2",
|
|
16
|
+
"@nocobase/server": "2.0.0-alpha.2",
|
|
17
17
|
"sequelize": "6.35.2"
|
|
18
18
|
};
|
|
@@ -66,9 +66,9 @@ class collection_tree_default extends import_server.Migration {
|
|
|
66
66
|
autoGenId: false,
|
|
67
67
|
timestamps: false,
|
|
68
68
|
fields: [
|
|
69
|
-
{ type: "
|
|
69
|
+
{ type: "bigInt", name: "nodePk" },
|
|
70
70
|
{ type: "string", name: "path", length: 1024 },
|
|
71
|
-
{ type: "
|
|
71
|
+
{ type: "bigInt", name: "rootPk" }
|
|
72
72
|
],
|
|
73
73
|
indexes: [
|
|
74
74
|
{
|
package/dist/server/plugin.js
CHANGED
|
@@ -80,7 +80,7 @@ class PluginCollectionTreeServer extends import_server.Plugin {
|
|
|
80
80
|
values: {
|
|
81
81
|
nodePk: model.get(tk),
|
|
82
82
|
path,
|
|
83
|
-
rootPk: rootPk ?
|
|
83
|
+
rootPk: rootPk ? rootPk : null
|
|
84
84
|
},
|
|
85
85
|
transaction
|
|
86
86
|
});
|
|
@@ -149,9 +149,9 @@ class PluginCollectionTreeServer extends import_server.Plugin {
|
|
|
149
149
|
autoGenId: false,
|
|
150
150
|
timestamps: false,
|
|
151
151
|
fields: [
|
|
152
|
-
{ type: "
|
|
152
|
+
{ type: "bigInt", name: "nodePk" },
|
|
153
153
|
{ type: "string", name: "path", length: 1024 },
|
|
154
|
-
{ type: "
|
|
154
|
+
{ type: "bigInt", name: "rootPk" }
|
|
155
155
|
],
|
|
156
156
|
indexes: [
|
|
157
157
|
{
|
|
@@ -224,7 +224,7 @@ class PluginCollectionTreeServer extends import_server.Plugin {
|
|
|
224
224
|
await this.app.db.getRepository(pathCollectionName).update({
|
|
225
225
|
values: {
|
|
226
226
|
path: newPath,
|
|
227
|
-
rootPk: rootPk ?
|
|
227
|
+
rootPk: rootPk ? rootPk : null
|
|
228
228
|
},
|
|
229
229
|
filter: {
|
|
230
230
|
[nodePkColumnName]: node.get("nodePk")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-collection-tree",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.2",
|
|
4
4
|
"displayName": "Collection: Tree",
|
|
5
5
|
"displayName.zh-CN": "数据表:树",
|
|
6
6
|
"description": "Provides tree collection template",
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
],
|
|
11
11
|
"main": "dist/server/index.js",
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@nocobase/client": "
|
|
14
|
-
"@nocobase/server": "
|
|
15
|
-
"@nocobase/test": "
|
|
13
|
+
"@nocobase/client": "2.x",
|
|
14
|
+
"@nocobase/server": "2.x",
|
|
15
|
+
"@nocobase/test": "2.x"
|
|
16
16
|
},
|
|
17
|
-
"gitHead": "
|
|
17
|
+
"gitHead": "1322f486b248bef53ed8c8f42f0a39dfd02125fd"
|
|
18
18
|
}
|