@das-fed/web 6.4.0-dev.7 → 6.4.0-dev.71
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/esm-map.json +4 -1
- package/index-0ov_NXnz.js +82 -0
- package/index-0ov_NXnz.js.gz +0 -0
- package/index-B-PFV4G5.js +13651 -0
- package/index-B-PFV4G5.js.gz +0 -0
- package/{packages/main-app-framework/index-Cg3QA-m6.js → index-BttHmPh0.js} +1 -1
- package/index.js +24 -21
- package/package.json +8 -6
- package/packages/create-das-web-app/index.js +48 -805
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/index.js +76 -31
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js +479 -441
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css +2 -2
- package/packages/layout/style.css.gz +0 -0
- package/packages/main-app-framework/index-BJcosks8.js +12269 -0
- package/packages/main-app-framework/index-BJcosks8.js.gz +0 -0
- package/{index-Bxc6TFIP.js → packages/main-app-framework/index-D40_ihAE.js} +1 -1
- package/packages/main-app-framework/index-DGvGNdo-.js +82 -0
- package/packages/main-app-framework/index-DGvGNdo-.js.gz +0 -0
- package/packages/main-app-framework/index.js +3 -2
- package/packages/main-app-framework/style.css +1 -1
- package/packages/main-app-framework/style.css.gz +0 -0
- package/packages/micro-frontend/index.js +181 -164
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/style/style.css +1 -1
- package/packages/style/style.css.gz +0 -0
- package/style.css +2 -2
- package/style.css.gz +0 -0
- package/types/create-das-web-app/index.d.ts +1 -1
- package/types/i18n/global.d.ts +118 -0
- package/types/i18n/index.d.ts +6 -4
- package/types/layout/index.d.ts +1 -1
- package/types/layout/store/index.d.ts +6 -1
- package/types/layout/store/menu.d.ts +2 -0
- package/types/layout/store/nav.d.ts +1 -0
- package/types/layout/store/tab.d.ts +1 -0
- package/types/main-app-framework/business/alarm/use-alarm.d.ts +4 -4
- package/types/main-app-framework/business/video-link/api.d.ts +2 -0
- package/types/main-app-framework/business/video-link/index.d.ts +3 -3
- package/types/main-app-framework/business/video-link/video-dialog/hooks/PlayerProvider.d.ts +3 -3
- package/types/main-app-framework/components/iframe-page/index.d.ts +3 -0
- package/types/main-app-framework/components/index.d.ts +1 -0
- package/types/main-app-framework/components/person-set-dialog/index.d.ts +1 -1
- package/types/main-app-framework/components/person-set-dialog/src/api.d.ts +2 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/index.d.ts +2 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/api.d.ts +20 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-builtIn-dialog.d.ts +19 -0
- package/types/main-app-framework/components/person-set-dialog/src/components/set-home/use-link-form/hooks/use-notBuiltIn-dialog.d.ts +22 -0
- package/types/main-app-framework/constant/index.d.ts +1 -1
- package/types/main-app-framework/data-track/api.d.ts +2 -0
- package/types/main-app-framework/data-track/index.d.ts +2 -0
- package/types/main-app-framework/i18n/index.d.ts +513 -0
- package/types/main-app-framework/index.d.ts +2 -1
- package/types/main-app-framework/init-config/get-nav-config/api.d.ts +2 -0
- package/types/main-app-framework/init-config/get-nav-config/index.d.ts +4 -3
- package/types/main-app-framework/init-config/get-project-config/api.d.ts +3 -2
- package/types/main-app-framework/init-config/get-system-config/api.d.ts +2 -0
- package/types/main-app-framework/init-config/get-system-config/index.d.ts +4 -4
- package/types/main-app-framework/init-config/get-tenant-config/api.d.ts +1 -1
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-change-enterprises.d.ts +3 -3
- package/types/main-app-framework/init-layout/hooks/nav-slots/use-user-command.d.ts +2 -2
- package/types/main-app-framework/init-layout/hooks/use-initialization.d.ts +4 -4
- package/types/main-app-framework/init-layout/hooks/use-tabs.d.ts +3 -3
- package/types/main-app-framework/init-platform/index.d.ts +1 -1
- package/types/main-app-framework/utils/src/get-portal-url/crypto.d.ts +14 -0
- package/types/main-app-framework/utils/src/get-portal-url/encrypt.d.ts +42 -0
- package/types/main-app-framework/utils/src/get-portal-url/generate-url.d.ts +4 -0
- package/types/main-app-framework/utils/src/get-portal-url/handle-portal-params.d.ts +2 -0
- package/types/main-app-framework/utils/src/get-portal-url/index.d.ts +2 -0
- package/types/main-app-framework/utils/src/get-portal-url/type.d.ts +16 -0
- package/types/main-app-framework/utils/src/set-common-info.d.ts +4 -2
- package/types/main-app-framework/utils/src/tools.d.ts +5 -1
- package/types/micro-frontend/store.d.ts +5 -5
- package/types/theme/index.d.ts +1 -1
- package/index-BVFBG18b.js +0 -70
- package/index-BVFBG18b.js.gz +0 -0
- package/index-DjvYNTdd.js +0 -7952
- package/index-DjvYNTdd.js.gz +0 -0
- package/index-KF0qlXuZ.js +0 -68
- package/index-KF0qlXuZ.js.gz +0 -0
- package/packages/main-app-framework/index-B-mymH8S.js +0 -70
- package/packages/main-app-framework/index-B-mymH8S.js.gz +0 -0
- package/packages/main-app-framework/index-C0DqSXpB.js +0 -5915
- package/packages/main-app-framework/index-C0DqSXpB.js.gz +0 -0
- package/packages/main-app-framework/index-C7g0JYXU.js +0 -68
- package/packages/main-app-framework/index-C7g0JYXU.js.gz +0 -0
|
Binary file
|
package/packages/i18n/index.js
CHANGED
|
@@ -1,34 +1,79 @@
|
|
|
1
|
-
import { reactive as
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import { reactive as m, ref as g, computed as w } from "vue";
|
|
2
|
+
const u = {
|
|
3
|
+
详情: { "zh-CN": "详情", en: "Details", _appCode: "framework" },
|
|
4
|
+
下载: { "zh-CN": "下载", en: "Download", _appCode: "framework" },
|
|
5
|
+
审核: { "zh-CN": "审核", en: "Approve", _appCode: "framework" },
|
|
6
|
+
通过: { "zh-CN": "通过", en: "Pass", _appCode: "framework" },
|
|
7
|
+
驳回: { "zh-CN": "驳回", en: "Reject", _appCode: "framework" },
|
|
8
|
+
分派: { "zh-CN": "分派", en: "Assign", _appCode: "framework" },
|
|
9
|
+
处理: { "zh-CN": "处理", en: "Process", _appCode: "framework" },
|
|
10
|
+
删除: { "zh-CN": "删除", en: "Delete", _appCode: "framework" },
|
|
11
|
+
回复: { "zh-CN": "回复", en: "Reply", _appCode: "framework" },
|
|
12
|
+
新增: { "zh-CN": "新增", en: "Add", _appCode: "framework" },
|
|
13
|
+
批量删除: { "zh-CN": "批量删除", en: "Bulk Delete", _appCode: "framework" },
|
|
14
|
+
提交: { "zh-CN": "提交", en: "Submit", _appCode: "framework" },
|
|
15
|
+
查看记录: { "zh-CN": "查看记录", en: "Details", _appCode: "framework" },
|
|
16
|
+
分享: { "zh-CN": "分享", en: "Share", _appCode: "framework" },
|
|
17
|
+
取消: { "zh-CN": "取消", en: "Cancel", _appCode: "framework" },
|
|
18
|
+
编辑: { "zh-CN": "编辑", en: "Edit", _appCode: "framework" },
|
|
19
|
+
保存: { "zh-CN": "保存", en: "Save", _appCode: "framework" },
|
|
20
|
+
确定: { "zh-CN": "确定", en: "OK", _appCode: "framework" },
|
|
21
|
+
设备总数: { "zh-CN": "设备总数", en: "Total Devices", _appCode: "framework" },
|
|
22
|
+
在线数: { "zh-CN": "在线数", en: "Online", _appCode: "framework" },
|
|
23
|
+
离线数: { "zh-CN": "离线数", en: "Offline", _appCode: "framework" },
|
|
24
|
+
已停用: { "zh-CN": "已停用", en: "Deactivated", _appCode: "framework" },
|
|
25
|
+
未激活: { "zh-CN": "未激活", en: "Inactive", _appCode: "framework" }
|
|
26
|
+
}, p = m({}), l = m({}), C = m({});
|
|
27
|
+
var h;
|
|
28
|
+
const z = (h = navigator.language) != null && h.toLowerCase().startsWith("zh") ? "zh-CN" : "en", c = g(z), N = "dasI18n", v = (e = {}, n) => {
|
|
29
|
+
const s = n === "global", t = !s, r = {};
|
|
30
|
+
for (const a in e)
|
|
31
|
+
for (const o in e[a])
|
|
32
|
+
r[o] || (r[o] = {}), r[o][a] = e[a][o] ?? "", s && (l[o] || (l[o] = {}), l[o][a] = r[o][a]), t && (p[o] || (p[o] = {}), p[o][a] = r[o][a]);
|
|
33
|
+
}, i = (e = {}, n) => {
|
|
34
|
+
var r;
|
|
35
|
+
const s = n === "global", t = !s;
|
|
36
|
+
for (const a in e)
|
|
37
|
+
if (s && !l[a] && (l[a] = e[a]), t) {
|
|
38
|
+
const o = (r = e[a]) != null && r._appCode ? e[a]._appCode.toLowerCase() : "";
|
|
39
|
+
o && (C[o] || (C[o] = {}), C[o][a] = e[a]), p[a] || (p[a] = e[a]);
|
|
40
|
+
}
|
|
41
|
+
}, L = async (e) => {
|
|
42
|
+
var r, a;
|
|
43
|
+
const n = document.documentElement;
|
|
44
|
+
n && n.setAttribute("lang", c.value);
|
|
45
|
+
const s = window[N];
|
|
46
|
+
s && i(s, "global"), i(u);
|
|
47
|
+
let t = Object.assign(((r = e == null ? void 0 : e.i18n) == null ? void 0 : r.glob) || {});
|
|
48
|
+
(a = e == null ? void 0 : e.microApps) == null || a.map((o) => {
|
|
49
|
+
var f;
|
|
50
|
+
t = Object.assign(t, ((f = o.i18n) == null ? void 0 : f.glob) || {});
|
|
51
|
+
}), Object.values(t).filter((o) => !!o).flat().map((o) => i(o));
|
|
52
|
+
}, _ = (e) => {
|
|
53
|
+
let n = "";
|
|
54
|
+
const s = /\/([^\/]+)\/([^\/]+)\//, t = e.match(s);
|
|
55
|
+
return t && t.length >= 3 && (n = t[1] + "/" + t[2]), n ? n.toLowerCase() : "";
|
|
56
|
+
}, k = (e, ...n) => w(() => {
|
|
57
|
+
const s = _(location.pathname);
|
|
58
|
+
let t = C.framework ?? {}, r = C[s] ?? {}, a = l[e] || t[e] || r[e] || p[e] || e;
|
|
59
|
+
if (a === e) return e;
|
|
60
|
+
typeof a == "string" && (a = { "zh-CN": a });
|
|
61
|
+
let o = a[c.value];
|
|
62
|
+
return c.value === "zh-CN" && a["zh-cn"] && !a["zh-CN"] && (o = a["zh-cn"]), n.map((f, d) => {
|
|
63
|
+
o = o.replace(`$${d}`, f);
|
|
64
|
+
}), o;
|
|
65
|
+
}), b = k, I = (e, ...n) => b(e, ...n).value, A = (e) => {
|
|
66
|
+
c.value = e;
|
|
67
|
+
}, O = () => c;
|
|
25
68
|
export {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
69
|
+
c as currentLang,
|
|
70
|
+
p as customLangeData,
|
|
71
|
+
k as getI18nRule,
|
|
72
|
+
O as getLang,
|
|
73
|
+
b as i18n,
|
|
74
|
+
L as initI18n,
|
|
31
75
|
i as setI18nRule,
|
|
32
|
-
|
|
33
|
-
|
|
76
|
+
A as setLang,
|
|
77
|
+
v as setLangRule,
|
|
78
|
+
I as t
|
|
34
79
|
};
|
|
Binary file
|