@steedos/service-core-objects 3.0.13-beta.3 → 3.0.13-beta.32
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/main/default/objectTranslations/spaces.en/spaces.en.objectTranslation.yml +5 -0
- package/main/default/objectTranslations/spaces.zh-CN/spaces.zh-CN.objectTranslation.yml +5 -0
- package/main/default/objectTranslations/users.en/users.en.objectTranslation.yml +4 -0
- package/main/default/objectTranslations/users.zh-CN/users.zh-CN.objectTranslation.yml +5 -1
- package/main/default/objects/_base/base.object.js +6 -0
- package/main/default/objects/space_users/buttons/setPassword.button.js +24 -1
- package/main/default/objects/space_users/permissions/user.permission.yml +1 -0
- package/main/default/objects/spaces/spaces.object.yml +7 -0
- package/main/default/objects/users/users.object.yml +7 -0
- package/main/default/pages/space_users_list.page.amis.json +13 -3
- package/main/default/util/password.js +1 -0
- package/package.json +3 -3
|
@@ -10,6 +10,10 @@ fields:
|
|
|
10
10
|
label: Space Owner
|
|
11
11
|
help:
|
|
12
12
|
description:
|
|
13
|
+
password_expiry_days:
|
|
14
|
+
label: Password Expiry Days
|
|
15
|
+
help: Number of days after which users must change their password. Leave empty to disable password expiry.
|
|
16
|
+
description:
|
|
13
17
|
admins:
|
|
14
18
|
label: Admins
|
|
15
19
|
help:
|
|
@@ -52,6 +56,7 @@ fields:
|
|
|
52
56
|
description:
|
|
53
57
|
groups:
|
|
54
58
|
register_account: Register account
|
|
59
|
+
Security: Security
|
|
55
60
|
developer: Developer
|
|
56
61
|
listviews:
|
|
57
62
|
all:
|
|
@@ -10,6 +10,10 @@ fields:
|
|
|
10
10
|
label: 所有者
|
|
11
11
|
help:
|
|
12
12
|
description:
|
|
13
|
+
password_expiry_days:
|
|
14
|
+
label: 密码过期天数
|
|
15
|
+
help: 用户必须修改密码的天数。留空表示禁用密码过期。
|
|
16
|
+
description:
|
|
13
17
|
admins:
|
|
14
18
|
label: 管理员
|
|
15
19
|
help:
|
|
@@ -52,6 +56,7 @@ fields:
|
|
|
52
56
|
description:
|
|
53
57
|
groups:
|
|
54
58
|
register_account: 用户自助注册
|
|
59
|
+
Security: 安全
|
|
55
60
|
developer: 华炎云
|
|
56
61
|
listviews:
|
|
57
62
|
all:
|
|
@@ -12,6 +12,12 @@ var standardCustomizeSaveRequestAdaptor = `
|
|
|
12
12
|
delete newDoc.__filename;
|
|
13
13
|
delete newDoc.responseData;
|
|
14
14
|
delete newDoc.responseStatus;
|
|
15
|
+
console.log('newDoc.nav_schema', newDoc.nav_schema);
|
|
16
|
+
if(newDoc.nav_schema){
|
|
17
|
+
if(typeof newDoc.nav_schema !== 'string'){
|
|
18
|
+
newDoc.nav_schema = JSON.stringify(newDoc.nav_schema);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
15
21
|
}
|
|
16
22
|
else if(objectName === "permission_set"){
|
|
17
23
|
objectFields = ['name', 'label', 'type', 'license', 'lockout_interval', 'max_login_attempts', 'password_history', 'default_standard_buttons', 'assigned_apps'];
|
|
@@ -26,7 +26,7 @@ module.exports = {
|
|
|
26
26
|
type: 'post', async: false, data: JSON.stringify({
|
|
27
27
|
space_user_id: record_id,
|
|
28
28
|
space_id: userSession.spaceId,
|
|
29
|
-
password:
|
|
29
|
+
password: window.sha256(inputValue).toString()
|
|
30
30
|
})
|
|
31
31
|
});
|
|
32
32
|
if (!result) {
|
|
@@ -70,6 +70,29 @@ module.exports = {
|
|
|
70
70
|
autoComplete: "new-password",
|
|
71
71
|
className: "ant-input",
|
|
72
72
|
ref: inputRef,
|
|
73
|
+
style: {
|
|
74
|
+
WebkitBoxSizing: 'border-box',
|
|
75
|
+
boxSizing: 'border-box',
|
|
76
|
+
margin: 0,
|
|
77
|
+
padding: '4px 11px',
|
|
78
|
+
fontVariant: 'tabular-nums',
|
|
79
|
+
listStyle: 'none',
|
|
80
|
+
WebkitFontFeatureSettings: "'tnum'",
|
|
81
|
+
fontFeatureSettings: "'tnum'",
|
|
82
|
+
position: 'relative',
|
|
83
|
+
display: 'inline-block',
|
|
84
|
+
width: '100%',
|
|
85
|
+
height: '32px',
|
|
86
|
+
color: 'rgba(0, 0, 0, 0.65)',
|
|
87
|
+
fontSize: '14px',
|
|
88
|
+
lineHeight: 1.5,
|
|
89
|
+
backgroundColor: '#fff',
|
|
90
|
+
backgroundImage: 'none',
|
|
91
|
+
border: '1px solid #d9d9d9',
|
|
92
|
+
borderRadius: '4px',
|
|
93
|
+
WebkitTransition: 'all 0.3s',
|
|
94
|
+
transition: 'all 0.3s',
|
|
95
|
+
}
|
|
73
96
|
// onKeyDown: (event) => {
|
|
74
97
|
// // 禁用ctrlKey/metaKey+c/v/a,复制、剪切、粘贴、全选,其中metaKey是mac系统中相关操作的辅助键
|
|
75
98
|
// if ((event.ctrlKey || event.metaKey) && [67, 88, 86, 65].indexOf(event.keyCode) > -1) {
|
|
@@ -112,6 +112,13 @@ fields:
|
|
|
112
112
|
omit: false
|
|
113
113
|
hidden: false
|
|
114
114
|
sort_no: 110
|
|
115
|
+
password_expiry_days:
|
|
116
|
+
name: password_expiry_days
|
|
117
|
+
label: Password Expiry Days
|
|
118
|
+
type: number
|
|
119
|
+
inlineHelpText: Number of days after which users must change their password. Leave empty to disable password expiry.
|
|
120
|
+
sort_no: 120
|
|
121
|
+
min: 0
|
|
115
122
|
services:
|
|
116
123
|
name: services
|
|
117
124
|
type: object
|
|
@@ -126,6 +126,13 @@ fields:
|
|
|
126
126
|
omit: true
|
|
127
127
|
hidden: true
|
|
128
128
|
sort_no: 230
|
|
129
|
+
password_modified_at:
|
|
130
|
+
name: password_modified_at
|
|
131
|
+
label: Password Modified At
|
|
132
|
+
type: datetime
|
|
133
|
+
omit: true
|
|
134
|
+
hidden: true
|
|
135
|
+
sort_no: 235
|
|
129
136
|
primary_email_verified:
|
|
130
137
|
name: primary_email_verified
|
|
131
138
|
type: boolean
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
{
|
|
14
14
|
"type": "wrapper",
|
|
15
15
|
"size": "none",
|
|
16
|
-
"className": "space-users-list-sidebar-wrapper flex-shrink-0 min-w-[260px]
|
|
16
|
+
"className": "space-users-list-sidebar-wrapper flex-shrink-0 min-w-[260px] bg-white border-r lg:order-first lg:flex lg:flex-col ",
|
|
17
17
|
"body": [
|
|
18
18
|
{
|
|
19
19
|
"type": "input-tree",
|
|
@@ -277,8 +277,18 @@
|
|
|
277
277
|
".space-users-list-custom-page.space-users-list-pc.space-users-list-sidebar-open .space-users-list-sidebar-wrapper": {
|
|
278
278
|
"min-width": "260px"
|
|
279
279
|
},
|
|
280
|
-
".space-users-list-custom-page.space-users-list-pc .space-users-list-sidebar-wrapper .antd-Form-item
|
|
281
|
-
"
|
|
280
|
+
".space-users-list-custom-page.space-users-list-pc .space-users-list-sidebar-wrapper .antd-Form-item": {
|
|
281
|
+
"height": "100%"
|
|
282
|
+
},
|
|
283
|
+
".space-users-list-custom-page.space-users-list-pc .space-users-list-sidebar-wrapper .antd-TreeControl": {
|
|
284
|
+
"display": "flex",
|
|
285
|
+
"flex-direction": "column",
|
|
286
|
+
"height": "100%"
|
|
287
|
+
},
|
|
288
|
+
".space-users-list-custom-page.space-users-list-pc .space-users-list-sidebar-wrapper .antd-Tree": {
|
|
289
|
+
"flex": "1",
|
|
290
|
+
"overflow-y": "auto",
|
|
291
|
+
"max-height": "none !important"
|
|
282
292
|
}
|
|
283
293
|
}
|
|
284
294
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-core-objects",
|
|
3
|
-
"version": "3.0.13-beta.
|
|
3
|
+
"version": "3.0.13-beta.32",
|
|
4
4
|
"main": "package.service.js",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"steedos"
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@steedos/service-package-loader": "3.0.13-beta.
|
|
12
|
+
"@steedos/service-package-loader": "3.0.13-beta.32",
|
|
13
13
|
"bcryptjs": "^3.0.3",
|
|
14
14
|
"json2xls": "^0.1.2",
|
|
15
15
|
"lodash": "^4.17.21"
|
|
@@ -17,5 +17,5 @@
|
|
|
17
17
|
"description": "steedos package",
|
|
18
18
|
"repository": {},
|
|
19
19
|
"license": "MIT",
|
|
20
|
-
"gitHead": "
|
|
20
|
+
"gitHead": "a5e6973ccd624211f6a35dfe9f0013db260b7a0b"
|
|
21
21
|
}
|