@nocobase/plugin-users 1.9.0-beta.15 → 1.9.0-beta.17

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.
@@ -13,17 +13,17 @@ module.exports = {
13
13
  "react-i18next": "11.18.6",
14
14
  "react-router-dom": "6.28.1",
15
15
  "react": "18.2.0",
16
- "@nocobase/client": "1.9.0-beta.15",
16
+ "@nocobase/client": "1.9.0-beta.17",
17
17
  "antd": "5.24.2",
18
18
  "@formily/core": "2.3.0",
19
- "@nocobase/plugin-acl": "1.9.0-beta.15",
19
+ "@nocobase/plugin-acl": "1.9.0-beta.17",
20
20
  "@emotion/css": "11.13.0",
21
- "@nocobase/utils": "1.9.0-beta.15",
22
- "@nocobase/database": "1.9.0-beta.15",
23
- "@nocobase/server": "1.9.0-beta.15",
24
- "@nocobase/plugin-user-data-sync": "1.9.0-beta.15",
25
- "@nocobase/plugin-ui-schema-storage": "1.9.0-beta.15",
21
+ "@nocobase/utils": "1.9.0-beta.17",
22
+ "@nocobase/database": "1.9.0-beta.17",
23
+ "@nocobase/server": "1.9.0-beta.17",
24
+ "@nocobase/plugin-user-data-sync": "1.9.0-beta.17",
25
+ "@nocobase/plugin-ui-schema-storage": "1.9.0-beta.17",
26
26
  "lodash": "4.17.21",
27
- "@nocobase/actions": "1.9.0-beta.15",
27
+ "@nocobase/actions": "1.9.0-beta.17",
28
28
  "sequelize": "6.35.2"
29
29
  };
@@ -0,0 +1,9 @@
1
+ {
2
+ "Users & Permissions": "Пользователи и разрешения",
3
+ "Add users": "Добавить пользователей",
4
+ "Add user": "Добавить пользователя",
5
+ "Remove user": "Удалить пользователя",
6
+ "Are you sure you want to remove it?": "Вы уверены, что хотите удалить это?",
7
+ "Random password": "Случайный пароль",
8
+ "User profile is not allowed to be edited": "Профиль пользователя нельзя редактировать"
9
+ }
@@ -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
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-users",
3
3
  "displayName": "Users",
4
+ "displayName.ru-RU": "Пользователи",
4
5
  "displayName.zh-CN": "用户",
5
6
  "description": "Provides basic user model, as well as created by and updated by fields.",
7
+ "description.ru-RU": "Предоставляет базовую модель пользователя, а также поля кем, когда «создано» и «обновлено».",
6
8
  "description.zh-CN": "提供了基础的用户模型,以及创建人和最后更新人字段。",
7
- "version": "1.9.0-beta.15",
9
+ "version": "1.9.0-beta.17",
8
10
  "license": "AGPL-3.0",
9
11
  "main": "./dist/server/index.js",
10
12
  "homepage": "https://docs.nocobase.com/handbook/users",
13
+ "homepage.ru-RU": "https://docs-ru.nocobase.com/handbook/users",
11
14
  "homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/users",
12
15
  "devDependencies": {
13
16
  "@types/jsonwebtoken": "^9.0.9",
@@ -27,7 +30,7 @@
27
30
  "@nocobase/test": "1.x",
28
31
  "@nocobase/utils": "1.x"
29
32
  },
30
- "gitHead": "f7285eff753fd268350cfd65cd079a35b8957f0e",
33
+ "gitHead": "4f95b676235fa3f7583493412279d8132a20c4d0",
31
34
  "keywords": [
32
35
  "Users & permissions"
33
36
  ]