@das-fed/web 7.1.0-seres.2 → 7.1.0-seres.3
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-BJDVxFOS.js → index-B2tm6y5q.js} +2007 -1971
- package/index-B2tm6y5q.js.gz +0 -0
- package/{packages/main-app-framework/index-BLOwaLgb.js → index-BXQDETIt.js} +1 -1
- package/{packages/main-app-framework/index-CwPhZ7VL.js → index-pdSO7wip.js} +1 -1
- package/index-pdSO7wip.js.gz +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js +30 -30
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/index.js.gz +0 -0
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css.gz +0 -0
- package/packages/main-app-framework/{index-CuDzwEwX.js → index-B2fbr8QE.js} +2592 -2556
- package/packages/main-app-framework/index-B2fbr8QE.js.gz +0 -0
- package/{index-C2e_Is65.js → packages/main-app-framework/index-BF2b5eFp.js} +1 -1
- package/{index-Dad2ayuK.js → packages/main-app-framework/index-C2xZjwFM.js} +1 -1
- package/packages/main-app-framework/index-C2xZjwFM.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/main-app-framework/style.css.gz +0 -0
- package/packages/micro-frontend/index.js.gz +0 -0
- package/packages/style/style.css.gz +0 -0
- package/packages/theme/index.js.gz +0 -0
- package/style.css.gz +0 -0
- package/index-BJDVxFOS.js.gz +0 -0
- package/index-Dad2ayuK.js.gz +0 -0
- package/packages/main-app-framework/index-CuDzwEwX.js.gz +0 -0
- package/packages/main-app-framework/index-CwPhZ7VL.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-B2tm6y5q.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-B2tm6y5q.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-seres.
|
|
3
|
+
"version": "7.1.0-seres.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/ui": "7.1.0-seres.
|
|
8
|
-
"@das-fed/utils": "7.1.0-seres.
|
|
9
|
-
"@das-fed/web": "7.1.0-seres.
|
|
10
|
-
"@das-fed/web-components": "7.1.0-seres.
|
|
7
|
+
"@das-fed/ui": "7.1.0-seres.3",
|
|
8
|
+
"@das-fed/utils": "7.1.0-seres.3",
|
|
9
|
+
"@das-fed/web": "7.1.0-seres.3",
|
|
10
|
+
"@das-fed/web-components": "7.1.0-seres.3",
|
|
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-seres.
|
|
22
|
+
"@das-fed/cli": "7.1.0-seres.3",
|
|
23
23
|
"@types/crypto-js": "^4.2.2",
|
|
24
24
|
"@types/lodash": "^4.14.194",
|
|
25
25
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -1,11 +1,11 @@
|
|
|
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
|
-
const
|
|
1
|
+
import { ref as v, createApp as x } from "vue";
|
|
2
|
+
import { initTheme as O } from "@das-fed/web/packages/theme/index";
|
|
3
|
+
import { initI18n as P } 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 j from "pinia-plugin-persistedstate";
|
|
7
|
+
import { createRouter as k, createWebHistory as y } from "vue-router";
|
|
8
|
+
const D = {
|
|
9
9
|
install: (e, a) => {
|
|
10
10
|
var l;
|
|
11
11
|
const c = (l = a == null ? void 0 : a.plugins) == null ? void 0 : l.glob;
|
|
@@ -13,45 +13,45 @@ const N = {
|
|
|
13
13
|
t.default && t.default.install && e.use(t.default, a), t.install && e.use(t, a);
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
},
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
var
|
|
20
|
-
const a = ((
|
|
21
|
-
let l = Object.assign(((
|
|
22
|
-
const t = Object.values(l).filter((
|
|
23
|
-
(A = e == null ? void 0 : e.microApps) == null || A.map((
|
|
24
|
-
var
|
|
25
|
-
const m = Object.values(((
|
|
16
|
+
}, i = $();
|
|
17
|
+
i.use(j);
|
|
18
|
+
const N = (e) => {
|
|
19
|
+
var h, b, g, A, p;
|
|
20
|
+
const a = ((h = e == null ? void 0 : e.router) == null ? void 0 : h.routerBase) ?? "/", c = ((b = e == null ? void 0 : e.router) == null ? void 0 : b.options) || {};
|
|
21
|
+
let l = Object.assign(((g = e == null ? void 0 : e.router) == null ? void 0 : g.glob) || {});
|
|
22
|
+
const t = Object.values(l).filter((s) => !!s).flat().sort((s, m) => (s.index ?? 0) - (m.index ?? 0)), u = [];
|
|
23
|
+
(A = e == null ? void 0 : e.microApps) == null || A.map((s) => {
|
|
24
|
+
var R;
|
|
25
|
+
const m = Object.values(((R = s.router) == null ? void 0 : R.glob) || {}).filter((r) => !!r).flat().sort((r, o) => (r.index ?? 0) - (o.index ?? 0));
|
|
26
26
|
u.push(
|
|
27
|
-
...m.map((r) => ({ ...r, path: `/${
|
|
27
|
+
...m.map((r) => ({ ...r, path: `/${s.microAppName}${r.path}` }))
|
|
28
28
|
), u.push(
|
|
29
29
|
...m.filter((r) => !!r.path).filter((r) => r.path !== "").filter((r) => r.path !== "/").filter((r) => !r.path.startsWith(`/${r.microAppName}`)).map((r) => ({
|
|
30
30
|
path: r.path,
|
|
31
|
-
redirect: `/${
|
|
31
|
+
redirect: `/${s.microAppName}${r.path}`,
|
|
32
32
|
meta: { ...r.meta || {}, isMicroAppRouteRedirect: !0 }
|
|
33
33
|
}))
|
|
34
34
|
);
|
|
35
|
-
});
|
|
36
|
-
const
|
|
35
|
+
}), console.log("microAppRoutes====", u);
|
|
36
|
+
const f = ((p = e == null ? void 0 : e.router) == null ? void 0 : p.routers) || [], d = [
|
|
37
37
|
...n(t, e),
|
|
38
|
-
...n(
|
|
38
|
+
...n(f, e),
|
|
39
39
|
...n(u, e)
|
|
40
40
|
];
|
|
41
|
-
return { router:
|
|
41
|
+
return console.log("routes====", d), { router: k({ history: y(a), routes: d, ...c }) };
|
|
42
42
|
}, n = (e, a) => e.map((c) => {
|
|
43
43
|
const l = c.meta || {};
|
|
44
44
|
return l.keepAlive = l.keepAlive ?? (a == null ? void 0 : a.keepAlive) ?? !0, { ...c, meta: l };
|
|
45
45
|
}), w = (e) => {
|
|
46
46
|
e || (e = {});
|
|
47
|
-
const a =
|
|
48
|
-
Promise.all([
|
|
47
|
+
const a = v(!0);
|
|
48
|
+
Promise.all([O(e), P(e)]).then(() => {
|
|
49
49
|
a.value = !1;
|
|
50
50
|
});
|
|
51
|
-
const { container: c, component: l, props: t } = (e == null ? void 0 : e.root) || {}, u =
|
|
52
|
-
u.use(
|
|
53
|
-
const { router:
|
|
54
|
-
return u.use(
|
|
51
|
+
const { container: c, component: l, props: t } = (e == null ? void 0 : e.root) || {}, u = x(l || W, t);
|
|
52
|
+
u.use(D, e), u.use(i);
|
|
53
|
+
const { router: f } = N(e);
|
|
54
|
+
return u.use(f), u.mount(c || "#app"), { app: u, router: f, loading: a, store: i };
|
|
55
55
|
};
|
|
56
56
|
export {
|
|
57
57
|
w as createDasWebApp
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|