@das-fed/web 6.4.0-test.50 → 6.4.0-test.52
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-CUEaQqhg.js → index-BWv1vypU.js} +4 -4
- package/index-BWv1vypU.js.gz +0 -0
- package/{index-ByvKrojI.js → index-B_hNKVK-.js} +1 -1
- package/{index-DNmPYqCc.js → index-BmwigFuJ.js} +1 -1
- package/index-BmwigFuJ.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/i18n/index.js +17 -17
- package/packages/i18n/index.js.gz +0 -0
- package/types/i18n/index.d.ts +1 -1
- package/types/main-app-framework/init-config/get-tenant-config/index.d.ts +1 -1
- package/index-CUEaQqhg.js.gz +0 -0
- package/index-DNmPYqCc.js.gz +0 -0
|
@@ -225,7 +225,7 @@ const qt = (f) => {
|
|
|
225
225
|
操作失败: { "zh-CN": "操作失败", en: "Operated Failed", _appCode: "framework" }
|
|
226
226
|
}, Ge = Xe({}), Ue = Xe({}), b9 = Xe({});
|
|
227
227
|
var jv;
|
|
228
|
-
const pt = (jv = navigator.language) != null && jv.toLowerCase().startsWith("zh") ? "zh-CN" : "en", s9 = T(pt), mt = "dasI18n", xb = (f = {}, A) => {
|
|
228
|
+
const pt = sessionStorage.getItem("currentLang") ? sessionStorage.getItem("currentLang") : (jv = navigator.language) != null && jv.toLowerCase().startsWith("zh") ? "zh-CN" : "en", s9 = T(pt), mt = "dasI18n", xb = (f = {}, A) => {
|
|
229
229
|
const e = A === "global", v = !e, r = {};
|
|
230
230
|
for (const n in f)
|
|
231
231
|
for (const P in f[n])
|
|
@@ -263,7 +263,7 @@ const pt = (jv = navigator.language) != null && jv.toLowerCase().startsWith("zh"
|
|
|
263
263
|
P && (P = P.replace(`$${d}`, u));
|
|
264
264
|
}), P;
|
|
265
265
|
}), Ot = xt, Db = (f, ...A) => Ot(f, ...A).value, Vb = (f) => {
|
|
266
|
-
s9.value = f;
|
|
266
|
+
sessionStorage.setItem("currentLang", f), s9.value = f;
|
|
267
267
|
}, Nb = () => s9, Je = T("light"), d9 = T({
|
|
268
268
|
light: {},
|
|
269
269
|
dark: {}
|
|
@@ -13886,11 +13886,11 @@ T("@das-fed/web");
|
|
|
13886
13886
|
const sc = [
|
|
13887
13887
|
{
|
|
13888
13888
|
path: wA,
|
|
13889
|
-
component: () => import("./index-
|
|
13889
|
+
component: () => import("./index-BmwigFuJ.js")
|
|
13890
13890
|
},
|
|
13891
13891
|
{
|
|
13892
13892
|
path: Kv,
|
|
13893
|
-
component: () => import("./index-
|
|
13893
|
+
component: () => import("./index-B_hNKVK-.js")
|
|
13894
13894
|
}
|
|
13895
13895
|
], Mb = {
|
|
13896
13896
|
routes: sc,
|
|
Binary file
|
|
@@ -6,7 +6,7 @@ import { DasSpin as x } from "@das-fed/ui/packages/components/spin/index";
|
|
|
6
6
|
import { getTabInfo as T } from "@das-fed/utils/common-info";
|
|
7
7
|
import { setShowLayout as b } from "@das-fed/utils/common-tools";
|
|
8
8
|
import { createService as E } from "@das-fed/utils/create-api-service";
|
|
9
|
-
import { u as L, p as P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-
|
|
9
|
+
import { u as L, p as P, a as u, c as f, b as q, l as B, g as K, d as M } from "./index-BWv1vypU.js";
|
|
10
10
|
const N = "v1", O = E(`/api/justauth/client/${N}`), V = O.get("/visitor/kingdee/auth/user/auth_code"), z = /* @__PURE__ */ k({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(F) {
|
|
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-BWv1vypU.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/web",
|
|
3
|
-
"version": "6.4.0-test.
|
|
3
|
+
"version": "6.4.0-test.52",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/ui": "6.4.0-test.
|
|
8
|
-
"@das-fed/utils": "6.4.0-test.
|
|
9
|
-
"@das-fed/web": "6.4.0-test.
|
|
10
|
-
"@das-fed/web-components": "6.4.0-test.
|
|
7
|
+
"@das-fed/ui": "6.4.0-test.52",
|
|
8
|
+
"@das-fed/utils": "6.4.0-test.52",
|
|
9
|
+
"@das-fed/web": "6.4.0-test.52",
|
|
10
|
+
"@das-fed/web-components": "6.4.0-test.52",
|
|
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/cli": "6.4.0-test.
|
|
22
|
+
"@das-fed/cli": "6.4.0-test.52",
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { reactive as
|
|
1
|
+
import { reactive as s, ref as z, computed as k } from "vue";
|
|
2
2
|
const _ = {
|
|
3
3
|
// 按钮
|
|
4
4
|
详情: { "zh-CN": "详情", en: "Details", _appCode: "framework" },
|
|
@@ -119,9 +119,9 @@ const _ = {
|
|
|
119
119
|
删除失败: { "zh-CN": "删除失败", en: "Deleted Failed", _appCode: "framework" },
|
|
120
120
|
操作成功: { "zh-CN": "操作成功", en: "Operated Successfully", _appCode: "framework" },
|
|
121
121
|
操作失败: { "zh-CN": "操作失败", en: "Operated Failed", _appCode: "framework" }
|
|
122
|
-
}, d =
|
|
123
|
-
var
|
|
124
|
-
const l = (
|
|
122
|
+
}, d = s({}), f = s({}), t = s({});
|
|
123
|
+
var i;
|
|
124
|
+
const l = sessionStorage.getItem("currentLang") ? sessionStorage.getItem("currentLang") : (i = navigator.language) != null && i.toLowerCase().startsWith("zh") ? "zh-CN" : "en", m = z(l), c = "dasI18n", b = (e = {}, r) => {
|
|
125
125
|
const C = r === "global", n = !C, p = {};
|
|
126
126
|
for (const o in e)
|
|
127
127
|
for (const a in e[o])
|
|
@@ -132,12 +132,12 @@ const l = (N = navigator.language) != null && N.toLowerCase().startsWith("zh") ?
|
|
|
132
132
|
for (const o in e)
|
|
133
133
|
if (C && !f[o] && (f[o] = e[o]), n) {
|
|
134
134
|
const a = (p = e[o]) != null && p._appCode ? e[o]._appCode.toLowerCase() : "";
|
|
135
|
-
a && (
|
|
135
|
+
a && (t[a] || (t[a] = {}), t[a][o] = e[o]), d[o] || (d[o] = e[o]);
|
|
136
136
|
}
|
|
137
|
-
},
|
|
137
|
+
}, S = async (e) => {
|
|
138
138
|
var p, o;
|
|
139
139
|
const r = document.documentElement;
|
|
140
|
-
r && r.setAttribute("lang",
|
|
140
|
+
r && r.setAttribute("lang", m.value);
|
|
141
141
|
const C = window[c];
|
|
142
142
|
C && h(C, "global"), h(_);
|
|
143
143
|
let n = Object.assign(((p = e == null ? void 0 : e.i18n) == null ? void 0 : p.glob) || {});
|
|
@@ -151,25 +151,25 @@ const l = (N = navigator.language) != null && N.toLowerCase().startsWith("zh") ?
|
|
|
151
151
|
return n && n.length >= 3 && (r = n[1] + "/" + n[2]), r ? r.toLowerCase() : "";
|
|
152
152
|
}, g = (e, ...r) => k(() => {
|
|
153
153
|
const C = u(location.pathname);
|
|
154
|
-
let n =
|
|
154
|
+
let n = t.framework ?? {}, p = t[C] ?? {}, o = f[e] || n[e] || p[e] || d[e] || e;
|
|
155
155
|
if (o === e) return e;
|
|
156
156
|
typeof o == "string" && (o = { "zh-CN": o });
|
|
157
|
-
let a = o[
|
|
158
|
-
return
|
|
159
|
-
a && (a = a.replace(`$${
|
|
157
|
+
let a = o[m.value];
|
|
158
|
+
return m.value === "zh-CN" && o["zh-cn"] && !o["zh-CN"] && (a = o["zh-cn"]), r.map((w, N) => {
|
|
159
|
+
a && (a = a.replace(`$${N}`, w));
|
|
160
160
|
}), a;
|
|
161
|
-
}), P = g,
|
|
162
|
-
|
|
163
|
-
}, L = () =>
|
|
161
|
+
}), P = g, R = (e, ...r) => P(e, ...r).value, D = (e) => {
|
|
162
|
+
sessionStorage.setItem("currentLang", e), m.value = e;
|
|
163
|
+
}, L = () => m;
|
|
164
164
|
export {
|
|
165
|
-
|
|
165
|
+
m as currentLang,
|
|
166
166
|
d as customLangeData,
|
|
167
167
|
g as getI18nRule,
|
|
168
168
|
L as getLang,
|
|
169
169
|
P as i18n,
|
|
170
|
-
|
|
170
|
+
S as initI18n,
|
|
171
171
|
h as setI18nRule,
|
|
172
172
|
D as setLang,
|
|
173
173
|
b as setLangRule,
|
|
174
|
-
|
|
174
|
+
R as t
|
|
175
175
|
};
|
|
Binary file
|
package/types/i18n/index.d.ts
CHANGED
|
@@ -18,6 +18,6 @@ declare const i18n: (key: string, ...args: any[]) => import('vue').ComputedRef<s
|
|
|
18
18
|
* @returns string
|
|
19
19
|
*/
|
|
20
20
|
declare const t: (key: string, ...args: any) => string;
|
|
21
|
-
declare const setLang: (lang:
|
|
21
|
+
declare const setLang: (lang: "zh-CN" | "en") => void;
|
|
22
22
|
declare const getLang: () => import('vue').Ref<any, any>;
|
|
23
23
|
export { initI18n, setI18nRule, getI18nRule, i18n, t, setLang, getLang, currentLang, setLangRule, customLangeData };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
export declare const getPersonalConfig: () => unknown;
|
|
3
3
|
/** 获取租户详情 */
|
|
4
4
|
export declare const getTenantConfig: () => unknown;
|
|
5
|
-
/** 获取当前登录用户租户信息 ==
|
|
5
|
+
/** 获取当前登录用户租户信息 == 用来获取语言类型判断是否需要显示语言切换栏目,为2则需要显示语言切换栏目 */
|
|
6
6
|
export declare const getCurrentTenatConfig: () => unknown;
|
|
7
7
|
/** 获取租户列表 */
|
|
8
8
|
export declare const getTenantList: () => unknown;
|
package/index-CUEaQqhg.js.gz
DELETED
|
Binary file
|
package/index-DNmPYqCc.js.gz
DELETED
|
Binary file
|