sumba 1.2.12 → 1.2.14
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/bajo/intl/en-US.json +1 -0
- package/bajo/intl/id.json +2 -1
- package/dobo/schema/user.json +0 -1
- package/index.js +13 -0
- package/package.json +1 -1
- package/sumba/route/secure.json +3 -0
- package/waibuDb/schema/team-user.js +21 -1
- package/waibuDb/schema/team.json +1 -1
- package/waibuDb/schema/user.json +2 -1
- package/waibuMpa/extend/waibuAdmin/route/session/@action.js +11 -0
- package/waibuRestApi/route/manage/team/model-builder.json +4 -0
- package/waibuRestApi/route/manage/user/model-builder.json +4 -0
- /package/waibuRestApi/route/{my-stuff → your-stuff}/api-key/get.js +0 -0
- /package/waibuRestApi/route/{my-stuff → your-stuff}/api-key/update.js +0 -0
- /package/waibuRestApi/route/{my-stuff → your-stuff}/change-password/update.js +0 -0
- /package/waibuRestApi/route/{my-stuff → your-stuff}/profile/get.js +0 -0
- /package/waibuRestApi/route/{my-stuff → your-stuff}/profile/update.js +0 -0
package/bajo/intl/en-US.json
CHANGED
package/bajo/intl/id.json
CHANGED
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"manageSite": "Kelola Situs",
|
|
100
100
|
"manageUser": "Kelola Pengguna",
|
|
101
101
|
"manageTeam": "Kelola Tim",
|
|
102
|
-
"manageTeamUser": "
|
|
102
|
+
"manageTeamUser": "Kelola Anggota Tim",
|
|
103
103
|
"resetUserPassword": "Reset Kata Sandi Pengguna",
|
|
104
104
|
"unknownUser": "Pengguna Tidak Dikenal/Tidak Valid",
|
|
105
105
|
"socialMedia": "Media Sosial",
|
|
@@ -108,6 +108,7 @@
|
|
|
108
108
|
"currentApiKey": "Kunci API Saat Ini",
|
|
109
109
|
"downloadList": "Daftar Unduh",
|
|
110
110
|
"manageDownload": "Kelola Unduhan",
|
|
111
|
+
"userSession": "Sesi Pengguna",
|
|
111
112
|
"field": {
|
|
112
113
|
"currentPassword": "Kata Sandi Saat Ini",
|
|
113
114
|
"newPassword": "Kata Sandi Baru",
|
package/dobo/schema/user.json
CHANGED
package/index.js
CHANGED
|
@@ -172,6 +172,11 @@ async function factory (pkgName) {
|
|
|
172
172
|
{ title: 'manageDownload', href: `waibuAdmin:/${prefix}/download/list` },
|
|
173
173
|
{ title: 'resetUserPassword', href: `waibuAdmin:/${prefix}/reset-user-password` }
|
|
174
174
|
]
|
|
175
|
+
}, {
|
|
176
|
+
title: 'misc',
|
|
177
|
+
children: [
|
|
178
|
+
{ title: 'userSession', href: `waibuAdmin:/${prefix}/session/list` }
|
|
179
|
+
]
|
|
175
180
|
}]
|
|
176
181
|
}
|
|
177
182
|
|
|
@@ -489,6 +494,14 @@ async function factory (pkgName) {
|
|
|
489
494
|
jobQueue.payload.data.download = { id: rec.data.id, file }
|
|
490
495
|
await push(jobQueue)
|
|
491
496
|
}
|
|
497
|
+
|
|
498
|
+
getApiKeyFromUserId = async id => {
|
|
499
|
+
const { hash } = this.app.bajoExtra
|
|
500
|
+
const { recordGet } = this.app.dobo
|
|
501
|
+
const options = { forceNoHidden: true, noHook: true, noCache: true, attachment: true, mimeType: true }
|
|
502
|
+
const resp = await recordGet('SumbaUser', id, options)
|
|
503
|
+
return await hash(resp.salt)
|
|
504
|
+
}
|
|
492
505
|
}
|
|
493
506
|
}
|
|
494
507
|
|
package/package.json
CHANGED
package/sumba/route/secure.json
CHANGED
|
@@ -4,7 +4,27 @@ async function teamUser () {
|
|
|
4
4
|
layout: [
|
|
5
5
|
{ name: 'meta', fields: ['id', 'createdAt', 'updatedAt'] },
|
|
6
6
|
{ name: 'general', fields: ['userId:6-md', 'teamId:6-md'] }
|
|
7
|
-
]
|
|
7
|
+
],
|
|
8
|
+
widget: {
|
|
9
|
+
userId: {
|
|
10
|
+
component: 'form-select-ext',
|
|
11
|
+
attr: {
|
|
12
|
+
remoteUrl: 'sumba.restapi:/manage/user',
|
|
13
|
+
remoteSearchField: 'username',
|
|
14
|
+
remoteLabelField: 'username',
|
|
15
|
+
remoteApiKey: true
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
teamId: {
|
|
19
|
+
component: 'form-select-ext',
|
|
20
|
+
attr: {
|
|
21
|
+
remoteUrl: 'sumba.restapi:/manage/team',
|
|
22
|
+
remoteSearchField: 'name',
|
|
23
|
+
remoteLabelField: 'name',
|
|
24
|
+
remoteApiKey: true
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
8
28
|
},
|
|
9
29
|
view: {
|
|
10
30
|
list: {
|
package/waibuDb/schema/team.json
CHANGED
package/waibuDb/schema/user.json
CHANGED
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
"stat": {
|
|
23
23
|
"aggregate": [
|
|
24
24
|
{ "fields": ["status"], "group": "status", "aggregate": ["count"] },
|
|
25
|
+
{ "fields": ["provider"], "group": "provider", "aggregate": ["count"] },
|
|
25
26
|
{ "fields": ["country"], "group": "country", "aggregate": ["count"] }
|
|
26
27
|
]
|
|
27
28
|
}
|
|
@@ -40,7 +41,7 @@
|
|
|
40
41
|
},
|
|
41
42
|
"add": {
|
|
42
43
|
"forceVisible": ["password"],
|
|
43
|
-
"hidden": ["id", "createdAt", "updatedAt"]
|
|
44
|
+
"hidden": ["id", "createdAt", "updatedAt", "provider"]
|
|
44
45
|
},
|
|
45
46
|
"edit": {
|
|
46
47
|
"forceVisible": ["password"],
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
const action = {
|
|
2
|
+
method: ['GET', 'POST'],
|
|
3
|
+
title: 'userSession',
|
|
4
|
+
handler: async function (req, reply) {
|
|
5
|
+
const { importModule } = this.app.bajo
|
|
6
|
+
const crudSkel = await importModule('waibuAdmin:/lib/crud-skel.js')
|
|
7
|
+
return await crudSkel.call(this, 'WmpaSession', req, reply)
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default action
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|