@nocobase/plugin-users 2.0.0-alpha.35 → 2.0.0-alpha.37
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 +8 -8
- package/dist/server/server.js +0 -15
- package/package.json +2 -2
package/dist/externalVersion.js
CHANGED
|
@@ -13,17 +13,17 @@ module.exports = {
|
|
|
13
13
|
"react-i18next": "11.18.6",
|
|
14
14
|
"react-router-dom": "6.30.1",
|
|
15
15
|
"react": "18.2.0",
|
|
16
|
-
"@nocobase/client": "2.0.0-alpha.
|
|
16
|
+
"@nocobase/client": "2.0.0-alpha.37",
|
|
17
17
|
"antd": "5.24.2",
|
|
18
18
|
"@formily/core": "2.3.7",
|
|
19
|
-
"@nocobase/plugin-acl": "2.0.0-alpha.
|
|
19
|
+
"@nocobase/plugin-acl": "2.0.0-alpha.37",
|
|
20
20
|
"@emotion/css": "11.13.0",
|
|
21
|
-
"@nocobase/utils": "2.0.0-alpha.
|
|
22
|
-
"@nocobase/database": "2.0.0-alpha.
|
|
23
|
-
"@nocobase/server": "2.0.0-alpha.
|
|
24
|
-
"@nocobase/plugin-user-data-sync": "2.0.0-alpha.
|
|
25
|
-
"@nocobase/plugin-ui-schema-storage": "2.0.0-alpha.
|
|
21
|
+
"@nocobase/utils": "2.0.0-alpha.37",
|
|
22
|
+
"@nocobase/database": "2.0.0-alpha.37",
|
|
23
|
+
"@nocobase/server": "2.0.0-alpha.37",
|
|
24
|
+
"@nocobase/plugin-user-data-sync": "2.0.0-alpha.37",
|
|
25
|
+
"@nocobase/plugin-ui-schema-storage": "2.0.0-alpha.37",
|
|
26
26
|
"lodash": "4.17.21",
|
|
27
|
-
"@nocobase/actions": "2.0.0-alpha.
|
|
27
|
+
"@nocobase/actions": "2.0.0-alpha.37",
|
|
28
28
|
"sequelize": "6.35.2"
|
|
29
29
|
};
|
package/dist/server/server.js
CHANGED
|
@@ -96,14 +96,6 @@ class PluginUsersServer extends import_server.Plugin {
|
|
|
96
96
|
this.db.on("afterDefineCollection", (collection) => {
|
|
97
97
|
const { createdBy, updatedBy } = collection.options;
|
|
98
98
|
if (createdBy === true) {
|
|
99
|
-
collection.setField("createdById", {
|
|
100
|
-
type: "context",
|
|
101
|
-
dataType: "bigInt",
|
|
102
|
-
dataIndex: "state.currentUser.id",
|
|
103
|
-
createOnly: true,
|
|
104
|
-
visible: true,
|
|
105
|
-
index: true
|
|
106
|
-
});
|
|
107
99
|
collection.setField("createdBy", {
|
|
108
100
|
type: "belongsTo",
|
|
109
101
|
target: "users",
|
|
@@ -125,13 +117,6 @@ class PluginUsersServer extends import_server.Plugin {
|
|
|
125
117
|
});
|
|
126
118
|
}
|
|
127
119
|
if (updatedBy === true) {
|
|
128
|
-
collection.setField("updatedById", {
|
|
129
|
-
type: "context",
|
|
130
|
-
dataType: "bigInt",
|
|
131
|
-
dataIndex: "state.currentUser.id",
|
|
132
|
-
visible: true,
|
|
133
|
-
index: true
|
|
134
|
-
});
|
|
135
120
|
collection.setField("updatedBy", {
|
|
136
121
|
type: "belongsTo",
|
|
137
122
|
target: "users",
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "用户",
|
|
5
5
|
"description": "Provides basic user model, as well as created by and updated by fields.",
|
|
6
6
|
"description.zh-CN": "提供了基础的用户模型,以及创建人和最后更新人字段。",
|
|
7
|
-
"version": "2.0.0-alpha.
|
|
7
|
+
"version": "2.0.0-alpha.37",
|
|
8
8
|
"license": "AGPL-3.0",
|
|
9
9
|
"main": "./dist/server/index.js",
|
|
10
10
|
"homepage": "https://docs.nocobase.com/handbook/users",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"@nocobase/test": "2.x",
|
|
28
28
|
"@nocobase/utils": "2.x"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "56e2dc3a83b8ca7afa97cfa71b37a43f2ec10396",
|
|
31
31
|
"keywords": [
|
|
32
32
|
"Users & permissions"
|
|
33
33
|
]
|