@nocobase/plugin-users 2.0.0-alpha.5 → 2.0.0-alpha.50

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.30.1",
15
15
  "react": "18.2.0",
16
- "@nocobase/client": "2.0.0-alpha.5",
16
+ "@nocobase/client": "2.0.0-alpha.50",
17
17
  "antd": "5.24.2",
18
18
  "@formily/core": "2.3.7",
19
- "@nocobase/plugin-acl": "2.0.0-alpha.5",
19
+ "@nocobase/plugin-acl": "2.0.0-alpha.50",
20
20
  "@emotion/css": "11.13.0",
21
- "@nocobase/utils": "2.0.0-alpha.5",
22
- "@nocobase/database": "2.0.0-alpha.5",
23
- "@nocobase/server": "2.0.0-alpha.5",
24
- "@nocobase/plugin-user-data-sync": "2.0.0-alpha.5",
25
- "@nocobase/plugin-ui-schema-storage": "2.0.0-alpha.5",
21
+ "@nocobase/utils": "2.0.0-alpha.50",
22
+ "@nocobase/database": "2.0.0-alpha.50",
23
+ "@nocobase/server": "2.0.0-alpha.50",
24
+ "@nocobase/plugin-user-data-sync": "2.0.0-alpha.50",
25
+ "@nocobase/plugin-ui-schema-storage": "2.0.0-alpha.50",
26
26
  "lodash": "4.17.21",
27
- "@nocobase/actions": "2.0.0-alpha.5",
27
+ "@nocobase/actions": "2.0.0-alpha.50",
28
28
  "sequelize": "6.35.2"
29
29
  };
