@blocklet/meta 1.16.28-beta-8acda0e6 → 1.16.28-beta-b30865b3
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.
|
@@ -498,14 +498,8 @@ function parseNavigation(blocklet = {}, options = {}) {
|
|
|
498
498
|
// 将 footer-social, footer-bottom, sessionManager, userCenter 的二级菜单提升为一级菜单
|
|
499
499
|
const levelUpNavigation = splitNavigation.reduce((all, cur) => {
|
|
500
500
|
const shouldLevelUp = ['bottom', 'social', 'sessionManager', 'userCenter'].includes(cur.section);
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
// 同时兼容非容器模式(root-blocklet 不会出现在 components 中)
|
|
504
|
-
const rootBlocklet = components.find((item) => item.link === '/');
|
|
505
|
-
if (rootBlocklet && cur.id === rootBlocklet.did) {
|
|
506
|
-
isRoot = true;
|
|
507
|
-
}
|
|
508
|
-
if (shouldLevelUp || isRoot) {
|
|
501
|
+
// 调整设计,不再将 root-blocklet 提升为一级菜单, 但是保留 footer-social, footer-bottom, sessionManager, userCenter 提升为一级菜单
|
|
502
|
+
if (shouldLevelUp) {
|
|
509
503
|
if (cur.items && cur.items.length > 0) {
|
|
510
504
|
all.push(...cur.items.map((x) => {
|
|
511
505
|
const { section } = cur;
|
|
@@ -515,10 +509,6 @@ function parseNavigation(blocklet = {}, options = {}) {
|
|
|
515
509
|
}));
|
|
516
510
|
return all;
|
|
517
511
|
}
|
|
518
|
-
// root blocklet 不应该出现在菜单中
|
|
519
|
-
if (isRoot) {
|
|
520
|
-
return all;
|
|
521
|
-
}
|
|
522
512
|
}
|
|
523
513
|
all.push(cur);
|
|
524
514
|
return all;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.16.28-beta-
|
|
6
|
+
"version": "1.16.28-beta-b30865b3",
|
|
7
7
|
"description": "Library to parse/validate/fix blocklet meta",
|
|
8
8
|
"main": "./lib/index.js",
|
|
9
9
|
"typings": "./lib/index.d.ts",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"author": "wangshijun <wangshijun2020@gmail.com> (http://github.com/wangshijun)",
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@abtnode/constant": "1.16.28-beta-
|
|
28
|
+
"@abtnode/constant": "1.16.28-beta-b30865b3",
|
|
29
29
|
"@arcblock/did": "1.18.123",
|
|
30
30
|
"@arcblock/did-ext": "1.18.123",
|
|
31
31
|
"@arcblock/did-util": "1.18.123",
|
|
32
32
|
"@arcblock/jwt": "1.18.123",
|
|
33
|
-
"@blocklet/constant": "1.16.28-beta-
|
|
33
|
+
"@blocklet/constant": "1.16.28-beta-b30865b3",
|
|
34
34
|
"@ocap/asset": "1.18.123",
|
|
35
35
|
"@ocap/mcrypto": "1.18.123",
|
|
36
36
|
"@ocap/types": "1.18.123",
|
|
@@ -79,5 +79,5 @@
|
|
|
79
79
|
"ts-node": "^10.9.1",
|
|
80
80
|
"typescript": "^5.0.4"
|
|
81
81
|
},
|
|
82
|
-
"gitHead": "
|
|
82
|
+
"gitHead": "93a071e3074207fa721a2198b1281f74d666cbbd"
|
|
83
83
|
}
|