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