sumba 2.6.0 → 2.7.1
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/extend/bajo/hook/waibu-rest-api@pre-parsing.js +2 -2
- package/extend/bajo/hook/waibu-static@pre-parsing.js +2 -2
- package/extend/bajo/hook/waibu@after-app-boot.js +3 -0
- package/extend/waibuDb/schema/site.json +1 -0
- package/extend/waibuMpa/extend/waibuAdmin/route/site.js +0 -24
- package/package.json +1 -1
- package/wiki/CHANGES.md +7 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import checkUserId from '../../../lib/check-user-id.js'
|
|
2
2
|
import checkTeam from '../../../lib/check-team.js'
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const preParsing = {
|
|
5
5
|
level: 10,
|
|
6
6
|
handler: async function (req, reply) {
|
|
7
7
|
await checkUserId.call(this, req, reply, 'waibuRestApi')
|
|
@@ -9,4 +9,4 @@ const onRequest = {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export default
|
|
12
|
+
export default preParsing
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import checkUserId from '../../../lib/check-user-id.js'
|
|
2
2
|
import checkTeam from '../../../lib/check-team.js'
|
|
3
3
|
|
|
4
|
-
const
|
|
4
|
+
const preParsing = {
|
|
5
5
|
level: 10,
|
|
6
6
|
handler: async function (req, reply) {
|
|
7
7
|
await checkUserId.call(this, req, reply, 'waibuStatic')
|
|
@@ -9,4 +9,4 @@ const onRequest = {
|
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export default
|
|
12
|
+
export default preParsing
|
|
@@ -6,13 +6,16 @@ async function afterAppBoot () {
|
|
|
6
6
|
await runHook(`${this.ns}:beforeBoot`)
|
|
7
7
|
this.log.trace('collectingRouteGuards')
|
|
8
8
|
await collectRoutes.call(this, 'secure')
|
|
9
|
+
await runHook(`${this.ns}:afterCollectSecureRoutes`, this.secureRoutes, this.secureNegRoutes)
|
|
9
10
|
this.log.trace('secureRoutes%d', this.secureRoutes.length)
|
|
10
11
|
this.log.trace('secureNegRoutes%d', this.secureNegRoutes.length)
|
|
11
12
|
await collectRoutes.call(this, 'anonymous')
|
|
13
|
+
await runHook(`${this.ns}:afterCollectAnonymousRoutes`, this.anonymousRoutes, this.anonymousNegRoutes)
|
|
12
14
|
this.log.trace('anonRoutes%d', this.anonymousRoutes.length)
|
|
13
15
|
this.log.trace('anonNegRoutes%d', this.anonymousNegRoutes.length)
|
|
14
16
|
this.log.trace('collectingTeamGuards')
|
|
15
17
|
await collectTeam.call(this)
|
|
18
|
+
await runHook(`${this.ns}:afterCollectTeamRoutes`, this.teamRoutes, this.teamNegRoutes)
|
|
16
19
|
this.log.trace('teamRoutes%d', this.teamRoutes.length)
|
|
17
20
|
this.log.trace('teamNegRoutes%d', this.teamNegRoutes.length)
|
|
18
21
|
await runHook(`${this.ns}:afterBoot`)
|
|
@@ -11,30 +11,6 @@ const manageSite = {
|
|
|
11
11
|
req.params.id = req.site.id
|
|
12
12
|
req.query.id = req.site.id
|
|
13
13
|
req.params.base = ''
|
|
14
|
-
/*
|
|
15
|
-
const options = {
|
|
16
|
-
schema: {
|
|
17
|
-
view: {
|
|
18
|
-
details: {
|
|
19
|
-
control: {
|
|
20
|
-
noBackBtn: true,
|
|
21
|
-
noCloneBtn: true,
|
|
22
|
-
noDeleteBtn: true,
|
|
23
|
-
editHref: '?edit=1'
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
edit: {
|
|
27
|
-
control: {
|
|
28
|
-
noDetailsBtn: true,
|
|
29
|
-
noCloneBtn: true,
|
|
30
|
-
noDeleteBtn: true,
|
|
31
|
-
backHref: '?details=1'
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
*/
|
|
38
14
|
return await action.call(this, { req, reply, model, template })
|
|
39
15
|
}
|
|
40
16
|
}
|
package/package.json
CHANGED
package/wiki/CHANGES.md
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
# Changes
|
|
2
2
|
|
|
3
|
+
## 2026-03-07
|
|
4
|
+
|
|
5
|
+
- [2.7.1] Bug fix on ```site``` attachment
|
|
6
|
+
|
|
3
7
|
## 2026-03-05
|
|
4
8
|
|
|
5
9
|
- [2.6.0] Update multiple endpoints to support dobo's transaction
|
|
6
10
|
- [2.6.0] Bug fix on ```profile.edit``` route
|
|
11
|
+
- [2.7.0] Add hook ```sumba:afterCollectSecureRoutes```
|
|
12
|
+
- [2.7.0] Add hook ```sumba:afterCollectAnonymousRoutes```
|
|
13
|
+
- [2.7.0] Add hook ```sumba:afterCollectTeamRoutes```
|
|
7
14
|
|
|
8
15
|
## 2026-03-02
|
|
9
16
|
|