@das-fed/web 7.0.7-beta.1 → 7.0.7-hot.1
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-VFHeVlbQ.js → index-DVaL7cmW.js} +1 -1
- package/{index-3qGmnX0K.js → index-Dd5IG0LM.js} +864 -860
- package/index-Dd5IG0LM.js.gz +0 -0
- package/{packages/main-app-framework/index-9Btqmzxh.js → index-ZteIZHLW.js} +1 -1
- package/index-ZteIZHLW.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js +49 -45
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/{index-Cg1zDISe.js → packages/main-app-framework/index-7BoZiicm.js} +1 -1
- package/packages/main-app-framework/index-7BoZiicm.js.gz +0 -0
- package/packages/main-app-framework/{index-DjY3P4GQ.js → index-BlDFy06J.js} +1 -1
- package/packages/main-app-framework/{index-BTkL8vcq.js → index-HimW4rhP.js} +8 -7
- package/packages/main-app-framework/{index-BTkL8vcq.js.gz → index-HimW4rhP.js.gz} +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/types/create-das-web-app/get-web-config.d.ts +1 -0
- package/index-3qGmnX0K.js.gz +0 -0
- package/index-Cg1zDISe.js.gz +0 -0
- package/packages/main-app-framework/index-9Btqmzxh.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-Dd5IG0LM.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-Dd5IG0LM.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-
|
|
3
|
+
"version": "7.0.7-hot.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/ui": "7.0.7-
|
|
8
|
-
"@das-fed/utils": "7.0.7-
|
|
9
|
-
"@das-fed/web": "7.0.7-
|
|
10
|
-
"@das-fed/web-components": "7.0.7-
|
|
7
|
+
"@das-fed/ui": "7.0.7-hot.1",
|
|
8
|
+
"@das-fed/utils": "7.0.7-hot.1",
|
|
9
|
+
"@das-fed/web": "7.0.7-hot.1",
|
|
10
|
+
"@das-fed/web-components": "7.0.7-hot.1",
|
|
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-
|
|
22
|
+
"@das-fed/cli": "7.0.7-hot.1",
|
|
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,62 @@
|
|
|
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
|
-
c
|
|
13
|
-
|
|
1
|
+
import { ref as v, createApp as w } from "vue";
|
|
2
|
+
import { initTheme as x } from "@das-fed/web/packages/theme/index";
|
|
3
|
+
import { initI18n as j } 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
|
+
import O from "pinia-plugin-persistedstate";
|
|
7
|
+
import { createRouter as P, createWebHistory as k } from "vue-router";
|
|
8
|
+
import { getConfig as y } 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(O);
|
|
19
|
+
const D = (e) => {
|
|
20
|
+
var b, d, o, g, h;
|
|
21
|
+
const t = ((b = e == null ? void 0 : e.router) == null ? void 0 : b.routerBase) ?? "/", c = ((d = e == null ? void 0 : e.router) == null ? void 0 : d.options) || {};
|
|
22
|
+
let u = Object.assign(((o = e == null ? void 0 : e.router) == null ? void 0 : o.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:
|
|
42
|
-
},
|
|
43
|
-
const
|
|
44
|
-
return
|
|
45
|
-
}),
|
|
42
|
+
return { router: P({ history: k(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 = "" } = 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) => {
|
|
46
50
|
e || (e = {});
|
|
47
|
-
const
|
|
48
|
-
Promise.all([
|
|
49
|
-
|
|
51
|
+
const t = v(!0);
|
|
52
|
+
Promise.all([N(), x(e), j(e)]).then(() => {
|
|
53
|
+
t.value = !1;
|
|
50
54
|
});
|
|
51
|
-
const { container: c, component:
|
|
52
|
-
|
|
53
|
-
const { router:
|
|
54
|
-
return
|
|
55
|
+
const { container: c, component: u, props: a } = (e == null ? void 0 : e.root) || {}, l = w(u || W, a);
|
|
56
|
+
l.use(C, e), l.use(m);
|
|
57
|
+
const { router: f } = D(e);
|
|
58
|
+
return l.use(f), l.mount(c || "#app"), { app: l, router: f, loading: t, store: m };
|
|
55
59
|
};
|
|
56
60
|
export {
|
|
57
|
-
|
|
61
|
+
_ as createDasWebApp
|
|
58
62
|
};
|
|
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-HimW4rhP.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,7 +12542,8 @@ 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
|
-
|
|
12545
|
+
const R = b.query.loginType || "";
|
|
12546
|
+
if (!localStorage.getItem("loginType") && R && localStorage.setItem("loginType", R), !(b.path === a && sr(b.query, t))) {
|
|
12546
12547
|
if (a = v7(b.path), t = v7(b.query), t && t.source && localStorage.setItem("thirdLogouSource", t.source), await e(), z9.innerSet) {
|
|
12547
12548
|
z9.innerSet = !1;
|
|
12548
12549
|
return;
|
|
@@ -12580,10 +12581,10 @@ const UH = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xml
|
|
|
12580
12581
|
logout_token: Uf(),
|
|
12581
12582
|
// 写用户访问日志逻辑配合
|
|
12582
12583
|
logout: "true"
|
|
12583
|
-
};
|
|
12584
|
-
v.ssoLocale && (b.locale = "locale");
|
|
12585
|
-
const
|
|
12586
|
-
window.__isAutoCloseApp = !1, P() ? u(
|
|
12584
|
+
}, R = localStorage.getItem("loginType");
|
|
12585
|
+
R && (b.loginType = R), v.ssoLocale && (b.locale = "locale");
|
|
12586
|
+
const q = Object.keys(b).map((p) => `${p}=${b[p]}`).join("&"), H = `${v.baseURL}${a.logout}?${q}`;
|
|
12587
|
+
window.__isAutoCloseApp = !1, P() ? u(H) : location.replace(H), localStorage.removeItem("idelTime"), localStorage.removeItem("loginType"), sessionStorage.clear(), z0();
|
|
12587
12588
|
}, { entryApp: X } = d3(), c = async () => {
|
|
12588
12589
|
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");
|
|
12589
12590
|
if (H != null && H.disable || H != null && H.expired) {
|
|
@@ -16541,11 +16542,11 @@ B("@das-fed/web");
|
|
|
16541
16542
|
const ix = [
|
|
16542
16543
|
{
|
|
16543
16544
|
path: bf,
|
|
16544
|
-
component: () => import("./index-
|
|
16545
|
+
component: () => import("./index-7BoZiicm.js")
|
|
16545
16546
|
},
|
|
16546
16547
|
{
|
|
16547
16548
|
path: z6,
|
|
16548
|
-
component: () => import("./index-
|
|
16549
|
+
component: () => import("./index-BlDFy06J.js")
|
|
16549
16550
|
}
|
|
16550
16551
|
], lR = {
|
|
16551
16552
|
routes: ix,
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getWebConfig: () => any;
|
package/index-3qGmnX0K.js.gz
DELETED
|
Binary file
|
package/index-Cg1zDISe.js.gz
DELETED
|
Binary file
|
|
Binary file
|