@das-fed/web 7.1.0-dev.17 → 7.1.0-dev.18
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-CodKn6TT.js → index-CHogFltG.js} +1 -1
- package/index-CHogFltG.js.gz +0 -0
- package/{index-BhqGyeKY.js → index-ClLWjHBO.js} +1 -1
- package/{index-DjMThLof.js → index-CvBmySLj.js} +683 -691
- package/{index-DjMThLof.js.gz → index-CvBmySLj.js.gz} +0 -0
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/index.js +19 -15
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/main-app-framework/{index-BcD1HEer.js → index-9DsPqzvB.js} +1 -1
- package/packages/main-app-framework/{index-BzySH-7d.js → index-ClzxlHtx.js} +708 -720
- package/packages/main-app-framework/{index-BzySH-7d.js.gz → index-ClzxlHtx.js.gz} +0 -0
- package/{index-Cbv0qUFr.js → packages/main-app-framework/index-DrTsxZnw.js} +1 -1
- package/packages/main-app-framework/index-DrTsxZnw.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.gz +0 -0
- package/style.css +1 -1
- package/style.css.gz +0 -0
- package/index-Cbv0qUFr.js.gz +0 -0
- package/packages/main-app-framework/index-CodKn6TT.js.gz +0 -0
|
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-CvBmySLj.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-dev.
|
|
3
|
+
"version": "7.1.0-dev.18",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@das-fed/ui": "7.1.0-dev.
|
|
8
|
-
"@das-fed/utils": "7.1.0-dev.
|
|
9
|
-
"@das-fed/web": "7.1.0-dev.
|
|
10
|
-
"@das-fed/web-components": "7.1.0-dev.
|
|
7
|
+
"@das-fed/ui": "7.1.0-dev.18",
|
|
8
|
+
"@das-fed/utils": "7.1.0-dev.18",
|
|
9
|
+
"@das-fed/web": "7.1.0-dev.18",
|
|
10
|
+
"@das-fed/web-components": "7.1.0-dev.18",
|
|
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-dev.
|
|
22
|
+
"@das-fed/cli": "7.1.0-dev.18",
|
|
23
23
|
"@types/crypto-js": "^4.2.2",
|
|
24
24
|
"@types/lodash": "^4.14.194",
|
|
25
25
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ref as v, createApp as
|
|
2
|
-
import { initTheme as
|
|
3
|
-
import { initI18n as
|
|
1
|
+
import { ref as v, createApp as x } from "vue";
|
|
2
|
+
import { initTheme as k } from "@das-fed/web/packages/theme/index";
|
|
3
|
+
import { initI18n as w } from "@das-fed/web/packages/i18n/index";
|
|
4
4
|
import { DasWebLayout as W } from "@das-fed/web/packages/layout/index";
|
|
5
5
|
import { createPinia as $ } from "pinia";
|
|
6
|
-
import
|
|
6
|
+
import j from "pinia-plugin-persistedstate";
|
|
7
7
|
import { createRouter as y, createWebHistory as O } from "vue-router";
|
|
8
8
|
import { getConfig as P } from "@das-fed/utils/config";
|
|
9
9
|
const C = {
|
|
@@ -15,13 +15,13 @@ const C = {
|
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
17
|
}, m = $();
|
|
18
|
-
m.use(
|
|
18
|
+
m.use(j);
|
|
19
19
|
const D = (e) => {
|
|
20
|
-
var
|
|
21
|
-
const t = ((
|
|
22
|
-
let u = Object.assign(((
|
|
20
|
+
var d, b, o, h, g;
|
|
21
|
+
const t = ((d = e == null ? void 0 : e.router) == null ? void 0 : d.routerBase) ?? "/", c = ((b = e == null ? void 0 : e.router) == null ? void 0 : b.options) || {};
|
|
22
|
+
let u = Object.assign(((o = e == null ? void 0 : e.router) == null ? void 0 : o.glob) || {});
|
|
23
23
|
const a = Object.values(u).filter((s) => !!s).flat().sort((s, n) => (s.index ?? 0) - (n.index ?? 0)), l = [];
|
|
24
|
-
(
|
|
24
|
+
(h = e == null ? void 0 : e.microApps) == null || h.map((s) => {
|
|
25
25
|
var A;
|
|
26
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
27
|
l.push(
|
|
@@ -34,7 +34,7 @@ const D = (e) => {
|
|
|
34
34
|
}))
|
|
35
35
|
);
|
|
36
36
|
});
|
|
37
|
-
const f = ((
|
|
37
|
+
const f = ((g = e == null ? void 0 : e.router) == null ? void 0 : g.routers) || [], p = [
|
|
38
38
|
...i(a, e),
|
|
39
39
|
...i(f, e),
|
|
40
40
|
...i(l, e)
|
|
@@ -45,19 +45,23 @@ const D = (e) => {
|
|
|
45
45
|
return u.keepAlive = u.keepAlive ?? (t == null ? void 0 : t.keepAlive) ?? !0, { ...c, meta: u };
|
|
46
46
|
}), N = async () => {
|
|
47
47
|
const { baseURL: e = "" } = P();
|
|
48
|
+
let t = !1;
|
|
48
49
|
try {
|
|
49
|
-
const c = await
|
|
50
|
-
|
|
50
|
+
const c = await fetch(`${e}/oss/resource/front-end/web/_config/config.json`);
|
|
51
|
+
if (c.ok) {
|
|
52
|
+
const u = await c.json().catch(() => ({}));
|
|
53
|
+
t = (u == null ? void 0 : u.disableSaveToken) ?? !1;
|
|
54
|
+
}
|
|
51
55
|
} catch {
|
|
52
|
-
window.webConfig = { disableSaveToken: !1 };
|
|
53
56
|
}
|
|
57
|
+
window.webConfig = { disableSaveToken: t };
|
|
54
58
|
}, _ = (e) => {
|
|
55
59
|
e || (e = {});
|
|
56
60
|
const t = v(!0);
|
|
57
|
-
Promise.all([N(),
|
|
61
|
+
Promise.all([N(), k(e), w(e)]).then(() => {
|
|
58
62
|
t.value = !1;
|
|
59
63
|
});
|
|
60
|
-
const { container: c, component: u, props: a } = (e == null ? void 0 : e.root) || {}, l =
|
|
64
|
+
const { container: c, component: u, props: a } = (e == null ? void 0 : e.root) || {}, l = x(u || W, a);
|
|
61
65
|
l.use(C, e), l.use(m);
|
|
62
66
|
const { router: f } = D(e);
|
|
63
67
|
return l.use(f), l.mount(c || "#app"), { app: l, router: f, loading: t, store: m };
|
|
Binary file
|