@das-fed/upf-utils 6.4.0-dev.237 → 6.4.0-dev.239
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.d.ts +2 -0
- package/api-services/es5.js +2176 -2106
- package/api-services/i18n/es5.d.ts +63 -0
- package/api-services/index.js +1654 -1602
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.d.ts +2 -0
- package/api-services/modules/app-manage/es5.js +2305 -2223
- package/api-services/modules/app-manage/index.js +1900 -1830
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.d.ts +2 -0
- package/api-services/modules/authentication/es5.js +2373 -2279
- package/api-services/modules/authentication/index.js +1979 -1891
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.d.ts +6 -0
- package/api-services/modules/bems/es5.js +2190 -2120
- package/api-services/modules/bems/index.js +1812 -1760
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.d.ts +2 -0
- package/api-services/modules/contract/es5.js +2305 -2223
- package/api-services/modules/contract/index.js +1900 -1830
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.d.ts +7 -0
- package/api-services/modules/duty-manage/es5.js +2190 -2120
- package/api-services/modules/duty-manage/index.js +1813 -1761
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.d.ts +2 -0
- package/api-services/modules/enterpriseright/es5.js +2305 -2223
- package/api-services/modules/enterpriseright/index.js +1900 -1830
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.d.ts +21 -0
- package/api-services/modules/es5.js +1846 -1764
- package/api-services/modules/file/es5.d.ts +37 -0
- package/api-services/modules/file/es5.js +1900 -1818
- package/api-services/modules/file/index.js +1469 -1399
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.d.ts +2 -0
- package/api-services/modules/gateway-edge/es5.js +2365 -2274
- package/api-services/modules/gateway-edge/index.js +1973 -1889
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +1374 -1304
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.d.ts +16 -0
- package/api-services/modules/iot/es5.js +2160 -2078
- package/api-services/modules/iot/index.js +1765 -1695
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.d.ts +3 -0
- package/api-services/modules/justauth/es5.js +2370 -2279
- package/api-services/modules/justauth/index.js +1975 -1891
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.d.ts +2 -0
- package/api-services/modules/knowledge/es5.js +2303 -2223
- package/api-services/modules/knowledge/index.js +1898 -1832
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.d.ts +2 -0
- package/api-services/modules/link/es5.js +2373 -2279
- package/api-services/modules/link/index.js +1979 -1891
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.d.ts +2 -0
- package/api-services/modules/permission/es5.js +2386 -2316
- package/api-services/modules/permission/index.js +1979 -1927
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.d.ts +14 -0
- package/api-services/modules/platformManage/es5.js +2323 -2241
- package/api-services/modules/platformManage/index.js +1911 -1841
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.d.ts +2 -0
- package/api-services/modules/portal/es5.js +2189 -2119
- package/api-services/modules/portal/index.js +1812 -1760
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.d.ts +2 -0
- package/api-services/modules/space-manage/es5.js +2189 -2119
- package/api-services/modules/space-manage/index.js +1812 -1760
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.d.ts +8 -0
- package/api-services/modules/super-admin/es5.js +2276 -2191
- package/api-services/modules/super-admin/index.js +1875 -1801
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.d.ts +6 -0
- package/api-services/modules/supplier/es5.js +2407 -2334
- package/api-services/modules/supplier/index.js +1997 -1941
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.d.ts +2 -0
- package/api-services/modules/supplychain-manage/es5.js +2305 -2223
- package/api-services/modules/supplychain-manage/index.js +1900 -1830
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.d.ts +2 -0
- package/api-services/modules/systemConfiguration/es5.js +2398 -2326
- package/api-services/modules/systemConfiguration/index.js +1990 -1934
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.d.ts +2 -0
- package/api-services/modules/tool/es5.js +2403 -2330
- package/api-services/modules/tool/index.js +1994 -1938
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.d.ts +1 -0
- package/api-services/src/create-service/es5.js +2101 -2019
- package/api-services/src/create-service/index.js +1718 -1648
- package/api-services/src/create-service/index.js.gz +0 -0
- package/atob/es5.d.ts +2 -0
- package/common-info/es5.d.ts +48 -0
- package/common-info/es5.js +2246 -2229
- package/common-info/getIframeUrl/es5.d.ts +9 -0
- package/common-info/getInfoFromUrl/es5.d.ts +8 -0
- package/common-info/getPermissionMethod/es5.d.ts +77 -0
- package/common-info/getPermissionMethod/es5.js +2187 -2107
- package/common-info/getPermissionMethod/index.d.ts +27 -9
- package/common-info/getPermissionMethod/index.js +1774 -1708
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.d.ts +1 -29
- package/common-info/index.js +1811 -1792
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/es5.d.ts +5 -0
- package/common-info/set-personal-info/es5.js +1073 -997
- package/common-info/set-personal-info/index.js +895 -827
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-info/type.d.ts +2 -2
- package/common-tools/arr-tools/es5.d.ts +15 -0
- package/common-tools/calc-text-width/es5.d.ts +1 -0
- package/common-tools/date-format/es5.d.ts +7 -0
- package/common-tools/es5.d.ts +15 -0
- package/common-tools/es5.js +9 -0
- package/common-tools/extract-file-name/es5.d.ts +1 -0
- package/common-tools/extract-file-name/es5.js +1074 -998
- package/common-tools/extract-file-name/index.js +889 -821
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/get-file-extension/es5.d.ts +6 -0
- package/common-tools/get-url-params/es5.d.ts +46 -0
- package/common-tools/handle-data/es5.d.ts +34 -0
- package/common-tools/handle-data/es5.js +45 -7
- package/common-tools/handle-data/index.d.ts +16 -1
- package/common-tools/handle-data/index.js +1 -1
- package/common-tools/handle-data/index.js.gz +0 -0
- package/common-tools/index.d.ts +1 -0
- package/common-tools/index.js +1 -0
- package/common-tools/nest-tree-format/es5.d.ts +30 -0
- package/common-tools/obj-tools/es5.d.ts +7 -0
- package/common-tools/platform-tools/es5.d.ts +19 -0
- package/common-tools/queue-promise/es5.d.ts +6 -0
- package/common-tools/setHtmlMinWH/es5.d.ts +5 -0
- package/common-tools/timezone-format/es5.d.ts +28 -0
- package/common-tools/timezone-format/es5.js +140 -0
- package/common-tools/timezone-format/index.d.ts +28 -0
- package/common-tools/timezone-format/index.js +81 -0
- package/common-tools/timezone-format/index.js.gz +0 -0
- package/common-tools/update-browser-title/es5.d.ts +1 -0
- package/common-tools/update-browser-title/es5.js +1 -1
- package/common-tools/update-fav-icon/es5.d.ts +11 -0
- package/common-tools/update-fav-icon/es5.js +1 -1
- package/config/es5.d.ts +2 -0
- package/create-api-service/access-token-auto-refresh/es5.d.ts +20 -0
- package/create-api-service/access-token-auto-refresh/es5.js +28 -27
- package/create-api-service/access-token-auto-refresh/index.js +27 -26
- package/create-api-service/access-token-auto-refresh/index.js.gz +0 -0
- package/create-api-service/check-token/es5.d.ts +12 -0
- package/create-api-service/check-token/es5.js +1 -1
- package/create-api-service/es5.d.ts +8 -0
- package/create-api-service/es5.js +2102 -2020
- package/create-api-service/i18n/es5.d.ts +39 -0
- package/create-api-service/index.js +1719 -1649
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/proxy-sso/es5.d.ts +3 -0
- package/create-api-service/sso/es5.d.ts +21 -0
- package/create-api-service/sso/es5.js +1242 -1166
- package/create-api-service/sso/index.js +1006 -938
- package/create-api-service/sso/index.js.gz +0 -0
- package/create-api-service/token-refresh-shared/es5.d.ts +30 -0
- package/create-api-service/token-refresh-shared/es5.js +1125 -1049
- package/create-api-service/token-refresh-shared/index.js +927 -859
- package/create-api-service/token-refresh-shared/index.js.gz +0 -0
- package/curring-http/es5.d.ts +12 -0
- package/curring-http/es5.js +1442 -1366
- package/curring-http/index.js +1132 -1064
- package/curring-http/index.js.gz +0 -0
- package/dimple-canvas/es5.d.ts +3 -0
- package/directive/auth/es5.d.ts +8 -0
- package/directive/clickOutside/es5.d.ts +6 -0
- package/directive/clickOutside/es5.js +1 -1
- package/directive/es5.d.ts +3 -0
- package/directive/hoverInside/es5.d.ts +6 -0
- package/directive/hoverInside/es5.js +1 -1
- package/directive/utils/es5.d.ts +7 -0
- package/directive/utils/es5.js +1 -1
- package/dom-check-in/es5.d.ts +6 -0
- package/dom-watcher/es5.d.ts +25 -0
- package/esm-map.json +32 -7
- package/hooks/popup-manager/use-zindex/es5.d.ts +3 -0
- package/i18n-bridge/es5.d.ts +10 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/load-js/es5.d.ts +3 -0
- package/nextTiken/es5.d.ts +12 -0
- package/oss/es5.d.ts +2 -0
- package/package.json +4 -3
- package/pinyin-first-character/es5.d.ts +2 -0
- package/pinyin-first-character/es5.js +47 -45
- package/pinyin-first-character/index.js +37 -35
- package/pinyin-first-character/index.js.gz +0 -0
- package/process-engine-info/es5.d.ts +13 -0
- package/pure-image-src/es5.d.ts +2 -0
- package/size-watcher/es5.d.ts +6 -0
- package/style/es5.d.ts +2 -0
- package/style/es5.js +11 -11
- package/style/index.js +10 -10
- package/style/index.js.gz +0 -0
- package/theme/es5.d.ts +92 -0
- package/theme/es5.js +1365 -0
- package/theme/index.d.ts +92 -0
- package/theme/index.js +871 -0
- package/theme/index.js.gz +0 -0
- package/token-tools/es5.d.ts +21 -0
- package/use-low-code/es5.d.ts +1 -0
- package/vue/es5.d.ts +1 -0
- package/vue/hooks/use-model-value/es5.d.ts +9 -0
- package/webSocket-service/es5.d.ts +41 -0
- package/with-install/es5.d.ts +11 -0
- package/hooks/use-get-auth/es5.js +0 -67
- package/hooks/use-get-auth/index.d.ts +0 -4
- package/hooks/use-get-auth/index.js +0 -19
|
Binary file
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const accessTokenExpiredAtKey = "accessTokenExpiredAt";
|
|
2
|
+
declare const refreshTokenKey = "refreshToken";
|
|
3
|
+
declare const redirectUriKey = "redirectUri";
|
|
4
|
+
declare const accessTokenInfoKey = "tokenInfo";
|
|
5
|
+
/**
|
|
6
|
+
* 获取token
|
|
7
|
+
* @returns token
|
|
8
|
+
*/
|
|
9
|
+
export declare const getAccessToken: () => string;
|
|
10
|
+
/**
|
|
11
|
+
* 获取tokenInfo相关信息
|
|
12
|
+
*/
|
|
13
|
+
export declare const getAccessTokenInfo: (key: typeof accessTokenExpiredAtKey | typeof refreshTokenKey | typeof redirectUriKey | typeof accessTokenInfoKey) => any;
|
|
14
|
+
/**
|
|
15
|
+
* 存入token、tokenInfo
|
|
16
|
+
* @param token
|
|
17
|
+
* @param info
|
|
18
|
+
*/
|
|
19
|
+
export declare const setAccessToken: (token: string, info?: any) => void;
|
|
20
|
+
export declare const removeAccessToken: () => void;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LowCode } from './low-code-iframe.vue';
|
package/vue/es5.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useModelValue } from '@das-fed/upf-utils/vue/hooks/use-model-value';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { socketConfig } from './type';
|
|
2
|
+
|
|
3
|
+
export declare class socketService {
|
|
4
|
+
/** websocket实例 */
|
|
5
|
+
$ws: any;
|
|
6
|
+
/** websocket地址 */
|
|
7
|
+
url: string;
|
|
8
|
+
/** 请求参数 */
|
|
9
|
+
params: Record<string, any>;
|
|
10
|
+
/** 是否正在重连,避免ws重复连接 */
|
|
11
|
+
lockReturn: boolean;
|
|
12
|
+
/** websocket开启时间 */
|
|
13
|
+
startTime: any;
|
|
14
|
+
/** 心跳检测 */
|
|
15
|
+
heartbeatInterval: any;
|
|
16
|
+
/** 发生错误时是否重连,默认开启 */
|
|
17
|
+
ifReconnect: boolean;
|
|
18
|
+
/** 重连定时器 */
|
|
19
|
+
reconnectId: any;
|
|
20
|
+
/** 重连次数,默认为3,-1 表示一直重连 */
|
|
21
|
+
reconnectNum: number;
|
|
22
|
+
/** 连接close关闭时是否重连,默认关闭 */
|
|
23
|
+
reconnectWhenClose: boolean;
|
|
24
|
+
/** 当前重连次数 */
|
|
25
|
+
currentReconnectNum: number;
|
|
26
|
+
constructor({ url, params, opened, close, error, message, ifReconnect, reconnectNum, reconnectWhenClose, }: socketConfig);
|
|
27
|
+
initWebSocket(): void;
|
|
28
|
+
open(): void;
|
|
29
|
+
opened(ws: any): void;
|
|
30
|
+
close(event: CloseEvent): void;
|
|
31
|
+
message(event: any): void;
|
|
32
|
+
afterMsg(msg: any): void;
|
|
33
|
+
error(err: any): any;
|
|
34
|
+
/** websocket重连 */
|
|
35
|
+
reconnect(): void;
|
|
36
|
+
/** 发送消息给服务器 */
|
|
37
|
+
send(message: any): void;
|
|
38
|
+
startHeartbeat(): void;
|
|
39
|
+
/** 断开连接 */
|
|
40
|
+
disconnect(): void;
|
|
41
|
+
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
|
|
4
|
-
function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { var o = function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); }; o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
|
|
5
|
-
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
6
|
-
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
7
|
-
var commonTools = require('@das-fed/upf-utils/common-tools/es5');
|
|
8
|
-
var nextTiken = require('@das-fed/upf-utils/nextTiken/es5');
|
|
9
|
-
var l = function l() {
|
|
10
|
-
return {
|
|
11
|
-
getApplication: function () {
|
|
12
|
-
var _getApplication = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(t) {
|
|
13
|
-
var i;
|
|
14
|
-
return _regenerator().w(function (_context) {
|
|
15
|
-
while (1) switch (_context.n) {
|
|
16
|
-
case 0:
|
|
17
|
-
_context.n = 1;
|
|
18
|
-
return nextTiken.projectNextTick();
|
|
19
|
-
case 1:
|
|
20
|
-
i = JSON.parse(sessionStorage.getItem("menuList") || "[]").filter(function (e) {
|
|
21
|
-
return e.type === "application";
|
|
22
|
-
});
|
|
23
|
-
return _context.a(2, t ? i.find(function (e) {
|
|
24
|
-
return e.appId === t;
|
|
25
|
-
}) : i);
|
|
26
|
-
}
|
|
27
|
-
}, _callee);
|
|
28
|
-
}));
|
|
29
|
-
function getApplication(_x) {
|
|
30
|
-
return _getApplication.apply(this, arguments);
|
|
31
|
-
}
|
|
32
|
-
return getApplication;
|
|
33
|
-
}(),
|
|
34
|
-
getMenu: function () {
|
|
35
|
-
var _getMenu = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(t, n) {
|
|
36
|
-
var i, e, a;
|
|
37
|
-
return _regenerator().w(function (_context2) {
|
|
38
|
-
while (1) switch (_context2.n) {
|
|
39
|
-
case 0:
|
|
40
|
-
_context2.n = 1;
|
|
41
|
-
return nextTiken.projectNextTick();
|
|
42
|
-
case 1:
|
|
43
|
-
i = JSON.parse(sessionStorage.getItem("menuList") || "[]"), e = commonTools.flatTree(i).filter(function (r) {
|
|
44
|
-
return r.type === "menu";
|
|
45
|
-
});
|
|
46
|
-
if (!(!t && !n)) {
|
|
47
|
-
_context2.n = 2;
|
|
48
|
-
break;
|
|
49
|
-
}
|
|
50
|
-
return _context2.a(2, e);
|
|
51
|
-
case 2:
|
|
52
|
-
return _context2.a(2, (t ? a = e.find(function (r) {
|
|
53
|
-
return r.routeCode === t || r.originalCode === t;
|
|
54
|
-
}) : n && (a = e.find(function (r) {
|
|
55
|
-
return r.routeUrl === n;
|
|
56
|
-
})), a));
|
|
57
|
-
}
|
|
58
|
-
}, _callee2);
|
|
59
|
-
}));
|
|
60
|
-
function getMenu(_x2, _x3) {
|
|
61
|
-
return _getMenu.apply(this, arguments);
|
|
62
|
-
}
|
|
63
|
-
return getMenu;
|
|
64
|
-
}()
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
exports.useGetAuth = l;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { flatTree as o } from "@das-fed/upf-utils/common-tools";
|
|
2
|
-
import { projectNextTick as s } from "@das-fed/upf-utils/nextTiken";
|
|
3
|
-
const l = () => ({
|
|
4
|
-
getApplication: async (t) => {
|
|
5
|
-
await s();
|
|
6
|
-
const i = JSON.parse(sessionStorage.getItem("menuList") || "[]").filter((e) => e.type === "application");
|
|
7
|
-
return t ? i.find((e) => e.appId === t) : i;
|
|
8
|
-
},
|
|
9
|
-
getMenu: async (t, n) => {
|
|
10
|
-
await s();
|
|
11
|
-
const i = JSON.parse(sessionStorage.getItem("menuList") || "[]"), e = o(i).filter((r) => r.type === "menu");
|
|
12
|
-
if (!t && !n) return e;
|
|
13
|
-
let a;
|
|
14
|
-
return t ? a = e.find((r) => r.routeCode === t || r.originalCode === t) : n && (a = e.find((r) => r.routeUrl === n)), a;
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
export {
|
|
18
|
-
l as useGetAuth
|
|
19
|
-
};
|