@next-core/brick-kit 2.159.0 → 2.159.2
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/dist/index.bundle.js +9 -1
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +10 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/types/core/Kernel.d.ts +1 -0
- package/dist/types/core/Kernel.d.ts.map +1 -1
- package/dist/types/core/Router.d.ts.map +1 -1
- package/dist/types/core/Runtime.d.ts.map +1 -1
- package/dist/types/internal/menu.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.bundle.js
CHANGED
|
@@ -2910,6 +2910,8 @@
|
|
|
2910
2910
|
app
|
|
2911
2911
|
} = _yield$fetchMenuById,
|
|
2912
2912
|
restMenuData = _objectWithoutProperties__default["default"](_yield$fetchMenuById, _excluded3);
|
|
2913
|
+
var usedActions = brickUtils.scanPermissionActionsInAny([items, restMenuData]);
|
|
2914
|
+
yield validatePermissions(usedActions);
|
|
2913
2915
|
var appsRequireI18nFulfilled = new Set();
|
|
2914
2916
|
var rootAppId = app[0].appId;
|
|
2915
2917
|
if (rootAppId !== context.app.id && !restMenuData[symbolMenuI18nNamespace]) {
|
|
@@ -3395,7 +3397,9 @@
|
|
|
3395
3397
|
var _kernel$bootstrapData3;
|
|
3396
3398
|
return Object.assign({
|
|
3397
3399
|
base_title: "DevOps 管理专家"
|
|
3398
|
-
}, (_kernel$bootstrapData3 = kernel.bootstrapData.settings) === null || _kernel$bootstrapData3 === void 0 ? void 0 : _kernel$bootstrapData3.brand)
|
|
3400
|
+
}, (_kernel$bootstrapData3 = kernel.bootstrapData.settings) === null || _kernel$bootstrapData3 === void 0 ? void 0 : _kernel$bootstrapData3.brand, kernel.getOriginFaviconHref() ? {
|
|
3401
|
+
favicon: kernel.getOriginFaviconHref()
|
|
3402
|
+
} : {});
|
|
3399
3403
|
}
|
|
3400
3404
|
getLaunchpadSettings() {
|
|
3401
3405
|
var _kernel$bootstrapData4;
|
|
@@ -8789,6 +8793,9 @@
|
|
|
8789
8793
|
return filterMenus;
|
|
8790
8794
|
})();
|
|
8791
8795
|
}
|
|
8796
|
+
setOriginFaviconHref(href) {
|
|
8797
|
+
this.originFaviconHref = href;
|
|
8798
|
+
}
|
|
8792
8799
|
getOriginFaviconHref() {
|
|
8793
8800
|
return this.originFaviconHref;
|
|
8794
8801
|
}
|
|
@@ -10892,6 +10899,7 @@
|
|
|
10892
10899
|
} else {
|
|
10893
10900
|
faviconElement.href = _this3.kernel.getOriginFaviconHref();
|
|
10894
10901
|
}
|
|
10902
|
+
_this3.kernel.setOriginFaviconHref(faviconElement.href);
|
|
10895
10903
|
}
|
|
10896
10904
|
setTheme(((_getLocalAppsTheme = getLocalAppsTheme()) === null || _getLocalAppsTheme === void 0 ? void 0 : _getLocalAppsTheme[currentApp === null || currentApp === void 0 ? void 0 : currentApp.id]) || (currentApp === null || currentApp === void 0 ? void 0 : currentApp.theme) || "light");
|
|
10897
10905
|
setMode("default");
|