@das-fed/web 7.0.7-hot.13 → 7.0.7-hot.15
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-Bb91HpJK.js → index-DoMaXFbo.js} +4904 -4886
- package/index-DoMaXFbo.js.gz +0 -0
- package/{index-DA2IE6K-.js → index-Ri6wen-7.js} +1 -1
- package/{packages/main-app-framework/index-BtK_LTJb.js → index-wdYE1_E6.js} +1 -1
- package/index-wdYE1_E6.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js +53 -44
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/index.js +40 -36
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js.gz +0 -0
- package/{index-BeYaAzYH.js → packages/main-app-framework/index-BkuawcE3.js} +1 -1
- package/packages/main-app-framework/index-BkuawcE3.js.gz +0 -0
- package/packages/main-app-framework/{index-N-PbYz9X.js → index-D_19DVjV.js} +2189 -2183
- package/packages/main-app-framework/index-D_19DVjV.js.gz +0 -0
- package/packages/main-app-framework/{index-BviF4UdF.js → index-l0tmR3vf.js} +1 -1
- package/packages/main-app-framework/index.js +1 -1
- package/packages/micro-frontend/index.js.gz +0 -0
- package/types/create-das-web-app/get-web-config.d.ts +1 -0
- package/index-Bb91HpJK.js.gz +0 -0
- package/index-BeYaAzYH.js.gz +0 -0
- package/packages/main-app-framework/index-BtK_LTJb.js.gz +0 -0
- package/packages/main-app-framework/index-N-PbYz9X.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-DoMaXFbo.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-DoMaXFbo.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.0.7-hot.
|
|
3
|
+
"version": "7.0.7-hot.15",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/ui": "7.0.7-hot.
|
|
8
|
-
"@das-fed/utils": "7.0.7-hot.
|
|
9
|
-
"@das-fed/web": "7.0.7-hot.
|
|
10
|
-
"@das-fed/web-components": "7.0.7-hot.
|
|
7
|
+
"@das-fed/ui": "7.0.7-hot.15",
|
|
8
|
+
"@das-fed/utils": "7.0.7-hot.15",
|
|
9
|
+
"@das-fed/web": "7.0.7-hot.15",
|
|
10
|
+
"@das-fed/web-components": "7.0.7-hot.15",
|
|
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.0.7-hot.
|
|
22
|
+
"@das-fed/cli": "7.0.7-hot.15",
|
|
23
23
|
"@types/crypto-js": "^4.2.2",
|
|
24
24
|
"@types/lodash": "^4.14.194",
|
|
25
25
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -1,58 +1,67 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { initTheme as
|
|
3
|
-
import { initI18n as
|
|
4
|
-
import { DasWebLayout as
|
|
5
|
-
import { createPinia as
|
|
1
|
+
import { ref as v, createApp as w } from "vue";
|
|
2
|
+
import { initTheme as j } from "@das-fed/web/packages/theme/index";
|
|
3
|
+
import { initI18n as x } from "@das-fed/web/packages/i18n/index";
|
|
4
|
+
import { DasWebLayout as W } from "@das-fed/web/packages/layout/index";
|
|
5
|
+
import { createPinia as $ } from "pinia";
|
|
6
6
|
import k from "pinia-plugin-persistedstate";
|
|
7
|
-
import { createRouter as y, createWebHistory as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
c
|
|
13
|
-
|
|
7
|
+
import { createRouter as y, createWebHistory as O } from "vue-router";
|
|
8
|
+
import { getConfig as P } from "@das-fed/utils/config";
|
|
9
|
+
const C = {
|
|
10
|
+
install: (e, t) => {
|
|
11
|
+
var u;
|
|
12
|
+
const c = (u = t == null ? void 0 : t.plugins) == null ? void 0 : u.glob;
|
|
13
|
+
c && Object.values(c).sort((a, l) => (a.index ?? 0) - (l.index ?? 0)).filter((a) => a ? !!(a.default && a.default.install || a.install) : !1).forEach((a) => {
|
|
14
|
+
a.default && a.default.install && e.use(a.default, t), a.install && e.use(a, t);
|
|
14
15
|
});
|
|
15
16
|
}
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
var
|
|
20
|
-
const
|
|
21
|
-
let
|
|
22
|
-
const
|
|
23
|
-
(
|
|
24
|
-
var
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
...
|
|
28
|
-
),
|
|
29
|
-
...
|
|
17
|
+
}, m = $();
|
|
18
|
+
m.use(k);
|
|
19
|
+
const D = (e) => {
|
|
20
|
+
var o, d, b, g, h;
|
|
21
|
+
const t = ((o = e == null ? void 0 : e.router) == null ? void 0 : o.routerBase) ?? "/", c = ((d = e == null ? void 0 : e.router) == null ? void 0 : d.options) || {};
|
|
22
|
+
let u = Object.assign(((b = e == null ? void 0 : e.router) == null ? void 0 : b.glob) || {});
|
|
23
|
+
const a = Object.values(u).filter((s) => !!s).flat().sort((s, n) => (s.index ?? 0) - (n.index ?? 0)), l = [];
|
|
24
|
+
(g = e == null ? void 0 : e.microApps) == null || g.map((s) => {
|
|
25
|
+
var A;
|
|
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
|
+
l.push(
|
|
28
|
+
...n.map((r) => ({ ...r, path: `/${s.microAppName}${r.path}` }))
|
|
29
|
+
), l.push(
|
|
30
|
+
...n.filter((r) => !!r.path).filter((r) => r.path !== "").filter((r) => r.path !== "/").filter((r) => !r.path.startsWith(`/${r.microAppName}`)).map((r) => ({
|
|
30
31
|
path: r.path,
|
|
31
|
-
redirect: `/${
|
|
32
|
+
redirect: `/${s.microAppName}${r.path}`,
|
|
32
33
|
meta: { ...r.meta || {}, isMicroAppRouteRedirect: !0 }
|
|
33
34
|
}))
|
|
34
35
|
);
|
|
35
36
|
});
|
|
36
|
-
const
|
|
37
|
-
...
|
|
38
|
-
...
|
|
39
|
-
...
|
|
37
|
+
const f = ((h = e == null ? void 0 : e.router) == null ? void 0 : h.routers) || [], p = [
|
|
38
|
+
...i(a, e),
|
|
39
|
+
...i(f, e),
|
|
40
|
+
...i(l, e)
|
|
40
41
|
];
|
|
41
|
-
return { router: y({ history:
|
|
42
|
-
},
|
|
43
|
-
const
|
|
44
|
-
return
|
|
45
|
-
}),
|
|
42
|
+
return { router: y({ history: O(t), routes: p, ...c }) };
|
|
43
|
+
}, i = (e, t) => e.map((c) => {
|
|
44
|
+
const u = c.meta || {};
|
|
45
|
+
return u.keepAlive = u.keepAlive ?? (t == null ? void 0 : t.keepAlive) ?? !0, { ...c, meta: u };
|
|
46
|
+
}), N = async () => {
|
|
47
|
+
const { baseURL: e = "" } = P();
|
|
48
|
+
try {
|
|
49
|
+
const c = await (await fetch(`${e}/oss/resource/front-end/web/_config/config.json`)).json().catch(() => ({})), { disableSaveToken: u = !1 } = c || {};
|
|
50
|
+
window.webConfig = { disableSaveToken: u };
|
|
51
|
+
} catch {
|
|
52
|
+
window.webConfig = { disableSaveToken: !1 };
|
|
53
|
+
}
|
|
54
|
+
}, _ = (e) => {
|
|
46
55
|
e || (e = {});
|
|
47
|
-
const
|
|
48
|
-
Promise.all([
|
|
49
|
-
|
|
56
|
+
const t = v(!0);
|
|
57
|
+
Promise.all([N(), j(e), x(e)]).then(() => {
|
|
58
|
+
t.value = !1;
|
|
50
59
|
});
|
|
51
|
-
const { container: c, component:
|
|
52
|
-
|
|
53
|
-
const { router:
|
|
54
|
-
return
|
|
60
|
+
const { container: c, component: u, props: a } = (e == null ? void 0 : e.root) || {}, l = w(u || W, a);
|
|
61
|
+
l.use(C, e), l.use(m);
|
|
62
|
+
const { router: f } = D(e);
|
|
63
|
+
return l.use(f), l.mount(c || "#app"), { app: l, router: f, loading: t, store: m };
|
|
55
64
|
};
|
|
56
65
|
export {
|
|
57
|
-
|
|
66
|
+
_ as createDasWebApp
|
|
58
67
|
};
|
|
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 k, computed as _ } from "vue";
|
|
2
|
+
const l = {
|
|
3
3
|
// 按钮
|
|
4
4
|
详情: { "zh-CN": "详情", en: "Details", _appCode: "framework" },
|
|
5
5
|
下载: { "zh-CN": "下载", en: "Download", _appCode: "framework" },
|
|
@@ -119,57 +119,61 @@ 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
|
-
},
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
}, f = s({}), t = s({}), m = s({}), c = new URLSearchParams(window.location.search);
|
|
123
|
+
let d = c.get("lang");
|
|
124
|
+
d === "english" && (d = "en");
|
|
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) => {
|
|
125
129
|
const C = r === "global", n = !C, p = {};
|
|
126
130
|
for (const o in e)
|
|
127
131
|
for (const a in e[o])
|
|
128
|
-
p[a] || (p[a] = {}), p[a][o] = e[o][a] ?? "", C && (
|
|
129
|
-
},
|
|
132
|
+
p[a] || (p[a] = {}), p[a][o] = e[o][a] ?? "", C && (t[a] || (t[a] = {}), t[a][o] = p[a][o]), n && (f[a] || (f[a] = {}), f[a][o] = p[a][o]);
|
|
133
|
+
}, i = (e = {}, r) => {
|
|
130
134
|
var p;
|
|
131
135
|
const C = r === "global", n = !C;
|
|
132
136
|
for (const o in e)
|
|
133
|
-
if (C && !
|
|
137
|
+
if (C && !t[o] && (t[o] = e[o]), n) {
|
|
134
138
|
const a = (p = e[o]) != null && p._appCode ? e[o]._appCode.toLowerCase() : "";
|
|
135
|
-
a && (
|
|
139
|
+
a && (m[a] || (m[a] = {}), m[a][o] = e[o]), f[o] || (f[o] = e[o]);
|
|
136
140
|
}
|
|
137
|
-
},
|
|
141
|
+
}, L = async (e) => {
|
|
138
142
|
var p, o;
|
|
139
143
|
const r = document.documentElement;
|
|
140
|
-
r && r.setAttribute("lang",
|
|
141
|
-
const C = window[
|
|
142
|
-
C &&
|
|
144
|
+
r && r.setAttribute("lang", w.value);
|
|
145
|
+
const C = window[u];
|
|
146
|
+
C && i(C, "global"), i(l);
|
|
143
147
|
let n = Object.assign(((p = e == null ? void 0 : e.i18n) == null ? void 0 : p.glob) || {});
|
|
144
148
|
(o = e == null ? void 0 : e.microApps) == null || o.map((a) => {
|
|
145
|
-
var
|
|
146
|
-
n = Object.assign(n, ((
|
|
147
|
-
}), Object.values(n).filter((a) => !!a).flat().map((a) =>
|
|
148
|
-
},
|
|
149
|
+
var h;
|
|
150
|
+
n = Object.assign(n, ((h = a.i18n) == null ? void 0 : h.glob) || {});
|
|
151
|
+
}), Object.values(n).filter((a) => !!a).flat().map((a) => i(a));
|
|
152
|
+
}, P = (e) => {
|
|
149
153
|
let r = "";
|
|
150
154
|
const C = /\/([^\/]+)\/([^\/]+)\//, n = e.match(C);
|
|
151
155
|
return n && n.length >= 3 && (r = n[1] + "/" + n[2]), r ? r.toLowerCase() : "";
|
|
152
|
-
},
|
|
153
|
-
const C =
|
|
154
|
-
let n =
|
|
156
|
+
}, v = (e, ...r) => _(() => {
|
|
157
|
+
const C = P(location.pathname);
|
|
158
|
+
let n = m.framework ?? {}, p = m[C] ?? {}, o = t[e] || n[e] || p[e] || f[e] || e;
|
|
155
159
|
if (o === e) return e;
|
|
156
160
|
typeof o == "string" && (o = { "zh-CN": o });
|
|
157
|
-
let a = o[
|
|
158
|
-
return
|
|
159
|
-
a && (a = a.replace(`$${
|
|
161
|
+
let a = o[w.value];
|
|
162
|
+
return w.value === "zh-CN" && o["zh-cn"] && !o["zh-CN"] && (a = o["zh-cn"]), r.map((h, z) => {
|
|
163
|
+
a && (a = a.replace(`$${z}`, h));
|
|
160
164
|
}), a;
|
|
161
|
-
}),
|
|
162
|
-
sessionStorage.setItem("currentLang", e),
|
|
163
|
-
},
|
|
165
|
+
}), S = v, D = (e, ...r) => S(e, ...r).value, A = (e) => {
|
|
166
|
+
sessionStorage.setItem("currentLang", e), w.value = e;
|
|
167
|
+
}, I = () => w;
|
|
164
168
|
export {
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
169
|
+
w as currentLang,
|
|
170
|
+
f as customLangeData,
|
|
171
|
+
v as getI18nRule,
|
|
172
|
+
I as getLang,
|
|
173
|
+
S as i18n,
|
|
174
|
+
L as initI18n,
|
|
175
|
+
i as setI18nRule,
|
|
176
|
+
A as setLang,
|
|
177
|
+
R as setLangRule,
|
|
178
|
+
D as t
|
|
175
179
|
};
|
|
Binary file
|
|
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-D_19DVjV.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
|