@das-fed/upf-web 6.4.0-dev.192 → 6.4.0-dev.193
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/es5.js +2 -2
- package/{index-By5Wk7TQ.js → index-BcjvyYLk.js} +1 -1
- package/index-BcjvyYLk.js.gz +0 -0
- package/{index-CJO2hF2R.js → index-CgWu185O.js} +3 -3
- package/index-CgWu185O.js.gz +0 -0
- package/{index-_4jeq8Kl.js → index-S6kweCdv.js} +1 -1
- package/index.js +1 -1
- package/package.json +6 -6
- package/packages/create-das-web-app/es5.js +51 -51
- package/packages/create-das-web-app/index.js +43 -43
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/packages/i18n/es5.js +1 -0
- package/packages/i18n/index.js +2 -1
- package/packages/i18n/index.js.gz +0 -0
- package/packages/main-app-framework/es5.js +60 -60
- package/packages/main-app-framework/{index-DFvNmS7u.js → index-Buz1vuLT.js} +1368 -1349
- package/packages/main-app-framework/index-Buz1vuLT.js.gz +0 -0
- package/packages/main-app-framework/{index-DzPLYXl7.js → index-C3kNicq1.js} +1 -1
- package/packages/main-app-framework/index-C3kNicq1.js.gz +0 -0
- package/packages/main-app-framework/{index-CThf7cCX.js → index-D5bomLoV.js} +1 -1
- package/packages/main-app-framework/index.js +1 -1
- package/index-By5Wk7TQ.js.gz +0 -0
- package/index-CJO2hF2R.js.gz +0 -0
- package/packages/main-app-framework/index-DFvNmS7u.js.gz +0 -0
- package/packages/main-app-framework/index-DzPLYXl7.js.gz +0 -0
|
@@ -1,59 +1,59 @@
|
|
|
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
|
|
9
|
-
install: (e,
|
|
1
|
+
import { ref as v, createApp as w } from "vue";
|
|
2
|
+
import { initTheme as x } from "@das-fed/upf-web/packages/theme/index";
|
|
3
|
+
import { initI18n as L } from "@das-fed/upf-web/packages/i18n/index";
|
|
4
|
+
import { DasWebLayout as O } from "@das-fed/upf-web/packages/layout/index";
|
|
5
|
+
import { createPinia as P } from "pinia";
|
|
6
|
+
import W from "pinia-plugin-persistedstate";
|
|
7
|
+
import { createRouter as $, createWebHistory as j } from "vue-router";
|
|
8
|
+
const k = {
|
|
9
|
+
install: (e, a) => {
|
|
10
10
|
var l;
|
|
11
|
-
const c = (l =
|
|
12
|
-
c && Object.values(c).sort((t,
|
|
13
|
-
t.default && t.default.install && e.use(t.default,
|
|
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
|
-
},
|
|
17
|
-
|
|
18
|
-
const
|
|
19
|
-
var h, b,
|
|
20
|
-
const
|
|
21
|
-
let l = Object.assign(((
|
|
22
|
-
const t = Object.values(l).filter((
|
|
23
|
-
(
|
|
24
|
-
var
|
|
25
|
-
const m = Object.values(((
|
|
26
|
-
|
|
27
|
-
...m.map((r) => ({ ...r, path: `/${
|
|
28
|
-
),
|
|
29
|
-
...m.filter((r) => !!r.path).filter((r) => r.path !== "").filter((r) => r.path !== "/").filter((r) => !r.path.startsWith(`/${r.microAppName}
|
|
16
|
+
}, i = P();
|
|
17
|
+
i.use(W);
|
|
18
|
+
const y = (e) => {
|
|
19
|
+
var d, h, b, g, p;
|
|
20
|
+
const a = ((d = e == null ? void 0 : e.router) == null ? void 0 : d.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((s) => !!s).flat().sort((s, m) => (s.index ?? 0) - (m.index ?? 0)), u = [];
|
|
23
|
+
(g = e == null ? void 0 : e.microApps) == null || g.map((s) => {
|
|
24
|
+
var A;
|
|
25
|
+
const m = Object.values(((A = s.router) == null ? void 0 : A.glob) || {}).filter((r) => !!r).flat().sort((r, R) => (r.index ?? 0) - (R.index ?? 0));
|
|
26
|
+
u.push(
|
|
27
|
+
...m.map((r) => ({ ...r, path: `/${s.microAppName}${r.path}` }))
|
|
28
|
+
), u.push(
|
|
29
|
+
...m.filter((r) => !!r.path).filter((r) => r.path !== "").filter((r) => r.path !== "/").filter((r) => !r.path.toLocaleLowerCase().startsWith(`/${r.microAppName}`.toLocaleLowerCase())).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
35
|
});
|
|
36
|
-
const
|
|
37
|
-
...
|
|
38
|
-
...
|
|
39
|
-
...
|
|
36
|
+
const f = ((p = e == null ? void 0 : e.router) == null ? void 0 : p.routers) || [], n = [
|
|
37
|
+
...o(t, e),
|
|
38
|
+
...o(f, e),
|
|
39
|
+
...o(u, e)
|
|
40
40
|
];
|
|
41
|
-
return { router:
|
|
42
|
-
},
|
|
41
|
+
return console.log("routerBase====", a), console.log("routes====", n), { router: $({ history: j(a), routes: n, ...c }) };
|
|
42
|
+
}, o = (e, a) => e.map((c) => {
|
|
43
43
|
const l = c.meta || {};
|
|
44
|
-
return l.keepAlive = l.keepAlive ?? (
|
|
45
|
-
}),
|
|
44
|
+
return l.keepAlive = l.keepAlive ?? (a == null ? void 0 : a.keepAlive) ?? !0, { ...c, meta: l };
|
|
45
|
+
}), T = (e) => {
|
|
46
46
|
var n;
|
|
47
47
|
e || (e = {});
|
|
48
|
-
const
|
|
49
|
-
Promise.all([
|
|
50
|
-
|
|
48
|
+
const a = v(!0);
|
|
49
|
+
Promise.all([x(e), L(e)]).then(() => {
|
|
50
|
+
a.value = !1;
|
|
51
51
|
});
|
|
52
|
-
const { container: c, component: l, props: t } = (e == null ? void 0 : e.root) || {},
|
|
53
|
-
|
|
54
|
-
const { router:
|
|
55
|
-
return
|
|
52
|
+
const { container: c, component: l, props: t } = (e == null ? void 0 : e.root) || {}, u = w(l || O, t);
|
|
53
|
+
u.use(k, e), u.use(i);
|
|
54
|
+
const { router: f } = y(e);
|
|
55
|
+
return u.use(f), u.mount(c || "#app"), (n = window.top) != null && n.vueRouter || window.top && (window.top.vueRouter = f), { app: u, router: f, loading: a, store: i };
|
|
56
56
|
};
|
|
57
57
|
export {
|
|
58
|
-
|
|
58
|
+
T as createDasWebApp
|
|
59
59
|
};
|
|
Binary file
|
package/packages/i18n/es5.js
CHANGED
package/packages/i18n/index.js
CHANGED
|
Binary file
|