@das-fed/web 7.1.0-dev.17 → 7.1.0-dev.19
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-DjMThLof.js → index-BdhMeVXj.js} +3176 -3195
- package/index-BdhMeVXj.js.gz +0 -0
- package/{packages/main-app-framework/index-CodKn6TT.js → index-CXPv2K1Q.js} +1 -1
- package/index-CXPv2K1Q.js.gz +0 -0
- package/{index-BhqGyeKY.js → index-DfcU1fGs.js} +1 -1
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js +19 -15
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/index.js +36 -40
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js +247 -259
- 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-BcD1HEer.js → index-BkMB45ca.js} +1 -1
- package/{index-Cbv0qUFr.js → packages/main-app-framework/index-D5JA2xUv.js} +1 -1
- package/packages/main-app-framework/index-D5JA2xUv.js.gz +0 -0
- package/packages/main-app-framework/{index-BzySH-7d.js → index-FRhaJu_s.js} +730 -737
- package/packages/main-app-framework/index-FRhaJu_s.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- 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 +2 -2
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/micro-frontend/style.css +1 -1
- package/packages/style/style.css.gz +0 -0
- package/packages/theme/index.js.gz +0 -0
- package/style.css +2 -2
- package/style.css.gz +0 -0
- package/types/main-app-framework/i18n/index.d.ts +5 -0
- package/index-Cbv0qUFr.js.gz +0 -0
- package/index-DjMThLof.js.gz +0 -0
- package/packages/main-app-framework/index-BzySH-7d.js.gz +0 -0
- package/packages/main-app-framework/index-CodKn6TT.js.gz +0 -0
|
Binary file
|
|
@@ -6,7 +6,7 @@ import { DasSpin as T } from "@das-fed/ui/packages/components/spin/index";
|
|
|
6
6
|
import { getTabInfo as b } from "@das-fed/utils/common-info";
|
|
7
7
|
import { setShowLayout as E } from "@das-fed/utils/common-tools";
|
|
8
8
|
import { createService as L } from "@das-fed/utils/create-api-service";
|
|
9
|
-
import { u as P, p as q, a as u, c as d, b as B, l as K, g as M, d as N } from "./index-
|
|
9
|
+
import { u as P, p as q, a as u, c as d, b as B, l as K, g as M, d as N } from "./index-BdhMeVXj.js";
|
|
10
10
|
const O = "v1", V = L(`/api/justauth/client/${O}`), F = V.get("/visitor/kingdee/auth/user/auth_code"), ee = /* @__PURE__ */ v({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(G) {
|
|
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-BdhMeVXj.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": "7.1.0-dev.
|
|
3
|
+
"version": "7.1.0-dev.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/ui": "7.1.0-dev.
|
|
8
|
-
"@das-fed/utils": "7.1.0-dev.
|
|
9
|
-
"@das-fed/web": "7.1.0-dev.
|
|
10
|
-
"@das-fed/web-components": "7.1.0-dev.
|
|
7
|
+
"@das-fed/ui": "7.1.0-dev.19",
|
|
8
|
+
"@das-fed/utils": "7.1.0-dev.19",
|
|
9
|
+
"@das-fed/web": "7.1.0-dev.19",
|
|
10
|
+
"@das-fed/web-components": "7.1.0-dev.19",
|
|
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": "7.1.0-dev.
|
|
22
|
+
"@das-fed/cli": "7.1.0-dev.19",
|
|
23
23
|
"@types/crypto-js": "^4.2.2",
|
|
24
24
|
"@types/lodash": "^4.14.194",
|
|
25
25
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ref as v, createApp as
|
|
2
|
-
import { initTheme as
|
|
3
|
-
import { initI18n as
|
|
1
|
+
import { ref as v, createApp as x } from "vue";
|
|
2
|
+
import { initTheme as k } from "@das-fed/web/packages/theme/index";
|
|
3
|
+
import { initI18n as w } from "@das-fed/web/packages/i18n/index";
|
|
4
4
|
import { DasWebLayout as W } from "@das-fed/web/packages/layout/index";
|
|
5
5
|
import { createPinia as $ } from "pinia";
|
|
6
|
-
import
|
|
6
|
+
import j from "pinia-plugin-persistedstate";
|
|
7
7
|
import { createRouter as y, createWebHistory as O } from "vue-router";
|
|
8
8
|
import { getConfig as P } from "@das-fed/utils/config";
|
|
9
9
|
const C = {
|
|
@@ -15,13 +15,13 @@ const C = {
|
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
}, m = $();
|
|
18
|
-
m.use(
|
|
18
|
+
m.use(j);
|
|
19
19
|
const D = (e) => {
|
|
20
|
-
var
|
|
21
|
-
const t = ((
|
|
22
|
-
let u = Object.assign(((
|
|
20
|
+
var d, b, o, h, g;
|
|
21
|
+
const t = ((d = e == null ? void 0 : e.router) == null ? void 0 : d.routerBase) ?? "/", c = ((b = e == null ? void 0 : e.router) == null ? void 0 : b.options) || {};
|
|
22
|
+
let u = Object.assign(((o = e == null ? void 0 : e.router) == null ? void 0 : o.glob) || {});
|
|
23
23
|
const a = Object.values(u).filter((s) => !!s).flat().sort((s, n) => (s.index ?? 0) - (n.index ?? 0)), l = [];
|
|
24
|
-
(
|
|
24
|
+
(h = e == null ? void 0 : e.microApps) == null || h.map((s) => {
|
|
25
25
|
var A;
|
|
26
26
|
const n = Object.values(((A = s.router) == null ? void 0 : A.glob) || {}).filter((r) => !!r).flat().sort((r, R) => (r.index ?? 0) - (R.index ?? 0));
|
|
27
27
|
l.push(
|
|
@@ -34,7 +34,7 @@ const D = (e) => {
|
|
|
34
34
|
}))
|
|
35
35
|
);
|
|
36
36
|
});
|
|
37
|
-
const f = ((
|
|
37
|
+
const f = ((g = e == null ? void 0 : e.router) == null ? void 0 : g.routers) || [], p = [
|
|
38
38
|
...i(a, e),
|
|
39
39
|
...i(f, e),
|
|
40
40
|
...i(l, e)
|
|
@@ -45,19 +45,23 @@ const D = (e) => {
|
|
|
45
45
|
return u.keepAlive = u.keepAlive ?? (t == null ? void 0 : t.keepAlive) ?? !0, { ...c, meta: u };
|
|
46
46
|
}), N = async () => {
|
|
47
47
|
const { baseURL: e = "" } = P();
|
|
48
|
+
let t = !1;
|
|
48
49
|
try {
|
|
49
|
-
const c = await
|
|
50
|
-
|
|
50
|
+
const c = await fetch(`${e}/oss/resource/front-end/web/_config/config.json`);
|
|
51
|
+
if (c.ok) {
|
|
52
|
+
const u = await c.json().catch(() => ({}));
|
|
53
|
+
t = (u == null ? void 0 : u.disableSaveToken) ?? !1;
|
|
54
|
+
}
|
|
51
55
|
} catch {
|
|
52
|
-
window.webConfig = { disableSaveToken: !1 };
|
|
53
56
|
}
|
|
57
|
+
window.webConfig = { disableSaveToken: t };
|
|
54
58
|
}, _ = (e) => {
|
|
55
59
|
e || (e = {});
|
|
56
60
|
const t = v(!0);
|
|
57
|
-
Promise.all([N(),
|
|
61
|
+
Promise.all([N(), k(e), w(e)]).then(() => {
|
|
58
62
|
t.value = !1;
|
|
59
63
|
});
|
|
60
|
-
const { container: c, component: u, props: a } = (e == null ? void 0 : e.root) || {}, l =
|
|
64
|
+
const { container: c, component: u, props: a } = (e == null ? void 0 : e.root) || {}, l = x(u || W, a);
|
|
61
65
|
l.use(C, e), l.use(m);
|
|
62
66
|
const { router: f } = D(e);
|
|
63
67
|
return l.use(f), l.mount(c || "#app"), { app: l, router: f, loading: t, store: m };
|
|
Binary file
|
package/packages/i18n/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { reactive as s, ref as
|
|
2
|
-
const
|
|
1
|
+
import { reactive as s, ref as z, computed as k } from "vue";
|
|
2
|
+
const _ = {
|
|
3
3
|
// 按钮
|
|
4
4
|
详情: { "zh-CN": "详情", en: "Details", _appCode: "framework" },
|
|
5
5
|
下载: { "zh-CN": "下载", en: "Download", _appCode: "framework" },
|
|
@@ -119,61 +119,57 @@ const l = {
|
|
|
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
|
-
},
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
d === "chinese_simplified" && (d = "zh-CN");
|
|
126
|
-
d !== "zh-CN" && d !== "en" && (d = "");
|
|
127
|
-
var N;
|
|
128
|
-
const g = d || (sessionStorage.getItem("currentLang") ? sessionStorage.getItem("currentLang") : (N = navigator.language) != null && N.toLowerCase().startsWith("zh") ? "zh-CN" : "en"), w = k(g), u = "dasI18n", R = (e = {}, r) => {
|
|
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) => {
|
|
129
125
|
const C = r === "global", n = !C, p = {};
|
|
130
126
|
for (const o in e)
|
|
131
127
|
for (const a in e[o])
|
|
132
|
-
p[a] || (p[a] = {}), p[a][o] = e[o][a] ?? "", C && (
|
|
133
|
-
},
|
|
128
|
+
p[a] || (p[a] = {}), p[a][o] = e[o][a] ?? "", C && (f[a] || (f[a] = {}), f[a][o] = p[a][o]), n && (d[a] || (d[a] = {}), d[a][o] = p[a][o]);
|
|
129
|
+
}, h = (e = {}, r) => {
|
|
134
130
|
var p;
|
|
135
131
|
const C = r === "global", n = !C;
|
|
136
132
|
for (const o in e)
|
|
137
|
-
if (C && !
|
|
133
|
+
if (C && !f[o] && (f[o] = e[o]), n) {
|
|
138
134
|
const a = (p = e[o]) != null && p._appCode ? e[o]._appCode.toLowerCase() : "";
|
|
139
|
-
a && (
|
|
135
|
+
a && (t[a] || (t[a] = {}), t[a][o] = e[o]), d[o] || (d[o] = e[o]);
|
|
140
136
|
}
|
|
141
|
-
},
|
|
137
|
+
}, S = async (e) => {
|
|
142
138
|
var p, o;
|
|
143
139
|
const r = document.documentElement;
|
|
144
|
-
r && r.setAttribute("lang",
|
|
145
|
-
const C = window[
|
|
146
|
-
C &&
|
|
140
|
+
r && r.setAttribute("lang", m.value);
|
|
141
|
+
const C = window[c];
|
|
142
|
+
C && h(C, "global"), h(_);
|
|
147
143
|
let n = Object.assign(((p = e == null ? void 0 : e.i18n) == null ? void 0 : p.glob) || {});
|
|
148
144
|
(o = e == null ? void 0 : e.microApps) == null || o.map((a) => {
|
|
149
|
-
var
|
|
150
|
-
n = Object.assign(n, ((
|
|
151
|
-
}), Object.values(n).filter((a) => !!a).flat().map((a) =>
|
|
152
|
-
},
|
|
145
|
+
var w;
|
|
146
|
+
n = Object.assign(n, ((w = a.i18n) == null ? void 0 : w.glob) || {});
|
|
147
|
+
}), Object.values(n).filter((a) => !!a).flat().map((a) => h(a));
|
|
148
|
+
}, u = (e) => {
|
|
153
149
|
let r = "";
|
|
154
150
|
const C = /\/([^\/]+)\/([^\/]+)\//, n = e.match(C);
|
|
155
151
|
return n && n.length >= 3 && (r = n[1] + "/" + n[2]), r ? r.toLowerCase() : "";
|
|
156
|
-
},
|
|
157
|
-
const C =
|
|
158
|
-
let n =
|
|
152
|
+
}, g = (e, ...r) => k(() => {
|
|
153
|
+
const C = u(location.pathname);
|
|
154
|
+
let n = t.framework ?? {}, p = t[C] ?? {}, o = f[e] || n[e] || p[e] || d[e] || e;
|
|
159
155
|
if (o === e) return e;
|
|
160
156
|
typeof o == "string" && (o = { "zh-CN": o });
|
|
161
|
-
let a = o[
|
|
162
|
-
return
|
|
163
|
-
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));
|
|
164
160
|
}), a;
|
|
165
|
-
}),
|
|
166
|
-
sessionStorage.setItem("currentLang", e),
|
|
167
|
-
},
|
|
161
|
+
}), P = g, R = (e, ...r) => P(e, ...r).value, D = (e) => {
|
|
162
|
+
sessionStorage.setItem("currentLang", e), m.value = e;
|
|
163
|
+
}, L = () => m;
|
|
168
164
|
export {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
165
|
+
m as currentLang,
|
|
166
|
+
d as customLangeData,
|
|
167
|
+
g as getI18nRule,
|
|
168
|
+
L as getLang,
|
|
169
|
+
P as i18n,
|
|
170
|
+
S as initI18n,
|
|
171
|
+
h as setI18nRule,
|
|
172
|
+
D as setLang,
|
|
173
|
+
b as setLangRule,
|
|
174
|
+
R as t
|
|
179
175
|
};
|
|
Binary file
|