@das-fed/upf-web 6.4.0-dev.233 → 6.4.0-dev.234
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 +5 -5
- package/front-end/i18n/front-end-page/dasweb_en-US.js +2 -2
- package/front-end/i18n/front-end-page/dasweb_zh-CN.js +2 -2
- package/front-end/i18n/front-end-page/dasweb_zh-MO.js +2 -2
- package/{index-CUR2UuLR.js → index-BgdQU8Qg.js} +1 -1
- package/index-BgdQU8Qg.js.gz +0 -0
- package/{index-DeaZJ_4F.js → index-DWgRH_-S.js} +3 -3
- package/index-DWgRH_-S.js.gz +0 -0
- package/{index-CNxj49VD.js → index-Dnv3WlBw.js} +1 -1
- package/index.js +1 -1
- package/package.json +5 -5
- package/packages/create-das-web-app/es5.js +22 -22
- package/packages/create-das-web-app/index.js +13 -13
- package/packages/create-das-web-app/index.js.gz +0 -0
- package/index-CUR2UuLR.js.gz +0 -0
- package/index-DeaZJ_4F.js.gz +0 -0
package/es5.js
CHANGED
|
@@ -202,7 +202,7 @@ var X0 = function X0(t) {
|
|
|
202
202
|
w = typeof b == "string" ? [b] : b;
|
|
203
203
|
s.markLoaded(C, k);
|
|
204
204
|
_context.p = 5;
|
|
205
|
-
B = "/web/".concat(k, "/");
|
|
205
|
+
B = "/web/".concat(k.split("/")[1], "/");
|
|
206
206
|
_context.n = 6;
|
|
207
207
|
return registerMicroI18nData(w, C, B);
|
|
208
208
|
case 6:
|
|
@@ -17826,14 +17826,14 @@ var sg = [{
|
|
|
17826
17826
|
path: ot,
|
|
17827
17827
|
component: function component() {
|
|
17828
17828
|
return Promise.resolve().then(function () {
|
|
17829
|
-
return
|
|
17829
|
+
return indexBgdQU8Qg;
|
|
17830
17830
|
});
|
|
17831
17831
|
}
|
|
17832
17832
|
}, {
|
|
17833
17833
|
path: Os,
|
|
17834
17834
|
component: function component() {
|
|
17835
17835
|
return Promise.resolve().then(function () {
|
|
17836
|
-
return
|
|
17836
|
+
return indexDnv3WlBw;
|
|
17837
17837
|
});
|
|
17838
17838
|
}
|
|
17839
17839
|
}],
|
|
@@ -18016,7 +18016,7 @@ var V = "v1",
|
|
|
18016
18016
|
};
|
|
18017
18017
|
}
|
|
18018
18018
|
});
|
|
18019
|
-
var
|
|
18019
|
+
var indexBgdQU8Qg = /*#__PURE__*/Object.freeze({
|
|
18020
18020
|
__proto__: null,
|
|
18021
18021
|
"default": oo
|
|
18022
18022
|
});
|
|
@@ -18025,7 +18025,7 @@ function t(n, _) {
|
|
|
18025
18025
|
return openBlock(), createElementBlock("div");
|
|
18026
18026
|
}
|
|
18027
18027
|
var a = /* @__PURE__ */Ne(o, [["render", t]]);
|
|
18028
|
-
var
|
|
18028
|
+
var indexDnv3WlBw = /*#__PURE__*/Object.freeze({
|
|
18029
18029
|
__proto__: null,
|
|
18030
18030
|
"default": a
|
|
18031
18031
|
});
|
|
@@ -224,11 +224,11 @@ export default {
|
|
|
224
224
|
"此应用菜单已过期": "此应用菜单已过期",
|
|
225
225
|
"已收回": "已收回",
|
|
226
226
|
"配置有误": "配置有误",
|
|
227
|
-
"系统资源更新": "系统资源更新",
|
|
228
|
-
"请刷新系统": "请刷新系统",
|
|
229
227
|
"切换后已录入的数据将会丢失且不可恢复":
|
|
230
228
|
"切换后已录入的数据将会丢失且不可恢复",
|
|
231
229
|
"确定切换": "确定切换",
|
|
230
|
+
"系统资源更新": "系统资源更新",
|
|
231
|
+
"请刷新系统": "请刷新系统",
|
|
232
232
|
"秘钥为空": "秘钥为空",
|
|
233
233
|
"非": "非",
|
|
234
234
|
"模式": "模式",
|
|
@@ -6,7 +6,7 @@ import { DasSpin as E } from "@das-fed/upf-ui/packages/components/spin/index";
|
|
|
6
6
|
import { getTabInfo as L } from "@das-fed/upf-utils/common-info";
|
|
7
7
|
import { setShowLayout as P } from "@das-fed/upf-utils/common-tools";
|
|
8
8
|
import { createService as b } from "@das-fed/upf-utils/create-api-service";
|
|
9
|
-
import { u as q, p as B, c as h, l as K, g as M, a as N } from "./index-
|
|
9
|
+
import { u as q, p as B, c as h, l as K, g as M, a as N } from "./index-DWgRH_-S.js";
|
|
10
10
|
const O = d(!1), c = d([]);
|
|
11
11
|
p(() => {
|
|
12
12
|
var l;
|
|
Binary file
|
|
@@ -94,7 +94,7 @@ const X0 = (t) => {
|
|
|
94
94
|
const w = typeof b == "string" ? [b] : b;
|
|
95
95
|
s.markLoaded(C, k);
|
|
96
96
|
try {
|
|
97
|
-
const B = `/web/${k}/`;
|
|
97
|
+
const B = `/web/${k.split("/")[1]}/`;
|
|
98
98
|
await u0(w, C, B);
|
|
99
99
|
} catch {
|
|
100
100
|
s.markUnloaded(C, k);
|
|
@@ -12527,11 +12527,11 @@ L("@das-fed/upf-web");
|
|
|
12527
12527
|
const sg = [
|
|
12528
12528
|
{
|
|
12529
12529
|
path: ot,
|
|
12530
|
-
component: () => import("./index-
|
|
12530
|
+
component: () => import("./index-BgdQU8Qg.js")
|
|
12531
12531
|
},
|
|
12532
12532
|
{
|
|
12533
12533
|
path: Os,
|
|
12534
|
-
component: () => import("./index-
|
|
12534
|
+
component: () => import("./index-Dnv3WlBw.js")
|
|
12535
12535
|
}
|
|
12536
12536
|
], ym = {
|
|
12537
12537
|
routes: sg,
|
|
Binary file
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { M as s, D as t, F as n, E as r, G as i, b as o, m as u, z as g, o as m, d as l, f as p, k as D, y as c, B as L, C as b, h, i as y, J as A, K as I, w as M, e as T, H as R, I as W, q as F, N as d, L as V, r as f, v as k, s as v, j as w, n as x, x as K, A as N, t as j } from "./index-
|
|
1
|
+
import { M as s, D as t, F as n, E as r, G as i, b as o, m as u, z as g, o as m, d as l, f as p, k as D, y as c, B as L, C as b, h, i as y, J as A, K as I, w as M, e as T, H as R, I as W, q as F, N as d, L as V, r as f, v as k, s as v, j as w, n as x, x as K, A as N, t as j } from "./index-DWgRH_-S.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/upf-web",
|
|
3
|
-
"version": "6.4.0-dev.
|
|
3
|
+
"version": "6.4.0-dev.234",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@das-fed/mframe": "0.0.41",
|
|
8
|
-
"@das-fed/upf-ui": "6.4.0-dev.
|
|
9
|
-
"@das-fed/upf-utils": "6.4.0-dev.
|
|
10
|
-
"@das-fed/upf-web-components": "6.4.0-dev.
|
|
8
|
+
"@das-fed/upf-ui": "6.4.0-dev.234",
|
|
9
|
+
"@das-fed/upf-utils": "6.4.0-dev.234",
|
|
10
|
+
"@das-fed/upf-web-components": "6.4.0-dev.234",
|
|
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/upf-cli": "6.4.0-dev.
|
|
22
|
+
"@das-fed/upf-cli": "6.4.0-dev.234",
|
|
23
23
|
"@types/crypto-js": "^4.2.2",
|
|
24
24
|
"@types/lodash": "^4.14.194",
|
|
25
25
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -32,13 +32,13 @@ var U = {
|
|
|
32
32
|
install: function install(e, u) {
|
|
33
33
|
var l;
|
|
34
34
|
var s = (l = u == null ? undefined : u.plugins) == null ? undefined : l.glob;
|
|
35
|
-
s && Object.values(s).sort(function (
|
|
36
|
-
var
|
|
37
|
-
return ((
|
|
38
|
-
}).filter(function (
|
|
39
|
-
return
|
|
40
|
-
}).forEach(function (
|
|
41
|
-
|
|
35
|
+
s && Object.values(s).sort(function (t, c) {
|
|
36
|
+
var _t$index, _c$index;
|
|
37
|
+
return ((_t$index = t.index) !== null && _t$index !== void 0 ? _t$index : 0) - ((_c$index = c.index) !== null && _c$index !== void 0 ? _c$index : 0);
|
|
38
|
+
}).filter(function (t) {
|
|
39
|
+
return t ? !!(t["default"] && t["default"].install || t.install) : false;
|
|
40
|
+
}).forEach(function (t) {
|
|
41
|
+
t["default"] && t["default"].install && e.use(t["default"], u), t.install && e.use(t, u);
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
},
|
|
@@ -50,26 +50,26 @@ var q = function q(e) {
|
|
|
50
50
|
var u = (_ref = (y = e == null ? undefined : e.router) == null ? undefined : y.routerBase) !== null && _ref !== void 0 ? _ref : "/",
|
|
51
51
|
s = ((R = e == null ? undefined : e.router) == null ? undefined : R.options) || {};
|
|
52
52
|
var l = Object.assign(((v = e == null ? undefined : e.router) == null ? undefined : v.glob) || {});
|
|
53
|
-
var
|
|
53
|
+
var t = Object.values(l).filter(function (n) {
|
|
54
54
|
return !!n;
|
|
55
|
-
}).flat().sort(function (n,
|
|
56
|
-
var _n$index,
|
|
57
|
-
return ((_n$index = n.index) !== null && _n$index !== void 0 ? _n$index : 0) - ((
|
|
55
|
+
}).flat().sort(function (n, a) {
|
|
56
|
+
var _n$index, _a$index;
|
|
57
|
+
return ((_n$index = n.index) !== null && _n$index !== void 0 ? _n$index : 0) - ((_a$index = a.index) !== null && _a$index !== void 0 ? _a$index : 0);
|
|
58
58
|
}),
|
|
59
59
|
c = [];
|
|
60
60
|
(k = e == null ? undefined : e.microApps) == null || k.map(function (n) {
|
|
61
61
|
var g;
|
|
62
|
-
var
|
|
62
|
+
var a = Object.values(((g = n.router) == null ? undefined : g.glob) || {}).filter(function (r) {
|
|
63
63
|
return !!r;
|
|
64
64
|
}).flat().sort(function (r, p) {
|
|
65
65
|
var _r$index, _p$index;
|
|
66
66
|
return ((_r$index = r.index) !== null && _r$index !== void 0 ? _r$index : 0) - ((_p$index = p.index) !== null && _p$index !== void 0 ? _p$index : 0);
|
|
67
67
|
});
|
|
68
|
-
c.push.apply(c, _toConsumableArray(
|
|
68
|
+
c.push.apply(c, _toConsumableArray(a.map(function (r) {
|
|
69
69
|
return _objectSpread(_objectSpread({}, r), {}, {
|
|
70
70
|
path: "/".concat(n.microAppName).concat(r.path)
|
|
71
71
|
});
|
|
72
|
-
}))), c.push.apply(c, _toConsumableArray(
|
|
72
|
+
}))), c.push.apply(c, _toConsumableArray(a.filter(function (r) {
|
|
73
73
|
return !!r.path;
|
|
74
74
|
}).filter(function (r) {
|
|
75
75
|
return r.path !== "";
|
|
@@ -88,7 +88,7 @@ var q = function q(e) {
|
|
|
88
88
|
})));
|
|
89
89
|
});
|
|
90
90
|
var o = (($ = e == null ? undefined : e.router) == null ? undefined : $.routers) || [],
|
|
91
|
-
d = [].concat(_toConsumableArray(b(
|
|
91
|
+
d = [].concat(_toConsumableArray(b(t, e)), _toConsumableArray(b(o, e)), _toConsumableArray(b(c, e))),
|
|
92
92
|
w = vueRouter.createRouter(_objectSpread({
|
|
93
93
|
history: vueRouter.createWebHistory(u),
|
|
94
94
|
routes: d
|
|
@@ -100,8 +100,8 @@ var q = function q(e) {
|
|
|
100
100
|
_step;
|
|
101
101
|
try {
|
|
102
102
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
103
|
-
var
|
|
104
|
-
|
|
103
|
+
var a = _step.value;
|
|
104
|
+
a != null && a.microAppName && a != null && a.i18n && n.set(a.microAppName, a.i18n);
|
|
105
105
|
}
|
|
106
106
|
} catch (err) {
|
|
107
107
|
_iterator.e(err);
|
|
@@ -109,13 +109,13 @@ var q = function q(e) {
|
|
|
109
109
|
_iterator.f();
|
|
110
110
|
}
|
|
111
111
|
w.beforeEach(/*#__PURE__*/function () {
|
|
112
|
-
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(
|
|
112
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(a, g, r) {
|
|
113
113
|
var p, m, L, _iterator2, _step2, _step2$value, i, f, N, x, _t, _t2, _t3;
|
|
114
114
|
return _regenerator().w(function (_context) {
|
|
115
115
|
while (1) switch (_context.p = _context.n) {
|
|
116
116
|
case 0:
|
|
117
117
|
_context.p = 0;
|
|
118
|
-
m = ((p =
|
|
118
|
+
m = ((p = a.query) == null ? void 0 : p.lang) || window.localStorage.getItem(index$2.languageKey) || window.navigator.language || "zh-CN", L = a.path || "";
|
|
119
119
|
_iterator2 = _createForOfIteratorHelper(n.entries());
|
|
120
120
|
_context.p = 1;
|
|
121
121
|
_iterator2.s();
|
|
@@ -140,7 +140,7 @@ var q = function q(e) {
|
|
|
140
140
|
N = typeof f == "string" ? [f] : f;
|
|
141
141
|
h.markLoaded(m, i);
|
|
142
142
|
_context.p = 5;
|
|
143
|
-
x = "/web/".concat(i, "/");
|
|
143
|
+
x = "/web/".concat(i.split("/")[1], "/");
|
|
144
144
|
_context.n = 6;
|
|
145
145
|
return index$2.registerMicroI18nData(N, m, x);
|
|
146
146
|
case 6:
|
|
@@ -209,8 +209,8 @@ var q = function q(e) {
|
|
|
209
209
|
var _ref4 = (e == null ? undefined : e.root) || {},
|
|
210
210
|
s = _ref4.container,
|
|
211
211
|
l = _ref4.component,
|
|
212
|
-
|
|
213
|
-
c = vue.createApp(l || index$1.DasWebLayout,
|
|
212
|
+
t = _ref4.props,
|
|
213
|
+
c = vue.createApp(l || index$1.DasWebLayout, t);
|
|
214
214
|
c.use(U, e), c.use(A);
|
|
215
215
|
var _q = q(e),
|
|
216
216
|
o = _q.router;
|
|
@@ -9,8 +9,8 @@ const U = {
|
|
|
9
9
|
install: (e, u) => {
|
|
10
10
|
var l;
|
|
11
11
|
const s = (l = u == null ? void 0 : u.plugins) == null ? void 0 : l.glob;
|
|
12
|
-
s && Object.values(s).sort((
|
|
13
|
-
|
|
12
|
+
s && Object.values(s).sort((t, c) => (t.index ?? 0) - (c.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, u), t.install && e.use(t, u);
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
}, A = D();
|
|
@@ -19,14 +19,14 @@ const q = (e) => {
|
|
|
19
19
|
var y, R, v, k, $;
|
|
20
20
|
const u = ((y = e == null ? void 0 : e.router) == null ? void 0 : y.routerBase) ?? "/", s = ((R = e == null ? void 0 : e.router) == null ? void 0 : R.options) || {};
|
|
21
21
|
let l = Object.assign(((v = e == null ? void 0 : e.router) == null ? void 0 : v.glob) || {});
|
|
22
|
-
const
|
|
22
|
+
const t = Object.values(l).filter((n) => !!n).flat().sort((n, a) => (n.index ?? 0) - (a.index ?? 0)), c = [];
|
|
23
23
|
(k = e == null ? void 0 : e.microApps) == null || k.map((n) => {
|
|
24
24
|
var g;
|
|
25
|
-
const
|
|
25
|
+
const a = Object.values(((g = n.router) == null ? void 0 : g.glob) || {}).filter((r) => !!r).flat().sort((r, p) => (r.index ?? 0) - (p.index ?? 0));
|
|
26
26
|
c.push(
|
|
27
|
-
...
|
|
27
|
+
...a.map((r) => ({ ...r, path: `/${n.microAppName}${r.path}` }))
|
|
28
28
|
), c.push(
|
|
29
|
-
...
|
|
29
|
+
...a.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
31
|
redirect: `/${n.microAppName}${r.path}`,
|
|
32
32
|
meta: { ...r.meta || {}, isMicroAppRouteRedirect: !0 }
|
|
@@ -34,25 +34,25 @@ const q = (e) => {
|
|
|
34
34
|
);
|
|
35
35
|
});
|
|
36
36
|
const o = (($ = e == null ? void 0 : e.router) == null ? void 0 : $.routers) || [], d = [
|
|
37
|
-
...b(
|
|
37
|
+
...b(t, e),
|
|
38
38
|
...b(o, e),
|
|
39
39
|
...b(c, e)
|
|
40
40
|
], w = B({ history: C(u), routes: d, ...s }), h = I;
|
|
41
41
|
if (Array.isArray(e == null ? void 0 : e.microApps) && e.microApps.length && h) {
|
|
42
42
|
const n = /* @__PURE__ */ new Map();
|
|
43
|
-
for (const
|
|
44
|
-
|
|
45
|
-
w.beforeEach(async (
|
|
43
|
+
for (const a of e.microApps)
|
|
44
|
+
a != null && a.microAppName && (a != null && a.i18n) && n.set(a.microAppName, a.i18n);
|
|
45
|
+
w.beforeEach(async (a, g, r) => {
|
|
46
46
|
var p;
|
|
47
47
|
try {
|
|
48
|
-
const m = ((p =
|
|
48
|
+
const m = ((p = a.query) == null ? void 0 : p.lang) || window.localStorage.getItem(S) || window.navigator.language || "zh-CN", L = a.path || "";
|
|
49
49
|
for (const [i, f] of n.entries()) {
|
|
50
50
|
if (!i || !L.toLowerCase().startsWith(`/${i.toLowerCase()}`)) continue;
|
|
51
51
|
if (h.isLoaded(m, i) || !f || !(f != null && f.length)) break;
|
|
52
52
|
const N = typeof f == "string" ? [f] : f;
|
|
53
53
|
h.markLoaded(m, i);
|
|
54
54
|
try {
|
|
55
|
-
const x = `/web/${i}/`;
|
|
55
|
+
const x = `/web/${i.split("/")[1]}/`;
|
|
56
56
|
await E(N, m, x);
|
|
57
57
|
} catch {
|
|
58
58
|
h.markUnloaded(m, i);
|
|
@@ -76,7 +76,7 @@ const q = (e) => {
|
|
|
76
76
|
Promise.all([P(e)]).then(() => {
|
|
77
77
|
u.value = !1;
|
|
78
78
|
});
|
|
79
|
-
const { container: s, component: l, props:
|
|
79
|
+
const { container: s, component: l, props: t } = (e == null ? void 0 : e.root) || {}, c = O(l || j, t);
|
|
80
80
|
c.use(U, e), c.use(A);
|
|
81
81
|
const { router: o } = q(e);
|
|
82
82
|
return c.use(o), c.mount(s || "#app"), (d = window.top) != null && d.vueRouter || window.top && (window.top.vueRouter = o), { app: c, router: o, loading: u, store: A };
|
|
Binary file
|
package/index-CUR2UuLR.js.gz
DELETED
|
Binary file
|
package/index-DeaZJ_4F.js.gz
DELETED
|
Binary file
|