@das-fed/upf-utils 6.4.0-dev.161 → 6.4.0-dev.163
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/index.js +553 -553
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/index.js +543 -543
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/index.js +542 -542
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/index.js +821 -835
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/index.js +542 -542
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/index.js +542 -542
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/index.js +542 -542
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/file/index.js +550 -550
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +835 -817
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +966 -948
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +542 -542
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js +836 -818
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/index.js +542 -542
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/index.js +818 -836
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/index.js +835 -817
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/index.js +818 -836
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js +542 -542
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js +542 -542
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/index.js +543 -543
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/index.js +543 -543
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/index.js +835 -817
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js +542 -542
- 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 +789 -803
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-tools/handle-data/index.js +58 -53
- package/common-tools/handle-data/index.js.gz +0 -0
- package/create-api-service/index.js +789 -807
- package/create-api-service/index.js.gz +0 -0
- package/package.json +4 -4
|
Binary file
|
|
@@ -1,65 +1,70 @@
|
|
|
1
|
-
const
|
|
1
|
+
const E = (n) => n === null || typeof n > "u" || n === "", f = [
|
|
2
2
|
"zh-CN",
|
|
3
3
|
"zh-TW",
|
|
4
4
|
"zh-HK",
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"tr"
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
5
|
+
"zh-MO",
|
|
6
|
+
"en-US",
|
|
7
|
+
"ru-RU",
|
|
8
|
+
"sv-SE",
|
|
9
|
+
"fr-FR",
|
|
10
|
+
"de-DE",
|
|
11
|
+
"ar-SA",
|
|
12
|
+
"es-ES",
|
|
13
|
+
"it-IT",
|
|
14
|
+
"pt-PT",
|
|
15
|
+
"nl-NL",
|
|
16
|
+
"vi-VN",
|
|
17
|
+
"tr-TR"
|
|
18
|
+
], d = {
|
|
19
|
+
3: "zh-HK",
|
|
20
|
+
4: "zh-TW",
|
|
21
|
+
6: "ru-RU",
|
|
22
|
+
7: "sv-SE",
|
|
23
|
+
8: "fr-FR",
|
|
24
|
+
9: "de-DE",
|
|
25
|
+
10: "ar-SA",
|
|
26
|
+
11: "es-ES",
|
|
27
|
+
12: "it-IT",
|
|
28
|
+
13: "pt-PT",
|
|
29
|
+
14: "nl-NL",
|
|
30
|
+
15: "vi-VN",
|
|
31
|
+
16: "tr-TR"
|
|
32
|
+
}, h = (n) => {
|
|
33
|
+
const r = [...n, ...Object.values(d).filter((t) => n.includes(t))];
|
|
34
|
+
return f.filter((t) => r.includes(t) || Object.entries(d).some(
|
|
35
|
+
([s, a]) => n.includes(s) && t === a || n.includes(a) && t === a
|
|
36
|
+
));
|
|
37
|
+
}, U = ["zh-CN", "zh-MO", "en-US", "10"], b = async (n) => {
|
|
24
38
|
try {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
39
|
+
let { currentLang: r = "zh-CN", baseUrl: t = "/", appName: s = "base", isPullBack: a = !1, urlObj: e = { frontEndUrl: "", backEndUrl: "" } } = n || {}, l = {
|
|
40
|
+
frontEnd: null,
|
|
41
|
+
backMsg: null
|
|
42
|
+
}, o = (e == null ? void 0 : e.frontEndUrl) || `${t}web-front-end/i18n/${s}_${r}.js`, c = (e == null ? void 0 : e.backEndUrl) || `${t}web-back-end/i18n/${s}_${r}.js`;
|
|
43
|
+
const i = await import(
|
|
44
|
+
/* @vite-ignore */
|
|
45
|
+
`${o}`
|
|
46
|
+
);
|
|
47
|
+
if (l.frontEnd = i.default || null, a || e != null && e.backEndUrl) {
|
|
48
|
+
const u = await import(
|
|
49
|
+
/* @vite-ignore */
|
|
50
|
+
`${c}`
|
|
51
|
+
);
|
|
52
|
+
l.backMsg = u.default || null;
|
|
29
53
|
}
|
|
30
|
-
return
|
|
54
|
+
return l;
|
|
31
55
|
} catch {
|
|
32
|
-
return !1;
|
|
33
56
|
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
try {
|
|
37
|
-
let { pathname: t = "front-end", urlPrefix: n = "", langArr: r = ["zh-CN", "en"] } = e || {}, s = {}, i = u(f);
|
|
38
|
-
for (let a of i)
|
|
39
|
-
if (!s[a]) {
|
|
40
|
-
let o = `${n}i18n/${t}/${a}.js`;
|
|
41
|
-
if (!await h(o))
|
|
42
|
-
continue;
|
|
43
|
-
const l = await import(
|
|
44
|
-
/* @vite-ignore */
|
|
45
|
-
`${n}i18n/${t}/${a}.js`
|
|
46
|
-
);
|
|
47
|
-
s[a] = (l == null ? void 0 : l.default) || null;
|
|
48
|
-
}
|
|
49
|
-
return s;
|
|
50
|
-
} catch {
|
|
51
|
-
}
|
|
52
|
-
}, g = async (e = "front-end") => {
|
|
53
|
-
let t = {}, r = await import(
|
|
57
|
+
}, p = async (n = "front-end") => {
|
|
58
|
+
let r = {}, s = await import(
|
|
54
59
|
/* @vite-ignore */
|
|
55
|
-
`/i18n/${
|
|
60
|
+
`/i18n/${n}/global.js`
|
|
56
61
|
);
|
|
57
|
-
return
|
|
62
|
+
return r = (s == null ? void 0 : s.default) || {}, r;
|
|
58
63
|
};
|
|
59
64
|
export {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
U as getCurrentSysLang,
|
|
66
|
+
h as getSysLangArr,
|
|
67
|
+
p as handleGlobalI18n,
|
|
68
|
+
b as handleI18nData,
|
|
69
|
+
E as isEmpty
|
|
65
70
|
};
|
|
Binary file
|