@das-fed/web 6.4.0-beta.7 → 6.4.0-dev.10
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/{packages/main-app-framework/index-csrvxtZY.js → index-3xCfFiyN.js} +1 -1
- package/index-3xCfFiyN.js.gz +0 -0
- package/{index-B0_oruhN.js → index-BePRIUZj.js} +1 -1
- package/{index-E3_VNsYI.js → index-CIytPmSg.js} +15 -16
- package/index-CIytPmSg.js.gz +0 -0
- package/{index-C2ZSdOo4.js → index-Cp6SD-TQ.js} +2731 -2466
- package/index-Cp6SD-TQ.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/layout/index.js +202 -214
- package/packages/layout/index.js.gz +0 -0
- package/packages/layout/style.css +1 -1
- package/packages/layout/style.css.gz +0 -0
- package/packages/main-app-framework/{index-BmlzT8Nw.js → index-CXsP6QiJ.js} +1 -1
- package/{index-DCv0mp9Q.js → packages/main-app-framework/index-CY7DAPNF.js} +1 -1
- package/packages/main-app-framework/index-CY7DAPNF.js.gz +0 -0
- package/packages/main-app-framework/{index-DGFe8dVS.js → index-DQRCs8SS.js} +15 -16
- package/packages/main-app-framework/index-DQRCs8SS.js.gz +0 -0
- package/packages/main-app-framework/{index-BKvL69_g.js → index-DtmpkTTl.js} +2321 -2044
- package/packages/main-app-framework/index-DtmpkTTl.js.gz +0 -0
- package/packages/main-app-framework/index.js +1 -1
- package/packages/micro-frontend/index.js +22 -34
- package/packages/micro-frontend/index.js.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/index-C2ZSdOo4.js.gz +0 -0
- package/index-DCv0mp9Q.js.gz +0 -0
- package/index-E3_VNsYI.js.gz +0 -0
- package/packages/main-app-framework/index-BKvL69_g.js.gz +0 -0
- package/packages/main-app-framework/index-DGFe8dVS.js.gz +0 -0
- package/packages/main-app-framework/index-csrvxtZY.js.gz +0 -0
|
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-Cp6SD-TQ.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-
|
|
3
|
+
"version": "6.4.0-dev.10",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/ui": "6.4.0-
|
|
8
|
-
"@das-fed/utils": "6.4.0-
|
|
9
|
-
"@das-fed/web": "6.4.0-
|
|
10
|
-
"@das-fed/web-components": "6.4.0-
|
|
7
|
+
"@das-fed/ui": "6.4.0-dev.10",
|
|
8
|
+
"@das-fed/utils": "6.4.0-dev.10",
|
|
9
|
+
"@das-fed/web": "6.4.0-dev.10",
|
|
10
|
+
"@das-fed/web-components": "6.4.0-dev.10",
|
|
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-
|
|
21
|
+
"@das-fed/cli": "6.4.0-dev.10",
|
|
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 O, createApp as P } from "vue";
|
|
2
|
+
import { initTheme as j } 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
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 B = {
|
|
9
|
+
install: (e, t) => {
|
|
10
|
+
var a;
|
|
11
|
+
const c = (a = t == null ? void 0 : t.plugins) == null ? void 0 : a.glob;
|
|
12
|
+
c && Object.values(c).sort((r, u) => (r.index ?? 0) - (u.index ?? 0)).filter((r) => r ? !!(r.default && r.default.install || r.install) : !1).forEach((r) => {
|
|
13
|
+
r.default && r.default.install && e.use(r.default, t), r.install && e.use(r, t);
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
-
}, d =
|
|
16
|
+
}, d = $();
|
|
17
17
|
d.use(k);
|
|
18
|
-
const
|
|
19
|
-
var i,
|
|
20
|
-
const
|
|
21
|
-
let
|
|
22
|
-
const
|
|
23
|
-
(
|
|
24
|
-
var
|
|
25
|
-
const m = Object.values(((
|
|
18
|
+
const N = (e) => {
|
|
19
|
+
var b, i, g, h, A;
|
|
20
|
+
const t = ((b = e == null ? void 0 : e.router) == null ? void 0 : b.routerBase) ?? "/", c = ((i = e == null ? void 0 : e.router) == null ? void 0 : i.options) || {};
|
|
21
|
+
let a = Object.assign(((g = e == null ? void 0 : e.router) == null ? void 0 : g.glob) || {});
|
|
22
|
+
const r = Object.values(a).filter((f) => !!f).flat().sort((f, m) => (f.index ?? 0) - (m.index ?? 0)), u = [];
|
|
23
|
+
(h = e == null ? void 0 : e.microApps) == null || h.map((f) => {
|
|
24
|
+
var R;
|
|
25
|
+
const m = Object.values(((R = f.router) == null ? void 0 : R.glob) || {}).filter((l) => !!l).flat().sort((l, x) => (l.index ?? 0) - (x.index ?? 0));
|
|
26
26
|
u.push(
|
|
27
|
-
...m.map((
|
|
27
|
+
...m.map((l) => ({ ...l, path: `/${f.microAppName}${l.path}` }))
|
|
28
28
|
), u.push(
|
|
29
|
-
...m.
|
|
30
|
-
path:
|
|
31
|
-
redirect: `/${f.microAppName}${
|
|
32
|
-
meta: { ...
|
|
29
|
+
...m.map((l) => ({
|
|
30
|
+
path: l.path,
|
|
31
|
+
redirect: `/${f.microAppName}${l.path}`,
|
|
32
|
+
meta: { ...l.meta || {}, isMicroAppRouteRedirect: !0 }
|
|
33
33
|
}))
|
|
34
34
|
);
|
|
35
35
|
});
|
|
36
|
-
const s = ((
|
|
37
|
-
...n(
|
|
36
|
+
const s = ((A = e == null ? void 0 : e.router) == null ? void 0 : A.routers) || [], v = [
|
|
37
|
+
...n(r, 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(t), routes: v, ...c }) };
|
|
42
|
+
}, n = (e, t) => e.map((c) => {
|
|
43
|
+
const a = c.meta || {};
|
|
44
|
+
return a.keepAlive = a.keepAlive ?? (t == null ? void 0 : t.keepAlive) ?? !0, { ...c, meta: a };
|
|
45
|
+
}), z = (e) => {
|
|
46
46
|
e || (e = {});
|
|
47
|
-
const
|
|
48
|
-
Promise.all([
|
|
49
|
-
|
|
47
|
+
const t = O(!0);
|
|
48
|
+
Promise.all([j(e), p(e)]).then(() => {
|
|
49
|
+
t.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: a, props: r } = (e == null ? void 0 : e.root) || {}, u = P(a || W, r);
|
|
52
|
+
u.use(B, e), u.use(d);
|
|
53
|
+
const { router: s } = N(e);
|
|
54
|
+
return u.use(s), u.mount(c || "#app"), { app: u, router: s, loading: t, store: d };
|
|
55
55
|
};
|
|
56
56
|
export {
|
|
57
|
-
|
|
57
|
+
z as createDasWebApp
|
|
58
58
|
};
|
|
Binary file
|