@das-fed/upf-web 6.4.0-dev.158 → 6.4.0-dev.160
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/{index-cKNp7fKq.js → index-DBlQRlUA.js} +1 -1
- package/{index-B-tcO4IU.js → index-DHlhHc0v.js} +1 -1
- package/index-DHlhHc0v.js.gz +0 -0
- package/{index-DKVGTpe2.js → index-z-SxSAzC.js} +787 -793
- package/index-z-SxSAzC.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/i18n/index.js +26 -32
- package/packages/i18n/index.js.gz +0 -0
- package/index-B-tcO4IU.js.gz +0 -0
- package/index-DKVGTpe2.js.gz +0 -0
|
Binary file
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-
|
|
1
|
+
import { J as e, A as t, C as n, B as i, D as r, e as u, m as o, w as m, o as p, f as g, k as D, v as l, y as L, z as b, h as c, i as h, G as A, H as T, q as y, E as R, F as W, K as I, I as M, s as F, j as V, n as f, r as k, x as v, t as w } from "./index-z-SxSAzC.js";
|
|
2
2
|
export {
|
|
3
3
|
e as DasMainAppLayout,
|
|
4
4
|
t as DasWebLayout,
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/upf-web",
|
|
3
|
-
"version": "6.4.0-dev.
|
|
3
|
+
"version": "6.4.0-dev.160",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/upf-ui": "6.4.0-dev.
|
|
8
|
-
"@das-fed/upf-utils": "6.4.0-dev.
|
|
9
|
-
"@das-fed/upf-web": "6.4.0-dev.
|
|
10
|
-
"@das-fed/upf-web-components": "6.4.0-dev.
|
|
7
|
+
"@das-fed/upf-ui": "6.4.0-dev.160",
|
|
8
|
+
"@das-fed/upf-utils": "6.4.0-dev.160",
|
|
9
|
+
"@das-fed/upf-web": "6.4.0-dev.160",
|
|
10
|
+
"@das-fed/upf-web-components": "6.4.0-dev.160",
|
|
11
11
|
"@microsoft/signalr": "^8.0.7",
|
|
12
12
|
"@vueuse/core": "^9.13.0",
|
|
13
13
|
"animate.css": "^4.1.1",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"vue-router": "^4.4.0"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@das-fed/upf-cli": "6.4.0-dev.
|
|
22
|
+
"@das-fed/upf-cli": "6.4.0-dev.160",
|
|
23
23
|
"@types/crypto-js": "^4.2.2",
|
|
24
24
|
"@types/lodash": "^4.14.194",
|
|
25
25
|
"@types/lodash-es": "^4.17.12",
|
package/packages/i18n/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { reactive as w, ref as _, computed as s } from "vue";
|
|
2
|
-
|
|
3
|
-
const c = {
|
|
2
|
+
const l = {
|
|
4
3
|
// 按钮
|
|
5
4
|
详情: { "zh-CN": "详情", en: "Details", _appCode: "framework" },
|
|
6
5
|
下载: { "zh-CN": "下载", en: "Download", _appCode: "framework" },
|
|
@@ -122,56 +121,51 @@ const c = {
|
|
|
122
121
|
操作失败: { "zh-CN": "操作失败", en: "Operated Failed", _appCode: "framework" }
|
|
123
122
|
}, d = w({}), f = w({}), t = w({});
|
|
124
123
|
var N;
|
|
125
|
-
const
|
|
124
|
+
const c = (N = navigator.language) != null && N.toLowerCase().startsWith("zh") ? "zh-CN" : "en", m = _(c), u = "dasI18n", z = () => {
|
|
126
125
|
const e = document.documentElement;
|
|
127
126
|
e && e.setAttribute("lang", m.value);
|
|
128
|
-
},
|
|
129
|
-
const
|
|
127
|
+
}, S = (e = {}, r) => {
|
|
128
|
+
const C = r === "global", p = !C, n = {};
|
|
130
129
|
for (const o in e)
|
|
131
130
|
for (const a in e[o])
|
|
132
|
-
|
|
131
|
+
n[a] || (n[a] = {}), n[a][o] = e[o][a] ?? "", C && (f[a] || (f[a] = {}), f[a][o] = n[a][o]), p && (d[a] || (d[a] = {}), d[a][o] = n[a][o]);
|
|
133
132
|
}, h = (e = {}, r) => {
|
|
134
|
-
var
|
|
135
|
-
const
|
|
133
|
+
var n;
|
|
134
|
+
const C = r === "global", p = !C;
|
|
136
135
|
for (const o in e)
|
|
137
|
-
if (
|
|
138
|
-
const a = (
|
|
136
|
+
if (C && !f[o] && (f[o] = e[o]), p) {
|
|
137
|
+
const a = (n = e[o]) != null && n._appCode ? e[o]._appCode.toLowerCase() : "";
|
|
139
138
|
a && (t[a] || (t[a] = {}), t[a][o] = e[o]), d[o] || (d[o] = e[o]);
|
|
140
139
|
}
|
|
141
|
-
},
|
|
140
|
+
}, D = async (e) => {
|
|
142
141
|
z();
|
|
143
|
-
const r = window[
|
|
144
|
-
r && h(r, "global"), h(
|
|
145
|
-
|
|
146
|
-
let n = await l({ pathname: "front-end" });
|
|
147
|
-
P(n);
|
|
148
|
-
return;
|
|
149
|
-
}
|
|
150
|
-
}, v = (e) => {
|
|
142
|
+
const r = window[u];
|
|
143
|
+
r && h(r, "global"), h(l);
|
|
144
|
+
}, g = (e) => {
|
|
151
145
|
let r = "";
|
|
152
|
-
const
|
|
146
|
+
const C = /\/([^\/]+)\/([^\/]+)\//, p = e.match(C);
|
|
153
147
|
return p && p.length >= 3 && (r = p[1] + "/" + p[2]), r ? r.toLowerCase() : "";
|
|
154
|
-
},
|
|
155
|
-
const
|
|
156
|
-
let p = t.framework ?? {},
|
|
148
|
+
}, P = (e, ...r) => s(() => {
|
|
149
|
+
const C = g(location.pathname);
|
|
150
|
+
let p = t.framework ?? {}, n = t[C] ?? {}, o = f[e] || p[e] || n[e] || d[e] || e;
|
|
157
151
|
if (o === e) return e;
|
|
158
152
|
typeof o == "string" && (o = { "zh-CN": o });
|
|
159
153
|
let a = o[m.value];
|
|
160
154
|
return m.value === "zh-CN" && o["zh-cn"] && !o["zh-CN"] && (a = o["zh-cn"]), r.map((i, k) => {
|
|
161
155
|
a && (a = a.replace(`$${k}`, i));
|
|
162
156
|
}), a;
|
|
163
|
-
}),
|
|
157
|
+
}), v = P, b = (e, ...r) => v(e, ...r).value, L = (e) => {
|
|
164
158
|
m.value = e, z();
|
|
165
|
-
},
|
|
159
|
+
}, A = () => m;
|
|
166
160
|
export {
|
|
167
161
|
m as currentLang,
|
|
168
162
|
d as customLangeData,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
163
|
+
P as getI18nRule,
|
|
164
|
+
A as getLang,
|
|
165
|
+
v as i18n,
|
|
166
|
+
D as initI18n,
|
|
173
167
|
h as setI18nRule,
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
168
|
+
L as setLang,
|
|
169
|
+
S as setLangRule,
|
|
170
|
+
b as t
|
|
177
171
|
};
|
|
Binary file
|
package/index-B-tcO4IU.js.gz
DELETED
|
Binary file
|
package/index-DKVGTpe2.js.gz
DELETED
|
Binary file
|