@das-fed/web 7.1.0-dev.16 → 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/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-DjMThLof.js";
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.16",
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.16",
8
- "@das-fed/utils": "7.1.0-dev.16",
9
- "@das-fed/web": "7.1.0-dev.16",
10
- "@das-fed/web-components": "7.1.0-dev.16",
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.16",
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 w } from "vue";
2
- import { initTheme as j } from "@das-fed/web/packages/theme/index";
3
- import { initI18n as x } from "@das-fed/web/packages/i18n/index";
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 k from "pinia-plugin-persistedstate";
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(k);
18
+ m.use(j);
19
19
  const D = (e) => {
20
- var o, d, b, g, h;
21
- const t = ((o = e == null ? void 0 : e.router) == null ? void 0 : o.routerBase) ?? "/", c = ((d = e == null ? void 0 : e.router) == null ? void 0 : d.options) || {};
22
- let u = Object.assign(((b = e == null ? void 0 : e.router) == null ? void 0 : b.glob) || {});
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
- (g = e == null ? void 0 : e.microApps) == null || g.map((s) => {
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 = ((h = e == null ? void 0 : e.router) == null ? void 0 : h.routers) || [], p = [
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 (await fetch(`${e}/oss/resource/front-end/web/_config/config.json`)).json().catch(() => ({})), { disableSaveToken: u = !1 } = c || {};
50
- window.webConfig = { disableSaveToken: u };
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(), j(e), x(e)]).then(() => {
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 = w(u || W, a);
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 };
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as e, openBlock as r } from "vue";
2
- import { _ as c } from "./index-BzySH-7d.js";
2
+ import { _ as c } from "./index-ClzxlHtx.js";
3
3
  const o = {};
4
4
  function t(n, _) {
5
5
  return r(), e("div");