@das-fed/web 6.4.0-dev.11 → 6.4.0-dev.13
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-CdrOv9ce.js → index-BQz2IjQE.js} +1120 -1105
- package/index-BQz2IjQE.js.gz +0 -0
- package/{index-jFzyVhGM.js → index-BW4jEqQ-.js} +16 -15
- package/index-BW4jEqQ-.js.gz +0 -0
- package/{index-D7VM--Bp.js → index-BXPEkTcx.js} +1 -1
- package/{index-CzmiHoa4.js → index-B_wn2nAJ.js} +14 -14
- package/index-B_wn2nAJ.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js +40 -40
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js +214 -202
- 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-Cq8Fro8z.js → index-BoLhjzZB.js} +16 -15
- package/packages/main-app-framework/index-BoLhjzZB.js.gz +0 -0
- package/packages/main-app-framework/{index-DyKCvROV.js → index-C9QdijG-.js} +14 -14
- package/packages/main-app-framework/index-C9QdijG-.js.gz +0 -0
- package/packages/main-app-framework/{index-D38gLa5D.js → index-D8WGTZ14.js} +1 -1
- package/packages/main-app-framework/{index-_nvo7ltJ.js → index-DbCJvZMG.js} +495 -490
- package/packages/main-app-framework/index-DbCJvZMG.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 +64 -54
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/micro-frontend/style.css +1 -1
- package/packages/style/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/index-CdrOv9ce.js.gz +0 -0
- package/index-CzmiHoa4.js.gz +0 -0
- package/index-jFzyVhGM.js.gz +0 -0
- package/packages/main-app-framework/index-Cq8Fro8z.js.gz +0 -0
- package/packages/main-app-framework/index-DyKCvROV.js.gz +0 -0
- package/packages/main-app-framework/index-_nvo7ltJ.js.gz +0 -0
|
Binary file
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as _, computed as w, openBlock as y, createBlock as k, unref as p, withCtx as U, createVNode as A } from "vue";
|
|
2
2
|
import { DasAppContainer as C } from "@das-fed/ui/packages/business-components/app-container/index";
|
|
3
3
|
import { DasSpin as v } from "@das-fed/ui/packages/components/spin/index";
|
|
4
4
|
import { getTabInfo as I } from "@das-fed/utils/common-info";
|
|
5
|
+
import { setShowLayout as S } from "@das-fed/utils/common-tools";
|
|
5
6
|
import { createService as j } from "@das-fed/utils/create-api-service";
|
|
6
|
-
import { u as
|
|
7
|
-
const
|
|
7
|
+
import { u as $, a as c, c as l, b as x, l as T, d as b } from "./index-BQz2IjQE.js";
|
|
8
|
+
const D = "v1", E = j(`/api/justauth/client/${D}`), L = E.get("/visitor/kingdee/auth/user/auth_code"), G = /* @__PURE__ */ _({
|
|
8
9
|
__name: "index",
|
|
9
|
-
setup(
|
|
10
|
-
const { beforeEntryApp: f, entryApp: d } =
|
|
10
|
+
setup(q) {
|
|
11
|
+
const { beforeEntryApp: f, entryApp: d } = $(), g = w(() => {
|
|
11
12
|
if (!c.value || !c.value.length) return [];
|
|
12
13
|
const o = l(c.value);
|
|
13
14
|
return Array.isArray(o) ? o.length ? (o.forEach((n) => n.apps = h(n.apps, 4)), o) : [] : [];
|
|
@@ -23,7 +24,7 @@ const T = "v1", b = j(`/api/justauth/client/${T}`), D = b.get("/visitor/kingdee/
|
|
|
23
24
|
return;
|
|
24
25
|
}
|
|
25
26
|
const e = l(o);
|
|
26
|
-
if (
|
|
27
|
+
if (T.innerSet = !0, e.routeUrl) {
|
|
27
28
|
if (o.code === "Ioc") {
|
|
28
29
|
window.open(e.routeUrl, "_blank");
|
|
29
30
|
return;
|
|
@@ -31,9 +32,9 @@ const T = "v1", b = j(`/api/justauth/client/${T}`), D = b.get("/visitor/kingdee/
|
|
|
31
32
|
if (o.code === "wojiacloud") {
|
|
32
33
|
const t = sessionStorage.getItem("kingdee_token") || "";
|
|
33
34
|
if (t) {
|
|
34
|
-
const [
|
|
35
|
-
if (
|
|
36
|
-
const s = (
|
|
35
|
+
const [i, a] = await L().run({ accessToken: t });
|
|
36
|
+
if (a) {
|
|
37
|
+
const s = (a == null ? void 0 : a.auth_code) ?? "";
|
|
37
38
|
e.routeUrl = e.routeUrl.includes("?") ? `${e.routeUrl}&code=${s}` : `${e.routeUrl}?code=${s}`;
|
|
38
39
|
}
|
|
39
40
|
}
|
|
@@ -42,17 +43,17 @@ const T = "v1", b = j(`/api/justauth/client/${T}`), D = b.get("/visitor/kingdee/
|
|
|
42
43
|
const r = (o == null ? void 0 : o.openType) ?? 1, u = (o == null ? void 0 : o.type) ?? 1;
|
|
43
44
|
if (r === 1) {
|
|
44
45
|
if (!await f(o)) return;
|
|
45
|
-
const
|
|
46
|
-
d({ microApp: e, menuCode:
|
|
46
|
+
const i = I().preTab[o.code], a = (i == null ? void 0 : i.code) ?? "", s = { ...(i == null ? void 0 : i.query) ?? {} };
|
|
47
|
+
d({ microApp: e, menuCode: a, route: { query: s } });
|
|
47
48
|
}
|
|
48
49
|
if (r === 2 && e.routeUrl) {
|
|
49
50
|
let t = "";
|
|
50
|
-
u === 1 ? t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl
|
|
51
|
+
u === 1 ? (t = e != null && e.applicationPath ? location.origin + "/" + e.applicationPath + e.routeUrl : location.origin + e.routeUrl, t = S(t)) : u === 2 && (t = b(e.routeUrl)), window.open(t, "_blank");
|
|
51
52
|
}
|
|
52
53
|
};
|
|
53
|
-
return (o, n) => (
|
|
54
|
+
return (o, n) => (y(), k(p(v), {
|
|
54
55
|
full: "",
|
|
55
|
-
spinning: p(
|
|
56
|
+
spinning: p(x)
|
|
56
57
|
}, {
|
|
57
58
|
default: U(() => [
|
|
58
59
|
A(p(C), {
|
|
@@ -66,5 +67,5 @@ const T = "v1", b = j(`/api/justauth/client/${T}`), D = b.get("/visitor/kingdee/
|
|
|
66
67
|
}
|
|
67
68
|
});
|
|
68
69
|
export {
|
|
69
|
-
|
|
70
|
+
G as default
|
|
70
71
|
};
|
|
Binary file
|
|
@@ -2,26 +2,26 @@ import { defineComponent as v, ref as r, nextTick as u, watch as p, onMounted as
|
|
|
2
2
|
import { useRoute as P } from "vue-router";
|
|
3
3
|
import { DasSpin as S } from "@das-fed/ui/packages/components/spin/index";
|
|
4
4
|
import { layout as C } from "@das-fed/web/packages/layout/index";
|
|
5
|
-
import { I as R, e as
|
|
6
|
-
import { getToken as
|
|
7
|
-
import { getUrlParams as
|
|
8
|
-
const
|
|
5
|
+
import { I as R, e as b, _ as L } from "./index-BQz2IjQE.js";
|
|
6
|
+
import { getToken as M, getPersonalInfo as j, getProjectInfo as B } from "@das-fed/utils/common-info";
|
|
7
|
+
import { getUrlParams as D } from "@das-fed/utils/common-tools";
|
|
8
|
+
const E = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "iframe-container"
|
|
11
|
-
},
|
|
11
|
+
}, N = ["src"], T = /* @__PURE__ */ v({
|
|
12
12
|
__name: "index",
|
|
13
|
-
setup(
|
|
13
|
+
setup(U) {
|
|
14
14
|
const t = r(""), n = r(!0);
|
|
15
15
|
C.tab.addEventListener("onPageRefresh", async (e) => {
|
|
16
|
-
e && e.path === R && (
|
|
16
|
+
e && e.path === R && (b(e.applicationCode, [e.code]), n.value = !1, await u(), n.value = !0);
|
|
17
17
|
});
|
|
18
18
|
const a = r(!1), i = r(null), o = r(!1), f = () => {
|
|
19
19
|
var e, s;
|
|
20
20
|
o.value && (e = i.value) != null && e.contentWindow && ((s = i.value.contentWindow) == null || s.postMessage(
|
|
21
21
|
{
|
|
22
|
-
token:
|
|
23
|
-
userInfo:
|
|
24
|
-
projectInfo:
|
|
22
|
+
token: M(),
|
|
23
|
+
userInfo: j(),
|
|
24
|
+
projectInfo: B()
|
|
25
25
|
},
|
|
26
26
|
t.value
|
|
27
27
|
));
|
|
@@ -36,10 +36,10 @@ const N = {
|
|
|
36
36
|
o.value = !0, f();
|
|
37
37
|
};
|
|
38
38
|
return _(() => {
|
|
39
|
-
a.value = !0, t.value =
|
|
39
|
+
a.value = !0, t.value = D(location.href, "iframeSrc");
|
|
40
40
|
}), h(() => {
|
|
41
41
|
o.value = !1, a.value = !1;
|
|
42
|
-
}), (e, s) => a.value && n.value ? (c(), l("div",
|
|
42
|
+
}), (e, s) => a.value && n.value ? (c(), l("div", E, [
|
|
43
43
|
w(g(S), {
|
|
44
44
|
spinning: !o.value
|
|
45
45
|
}, {
|
|
@@ -53,7 +53,7 @@ const N = {
|
|
|
53
53
|
src: t.value,
|
|
54
54
|
key: t.value,
|
|
55
55
|
onLoad: d
|
|
56
|
-
}, null, 40,
|
|
56
|
+
}, null, 40, N)), [
|
|
57
57
|
[y, o.value]
|
|
58
58
|
])
|
|
59
59
|
]),
|
|
@@ -62,7 +62,7 @@ const N = {
|
|
|
62
62
|
}, 8, ["spinning"])
|
|
63
63
|
])) : I("v-if", !0);
|
|
64
64
|
}
|
|
65
|
-
}), H = /* @__PURE__ */
|
|
65
|
+
}), H = /* @__PURE__ */ L(T, [["__scopeId", "data-v-98dbb97f"]]);
|
|
66
66
|
export {
|
|
67
67
|
H as default
|
|
68
68
|
};
|
|
Binary file
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as s, x as t, z as n, y as i, A as r, f as p, m as u, q as m, g as o, k as g, p as D, v as b, w as h, h as l, i as A, C as T, D as c, n as L, B as W, G as y, E as M, s as R, j as F, o as I, r as V, t as f } from "./index-
|
|
1
|
+
import { F as s, x as t, z as n, y as i, A as r, f as p, m as u, q as m, g as o, k as g, p as D, v as b, w as h, h as l, i as A, C as T, D as c, n as L, B as W, G as y, E as M, s as R, j as F, o as I, r as V, t as f } from "./index-BQz2IjQE.js";
|
|
2
2
|
export {
|
|
3
3
|
s 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-dev.
|
|
3
|
+
"version": "6.4.0-dev.13",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/ui": "6.4.0-dev.
|
|
8
|
-
"@das-fed/utils": "6.4.0-dev.
|
|
9
|
-
"@das-fed/web": "6.4.0-dev.
|
|
10
|
-
"@das-fed/web-components": "6.4.0-dev.
|
|
7
|
+
"@das-fed/ui": "6.4.0-dev.13",
|
|
8
|
+
"@das-fed/utils": "6.4.0-dev.13",
|
|
9
|
+
"@das-fed/web": "6.4.0-dev.13",
|
|
10
|
+
"@das-fed/web-components": "6.4.0-dev.13",
|
|
11
11
|
"@microsoft/signalr": "^8.0.7",
|
|
12
12
|
"@vueuse/core": "^9.13.0",
|
|
13
13
|
"animate.css": "^4.1.1",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"vue-router": "^4.4.0"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@das-fed/cli": "6.4.0-dev.
|
|
21
|
+
"@das-fed/cli": "6.4.0-dev.13",
|
|
22
22
|
"@types/lodash": "^4.14.194",
|
|
23
23
|
"@types/lodash-es": "^4.17.12",
|
|
24
24
|
"@vitejs/plugin-vue": "^5.1.0",
|
|
@@ -1,58 +1,58 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { initTheme as
|
|
3
|
-
import { initI18n as
|
|
4
|
-
import { DasWebLayout as
|
|
5
|
-
import { createPinia as
|
|
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
6
|
import k from "pinia-plugin-persistedstate";
|
|
7
7
|
import { createRouter as y, createWebHistory as D } from "vue-router";
|
|
8
|
-
const
|
|
9
|
-
install: (e,
|
|
10
|
-
var
|
|
11
|
-
const c = (
|
|
12
|
-
c && Object.values(c).sort((
|
|
13
|
-
|
|
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);
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
}, d =
|
|
16
|
+
}, d = j();
|
|
17
17
|
d.use(k);
|
|
18
|
-
const
|
|
19
|
-
var
|
|
20
|
-
const
|
|
21
|
-
let
|
|
22
|
-
const
|
|
23
|
-
(
|
|
24
|
-
var
|
|
25
|
-
const m = Object.values(((
|
|
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
26
|
u.push(
|
|
27
|
-
...m.map((
|
|
27
|
+
...m.map((r) => ({ ...r, path: `/${f.microAppName}${r.path}` }))
|
|
28
28
|
), u.push(
|
|
29
|
-
...m.map((
|
|
30
|
-
path:
|
|
31
|
-
redirect: `/${f.microAppName}${
|
|
32
|
-
meta: { ...
|
|
29
|
+
...m.filter((r) => !!r.path).filter((r) => r.path !== "").filter((r) => r.path !== "/").filter((r) => !r.path.startsWith(`/${r.microAppName}`)).map((r) => ({
|
|
30
|
+
path: r.path,
|
|
31
|
+
redirect: `/${f.microAppName}${r.path}`,
|
|
32
|
+
meta: { ...r.meta || {}, isMicroAppRouteRedirect: !0 }
|
|
33
33
|
}))
|
|
34
34
|
);
|
|
35
35
|
});
|
|
36
|
-
const s = ((
|
|
37
|
-
...n(
|
|
36
|
+
const s = ((g = e == null ? void 0 : e.router) == null ? void 0 : g.routers) || [], R = [
|
|
37
|
+
...n(t, e),
|
|
38
38
|
...n(s, e),
|
|
39
39
|
...n(u, e)
|
|
40
40
|
];
|
|
41
|
-
return { router: y({ history: D(
|
|
42
|
-
}, n = (e,
|
|
43
|
-
const
|
|
44
|
-
return
|
|
45
|
-
}),
|
|
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) => {
|
|
46
46
|
e || (e = {});
|
|
47
|
-
const
|
|
48
|
-
Promise.all([
|
|
49
|
-
|
|
47
|
+
const a = x(!0);
|
|
48
|
+
Promise.all([P(e), W(e)]).then(() => {
|
|
49
|
+
a.value = !1;
|
|
50
50
|
});
|
|
51
|
-
const { container: c, component:
|
|
52
|
-
u.use(
|
|
53
|
-
const { router: s } =
|
|
54
|
-
return u.use(s), u.mount(c || "#app"), { app: u, router: s, loading:
|
|
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 };
|
|
55
55
|
};
|
|
56
56
|
export {
|
|
57
|
-
|
|
57
|
+
w as createDasWebApp
|
|
58
58
|
};
|
|
Binary file
|
|
Binary file
|