sumba 1.1.13 → 1.1.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 -1
- package/bajoTemplate/partial/help/contact-form/form.html +1 -1
- package/package.json +1 -1
- package/bajoAdmin/coll/site-setting.json +0 -3
- package/bajoAdmin/coll/site.json +0 -8
- package/bajoAdmin/coll/user-setting.json +0 -3
- package/bajoAdmin/coll/user.json +0 -100
- package/bajoAdmin/mpa/lib/pre-handler.js +0 -11
- package/bajoAdmin/mpa/route/userman/add.js +0 -16
- package/bajoAdmin/mpa/route/userman/def.json +0 -7
- package/bajoAdmin/mpa/route/userman/delete.js +0 -12
- package/bajoAdmin/mpa/route/userman/detail.js +0 -15
- package/bajoAdmin/mpa/route/userman/edit.js +0 -16
- package/bajoAdmin/mpa/route/userman/list.js +0 -16
package/bajo/intl/en-US.json
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"aboutUs": "About Us",
|
|
36
36
|
"invalidActivationKey": "Invalid activation key",
|
|
37
37
|
"signoutNow": "Yes, sign me out now",
|
|
38
|
-
"signoutWarning": "You're about to sign out. This means your session will be cleared and you'll be asked for your credential again in case you want to access any protected pages and resources.<br /><br />Are your sure?",
|
|
38
|
+
"signoutWarning": "You\\'re about to sign out. This means your session will be cleared and you\\'ll be asked for your credential again in case you want to access any protected pages and resources.<br /><br />Are your sure?",
|
|
39
39
|
"clearInvalidKey": "Clear Invalid Fields",
|
|
40
40
|
"linkPasswordWillbeSent": "Link to reset password will be sent to your email",
|
|
41
41
|
"signinSuccessfully": "You've successfully signed in",
|
package/package.json
CHANGED
package/bajoAdmin/coll/site.json
DELETED
package/bajoAdmin/coll/user.json
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"onMenu": false,
|
|
3
|
-
"view": {
|
|
4
|
-
"hidden": ["password", "token"],
|
|
5
|
-
"list": {
|
|
6
|
-
"hidden": ["address1", "address2", "zipCode", "provinceState", "country", "website"],
|
|
7
|
-
"defSort": "username:1"
|
|
8
|
-
},
|
|
9
|
-
"detail": {
|
|
10
|
-
"layouts": [{
|
|
11
|
-
"title": "Meta Info",
|
|
12
|
-
"fields": [
|
|
13
|
-
"createdAt;small:6,medium:6",
|
|
14
|
-
"updatedAt;small:6,medium:6",
|
|
15
|
-
"id;small:6,medium:4",
|
|
16
|
-
"siteId;small:6,medium:4",
|
|
17
|
-
"status;small:12,medium:4"
|
|
18
|
-
]
|
|
19
|
-
}, {
|
|
20
|
-
"title": "account",
|
|
21
|
-
"fields": [
|
|
22
|
-
"username;small:6,medium:6",
|
|
23
|
-
"email;small:6,medium:6",
|
|
24
|
-
"firstName;small:6,medium:6",
|
|
25
|
-
"lastName;small:6,medium:6"
|
|
26
|
-
]
|
|
27
|
-
}, {
|
|
28
|
-
"title": "Address",
|
|
29
|
-
"fields": [
|
|
30
|
-
"address1",
|
|
31
|
-
"address2",
|
|
32
|
-
"city;small:6,medium:8",
|
|
33
|
-
"zipCode;small:6,medium:4",
|
|
34
|
-
"provinceState;small:6,medium:6",
|
|
35
|
-
"country;small:6,medium:6"
|
|
36
|
-
]
|
|
37
|
-
}, {
|
|
38
|
-
"title": "Contact",
|
|
39
|
-
"fields": [
|
|
40
|
-
"phone;small:6,medium:6",
|
|
41
|
-
"website;small:6,medium:6"
|
|
42
|
-
]
|
|
43
|
-
}, {
|
|
44
|
-
"title": "Social Media",
|
|
45
|
-
"fields": [
|
|
46
|
-
"twitter;small:6,medium:3",
|
|
47
|
-
"instagram;small:6,medium:3",
|
|
48
|
-
"facebook;small:6,medium:3",
|
|
49
|
-
"linkedIn;small:6,medium:3"
|
|
50
|
-
]
|
|
51
|
-
}]
|
|
52
|
-
},
|
|
53
|
-
"edit": {
|
|
54
|
-
"shown": ["password"],
|
|
55
|
-
"layouts": [{
|
|
56
|
-
"title": "Meta Info",
|
|
57
|
-
"fields": [
|
|
58
|
-
"createdAt;small:6,medium:6;formPlaintext",
|
|
59
|
-
"updatedAt;small:6,medium:6;formPlaintext",
|
|
60
|
-
"id;small:6,medium:4;formPlaintext",
|
|
61
|
-
"siteId;small:6,medium:4",
|
|
62
|
-
"status;small:12,medium:4"
|
|
63
|
-
]
|
|
64
|
-
}, {
|
|
65
|
-
"title": "account",
|
|
66
|
-
"fields": [
|
|
67
|
-
"username;small:6,medium:6",
|
|
68
|
-
"email;small:6,medium:6",
|
|
69
|
-
"password;small:12,medium:12",
|
|
70
|
-
"firstName;small:6,medium:6",
|
|
71
|
-
"lastName;small:6,medium:6"
|
|
72
|
-
]
|
|
73
|
-
}, {
|
|
74
|
-
"title": "Address",
|
|
75
|
-
"fields": [
|
|
76
|
-
"address1",
|
|
77
|
-
"address2",
|
|
78
|
-
"city;small:6,medium:8",
|
|
79
|
-
"zipCode;small:6,medium:4",
|
|
80
|
-
"provinceState;small:6,medium:6",
|
|
81
|
-
"country;small:6,medium:6"
|
|
82
|
-
]
|
|
83
|
-
}, {
|
|
84
|
-
"title": "Contact",
|
|
85
|
-
"fields": [
|
|
86
|
-
"phone;small:6,medium:6",
|
|
87
|
-
"website;small:6,medium:6"
|
|
88
|
-
]
|
|
89
|
-
}, {
|
|
90
|
-
"title": "Social Media",
|
|
91
|
-
"fields": [
|
|
92
|
-
"twitter;small:6,medium:3",
|
|
93
|
-
"instagram;small:6,medium:3",
|
|
94
|
-
"facebook;small:6,medium:3",
|
|
95
|
-
"linkedIn;small:6,medium:3"
|
|
96
|
-
]
|
|
97
|
-
}]
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
async function preHandler (req, reply) {
|
|
2
|
-
const { importModule, getConfig } = this.app.bajo
|
|
3
|
-
const cfg = getConfig('bajoAdmin', { full: true })
|
|
4
|
-
const buildCollMenu = await importModule(`${cfg.dir.pkg}/lib//build-model-menu.js`)
|
|
5
|
-
const buildPagesMenu = await importModule(`${cfg.dir.pkg}/lib//build-pages-menu.js`)
|
|
6
|
-
req.menu = req.menu ?? {}
|
|
7
|
-
req.menu.model = await buildCollMenu.call(this)
|
|
8
|
-
req.menu.pages = buildPagesMenu.call(this)
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export default preHandler
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import preHandler from '../../lib/pre-handler.js'
|
|
2
|
-
|
|
3
|
-
const userman = {
|
|
4
|
-
title: 'User Manager',
|
|
5
|
-
preHandler,
|
|
6
|
-
method: ['GET', 'POST'],
|
|
7
|
-
handler: async function (req, reply, ctx) {
|
|
8
|
-
const { importModule, getConfig, readConfig } = this.app.bajo
|
|
9
|
-
const { model, tpl } = await readConfig('./def.json')
|
|
10
|
-
const cfg = getConfig('bajoAdmin', { full: true })
|
|
11
|
-
const addHandler = await importModule(`${cfg.dir.pkg}/lib/crud/add-handler.js`)
|
|
12
|
-
return await addHandler.call(this, { req, reply, ctx, model, tpl })
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default userman
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
const userman = {
|
|
2
|
-
method: 'POST',
|
|
3
|
-
handler: async function (req, reply, ctx) {
|
|
4
|
-
const { importModule, getConfig, readConfig } = this.app.bajo
|
|
5
|
-
const { model, tpl } = await readConfig('./def.json')
|
|
6
|
-
const cfg = getConfig('bajoAdmin', { full: true })
|
|
7
|
-
const deleteHandler = await importModule(`${cfg.dir.pkg}/lib/crud/delete-handler.js`)
|
|
8
|
-
return await deleteHandler.call(this, { req, reply, ctx, model, tpl })
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export default userman
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import preHandler from '../../lib/pre-handler.js'
|
|
2
|
-
|
|
3
|
-
const userman = {
|
|
4
|
-
title: 'User Manager',
|
|
5
|
-
preHandler,
|
|
6
|
-
handler: async function (req, reply, ctx) {
|
|
7
|
-
const { importModule, getConfig, readConfig } = this.app.bajo
|
|
8
|
-
const { model, tpl } = await readConfig('./def.json')
|
|
9
|
-
const cfg = getConfig('bajoAdmin', { full: true })
|
|
10
|
-
const detailHandler = await importModule(`${cfg.dir.pkg}/lib/crud/detail-handler.js`)
|
|
11
|
-
return await detailHandler.call(this, { req, reply, ctx, model, tpl })
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export default userman
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import preHandler from '../../lib/pre-handler.js'
|
|
2
|
-
|
|
3
|
-
const userman = {
|
|
4
|
-
title: 'User Manager',
|
|
5
|
-
preHandler,
|
|
6
|
-
method: ['GET', 'POST'],
|
|
7
|
-
handler: async function (req, reply, ctx) {
|
|
8
|
-
const { importModule, getConfig, readConfig } = this.app.bajo
|
|
9
|
-
const { model, tpl } = await readConfig('./def.json')
|
|
10
|
-
const cfg = getConfig('bajoAdmin', { full: true })
|
|
11
|
-
const editHandler = await importModule(`${cfg.dir.pkg}/lib/crud/edit-handler.js`)
|
|
12
|
-
return await editHandler.call(this, { req, reply, ctx, model, tpl })
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default userman
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import preHandler from '../../lib/pre-handler.js'
|
|
2
|
-
|
|
3
|
-
const userman = {
|
|
4
|
-
title: 'User Manager',
|
|
5
|
-
preHandler,
|
|
6
|
-
config: { adminMenu: true },
|
|
7
|
-
handler: async function (req, reply, ctx) {
|
|
8
|
-
const { importModule, getConfig, readConfig } = this.app.bajo
|
|
9
|
-
const { model, tpl } = await readConfig('./def.json')
|
|
10
|
-
const cfg = getConfig('bajoAdmin', { full: true })
|
|
11
|
-
const listHandler = await importModule(`${cfg.dir.pkg}/lib/crud/list-handler.js`)
|
|
12
|
-
return await listHandler.call(this, { req, reply, ctx, model, tpl })
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export default userman
|