@das-fed/upf-utils 6.4.0-dev.214 → 6.4.0-dev.216
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/api-services/es5.js +1450 -1438
- package/api-services/index.js +1190 -1167
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +967 -955
- package/api-services/modules/app-manage/index.js +793 -770
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +940 -931
- package/api-services/modules/authentication/index.js +769 -750
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +836 -833
- package/api-services/modules/bems/index.js +654 -645
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +2 -2
- package/api-services/modules/contract/index.js +7 -2
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +2 -2
- package/api-services/modules/duty-manage/index.js +7 -2
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +558 -558
- package/api-services/modules/enterpriseright/index.js +501 -496
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1335 -1347
- package/api-services/modules/file/es5.js +1226 -1217
- package/api-services/modules/file/index.js +1032 -1013
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.js +2 -2
- package/api-services/modules/gateway-edge/index.js +7 -2
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1083 -1096
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +2 -2
- package/api-services/modules/iot/index.js +7 -2
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +2 -2
- package/api-services/modules/justauth/index.js +7 -2
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +955 -967
- package/api-services/modules/knowledge/index.js +775 -788
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +832 -835
- package/api-services/modules/link/index.js +649 -648
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +2 -2
- package/api-services/modules/permission/index.js +7 -2
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +2 -2
- package/api-services/modules/platformManage/index.js +7 -2
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +2 -2
- package/api-services/modules/portal/index.js +7 -2
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +967 -955
- package/api-services/modules/space-manage/index.js +793 -770
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +2 -2
- package/api-services/modules/super-admin/index.js +7 -2
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +1256 -1268
- package/api-services/modules/supplier/index.js +1065 -1078
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +801 -799
- package/api-services/modules/supplychain-manage/index.js +628 -619
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +2 -2
- package/api-services/modules/systemConfiguration/index.js +7 -2
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +2 -2
- package/api-services/modules/tool/index.js +7 -2
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +2 -2
- package/api-services/src/create-service/index.js +7 -2
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +11 -9
- package/common-info/getInfoFromUrl/es5.js +40 -40
- package/common-info/getInfoFromUrl/index.js +36 -36
- package/common-info/getInfoFromUrl/index.js.gz +0 -0
- package/common-info/index.js +17 -13
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/es5.js +22 -22
- package/common-info/set-personal-info/index.js +25 -20
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-tools/extract-file-name/es5.js +2 -2
- package/common-tools/extract-file-name/index.js +7 -2
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/handle-data/es5.js +118 -111
- package/common-tools/handle-data/index.js +89 -86
- package/common-tools/handle-data/index.js.gz +0 -0
- package/create-api-service/check-token/es5.js +127 -125
- package/create-api-service/check-token/index.js +123 -118
- package/create-api-service/check-token/index.js.gz +0 -0
- package/create-api-service/es5.js +953 -965
- package/create-api-service/index.js +774 -787
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/es5.js +3 -3
- package/create-api-service/sso/index.js +8 -3
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/es5.js +2 -2
- package/curring-http/index.js +7 -2
- package/curring-http/index.js.gz +0 -0
- package/package.json +4 -4
- package/pinyin-first-character/es5.js +1 -1
- package/pinyin-first-character/index.js +1 -1
- package/pinyin-first-character/index.js.gz +0 -0
- package/webSocket-service/es5.js +53 -41
- package/webSocket-service/index.js +50 -40
- package/webSocket-service/index.js.gz +0 -0
|
Binary file
|
|
@@ -1805,12 +1805,12 @@ Ve.transitional = function (e, n, r) {
|
|
|
1805
1805
|
}
|
|
1806
1806
|
return function (i, a, s) {
|
|
1807
1807
|
if (e === false) throw new w(o(a, " has been removed" + (n ? " in " + n : "")), w.ERR_DEPRECATED);
|
|
1808
|
-
return n && !fr[a] && (fr[a] = true), e ? e(i, a, s) : true;
|
|
1808
|
+
return n && !fr[a] && (fr[a] = true, console.warn(o(a, " has been deprecated since v" + n + " and will be removed in the near future"))), e ? e(i, a, s) : true;
|
|
1809
1809
|
};
|
|
1810
1810
|
};
|
|
1811
1811
|
Ve.spelling = function (e) {
|
|
1812
1812
|
return function (n, r) {
|
|
1813
|
-
return true;
|
|
1813
|
+
return console.warn("".concat(r, " is likely a misspelling of ").concat(e)), true;
|
|
1814
1814
|
};
|
|
1815
1815
|
};
|
|
1816
1816
|
function Na(t, e, n) {
|
|
@@ -1360,11 +1360,16 @@ Ve.transitional = function(e, n, r) {
|
|
|
1360
1360
|
o(a, " has been removed" + (n ? " in " + n : "")),
|
|
1361
1361
|
w.ERR_DEPRECATED
|
|
1362
1362
|
);
|
|
1363
|
-
return n && !fr[a] && (fr[a] = !0
|
|
1363
|
+
return n && !fr[a] && (fr[a] = !0, console.warn(
|
|
1364
|
+
o(
|
|
1365
|
+
a,
|
|
1366
|
+
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1367
|
+
)
|
|
1368
|
+
)), e ? e(i, a, s) : !0;
|
|
1364
1369
|
};
|
|
1365
1370
|
};
|
|
1366
1371
|
Ve.spelling = function(e) {
|
|
1367
|
-
return (n, r) => !0;
|
|
1372
|
+
return (n, r) => (console.warn(`${r} is likely a misspelling of ${e}`), !0);
|
|
1368
1373
|
};
|
|
1369
1374
|
function Na(t, e, n) {
|
|
1370
1375
|
if (typeof t != "object")
|
|
Binary file
|
|
@@ -1805,12 +1805,12 @@ Ve.transitional = function (e, n, r) {
|
|
|
1805
1805
|
}
|
|
1806
1806
|
return function (i, a, s) {
|
|
1807
1807
|
if (e === false) throw new w(o(a, " has been removed" + (n ? " in " + n : "")), w.ERR_DEPRECATED);
|
|
1808
|
-
return n && !fr[a] && (fr[a] = true), e ? e(i, a, s) : true;
|
|
1808
|
+
return n && !fr[a] && (fr[a] = true, console.warn(o(a, " has been deprecated since v" + n + " and will be removed in the near future"))), e ? e(i, a, s) : true;
|
|
1809
1809
|
};
|
|
1810
1810
|
};
|
|
1811
1811
|
Ve.spelling = function (e) {
|
|
1812
1812
|
return function (n, r) {
|
|
1813
|
-
return true;
|
|
1813
|
+
return console.warn("".concat(r, " is likely a misspelling of ").concat(e)), true;
|
|
1814
1814
|
};
|
|
1815
1815
|
};
|
|
1816
1816
|
function Na(t, e, n) {
|
|
@@ -1360,11 +1360,16 @@ Ve.transitional = function(e, n, r) {
|
|
|
1360
1360
|
o(a, " has been removed" + (n ? " in " + n : "")),
|
|
1361
1361
|
w.ERR_DEPRECATED
|
|
1362
1362
|
);
|
|
1363
|
-
return n && !fr[a] && (fr[a] = !0
|
|
1363
|
+
return n && !fr[a] && (fr[a] = !0, console.warn(
|
|
1364
|
+
o(
|
|
1365
|
+
a,
|
|
1366
|
+
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1367
|
+
)
|
|
1368
|
+
)), e ? e(i, a, s) : !0;
|
|
1364
1369
|
};
|
|
1365
1370
|
};
|
|
1366
1371
|
Ve.spelling = function(e) {
|
|
1367
|
-
return (n, r) => !0;
|
|
1372
|
+
return (n, r) => (console.warn(`${r} is likely a misspelling of ${e}`), !0);
|
|
1368
1373
|
};
|
|
1369
1374
|
function Na(t, e, n) {
|
|
1370
1375
|
if (typeof t != "object")
|
|
Binary file
|
|
@@ -1805,12 +1805,12 @@ Ve.transitional = function (e, n, r) {
|
|
|
1805
1805
|
}
|
|
1806
1806
|
return function (i, a, s) {
|
|
1807
1807
|
if (e === false) throw new w(o(a, " has been removed" + (n ? " in " + n : "")), w.ERR_DEPRECATED);
|
|
1808
|
-
return n && !fr[a] && (fr[a] = true), e ? e(i, a, s) : true;
|
|
1808
|
+
return n && !fr[a] && (fr[a] = true, console.warn(o(a, " has been deprecated since v" + n + " and will be removed in the near future"))), e ? e(i, a, s) : true;
|
|
1809
1809
|
};
|
|
1810
1810
|
};
|
|
1811
1811
|
Ve.spelling = function (e) {
|
|
1812
1812
|
return function (n, r) {
|
|
1813
|
-
return true;
|
|
1813
|
+
return console.warn("".concat(r, " is likely a misspelling of ").concat(e)), true;
|
|
1814
1814
|
};
|
|
1815
1815
|
};
|
|
1816
1816
|
function Na(t, e, n) {
|
|
@@ -1360,11 +1360,16 @@ Ve.transitional = function(e, n, r) {
|
|
|
1360
1360
|
o(a, " has been removed" + (n ? " in " + n : "")),
|
|
1361
1361
|
w.ERR_DEPRECATED
|
|
1362
1362
|
);
|
|
1363
|
-
return n && !fr[a] && (fr[a] = !0
|
|
1363
|
+
return n && !fr[a] && (fr[a] = !0, console.warn(
|
|
1364
|
+
o(
|
|
1365
|
+
a,
|
|
1366
|
+
" has been deprecated since v" + n + " and will be removed in the near future"
|
|
1367
|
+
)
|
|
1368
|
+
)), e ? e(i, a, s) : !0;
|
|
1364
1369
|
};
|
|
1365
1370
|
};
|
|
1366
1371
|
Ve.spelling = function(e) {
|
|
1367
|
-
return (n, r) => !0;
|
|
1372
|
+
return (n, r) => (console.warn(`${r} is likely a misspelling of ${e}`), !0);
|
|
1368
1373
|
};
|
|
1369
1374
|
function Na(t, e, n) {
|
|
1370
1375
|
if (typeof t != "object")
|
|
Binary file
|
package/common-info/es5.js
CHANGED
|
@@ -43,17 +43,17 @@ var T = function T(e) {
|
|
|
43
43
|
var g, a;
|
|
44
44
|
if (r.routeCode && (t[r.routeCode] = []), r.rightFuncCodes) {
|
|
45
45
|
var l = (g = r.rightFuncCodes[0]) == null ? undefined : g.lastIndexOf("."),
|
|
46
|
-
|
|
47
|
-
t[
|
|
46
|
+
d = (a = r.rightFuncCodes[0]) == null ? undefined : a.slice(0, l);
|
|
47
|
+
t[d] = [], r.rightFuncCodes.forEach(function (c) {
|
|
48
48
|
var m = c == null ? undefined : c.lastIndexOf(".");
|
|
49
|
-
t[
|
|
49
|
+
t[d].push({
|
|
50
50
|
code: c == null ? undefined : c.slice(m + 1)
|
|
51
51
|
});
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
}));
|
|
56
|
-
}), t;
|
|
56
|
+
}), console.log("authobj", t), t;
|
|
57
57
|
},
|
|
58
58
|
h = tokenTools.getAccessToken,
|
|
59
59
|
J = function J() {
|
|
@@ -174,7 +174,9 @@ var T = function T(e) {
|
|
|
174
174
|
};
|
|
175
175
|
},
|
|
176
176
|
j = function j(e, t) {
|
|
177
|
-
|
|
177
|
+
if (!e) return;
|
|
178
|
+
var s = S()[e];
|
|
179
|
+
return console.log("getPageAuth", s), s;
|
|
178
180
|
},
|
|
179
181
|
v = function v(e, t) {
|
|
180
182
|
var _j;
|
|
@@ -222,12 +224,12 @@ var T = function T(e) {
|
|
|
222
224
|
preTab: (_e$preTab = e.preTab) !== null && _e$preTab !== void 0 ? _e$preTab : {}
|
|
223
225
|
};
|
|
224
226
|
},
|
|
225
|
-
|
|
227
|
+
w = function w() {
|
|
226
228
|
var e = config.getConfig(),
|
|
227
229
|
t = sessionStorage.getItem("minioAddress");
|
|
228
230
|
return t || (e.baseURL ? e.baseURL : location.origin);
|
|
229
231
|
},
|
|
230
|
-
|
|
232
|
+
L = function L() {
|
|
231
233
|
var _JSON$parse$instanceI;
|
|
232
234
|
return {
|
|
233
235
|
instanceInfo: (_JSON$parse$instanceI = JSON.parse(sessionStorage.getItem("instance") || "{}").instanceInfo) !== null && _JSON$parse$instanceI !== void 0 ? _JSON$parse$instanceI : {}
|
|
@@ -242,12 +244,12 @@ var i;
|
|
|
242
244
|
exports.getAuthobj = S;
|
|
243
245
|
exports.getFavIcon = Q;
|
|
244
246
|
exports.getHomeInfo = k;
|
|
245
|
-
exports.getInstanceInfo =
|
|
247
|
+
exports.getInstanceInfo = L;
|
|
246
248
|
exports.getLanguages = M;
|
|
247
249
|
exports.getMenuItemInfo = T;
|
|
248
250
|
exports.getMenuListnfo = F;
|
|
249
251
|
exports.getMenus = D;
|
|
250
|
-
exports.getMinioAddress =
|
|
252
|
+
exports.getMinioAddress = w;
|
|
251
253
|
exports.getPageAuth = j;
|
|
252
254
|
exports.getPageAuthBtn = v;
|
|
253
255
|
exports.getPersonalConfig = U;
|
|
@@ -7,10 +7,10 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
7
7
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
8
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
9
9
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
10
|
-
function
|
|
11
|
-
for (var
|
|
12
|
-
var t = arguments[
|
|
13
|
-
for (var
|
|
10
|
+
function p(e) {
|
|
11
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
12
|
+
var t = arguments[n];
|
|
13
|
+
for (var i in t) e[i] = t[i];
|
|
14
14
|
}
|
|
15
15
|
return e;
|
|
16
16
|
}
|
|
@@ -22,73 +22,73 @@ var u = {
|
|
|
22
22
|
return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent);
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
function g(e,
|
|
26
|
-
function t(
|
|
25
|
+
function g(e, n) {
|
|
26
|
+
function t(o, f, r) {
|
|
27
27
|
if (!((typeof document === "undefined" ? "undefined" : _typeof(document)) > "u")) {
|
|
28
|
-
r =
|
|
28
|
+
r = p({}, n, r), typeof r.expires == "number" && (r.expires = new Date(Date.now() + r.expires * 864e5)), r.expires && (r.expires = r.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
29
29
|
var c = "";
|
|
30
|
-
for (var
|
|
31
|
-
return document.cookie =
|
|
30
|
+
for (var s in r) r[s] && (c += "; " + s, r[s] !== true && (c += "=" + r[s].split(";")[0]));
|
|
31
|
+
return document.cookie = o + "=" + e.write(f, o) + c;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
function
|
|
35
|
-
if (!((typeof document === "undefined" ? "undefined" : _typeof(document)) > "u" || arguments.length && !
|
|
34
|
+
function i(o) {
|
|
35
|
+
if (!((typeof document === "undefined" ? "undefined" : _typeof(document)) > "u" || arguments.length && !o)) {
|
|
36
36
|
for (var f = document.cookie ? document.cookie.split("; ") : [], r = {}, c = 0; c < f.length; c++) {
|
|
37
|
-
var
|
|
38
|
-
d =
|
|
37
|
+
var s = f[c].split("="),
|
|
38
|
+
d = s.slice(1).join("=");
|
|
39
39
|
try {
|
|
40
|
-
var
|
|
41
|
-
if (r[
|
|
40
|
+
var a = decodeURIComponent(s[0]);
|
|
41
|
+
if (r[a] = e.read(d, a), o === a) break;
|
|
42
42
|
} catch (_unused) {}
|
|
43
43
|
}
|
|
44
|
-
return
|
|
44
|
+
return o ? r[o] : r;
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
return Object.create({
|
|
48
48
|
set: t,
|
|
49
|
-
get:
|
|
50
|
-
remove: function remove(
|
|
51
|
-
t(
|
|
49
|
+
get: i,
|
|
50
|
+
remove: function remove(o, f) {
|
|
51
|
+
t(o, "", p({}, f, {
|
|
52
52
|
expires: -1
|
|
53
53
|
}));
|
|
54
54
|
},
|
|
55
|
-
withAttributes: function withAttributes(
|
|
56
|
-
return g(this.converter,
|
|
55
|
+
withAttributes: function withAttributes(o) {
|
|
56
|
+
return g(this.converter, p({}, this.attributes, o));
|
|
57
57
|
},
|
|
58
|
-
withConverter: function withConverter(
|
|
59
|
-
return g(
|
|
58
|
+
withConverter: function withConverter(o) {
|
|
59
|
+
return g(p({}, this.converter, o), this.attributes);
|
|
60
60
|
}
|
|
61
61
|
}, {
|
|
62
62
|
attributes: {
|
|
63
|
-
value: Object.freeze(
|
|
63
|
+
value: Object.freeze(n)
|
|
64
64
|
},
|
|
65
65
|
converter: {
|
|
66
66
|
value: Object.freeze(e)
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
|
-
var
|
|
70
|
+
var l = g(u, {
|
|
71
71
|
path: "/"
|
|
72
72
|
});
|
|
73
|
-
var
|
|
73
|
+
var m = function m() {
|
|
74
74
|
var e = new URL(location.href).searchParams,
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
access_token:
|
|
78
|
-
}),
|
|
75
|
+
n = e.get("token") || e.get("accessToken") || e.get("accesstoken") || "";
|
|
76
|
+
n && (console.log("从url上取token:", n), JSON.stringify({
|
|
77
|
+
access_token: n
|
|
78
|
+
}), l.set("accessToken", n));
|
|
79
79
|
},
|
|
80
|
-
|
|
80
|
+
v = function v() {
|
|
81
81
|
var e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}"),
|
|
82
|
-
|
|
83
|
-
t =
|
|
82
|
+
n = new URL(location.href).searchParams,
|
|
83
|
+
t = n.get("project") || n.get("projectId") || "";
|
|
84
84
|
if (!t) return;
|
|
85
|
-
var
|
|
86
|
-
|
|
87
|
-
sessionStorage.setItem("project", t), sessionStorage.setItem("projectInfo", JSON.stringify(_objectSpread(_objectSpread({}, e), {}, {
|
|
85
|
+
var i = n.get("projectParent") || n.get("projectParentId") || (e == null ? undefined : e.parentId) || "",
|
|
86
|
+
o = n.get("projectName") || (e == null ? undefined : e.name) || "";
|
|
87
|
+
console.log("从url上取project:", t), sessionStorage.setItem("project", t), sessionStorage.setItem("projectInfo", JSON.stringify(_objectSpread(_objectSpread({}, e), {}, {
|
|
88
88
|
id: t,
|
|
89
|
-
name:
|
|
90
|
-
parentId:
|
|
89
|
+
name: o,
|
|
90
|
+
parentId: i
|
|
91
91
|
})));
|
|
92
92
|
};
|
|
93
|
-
exports.getProjectInfoFromQuery =
|
|
94
|
-
exports.getTokenFromQuery =
|
|
93
|
+
exports.getProjectInfoFromQuery = v;
|
|
94
|
+
exports.getTokenFromQuery = m;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/*! js-cookie v3.0.5 | MIT */
|
|
2
|
-
function
|
|
3
|
-
for (var
|
|
4
|
-
var t = arguments[
|
|
5
|
-
for (var
|
|
6
|
-
e[
|
|
2
|
+
function p(e) {
|
|
3
|
+
for (var n = 1; n < arguments.length; n++) {
|
|
4
|
+
var t = arguments[n];
|
|
5
|
+
for (var i in t)
|
|
6
|
+
e[i] = t[i];
|
|
7
7
|
}
|
|
8
8
|
return e;
|
|
9
9
|
}
|
|
@@ -18,67 +18,67 @@ var u = {
|
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
function g(e,
|
|
22
|
-
function t(
|
|
21
|
+
function g(e, n) {
|
|
22
|
+
function t(o, f, r) {
|
|
23
23
|
if (!(typeof document > "u")) {
|
|
24
|
-
r =
|
|
24
|
+
r = p({}, n, r), typeof r.expires == "number" && (r.expires = new Date(Date.now() + r.expires * 864e5)), r.expires && (r.expires = r.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
25
25
|
var c = "";
|
|
26
|
-
for (var
|
|
27
|
-
r[
|
|
28
|
-
return document.cookie =
|
|
26
|
+
for (var s in r)
|
|
27
|
+
r[s] && (c += "; " + s, r[s] !== !0 && (c += "=" + r[s].split(";")[0]));
|
|
28
|
+
return document.cookie = o + "=" + e.write(f, o) + c;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
function
|
|
32
|
-
if (!(typeof document > "u" || arguments.length && !
|
|
31
|
+
function i(o) {
|
|
32
|
+
if (!(typeof document > "u" || arguments.length && !o)) {
|
|
33
33
|
for (var f = document.cookie ? document.cookie.split("; ") : [], r = {}, c = 0; c < f.length; c++) {
|
|
34
|
-
var
|
|
34
|
+
var s = f[c].split("="), d = s.slice(1).join("=");
|
|
35
35
|
try {
|
|
36
|
-
var
|
|
37
|
-
if (r[
|
|
36
|
+
var a = decodeURIComponent(s[0]);
|
|
37
|
+
if (r[a] = e.read(d, a), o === a)
|
|
38
38
|
break;
|
|
39
39
|
} catch {
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
return
|
|
42
|
+
return o ? r[o] : r;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
return Object.create(
|
|
46
46
|
{
|
|
47
47
|
set: t,
|
|
48
|
-
get:
|
|
49
|
-
remove: function(
|
|
48
|
+
get: i,
|
|
49
|
+
remove: function(o, f) {
|
|
50
50
|
t(
|
|
51
|
-
|
|
51
|
+
o,
|
|
52
52
|
"",
|
|
53
|
-
|
|
53
|
+
p({}, f, {
|
|
54
54
|
expires: -1
|
|
55
55
|
})
|
|
56
56
|
);
|
|
57
57
|
},
|
|
58
|
-
withAttributes: function(
|
|
59
|
-
return g(this.converter,
|
|
58
|
+
withAttributes: function(o) {
|
|
59
|
+
return g(this.converter, p({}, this.attributes, o));
|
|
60
60
|
},
|
|
61
|
-
withConverter: function(
|
|
62
|
-
return g(
|
|
61
|
+
withConverter: function(o) {
|
|
62
|
+
return g(p({}, this.converter, o), this.attributes);
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
attributes: { value: Object.freeze(
|
|
66
|
+
attributes: { value: Object.freeze(n) },
|
|
67
67
|
converter: { value: Object.freeze(e) }
|
|
68
68
|
}
|
|
69
69
|
);
|
|
70
70
|
}
|
|
71
|
-
var
|
|
72
|
-
const
|
|
73
|
-
const e = new URL(location.href).searchParams,
|
|
74
|
-
|
|
75
|
-
},
|
|
76
|
-
const e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}"),
|
|
71
|
+
var l = g(u, { path: "/" });
|
|
72
|
+
const m = () => {
|
|
73
|
+
const e = new URL(location.href).searchParams, n = e.get("token") || e.get("accessToken") || e.get("accesstoken") || "";
|
|
74
|
+
n && (console.log("从url上取token:", n), JSON.stringify({ access_token: n }), l.set("accessToken", n));
|
|
75
|
+
}, v = () => {
|
|
76
|
+
const e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}"), n = new URL(location.href).searchParams, t = n.get("project") || n.get("projectId") || "";
|
|
77
77
|
if (!t) return;
|
|
78
|
-
const
|
|
79
|
-
sessionStorage.setItem("project", t), sessionStorage.setItem("projectInfo", JSON.stringify({ ...e, id: t, name:
|
|
78
|
+
const i = n.get("projectParent") || n.get("projectParentId") || (e == null ? void 0 : e.parentId) || "", o = n.get("projectName") || (e == null ? void 0 : e.name) || "";
|
|
79
|
+
console.log("从url上取project:", t), sessionStorage.setItem("project", t), sessionStorage.setItem("projectInfo", JSON.stringify({ ...e, id: t, name: o, parentId: i }));
|
|
80
80
|
};
|
|
81
81
|
export {
|
|
82
|
-
|
|
83
|
-
|
|
82
|
+
v as getProjectInfoFromQuery,
|
|
83
|
+
m as getTokenFromQuery
|
|
84
84
|
};
|
|
Binary file
|
package/common-info/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getConfig as
|
|
1
|
+
import { getConfig as u } from "@das-fed/upf-utils/config";
|
|
2
2
|
import { getAccessToken as I } from "@das-fed/upf-utils/token-tools";
|
|
3
3
|
import { getTokenFromQuery as C, getProjectInfoFromQuery as y } from "@das-fed/upf-utils/common-info/getInfoFromUrl";
|
|
4
4
|
const T = (e) => {
|
|
@@ -29,15 +29,15 @@ const T = (e) => {
|
|
|
29
29
|
n.children && n.children.forEach((r) => {
|
|
30
30
|
var g, a;
|
|
31
31
|
if (r.routeCode && (t[r.routeCode] = []), r.rightFuncCodes) {
|
|
32
|
-
const l = (g = r.rightFuncCodes[0]) == null ? void 0 : g.lastIndexOf("."),
|
|
33
|
-
t[
|
|
32
|
+
const l = (g = r.rightFuncCodes[0]) == null ? void 0 : g.lastIndexOf("."), d = (a = r.rightFuncCodes[0]) == null ? void 0 : a.slice(0, l);
|
|
33
|
+
t[d] = [], r.rightFuncCodes.forEach((c) => {
|
|
34
34
|
const m = c == null ? void 0 : c.lastIndexOf(".");
|
|
35
|
-
t[
|
|
35
|
+
t[d].push({ code: c == null ? void 0 : c.slice(m + 1) });
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
});
|
|
39
39
|
}));
|
|
40
|
-
}), t;
|
|
40
|
+
}), console.log("authobj", t), t;
|
|
41
41
|
}, h = I, J = () => {
|
|
42
42
|
var s;
|
|
43
43
|
let e = JSON.parse(sessionStorage.getItem("tenantInfo") || "{}");
|
|
@@ -49,7 +49,7 @@ const T = (e) => {
|
|
|
49
49
|
};
|
|
50
50
|
}, A = () => {
|
|
51
51
|
let e = JSON.parse(sessionStorage.getItem("userInfo") || "{}");
|
|
52
|
-
const t =
|
|
52
|
+
const t = u();
|
|
53
53
|
return JSON.stringify(e) === "{}" && t.personalInfo && (e = t.personalInfo), {
|
|
54
54
|
id: e.id ?? "",
|
|
55
55
|
name: e.name ?? "",
|
|
@@ -82,7 +82,7 @@ const T = (e) => {
|
|
|
82
82
|
};
|
|
83
83
|
}, M = () => sessionStorage.getItem("languages"), N = () => {
|
|
84
84
|
let e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}");
|
|
85
|
-
const t =
|
|
85
|
+
const t = u();
|
|
86
86
|
return JSON.stringify(e) === "{}" && t.projectInfo && (e = t.projectInfo), {
|
|
87
87
|
id: (e == null ? void 0 : e.id) ?? 0,
|
|
88
88
|
code: (e == null ? void 0 : e.code) ?? 0,
|
|
@@ -138,7 +138,11 @@ const T = (e) => {
|
|
|
138
138
|
style: (e == null ? void 0 : e.style) ?? "",
|
|
139
139
|
skinStyle: (e == null ? void 0 : e.skinStyle) ?? ""
|
|
140
140
|
};
|
|
141
|
-
}, j = (e, t) =>
|
|
141
|
+
}, j = (e, t) => {
|
|
142
|
+
if (!e) return;
|
|
143
|
+
const s = S()[e];
|
|
144
|
+
return console.log("getPageAuth", s), s;
|
|
145
|
+
}, v = (e, t) => j(e) ?? [], f = () => {
|
|
142
146
|
const e = JSON.parse(sessionStorage.getItem("subApps") || "{}");
|
|
143
147
|
return {
|
|
144
148
|
appcategorys: e.appcategorys ?? [],
|
|
@@ -168,10 +172,10 @@ const T = (e) => {
|
|
|
168
172
|
tabMap: e.tabMap ?? {},
|
|
169
173
|
preTab: e.preTab ?? {}
|
|
170
174
|
};
|
|
171
|
-
},
|
|
172
|
-
const e =
|
|
175
|
+
}, w = () => {
|
|
176
|
+
const e = u(), t = sessionStorage.getItem("minioAddress");
|
|
173
177
|
return t || (e.baseURL ? e.baseURL : location.origin);
|
|
174
|
-
},
|
|
178
|
+
}, L = () => ({
|
|
175
179
|
instanceInfo: JSON.parse(sessionStorage.getItem("instance") || "{}").instanceInfo ?? {}
|
|
176
180
|
}), Q = () => localStorage.getItem("fav-icon") || "./logo.svg";
|
|
177
181
|
h() || C();
|
|
@@ -181,12 +185,12 @@ export {
|
|
|
181
185
|
S as getAuthobj,
|
|
182
186
|
Q as getFavIcon,
|
|
183
187
|
k as getHomeInfo,
|
|
184
|
-
|
|
188
|
+
L as getInstanceInfo,
|
|
185
189
|
M as getLanguages,
|
|
186
190
|
T as getMenuItemInfo,
|
|
187
191
|
F as getMenuListnfo,
|
|
188
192
|
D as getMenus,
|
|
189
|
-
|
|
193
|
+
w as getMinioAddress,
|
|
190
194
|
j as getPageAuth,
|
|
191
195
|
v as getPageAuthBtn,
|
|
192
196
|
U as getPersonalConfig,
|
package/common-info/index.js.gz
CHANGED
|
Binary file
|