@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.
- package/dist/externalVersion.js +8 -8
- package/dist/locale/de-DE.json +8 -8
- package/dist/locale/en-US.json +8 -5
- package/dist/locale/es-ES.json +12 -0
- package/dist/locale/fr-FR.json +12 -0
- package/dist/locale/hu-HU.json +12 -0
- package/dist/locale/id-ID.json +12 -0
- package/dist/locale/it-IT.json +8 -8
- package/dist/locale/ja-JP.json +9 -5
- package/dist/locale/ko-KR.json +12 -0
- package/dist/locale/nl-NL.json +10 -10
- package/dist/locale/pt-BR.json +12 -0
- package/dist/locale/ru-RU.json +12 -0
- package/dist/locale/tr-TR.json +12 -0
- package/dist/locale/uk-UA.json +12 -0
- package/dist/locale/vi-VN.json +12 -0
- package/dist/locale/zh-CN.json +8 -8
- package/dist/locale/zh-TW.json +12 -0
- package/dist/server/server.js +0 -15
- package/package.json +5 -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.50",
|
|
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.50",
|
|
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.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.
|
|
27
|
+
"@nocobase/actions": "2.0.0-alpha.50",
|
|
28
28
|
"sequelize": "6.35.2"
|
|
29
29
|
};
|
package/dist/locale/de-DE.json
CHANGED
|
@@ -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
|
-
"
|
|
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
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
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
|
+
}
|
package/dist/locale/en-US.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"Users & Permissions": "Users & Permissions",
|
|
3
|
-
"Add users": "Add users",
|
|
4
2
|
"Add user": "Add user",
|
|
5
|
-
"
|
|
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
|
-
"
|
|
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
|
+
}
|
package/dist/locale/it-IT.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"Users & Permissions": "Utenti e Permessi",
|
|
3
|
-
"Add users": "Aggiungi utenti",
|
|
4
2
|
"Add user": "Aggiungi utente",
|
|
5
|
-
"
|
|
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
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
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
|
+
}
|
package/dist/locale/ja-JP.json
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"Users & Permissions": "ユーザーと権限",
|
|
3
|
-
"Add users": "ユーザーを追加",
|
|
4
2
|
"Add user": "ユーザーを追加",
|
|
5
|
-
"
|
|
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
|
+
}
|
package/dist/locale/nl-NL.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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
|
+
}
|
package/dist/locale/zh-CN.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"Users & Permissions": "用户和权限",
|
|
3
|
-
"Add users": "添加用户",
|
|
4
2
|
"Add user": "添加用户",
|
|
5
|
-
"
|
|
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
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
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
|
+
}
|
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
|
@@ -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.
|
|
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": "
|
|
33
|
+
"gitHead": "a6eb64abf3632e116ad0b295a7f410270a1059d1",
|
|
31
34
|
"keywords": [
|
|
32
35
|
"Users & permissions"
|
|
33
36
|
]
|