@next-core/brick-kit 2.164.2 → 2.164.3

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.esm.js CHANGED
@@ -11112,7 +11112,7 @@ class Router {
11112
11112
  render(location) {
11113
11113
  var _this3 = this;
11114
11114
  return _asyncToGenerator$3(function* () {
11115
- var _apiAnalyzer$getInsta, _currentApp$config, _currentApp$config$_e, _getLocalAppsTheme;
11115
+ var _apiAnalyzer$getInsta, _currentApp$config, _currentApp$config$_e, _this3$kernel$bootstr, _this3$kernel$bootstr2, _getLocalAppsTheme;
11116
11116
  _this3.state = "initial";
11117
11117
  _this3.renderId = uniqueId("render-id-");
11118
11118
  resetAllInjected();
@@ -11189,9 +11189,12 @@ class Router {
11189
11189
  var layoutType = (currentApp === null || currentApp === void 0 ? void 0 : currentApp.layoutType) || "console";
11190
11190
  var faviconElement = document.querySelector("link[rel='shortcut icon']");
11191
11191
  var customFaviconHref = currentApp === null || currentApp === void 0 ? void 0 : (_currentApp$config = currentApp.config) === null || _currentApp$config === void 0 ? void 0 : (_currentApp$config$_e = _currentApp$config._easyops_app_favicon) === null || _currentApp$config$_e === void 0 ? void 0 : _currentApp$config$_e.default;
11192
+ var settingsFaviconHref = (_this3$kernel$bootstr = _this3.kernel.bootstrapData.settings) === null || _this3$kernel$bootstr === void 0 ? void 0 : (_this3$kernel$bootstr2 = _this3$kernel$bootstr.brand) === null || _this3$kernel$bootstr2 === void 0 ? void 0 : _this3$kernel$bootstr2.favicon;
11192
11193
  if (faviconElement) {
11193
11194
  if (customFaviconHref) {
11194
11195
  faviconElement.href = /^(?:https?|data):|^\//.test(customFaviconHref) ? customFaviconHref : imagesFactory(currentApp.id, currentApp.isBuildPush).get(customFaviconHref);
11196
+ } else if (settingsFaviconHref) {
11197
+ faviconElement.href = settingsFaviconHref;
11195
11198
  } else {
11196
11199
  faviconElement.href = _this3.kernel.getOriginFaviconHref();
11197
11200
  }
@@ -11359,7 +11362,7 @@ class Router {
11359
11362
  // When we have a matched route other than an abstract route,
11360
11363
  // we say *page found*, otherwise, *page not found*.
11361
11364
  if (route && route.type !== "routes" || failed) {
11362
- var _this3$kernel$bootstr, _this3$kernel$bootstr2, _getAuth$license;
11365
+ var _this3$kernel$bootstr3, _this3$kernel$bootstr4, _getAuth$license;
11363
11366
  yield pendingTask;
11364
11367
  main.length > 0 && mountTree(main, mountPoints.main);
11365
11368
  portal.length > 0 && mountTree(portal, mountPoints.portal);
@@ -11398,7 +11401,7 @@ class Router {
11398
11401
  var {
11399
11402
  loadTime = 0,
11400
11403
  loadInfoPage
11401
- } = (_this3$kernel$bootstr = (_this3$kernel$bootstr2 = _this3.kernel.bootstrapData.settings) === null || _this3$kernel$bootstr2 === void 0 ? void 0 : _this3$kernel$bootstr2.misc) !== null && _this3$kernel$bootstr !== void 0 ? _this3$kernel$bootstr : {};
11404
+ } = (_this3$kernel$bootstr3 = (_this3$kernel$bootstr4 = _this3.kernel.bootstrapData.settings) === null || _this3$kernel$bootstr4 === void 0 ? void 0 : _this3$kernel$bootstr4.misc) !== null && _this3$kernel$bootstr3 !== void 0 ? _this3$kernel$bootstr3 : {};
11402
11405
  if (currentApp.isBuildPush && loadTime > 0 && renderTime > loadTime) {
11403
11406
  var getSecond = time => Math.floor(time * 100) / 100;
11404
11407
  tipsDetail.push(_objectSpread({