@das-fed/web 7.0.7-hot.4 → 7.0.7-hot.40
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-Dd5IG0LM.js → index-3qGmnX0K.js} +860 -864
- package/index-3qGmnX0K.js.gz +0 -0
- package/{packages/main-app-framework/index-7BoZiicm.js → index-Cg1zDISe.js} +1 -1
- package/index-Cg1zDISe.js.gz +0 -0
- package/{index-DVaL7cmW.js → index-VFHeVlbQ.js} +1 -1
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js +45 -49
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/{index-ZteIZHLW.js → packages/main-app-framework/index-9Btqmzxh.js} +1 -1
- package/packages/main-app-framework/index-9Btqmzxh.js.gz +0 -0
- package/packages/main-app-framework/{index-HimW4rhP.js → index-BTkL8vcq.js} +7 -8
- package/packages/main-app-framework/{index-HimW4rhP.js.gz → index-BTkL8vcq.js.gz} +0 -0
- package/packages/main-app-framework/{index-BlDFy06J.js → index-DjY3P4GQ.js} +1 -1
- package/packages/main-app-framework/index.js +1 -1
- package/index-Dd5IG0LM.js.gz +0 -0
- package/index-ZteIZHLW.js.gz +0 -0
- package/packages/main-app-framework/index-7BoZiicm.js.gz +0 -0
- package/types/create-das-web-app/get-web-config.d.ts +0 -1
|
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-3qGmnX0K.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-3qGmnX0K.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.40",
|
|
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.40",
|
|
8
|
+
"@das-fed/utils": "7.0.7-hot.40",
|
|
9
|
+
"@das-fed/web": "7.0.7-hot.40",
|
|
10
|
+
"@das-fed/web-components": "7.0.7-hot.40",
|
|
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.40",
|
|
23
23
|
"@types/crypto-js": "^4.2.2",
|
|
24
24
|
"@types/lodash": "^4.14.194",
|
|
25
25
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -1,62 +1,58 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { initTheme as
|
|
3
|
-
import { initI18n as
|
|
4
|
-
import { DasWebLayout as
|
|
5
|
-
import { createPinia as
|
|
6
|
-
import
|
|
7
|
-
import { createRouter as
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
a.default && a.default.install && e.use(a.default, t), a.install && e.use(a, t);
|
|
1
|
+
import { ref as x, createApp as O } from "vue";
|
|
2
|
+
import { initTheme as P } from "@das-fed/web/packages/theme/index";
|
|
3
|
+
import { initI18n as W } from "@das-fed/web/packages/i18n/index";
|
|
4
|
+
import { DasWebLayout as $ } from "@das-fed/web/packages/layout/index";
|
|
5
|
+
import { createPinia as j } from "pinia";
|
|
6
|
+
import k from "pinia-plugin-persistedstate";
|
|
7
|
+
import { createRouter as y, createWebHistory as D } from "vue-router";
|
|
8
|
+
const N = {
|
|
9
|
+
install: (e, a) => {
|
|
10
|
+
var l;
|
|
11
|
+
const c = (l = a == null ? void 0 : a.plugins) == null ? void 0 : l.glob;
|
|
12
|
+
c && Object.values(c).sort((t, u) => (t.index ?? 0) - (u.index ?? 0)).filter((t) => t ? !!(t.default && t.default.install || t.install) : !1).forEach((t) => {
|
|
13
|
+
t.default && t.default.install && e.use(t.default, a), t.install && e.use(t, a);
|
|
15
14
|
});
|
|
16
15
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
const
|
|
20
|
-
var
|
|
21
|
-
const
|
|
22
|
-
let
|
|
23
|
-
const
|
|
24
|
-
(
|
|
25
|
-
var
|
|
26
|
-
const
|
|
27
|
-
|
|
28
|
-
...
|
|
29
|
-
),
|
|
30
|
-
...
|
|
16
|
+
}, d = j();
|
|
17
|
+
d.use(k);
|
|
18
|
+
const B = (e) => {
|
|
19
|
+
var i, h, b, A, g;
|
|
20
|
+
const a = ((i = e == null ? void 0 : e.router) == null ? void 0 : i.routerBase) ?? "/", c = ((h = e == null ? void 0 : e.router) == null ? void 0 : h.options) || {};
|
|
21
|
+
let l = Object.assign(((b = e == null ? void 0 : e.router) == null ? void 0 : b.glob) || {});
|
|
22
|
+
const t = Object.values(l).filter((f) => !!f).flat().sort((f, m) => (f.index ?? 0) - (m.index ?? 0)), u = [];
|
|
23
|
+
(A = e == null ? void 0 : e.microApps) == null || A.map((f) => {
|
|
24
|
+
var p;
|
|
25
|
+
const m = Object.values(((p = f.router) == null ? void 0 : p.glob) || {}).filter((r) => !!r).flat().sort((r, v) => (r.index ?? 0) - (v.index ?? 0));
|
|
26
|
+
u.push(
|
|
27
|
+
...m.map((r) => ({ ...r, path: `/${f.microAppName}${r.path}` }))
|
|
28
|
+
), u.push(
|
|
29
|
+
...m.filter((r) => !!r.path).filter((r) => r.path !== "").filter((r) => r.path !== "/").filter((r) => !r.path.startsWith(`/${r.microAppName}`)).map((r) => ({
|
|
31
30
|
path: r.path,
|
|
32
|
-
redirect: `/${
|
|
31
|
+
redirect: `/${f.microAppName}${r.path}`,
|
|
33
32
|
meta: { ...r.meta || {}, isMicroAppRouteRedirect: !0 }
|
|
34
33
|
}))
|
|
35
34
|
);
|
|
36
35
|
});
|
|
37
|
-
const
|
|
38
|
-
...
|
|
39
|
-
...
|
|
40
|
-
...
|
|
36
|
+
const s = ((g = e == null ? void 0 : e.router) == null ? void 0 : g.routers) || [], R = [
|
|
37
|
+
...n(t, e),
|
|
38
|
+
...n(s, e),
|
|
39
|
+
...n(u, e)
|
|
41
40
|
];
|
|
42
|
-
return { router:
|
|
43
|
-
},
|
|
44
|
-
const
|
|
45
|
-
return
|
|
46
|
-
}),
|
|
47
|
-
const { baseURL: e = "" } = y(), t = await fetch(`${e}/oss/resource/front-end/web/_config/config.json`), { disableSaveToken: c = !1 } = await t.json(), u = { disableSaveToken: c };
|
|
48
|
-
window.webConfig = u;
|
|
49
|
-
}, _ = (e) => {
|
|
41
|
+
return { router: y({ history: D(a), routes: R, ...c }) };
|
|
42
|
+
}, n = (e, a) => e.map((c) => {
|
|
43
|
+
const l = c.meta || {};
|
|
44
|
+
return l.keepAlive = l.keepAlive ?? (a == null ? void 0 : a.keepAlive) ?? !0, { ...c, meta: l };
|
|
45
|
+
}), w = (e) => {
|
|
50
46
|
e || (e = {});
|
|
51
|
-
const
|
|
52
|
-
Promise.all([
|
|
53
|
-
|
|
47
|
+
const a = x(!0);
|
|
48
|
+
Promise.all([P(e), W(e)]).then(() => {
|
|
49
|
+
a.value = !1;
|
|
54
50
|
});
|
|
55
|
-
const { container: c, component:
|
|
56
|
-
|
|
57
|
-
const { router:
|
|
58
|
-
return
|
|
51
|
+
const { container: c, component: l, props: t } = (e == null ? void 0 : e.root) || {}, u = O(l || $, t);
|
|
52
|
+
u.use(N, e), u.use(d);
|
|
53
|
+
const { router: s } = B(e);
|
|
54
|
+
return u.use(s), u.mount(c || "#app"), { app: u, router: s, loading: a, store: d };
|
|
59
55
|
};
|
|
60
56
|
export {
|
|
61
|
-
|
|
57
|
+
w as createDasWebApp
|
|
62
58
|
};
|
|
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-BTkL8vcq.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
|
|
@@ -12542,8 +12542,7 @@ const UH = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
12542
12542
|
l9(
|
|
12543
12543
|
() => P.currentRoute.value,
|
|
12544
12544
|
async (b) => {
|
|
12545
|
-
|
|
12546
|
-
if (!localStorage.getItem("loginType") && R && localStorage.setItem("loginType", R), !(b.path === a && sr(b.query, t))) {
|
|
12545
|
+
if (!(b.path === a && sr(b.query, t))) {
|
|
12547
12546
|
if (a = v7(b.path), t = v7(b.query), t && t.source && localStorage.setItem("thirdLogouSource", t.source), await e(), z9.innerSet) {
|
|
12548
12547
|
z9.innerSet = !1;
|
|
12549
12548
|
return;
|
|
@@ -12581,10 +12580,10 @@ const UH = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
12581
12580
|
logout_token: Uf(),
|
|
12582
12581
|
// 写用户访问日志逻辑配合
|
|
12583
12582
|
logout: "true"
|
|
12584
|
-
}
|
|
12585
|
-
|
|
12586
|
-
const
|
|
12587
|
-
window.__isAutoCloseApp = !1, P() ? u(
|
|
12583
|
+
};
|
|
12584
|
+
v.ssoLocale && (b.locale = "locale");
|
|
12585
|
+
const R = Object.keys(b).map((H) => `${H}=${b[H]}`).join("&"), q = `${v.baseURL}${a.logout}?${R}`;
|
|
12586
|
+
window.__isAutoCloseApp = !1, P() ? u(q) : location.replace(q), sessionStorage.clear(), localStorage.removeItem("idelTime"), z0();
|
|
12588
12587
|
}, { entryApp: X } = d3(), c = async () => {
|
|
12589
12588
|
const a = "personCenter", b = (gA().appcategorys || []).map((V) => V.apps).flat(), { originalMenus: R = [] } = await Ur(a), H = cf(R).filter((V) => V.isMenu && V.routeUrl).find((V) => V.routeUrl === "/userInfo");
|
|
12590
12589
|
if (H != null && H.disable || H != null && H.expired) {
|
|
@@ -16542,11 +16541,11 @@ B("@das-fed/web");
|
|
|
16542
16541
|
const ix = [
|
|
16543
16542
|
{
|
|
16544
16543
|
path: bf,
|
|
16545
|
-
component: () => import("./index-
|
|
16544
|
+
component: () => import("./index-9Btqmzxh.js")
|
|
16546
16545
|
},
|
|
16547
16546
|
{
|
|
16548
16547
|
path: z6,
|
|
16549
|
-
component: () => import("./index-
|
|
16548
|
+
component: () => import("./index-DjY3P4GQ.js")
|
|
16550
16549
|
}
|
|
16551
16550
|
], lR = {
|
|
16552
16551
|
routes: ix,
|
|
Binary file
|
package/index-Dd5IG0LM.js.gz
DELETED
|
Binary file
|
package/index-ZteIZHLW.js.gz
DELETED
|
Binary file
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getWebConfig: () => any;
|