@@ -1,12 +1,12 @@
1
1
  {
2
- "Users & Permissions": "Benutzer & Berechtigungen",
3
- "Add users": "Benutzer hinzufügen",
4
2
  "Add user": "Benutzer hinzufügen",
5
- "Remove user": "Benutzer entfernen",
3
+ "Add users": "Benutzer hinzufügen",
4
+ "Allow change password": "Passwortänderung erlauben",
5
+ "Allow edit profile": "Bearbeitung des Profils erlauben",
6
6
  "Are you sure you want to remove it?": "Sind Sie sicher, dass Sie es entfernen möchten?",
7
7
  "Random password": "Zufälliges Passwort",
8
- "Users manager": "Benutzerverwaltung",
9
- "Allow edit profile": "Bearbeitung des Profils erlauben",
10
- "Allow change password": "Passwortänderung erlauben",
11
- "User profile is not allowed to be edited": "Das Benutzerprofil darf nicht bearbeitet werden"
12
- }
8
+ "Remove user": "Benutzer entfernen",
9
+ "User profile is not allowed to be edited": "Das Benutzerprofil darf nicht bearbeitet werden",
10
+ "Users & Permissions": "Benutzer & Berechtigungen",
11
+ "Users manager": "Benutzerverwaltung"
12
+ }
@@ -1,9 +1,12 @@
1
1
  {
2
- "Users & Permissions": "Users & Permissions",
3
- "Add users": "Add users",
4
2
  "Add user": "Add user",
5
- "Remove user": "Remove user",
3
+ "Add users": "Add users",
4
+ "Allow change password": "Allow change password",
5
+ "Allow edit profile": "Allow edit profile",
6
6
  "Are you sure you want to remove it?": "Are you sure you want to remove it?",
7
7
  "Random password": "Random password",
8
- "User profile is not allowed to be edited": "User profile is not allowed to be edited"
9
- }
8
+ "Remove user": "Remove user",
9
+ "User profile is not allowed to be edited": "User profile is not allowed to be edited",
10
+ "Users & Permissions": "Users & Permissions",
11
+ "Users manager": "Users manager"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "Add user": "Add user",
3
+ "Add users": "Add users",
4
+ "Allow change password": "Allow change password",
5
+ "Allow edit profile": "Allow edit profile",
6
+ "Are you sure you want to remove it?": "Are you sure you want to remove it?",
7
+ "Random password": "Random password",
8
+ "Remove user": "Remove user",
9
+ "User profile is not allowed to be edited": "User profile is not allowed to be edited",
10
+ "Users & Permissions": "Users & Permissions",
11
+ "Users manager": "Users manager"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "Add user": "Add user",
3
+ "Add users": "Add users",
4
+ "Allow change password": "Allow change password",
5
+ "Allow edit profile": "Allow edit profile",
6
+ "Are you sure you want to remove it?": "Are you sure you want to remove it?",
7
+ "Random password": "Random password",
8
+ "Remove user": "Remove user",
9
+ "User profile is not allowed to be edited": "User profile is not allowed to be edited",
10
+ "Users & Permissions": "Users & Permissions",
11
+ "Users manager": "Users manager"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "Add user": "Felhasználó hozzáadása",
3
+ "Add users": "Felhasználók hozzáadása",
4
+ "Allow change password": "Jelszó módosítás engedélyezése",
5
+ "Allow edit profile": "Profil szerkesztésének engedélyezése",
6
+ "Are you sure you want to remove it?": "Biztosan el szeretné távolítani?",
7
+ "Random password": "Véletlenszerű jelszó",
8
+ "Remove user": "Felhasználó eltávolítása",
9
+ "User profile is not allowed to be edited": "A felhasználói profil szerkesztése nem engedélyezett",
10
+ "Users & Permissions": "Felhasználók és jogosultságok",
11
+ "Users manager": "Felhasználók kezelése"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "Add user": "Tambah pengguna",
3
+ "Add users": "Tambah pengguna",
4
+ "Allow change password": "Izinkan ganti kata sandi",
5
+ "Allow edit profile": "Izinkan edit profil",
6
+ "Are you sure you want to remove it?": "Anda yakin ingin menghapusnya?",
7
+ "Random password": "Kata sandi acak",
8
+ "Remove user": "Hapus pengguna",
9
+ "User profile is not allowed to be edited": "Profil pengguna tidak diizinkan untuk diedit",
10
+ "Users & Permissions": "Pengguna & Izin",
11
+ "Users manager": "Manajer pengguna"
12
+ }
@@ -1,12 +1,12 @@
1
1
  {
2
- "Users & Permissions": "Utenti e Permessi",
3
- "Add users": "Aggiungi utenti",
4
2
  "Add user": "Aggiungi utente",
5
- "Remove user": "Rimuovi utente",
3
+ "Add users": "Aggiungi utenti",
4
+ "Allow change password": "Permetti modifica password",
5
+ "Allow edit profile": "Permetti modifica profilo",
6
6
  "Are you sure you want to remove it?": "Sei sicuro di volerlo rimuovere?",
7
7
  "Random password": "Password casuale",
8
- "Users manager": "Gestore utenti",
9
- "Allow edit profile": "Permetti modifica profilo",
10
- "Allow change password": "Permetti modifica password",
11
- "User profile is not allowed to be edited": "Il profilo utente non può essere modificato"
12
- }
8
+ "Remove user": "Rimuovi utente",
9
+ "User profile is not allowed to be edited": "Il profilo utente non può essere modificato",
10
+ "Users & Permissions": "Utenti e Permessi",
11
+ "Users manager": "Gestore utenti"
12
+ }
@@ -1,8 +1,12 @@
1
1
  {
2
- "Users & Permissions": "ユーザーと権限",
3
- "Add users": "ユーザーを追加",
4
2
  "Add user": "ユーザーを追加",
5
- "Remove user": "ユーザーを削除",
3
+ "Add users": "ユーザーを追加",
4
+ "Allow change password": "パスワード変更を許可",
5
+ "Allow edit profile": "プロファイル編集を許可",
6
6
  "Are you sure you want to remove it?": "本当に削除してよろしいですか?",
7
- "Random password": "ランダムパスワード"
8
- }
7
+ "Random password": "ランダムパスワード",
8
+ "Remove user": "ユーザーを削除",
9
+ "User profile is not allowed to be edited": "ユーザープロファイルの編集は許可されていません",
10
+ "Users & Permissions": "ユーザーと権限",
11
+ "Users manager": "ユーザー管理"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "Add user": "사용자 추가",
3
+ "Add users": "사용자 추가",
4
+ "Allow change password": "비밀번호 변경 허용",
5
+ "Allow edit profile": "프로필 편집 허용",
6
+ "Are you sure you want to remove it?": "정말로 삭제하시겠습니까?",
7
+ "Random password": "임의 비밀번호",
8
+ "Remove user": "사용자 삭제",
9
+ "User profile is not allowed to be edited": "사용자 프로필은 편집할 수 없습니다",
10
+ "Users & Permissions": "사용자 및 권한",
11
+ "Users manager": "사용자 관리자"
12
+ }
@@ -1,12 +1,12 @@
1
1
  {
2
- "Users & Permissions": "Gebruikers & Toegangen",
3
- "Add users": "Gebruikers toevoegen",
4
- "Add user": "Gebruiker toevoegen",
5
- "Remove user": "Gebruiker verwijderen",
6
- "Are you sure you want to remove it?": "Ben je zeker dat je het wil verwijderen?",
7
- "Random password": "Willekeurig wachtwoord",
8
- "Users manager": "Gebruikersbeheer",
9
- "Allow edit profile": "Profiel bewerken toestaan",
10
- "Allow change password": "Wachtwoord wijzigen toestaan",
11
- "User profile is not allowed to be edited": "Het gebruikersprofiel mag niet bewerkt worden."
2
+ "Add user": "Gebruiker toevoegen",
3
+ "Add users": "Gebruikers toevoegen",
4
+ "Allow change password": "Wachtwoord wijzigen toestaan",
5
+ "Allow edit profile": "Profiel bewerken toestaan",
6
+ "Are you sure you want to remove it?": "Ben je zeker dat je het wil verwijderen?",
7
+ "Random password": "Willekeurig wachtwoord",
8
+ "Remove user": "Gebruiker verwijderen",
9
+ "User profile is not allowed to be edited": "Het gebruikersprofiel mag niet bewerkt worden.",
10
+ "Users & Permissions": "Gebruikers & Toegangen",
11
+ "Users manager": "Gebruikersbeheer"
12
12
  }
