@ibiz-template/runtime 0.7.41-alpha.146 → 0.7.41-alpha.147
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 +23 -10
- package/dist/index.system.min.js +1 -1
- package/out/app-hub.d.ts.map +1 -1
- package/out/app-hub.js +18 -8
- package/out/locale/en/index.d.ts +1 -0
- package/out/locale/en/index.d.ts.map +1 -1
- package/out/locale/en/index.js +1 -0
- package/out/locale/zh-CN/index.d.ts +1 -0
- package/out/locale/zh-CN/index.d.ts.map +1 -1
- package/out/locale/zh-CN/index.js +1 -0
- package/package.json +3 -3
- package/src/app-hub.ts +17 -6
- package/src/locale/en/index.ts +2 -0
- package/src/locale/zh-CN/index.ts +2 -0
package/dist/index.esm.js
CHANGED
|
@@ -88894,18 +88894,29 @@ var AppHub = class {
|
|
|
88894
88894
|
* @memberof AppHub
|
|
88895
88895
|
*/
|
|
88896
88896
|
async loadMainExtensionPlugin() {
|
|
88897
|
-
var _a3;
|
|
88897
|
+
var _a3, _b2;
|
|
88898
88898
|
const { enableExternalPlugin, concurrentPluginCount } = ibiz.appUtil.getRuntimeDevToolConfig();
|
|
88899
88899
|
if (!enableExternalPlugin) {
|
|
88900
88900
|
return;
|
|
88901
88901
|
}
|
|
88902
88902
|
let pluginListLength = 0;
|
|
88903
|
-
const
|
|
88904
|
-
|
|
88905
|
-
|
|
88906
|
-
|
|
88907
|
-
|
|
88908
|
-
|
|
88903
|
+
const extensionUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.remoteModelUrl, "/extension");
|
|
88904
|
+
try {
|
|
88905
|
+
const res = await ibiz.net.axios({
|
|
88906
|
+
method: "get",
|
|
88907
|
+
url: extensionUrl
|
|
88908
|
+
});
|
|
88909
|
+
if (res.status === 200 && res.data) {
|
|
88910
|
+
pluginListLength = Number(res.data);
|
|
88911
|
+
}
|
|
88912
|
+
} catch (error) {
|
|
88913
|
+
ibiz.log.error(
|
|
88914
|
+
ibiz.i18n.t("runtime.hub.loadExtensionCountFail", {
|
|
88915
|
+
targetUrl: extensionUrl,
|
|
88916
|
+
error: (_a3 = error == null ? void 0 : error.message) != null ? _a3 : String(error)
|
|
88917
|
+
})
|
|
88918
|
+
);
|
|
88919
|
+
return;
|
|
88909
88920
|
}
|
|
88910
88921
|
if (pluginListLength === 0)
|
|
88911
88922
|
return;
|
|
@@ -88935,7 +88946,7 @@ var AppHub = class {
|
|
|
88935
88946
|
if (errorResults && errorResults.length > 0) {
|
|
88936
88947
|
ibiz.log.warn(
|
|
88937
88948
|
ibiz.i18n.t("runtime.hub.noExtensionPlugin", {
|
|
88938
|
-
targetUrl: ((
|
|
88949
|
+
targetUrl: ((_b2 = errorResults[0].data) == null ? void 0 : _b2.targetUrl) || "Unknown"
|
|
88939
88950
|
})
|
|
88940
88951
|
);
|
|
88941
88952
|
}
|
|
@@ -92838,7 +92849,8 @@ var en = {
|
|
|
92838
92849
|
hub: {
|
|
92839
92850
|
failedParse: "View parameter {paramsName} failed to parse: {error}",
|
|
92840
92851
|
noExist: "View [{id}] does not exist",
|
|
92841
|
-
noExtensionPlugin: "Attempted to load the extension plugin from path [{targetUrl}], but no extension plugin was found"
|
|
92852
|
+
noExtensionPlugin: "Attempted to load the extension plugin from path [{targetUrl}], but no extension plugin was found",
|
|
92853
|
+
loadExtensionCountFail: "Failed to get the number of main app extension plugins, request path [{targetUrl}]: {error}"
|
|
92842
92854
|
},
|
|
92843
92855
|
logicScheduler: {
|
|
92844
92856
|
executor: {
|
|
@@ -93551,7 +93563,8 @@ var zhCn = {
|
|
|
93551
93563
|
hub: {
|
|
93552
93564
|
failedParse: "\u89C6\u56FE\u53C2\u6570 {paramsName} \u89E3\u6790\u5931\u8D25\uFF1A{error}",
|
|
93553
93565
|
noExist: "\u89C6\u56FE[{id}]\u4E0D\u5B58\u5728",
|
|
93554
|
-
noExtensionPlugin: "\u5C1D\u8BD5\u52A0\u8F7D\u8DEF\u5F84[{targetUrl}]\u6269\u5C55\u63D2\u4EF6\uFF0C\u6682\u672A\u627E\u5230\u6269\u5C55\u63D2\u4EF6"
|
|
93566
|
+
noExtensionPlugin: "\u5C1D\u8BD5\u52A0\u8F7D\u8DEF\u5F84[{targetUrl}]\u6269\u5C55\u63D2\u4EF6\uFF0C\u6682\u672A\u627E\u5230\u6269\u5C55\u63D2\u4EF6",
|
|
93567
|
+
loadExtensionCountFail: "\u83B7\u53D6\u4E3B\u5E94\u7528\u6269\u5C55\u63D2\u4EF6\u603B\u6570\u5931\u8D25\uFF0C\u8BF7\u6C42\u8DEF\u5F84[{targetUrl}]\uFF1A{error}"
|
|
93555
93568
|
},
|
|
93556
93569
|
logicScheduler: {
|
|
93557
93570
|
executor: {
|