@next-core/brick-kit 2.184.2 → 2.185.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/dist/index.bundle.js +23 -3
- package/dist/index.bundle.js.map +1 -1
- package/dist/index.esm.js +23 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/types/core/Router.d.ts.map +1 -1
- package/dist/types/i18n/constants.d.ts +2 -1
- package/dist/types/i18n/constants.d.ts.map +1 -1
- package/dist/types/i18n/locales/en.d.ts.map +1 -1
- package/dist/types/i18n/locales/zh.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -178,6 +178,7 @@ var K;
|
|
|
178
178
|
K["NO_PERMISSION"] = "NO_PERMISSION";
|
|
179
179
|
K["OTHER_ERROR"] = "OTHER_ERROR";
|
|
180
180
|
K["GO_BACK_PREVIOUS_PAGE"] = "GO_BACK_PREVIOUS_PAGE";
|
|
181
|
+
K["GO_BACK_HOME_PAGE"] = "GO_BACK_HOME_PAGE";
|
|
181
182
|
})(K || (K = {}));
|
|
182
183
|
|
|
183
184
|
/**
|
|
@@ -1211,7 +1212,8 @@ var locale$7 = {
|
|
|
1211
1212
|
[K.LICENSE_EXPIRED]: "The license authorization has expired, please contact the platform administrator",
|
|
1212
1213
|
[K.NO_PERMISSION]: "Unauthorized access, unable to retrieve the required resources for this page",
|
|
1213
1214
|
[K.OTHER_ERROR]: "Oops! Something went wrong",
|
|
1214
|
-
[K.GO_BACK_PREVIOUS_PAGE]: "Go back to previous page"
|
|
1215
|
+
[K.GO_BACK_PREVIOUS_PAGE]: "Go back to previous page",
|
|
1216
|
+
[K.GO_BACK_HOME_PAGE]: "Back to home page"
|
|
1215
1217
|
};
|
|
1216
1218
|
var en = locale$7;
|
|
1217
1219
|
|
|
@@ -1227,7 +1229,8 @@ var locale$6 = {
|
|
|
1227
1229
|
[K.LICENSE_EXPIRED]: "License 授权失效,请联系平台管理员",
|
|
1228
1230
|
[K.NO_PERMISSION]: "没有权限,无法获取页面所需要的资源",
|
|
1229
1231
|
[K.OTHER_ERROR]: "糟糕!页面出现了一些问题",
|
|
1230
|
-
[K.GO_BACK_PREVIOUS_PAGE]: "回到上一页"
|
|
1232
|
+
[K.GO_BACK_PREVIOUS_PAGE]: "回到上一页",
|
|
1233
|
+
[K.GO_BACK_HOME_PAGE]: "回到首页"
|
|
1231
1234
|
};
|
|
1232
1235
|
var zh = locale$6;
|
|
1233
1236
|
|
|
@@ -11830,7 +11833,7 @@ class Router {
|
|
|
11830
11833
|
render(location) {
|
|
11831
11834
|
var _this3 = this;
|
|
11832
11835
|
return _asyncToGenerator$3(function* () {
|
|
11833
|
-
var _apiAnalyzer$getInsta, _storyboard$app, _this3$kernel$previou, _currentApp$config, _currentApp$config$_e, _this3$kernel$bootstr, _this3$kernel$bootstr2, _getLocalAppsTheme;
|
|
11836
|
+
var _apiAnalyzer$getInsta, _storyboard$app, _this3$kernel$previou, _currentApp$config, _currentApp$config$_e, _this3$kernel$bootstr, _this3$kernel$bootstr2, _getLocalAppsTheme, _storyboard$app$homep, _storyboard$app2;
|
|
11834
11837
|
_this3.state = "initial";
|
|
11835
11838
|
var renderId = _this3.renderId = uniqueId("render-id-");
|
|
11836
11839
|
resetAllInjected();
|
|
@@ -12265,6 +12268,23 @@ class Router {
|
|
|
12265
12268
|
useNewIllustration: true,
|
|
12266
12269
|
style: illustrationStyle
|
|
12267
12270
|
}, storyboard ? notFoundPageConfig : notFoundAppConfig),
|
|
12271
|
+
children: [{
|
|
12272
|
+
type: "a",
|
|
12273
|
+
properties: {
|
|
12274
|
+
textContent: i18next.t("".concat(NS_BRICK_KIT, ":").concat(K.GO_BACK_HOME_PAGE)),
|
|
12275
|
+
style: {
|
|
12276
|
+
display: "block",
|
|
12277
|
+
textAlign: "center"
|
|
12278
|
+
}
|
|
12279
|
+
},
|
|
12280
|
+
slotId: "content",
|
|
12281
|
+
events: {
|
|
12282
|
+
click: [{
|
|
12283
|
+
action: "history.push",
|
|
12284
|
+
args: [(_storyboard$app$homep = storyboard === null || storyboard === void 0 ? void 0 : (_storyboard$app2 = storyboard.app) === null || _storyboard$app2 === void 0 ? void 0 : _storyboard$app2.homepage) !== null && _storyboard$app$homep !== void 0 ? _storyboard$app$homep : "/"]
|
|
12285
|
+
}]
|
|
12286
|
+
}
|
|
12287
|
+
}],
|
|
12268
12288
|
events: {}
|
|
12269
12289
|
}], mountPoints.main);
|
|
12270
12290
|
unmountTree(mountPoints.portal);
|