@@ -0,0 +1,12 @@
1
+ {
2
+ "Add user": "Add user",
3
+ "Add users": "Add users",
4
+ "Allow change password": "Allow change password",
5
+ "Allow edit profile": "Allow edit profile",
6
+ "Are you sure you want to remove it?": "Are you sure you want to remove it?",
7
+ "Random password": "Random password",
8
+ "Remove user": "Remove user",
9
+ "User profile is not allowed to be edited": "User profile is not allowed to be edited",
10
+ "Users & Permissions": "Users & Permissions",
11
+ "Users manager": "Users manager"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "Add user": "Добавить пользователя",
3
+ "Add users": "Добавить пользователей",
4
+ "Allow change password": "Разрешить изменение пароля",
5
+ "Allow edit profile": "Разрешить редактирование профиля",
6
+ "Are you sure you want to remove it?": "Вы уверены, что хотите удалить это?",
7
+ "Random password": "Случайный пароль",
8
+ "Remove user": "Удалить пользователя",
9
+ "User profile is not allowed to be edited": "Редактирование профиля пользователя запрещено",
10
+ "Users & Permissions": "Пользователи и права",
11
+ "Users manager": "Управление пользователями"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "Add user": "Add user",
3
+ "Add users": "Add users",
4
+ "Allow change password": "Allow change password",
5
+ "Allow edit profile": "Allow edit profile",
6
+ "Are you sure you want to remove it?": "Are you sure you want to remove it?",
7
+ "Random password": "Random password",
8
+ "Remove user": "Remove user",
9
+ "User profile is not allowed to be edited": "User profile is not allowed to be edited",
10
+ "Users & Permissions": "Users & Permissions",
11
+ "Users manager": "Users manager"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "Add user": "Add user",
3
+ "Add users": "Add users",
4
+ "Allow change password": "Allow change password",
5
+ "Allow edit profile": "Allow edit profile",
6
+ "Are you sure you want to remove it?": "Are you sure you want to remove it?",
7
+ "Random password": "Random password",
8
+ "Remove user": "Remove user",
9
+ "User profile is not allowed to be edited": "User profile is not allowed to be edited",
10
+ "Users & Permissions": "Users & Permissions",
11
+ "Users manager": "Users manager"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "Add user": "Add user",
3
+ "Add users": "Add users",
4
+ "Allow change password": "Allow change password",
5
+ "Allow edit profile": "Allow edit profile",
6
+ "Are you sure you want to remove it?": "Are you sure you want to remove it?",
7
+ "Random password": "Random password",
8
+ "Remove user": "Remove user",
9
+ "User profile is not allowed to be edited": "User profile is not allowed to be edited",
10
+ "Users & Permissions": "Users & Permissions",
11
+ "Users manager": "Users manager"
12
+ }
@@ -1,12 +1,12 @@
1
1
  {
2
- "Users & Permissions": "用户和权限",
3
- "Add users": "添加用户",
4
2
  "Add user": "添加用户",
5
- "Remove user": "移除用户",
3
+ "Add users": "添加用户",
4
+ "Allow change password": "允许修改密码",
5
+ "Allow edit profile": "允许修改个人资料",
6
6
  "Are you sure you want to remove it?": "你确定要移除吗?",
7
7
  "Random password": "随机密码",
8
- "Users manager": "用户管理",
9
- "Allow edit profile": "允许修改个人资料",
10
- "Allow change password": "允许修改密码",
11
- "User profile is not allowed to be edited": "用户资料不允许修改"
12
- }
8
+ "Remove user": "移除用户",
9
+ "User profile is not allowed to be edited": "用户资料不允许修改",
10
+ "Users & Permissions": "用户和权限",
11
+ "Users manager": "用户管理"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "Add user": "Add user",
3
+ "Add users": "Add users",
4
+ "Allow change password": "Allow change password",
5
+ "Allow edit profile": "Allow edit profile",
6
+ "Are you sure you want to remove it?": "Are you sure you want to remove it?",
7
+ "Random password": "Random password",
8
+ "Remove user": "Remove user",
9
+ "User profile is not allowed to be edited": "User profile is not allowed to be edited",
10
+ "Users & Permissions": "Users & Permissions",
11
+ "Users manager": "Users manager"
12
+ }
@@ -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": "2.0.0-alpha.5",
9
+ "version": "2.0.0-alpha.50",
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": "2.x",
28
31
  "@nocobase/utils": "2.x"
29
32
  },
30
- "gitHead": "943e035bbec27f9ecfe8ce8857955945f20976f3",
33
+ "gitHead": "a6eb64abf3632e116ad0b295a7f410270a1059d1",
31
34
  "keywords": [
32
35
  "Users & permissions"
33
36
  ]