@das-fed/upf-utils 6.4.0-dev.165 → 6.4.0-dev.166
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/api-services/modules/app-manage/index.js +836 -818
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +836 -818
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +836 -818
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +814 -832
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/file/index.js +932 -950
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +831 -817
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +971 -953
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +1094 -1076
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/link/index.js +634 -630
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +818 -836
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +818 -836
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +820 -838
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +820 -838
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +836 -818
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +836 -818
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/index.js +818 -836
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js +807 -789
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-tools/handle-data/index.js +31 -24
- package/common-tools/handle-data/index.js.gz +0 -0
- package/create-api-service/index.js +802 -788
- package/create-api-service/index.js.gz +0 -0
- package/package.json +4 -4
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const b = (n) => n === null || typeof n > "u" || n === "", U = [
|
|
2
2
|
"zh-CN",
|
|
3
3
|
"zh-TW",
|
|
4
4
|
"zh-HK",
|
|
@@ -15,7 +15,7 @@ const E = (n) => n === null || typeof n > "u" || n === "", f = [
|
|
|
15
15
|
"nl-NL",
|
|
16
16
|
"vi-VN",
|
|
17
17
|
"tr-TR"
|
|
18
|
-
],
|
|
18
|
+
], c = {
|
|
19
19
|
3: "zh-HK",
|
|
20
20
|
4: "zh-TW",
|
|
21
21
|
6: "ru-RU",
|
|
@@ -29,42 +29,49 @@ const E = (n) => n === null || typeof n > "u" || n === "", f = [
|
|
|
29
29
|
14: "nl-NL",
|
|
30
30
|
15: "vi-VN",
|
|
31
31
|
16: "tr-TR"
|
|
32
|
-
},
|
|
33
|
-
const
|
|
34
|
-
return
|
|
35
|
-
([s, a]) => n.includes(s) &&
|
|
32
|
+
}, p = (n) => {
|
|
33
|
+
const t = [...n, ...Object.values(c).filter((e) => n.includes(e))];
|
|
34
|
+
return U.filter((e) => t.includes(e) || Object.entries(c).some(
|
|
35
|
+
([s, a]) => n.includes(s) && e === a || n.includes(a) && e === a
|
|
36
36
|
));
|
|
37
|
-
},
|
|
37
|
+
}, $ = ["zh-CN", "zh-MO", "en-US", "10"], m = async (n) => {
|
|
38
38
|
try {
|
|
39
|
-
let { currentLang:
|
|
39
|
+
let { currentLang: t = "zh-CN", baseUrl: e = "/", appName: s = "base", isPullBack: a = !1, urlObj: r = { frontEndUrl: "", backEndUrl: "" } } = n || {}, d = {
|
|
40
40
|
frontEnd: null,
|
|
41
41
|
backMsg: null
|
|
42
|
-
},
|
|
43
|
-
const
|
|
42
|
+
}, u = (r == null ? void 0 : r.frontEndUrl) || `${e}web-front-end/i18n/${s}_${t}.js`, i = (r == null ? void 0 : r.backEndUrl) || `${e}web-back-end/i18n/${s}_${t}.js`;
|
|
43
|
+
const f = await import(
|
|
44
44
|
/* @vite-ignore */
|
|
45
|
-
`${
|
|
45
|
+
`${u}`
|
|
46
46
|
);
|
|
47
|
-
if (
|
|
48
|
-
const
|
|
47
|
+
if (d.frontEnd = f.default || null, a || r != null && r.backEndUrl) {
|
|
48
|
+
const l = await import(
|
|
49
49
|
/* @vite-ignore */
|
|
50
|
-
`${
|
|
50
|
+
`${i}`
|
|
51
51
|
);
|
|
52
|
-
|
|
52
|
+
d.backMsg = l.default || null;
|
|
53
53
|
}
|
|
54
|
-
|
|
54
|
+
const E = /* @__PURE__ */ Object.assign({});
|
|
55
|
+
let h = `/node_modules/@das-fed/upf-ui/dist/web-front-end/i18n/dasui_${t}.js`;
|
|
56
|
+
const o = E[h] || null;
|
|
57
|
+
if (o) {
|
|
58
|
+
let l = await o();
|
|
59
|
+
d.frontEnd = { ...d.frontEnd, ...l.default };
|
|
60
|
+
}
|
|
61
|
+
return d;
|
|
55
62
|
} catch {
|
|
56
63
|
}
|
|
57
|
-
},
|
|
58
|
-
let
|
|
64
|
+
}, S = async (n = "front-end") => {
|
|
65
|
+
let t = {}, s = await import(
|
|
59
66
|
/* @vite-ignore */
|
|
60
67
|
`/i18n/${n}/global.js`
|
|
61
68
|
);
|
|
62
|
-
return
|
|
69
|
+
return t = (s == null ? void 0 : s.default) || {}, t;
|
|
63
70
|
};
|
|
64
71
|
export {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
72
|
+
$ as getCurrentSysLang,
|
|
73
|
+
p as getSysLangArr,
|
|
74
|
+
S as handleGlobalI18n,
|
|
75
|
+
m as handleI18nData,
|
|
76
|
+
b as isEmpty
|
|
70
77
|
};
|
|
Binary file
|