@das-fed/utils 1.0.8 → 6.3.0-beta.0
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/index.d.ts +2 -1
- package/api-services/index.js +3 -2
- package/api-services/modules/app-manage.js +1 -1
- package/api-services/modules/authentication.js +1 -1
- package/api-services/modules/bems.js +1 -1
- package/api-services/modules/contract.js +1 -1
- package/api-services/modules/duty-manage.js +1 -1
- package/api-services/modules/enterpriseright.js +1 -1
- package/api-services/modules/file.d.ts +1 -1
- package/api-services/modules/file.js +355 -342
- package/api-services/modules/gateway-edge.js +1 -1
- package/api-services/modules/index.d.ts +21 -21
- package/api-services/modules/index.js +57 -558
- package/api-services/modules/iot.js +1 -1
- package/api-services/modules/justauth.js +1 -1
- package/api-services/modules/knowledge.js +1 -1
- package/api-services/modules/link.js +1 -1
- package/api-services/modules/permission.js +1 -1
- package/api-services/modules/platformManage.js +1 -1
- package/api-services/modules/portal.js +1 -1
- package/api-services/modules/space-manage.js +1 -1
- package/api-services/modules/super-admin.js +1 -1
- package/api-services/modules/supplier.js +1 -1
- package/api-services/modules/supplychain-manage.js +1 -1
- package/api-services/modules/systemConfiguration.js +1 -1
- package/api-services/modules/tool.js +1 -1
- package/api-services/src/create-service.d.ts +1 -1
- package/api-services/src/create-service.js +2 -3234
- package/common-info/{setInfoFromUrl.d.ts → getInfoFromUrl.d.ts} +1 -1
- package/common-info/{setInfoFromUrl.js → getInfoFromUrl.js} +26 -29
- package/common-info/index.d.ts +18 -7
- package/common-info/index.js +82 -143
- package/{api-services/src/sso.js → common-info/set-personal-info.js} +754 -667
- package/common-tools/get-url-params.d.ts +21 -8
- package/common-tools/get-url-params.js +26 -15
- package/common-tools/index.d.ts +3 -0
- package/common-tools/index.js +3 -0
- package/common-tools/obj-tools.d.ts +1 -1
- package/common-tools/platform-tools.d.ts +18 -0
- package/common-tools/platform-tools.js +15 -0
- package/common-tools/queue-promise.d.ts +6 -0
- package/common-tools/queue-promise.js +9 -0
- package/common-tools/setHtmlMinWH.js +8 -4
- package/common-tools/update-fav-icon.d.ts +10 -0
- package/common-tools/update-fav-icon.js +22 -0
- package/create-api-service/index.d.ts +1 -0
- package/create-api-service/index.js +3492 -0
- package/create-api-service/proxy-sso.d.ts +3 -0
- package/create-api-service/proxy-sso.js +21 -0
- package/create-api-service/sso.d.ts +23 -0
- package/create-api-service/sso.js +1969 -0
- package/curring-http/index.d.ts +3 -2
- package/curring-http/index.js +2872 -2662
- package/dimple-canvas/index.d.ts +1 -0
- package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.d.ts +1 -0
- package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.js +2244 -2265
- package/dimple-canvas/use-dimple-canvas/core/konva/index.d.ts +4 -3
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-object/index.d.ts +2 -1
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/find.d.ts +2 -1
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/guideline.d.ts +2 -1
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.d.ts +2 -1
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.js +1079 -1051
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/remove-object.d.ts +2 -1
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/transform-axis.d.ts +3 -2
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/transformer.d.ts +2 -1
- package/dimple-canvas/use-dimple-canvas/index.d.ts +2 -1
- package/directive/auth.js +21 -21
- package/directive/clickOutside.d.ts +3 -2
- package/directive/hoverInside.d.ts +2 -1
- package/dom-check-in/index.js +5 -5
- package/hooks/popup-manager/use-zindex.js +8 -8
- package/hooks/use-get-auth/apis.d.ts +4 -0
- package/hooks/use-get-auth/apis.js +8 -0
- package/hooks/use-get-auth/index.d.ts +9 -0
- package/hooks/use-get-auth/index.js +57 -0
- package/nextTiken/index.d.ts +3 -4
- package/nextTiken/index.js +34 -46
- package/package.json +5 -4
- package/pinyin-first-character/index.js +19792 -20877
- package/process-engine-info/index.d.ts +5 -2
- package/process-engine-info/index.js +11 -6
- package/style/index.js +1 -1
- package/style/style.d.ts +2 -1
- package/style/style.js +1 -1
- package/token-tools/index.d.ts +10 -7
- package/token-tools/index.js +44 -59
- package/use-low-code/index.d.ts +1 -0
- package/use-low-code/index.js +70 -0
- package/use-low-code/low-code-iframe.vue.d.ts +2 -0
- package/use-low-code/style.css +1 -0
- package/webSocket-service/index.d.ts +2 -1
- package/with-install/index.d.ts +2 -1
- package/api-services/src/sso.d.ts +0 -29
- package/api-services/src/util.d.ts +0 -1
- package/api-services/src/util.js +0 -1466
- package/common-tools/throttled.d.ts +0 -7
- package/common-tools/throttled.js +0 -10
- package/micro-app/globalData.d.ts +0 -3
- package/micro-app/globalData.js +0 -11
- package/micro-app/index.d.ts +0 -5
- package/micro-app/index.js +0 -3699
- package/panel/index.d.ts +0 -31
- package/panel/index.js +0 -37
- package/set-personal-info/index.js +0 -1468
- /package/{set-personal-info/index.d.ts → common-info/set-personal-info.d.ts} +0 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Canvas } from '@das-fed/utils/dimple-canvas/use-dimple-canvas/core/type';
|
|
2
|
+
|
|
2
3
|
declare const removeObject: (canvas: Canvas | null | undefined, key: string) => void;
|
|
3
4
|
export { removeObject };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Canvas } from '@das-fed/utils/dimple-canvas/use-dimple-canvas/core/type';
|
|
2
|
+
|
|
2
3
|
declare const transformAxis: (containerEl: HTMLDivElement, canvas: Canvas | null | undefined, coordinate: {
|
|
3
|
-
[key: string]: any;
|
|
4
4
|
x: number;
|
|
5
5
|
y: number;
|
|
6
|
+
[key: string]: any;
|
|
6
7
|
}) => {
|
|
7
8
|
x: number;
|
|
8
9
|
y: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Canvas, Layer } from '@das-fed/utils/dimple-canvas/use-dimple-canvas/core/type';
|
|
2
|
+
|
|
2
3
|
declare const initTransformer: (canvas?: Canvas | null, layer?: Layer | null) => any;
|
|
3
4
|
declare const removeTransformer: () => void;
|
|
4
5
|
export { initTransformer, removeTransformer };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { useKonva, Konva } from '@das-fed/utils/dimple-canvas/use-dimple-canvas/core/konva';
|
|
2
2
|
import { useAntvX6, Graph } from '@das-fed/utils/dimple-canvas/use-dimple-canvas/core/antv-x6';
|
|
3
|
+
|
|
3
4
|
type HookTypeMap = {
|
|
4
5
|
konva: ReturnType<typeof useKonva>;
|
|
5
6
|
'antv-x6': ReturnType<typeof useAntvX6>;
|
|
6
7
|
};
|
|
7
|
-
declare const useDimpleCanvas: <T extends "konva" | "antv-x6" = "konva">(core?: T, initOptions?: Graph.Options) => T extends
|
|
8
|
+
declare const useDimpleCanvas: <T extends "konva" | "antv-x6" = "konva">(core?: T, initOptions?: Graph.Options) => T extends 'antv-x6' ? HookTypeMap['antv-x6'] : HookTypeMap['konva'];
|
|
8
9
|
export { useDimpleCanvas, Konva, Graph };
|
package/directive/auth.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getUrlParams as
|
|
2
|
-
import { getSubApps as v, getPageAuth as
|
|
3
|
-
import { getEl as
|
|
1
|
+
import { getUrlParams as i, flatTree as P } from "@das-fed/utils/common-tools";
|
|
2
|
+
import { getSubApps as v, getPageAuth as o } from "@das-fed/utils/common-info";
|
|
3
|
+
import { getEl as h } from "@das-fed/utils/directive/utils";
|
|
4
4
|
const A = (e, t) => {
|
|
5
5
|
if (!e || !t)
|
|
6
6
|
return !1;
|
|
@@ -15,46 +15,46 @@ const A = (e, t) => {
|
|
|
15
15
|
}
|
|
16
16
|
return r;
|
|
17
17
|
}
|
|
18
|
-
},
|
|
19
|
-
var
|
|
20
|
-
const t = (e == null ? void 0 : e.code) ?? "", r = (e == null ? void 0 : e.path) ?? location.pathname, s = (e == null ? void 0 : e.applicationCode) ?? "";
|
|
18
|
+
}, m = (e) => {
|
|
19
|
+
var n;
|
|
20
|
+
const t = (e == null ? void 0 : e.code) ?? "", r = (e == null ? void 0 : e.path) ?? (location == null ? void 0 : location.pathname) ?? "", s = (e == null ? void 0 : e.applicationCode) ?? i(location.href, "app");
|
|
21
21
|
let l = "";
|
|
22
|
-
if (l = e != null && e.menuCode ? e.menuCode :
|
|
23
|
-
const c = ((
|
|
22
|
+
if (l = e != null && e.menuCode ? e.menuCode : i(location.href, "menu"), !l) {
|
|
23
|
+
const c = ((n = v().currentSubApp) == null ? void 0 : n.menus) ?? [];
|
|
24
24
|
if (c && c.length) {
|
|
25
|
-
const
|
|
26
|
-
if (
|
|
27
|
-
const f =
|
|
25
|
+
const d = P(c).filter((f) => f == null ? void 0 : f.routeUrl);
|
|
26
|
+
if (d && d.length) {
|
|
27
|
+
const f = d.find((u) => u != null && u.applicationPath ? r == null ? void 0 : r.includes("/" + u.applicationPath + u.routeUrl) : r == null ? void 0 : r.includes(u.routeUrl));
|
|
28
28
|
f && (l = (f == null ? void 0 : f.code) ?? "");
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
let a = !1;
|
|
33
33
|
if (t) {
|
|
34
|
-
const c =
|
|
34
|
+
const c = o(l, s) ?? [];
|
|
35
35
|
a = A(c, t);
|
|
36
36
|
} else
|
|
37
|
-
a = !!
|
|
37
|
+
a = !!o(l, s);
|
|
38
38
|
return a;
|
|
39
|
-
},
|
|
39
|
+
}, g = (e, t) => {
|
|
40
40
|
t === "hide" ? e.classList.add("is-hide") : (e.setAttribute("disabled", ""), e.classList.add("is-disabled"));
|
|
41
41
|
}, b = (e, t) => {
|
|
42
42
|
t === "hide" ? e.classList.remove("is-hide") : (e.removeAttribute("disabled"), e.classList.remove("is-disabled"));
|
|
43
43
|
}, U = (e, t) => {
|
|
44
44
|
let r = (e ? t.value : t) || {};
|
|
45
45
|
typeof r == "string" && (r = { code: r });
|
|
46
|
-
const s = (r == null ? void 0 : r.type) ?? "hide", l =
|
|
46
|
+
const s = (r == null ? void 0 : r.type) ?? "hide", l = m(r);
|
|
47
47
|
if (e)
|
|
48
48
|
if (!t.oldValue)
|
|
49
|
-
l ||
|
|
50
|
-
|
|
49
|
+
l || h(e, r).then((a) => {
|
|
50
|
+
g(a, s);
|
|
51
51
|
});
|
|
52
52
|
else {
|
|
53
|
-
const a =
|
|
54
|
-
if (a ===
|
|
53
|
+
const a = m(t.oldValue), n = l;
|
|
54
|
+
if (a === n)
|
|
55
55
|
return;
|
|
56
|
-
|
|
57
|
-
|
|
56
|
+
h(e, r).then((c) => {
|
|
57
|
+
n ? b(c, s) : g(c, s);
|
|
58
58
|
});
|
|
59
59
|
}
|
|
60
60
|
return l;
|
package/dom-check-in/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
const
|
|
2
|
-
const
|
|
3
|
-
let
|
|
4
|
-
return n >
|
|
1
|
+
const o = (e) => {
|
|
2
|
+
const r = window.event;
|
|
3
|
+
let t = Number(r.clientX), n = Number(r.clientY), i = Number(e.getBoundingClientRect().left), u = Number(i + e.clientWidth), l = Number(e.getBoundingClientRect().top), c = Number(l + e.clientHeight);
|
|
4
|
+
return console.log(t, i, u, n, l, c), t > i && t < u && n > l && n < c;
|
|
5
5
|
};
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
o as domCheckIn
|
|
8
8
|
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ref as I, getCurrentInstance as u, inject as s, computed as e, unref as i } from "vue";
|
|
2
|
-
const Z = (n) => typeof n == "number",
|
|
3
|
-
const t =
|
|
4
|
-
const
|
|
5
|
-
return Z(
|
|
6
|
-
}), x = e(() => r.value +
|
|
2
|
+
const Z = (n) => typeof n == "number", c = I(0), l = 2e3, a = Symbol("zIndexContextKey"), v = (n) => {
|
|
3
|
+
const t = u() ? s(a, void 0) : void 0, r = e(() => {
|
|
4
|
+
const d = i(t);
|
|
5
|
+
return Z(d) ? d : l;
|
|
6
|
+
}), x = e(() => r.value + c.value);
|
|
7
7
|
return {
|
|
8
8
|
initialZIndex: r,
|
|
9
9
|
currentZIndex: x,
|
|
10
|
-
nextZIndex: () => (
|
|
10
|
+
nextZIndex: () => (c.value++, x.value)
|
|
11
11
|
};
|
|
12
|
-
}, o =
|
|
12
|
+
}, o = v(), f = () => {
|
|
13
13
|
const n = e(() => o.initialZIndex.value), t = e(() => o.currentZIndex.value);
|
|
14
14
|
return {
|
|
15
15
|
initialZIndex: n,
|
|
@@ -18,5 +18,5 @@ const Z = (n) => typeof n == "number", d = I(0), l = 2e3, a = Symbol("zIndexCont
|
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
20
|
export {
|
|
21
|
-
|
|
21
|
+
f as useZIndex
|
|
22
22
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { portal as r, superadminPortal as e, enterpriseright as t } from "@das-fed/utils/api-services/modules";
|
|
2
|
+
const o = r.get("/appcategory"), a = e.get("/appcategory"), n = t.get("/permissionset/user-portal-menu"), s = e.get("/user-menu");
|
|
3
|
+
export {
|
|
4
|
+
o as appcategory,
|
|
5
|
+
n as enterpriserightQueryportalmenu,
|
|
6
|
+
a as superadminAppcategory,
|
|
7
|
+
s as superadminQuerymenu
|
|
8
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const useGetAuth: () => {
|
|
2
|
+
getApplication: (code?: string, appName?: 'superadmin' | 'enterpriseadmin') => Promise<any>;
|
|
3
|
+
getMenu: (code: string, menuCode?: string, path?: string, appName?: 'superadmin' | 'enterpriseadmin') => Promise<any>;
|
|
4
|
+
getAuth: (options: {
|
|
5
|
+
applicationCode: string;
|
|
6
|
+
menuCode: string;
|
|
7
|
+
code: string;
|
|
8
|
+
}, appName?: 'superadmin' | 'enterpriseadmin') => Promise<any>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { flatTree as w } from "@das-fed/utils/common-tools";
|
|
2
|
+
import { projectNextTick as A } from "@das-fed/utils/nextTiken";
|
|
3
|
+
import { vAuth as M } from "@das-fed/utils/directive/auth";
|
|
4
|
+
import { portal as T, superadminPortal as y, enterpriseright as U } from "@das-fed/utils/api-services/modules";
|
|
5
|
+
const v = T.get("/appcategory"), B = y.get("/appcategory"), C = U.get("/permissionset/user-portal-menu"), L = y.get("/user-menu"), k = () => {
|
|
6
|
+
const d = async (r, i = "enterpriseadmin") => {
|
|
7
|
+
let t = null, s = {};
|
|
8
|
+
await A(), i === "superadmin" ? t = B().run : (s = { userType: 1 }, t = v().run);
|
|
9
|
+
const [a, l] = await t(s);
|
|
10
|
+
if (a || !l || !l.length)
|
|
11
|
+
return null;
|
|
12
|
+
const f = l.map((o) => o.apps).flat();
|
|
13
|
+
return r ? f.find((o) => o.code === r) : f;
|
|
14
|
+
}, g = async (r, i, t, s = "enterpriseadmin") => {
|
|
15
|
+
var c;
|
|
16
|
+
await A();
|
|
17
|
+
let a = null, l = {
|
|
18
|
+
code: r,
|
|
19
|
+
showBtn: !0
|
|
20
|
+
};
|
|
21
|
+
s === "superadmin" ? a = L().run : (l.userType = 1, a = C().run);
|
|
22
|
+
const [f, e] = await a(l);
|
|
23
|
+
if (f || !e || !e.length)
|
|
24
|
+
return i || t ? void 0 : [];
|
|
25
|
+
if (!i && !t)
|
|
26
|
+
return e;
|
|
27
|
+
const o = e != null && e.length ? e.filter((n) => n.routeUrl) : [], m = e != null && e.length ? e.filter((n) => !n.routeUrl && n.children).map((n) => n.children).flat() : [], p = [...o, ...m];
|
|
28
|
+
let u;
|
|
29
|
+
if (i)
|
|
30
|
+
u = p.find((n) => n.code === i || n.originalCode === i);
|
|
31
|
+
else if (t) {
|
|
32
|
+
const n = t.replace(((c = p[0]) == null ? void 0 : c.applicationPath) ?? "", "").replace(/\/\//g, "/");
|
|
33
|
+
u = p.find((h) => h.routeUrl && h.routeUrl === n);
|
|
34
|
+
}
|
|
35
|
+
return u;
|
|
36
|
+
};
|
|
37
|
+
return {
|
|
38
|
+
getApplication: d,
|
|
39
|
+
getMenu: g,
|
|
40
|
+
getAuth: async (r, i = "enterpriseadmin") => {
|
|
41
|
+
var p;
|
|
42
|
+
const t = (r == null ? void 0 : r.applicationCode) ?? "", s = (r == null ? void 0 : r.menuCode) ?? "", a = (r == null ? void 0 : r.code) ?? "";
|
|
43
|
+
if (JSON.parse(sessionStorage.getItem("permission-btn") || "{}")[s])
|
|
44
|
+
return M(null, { applicationCode: t, menuCode: s, code: a });
|
|
45
|
+
if (!await d(t, i))
|
|
46
|
+
return !1;
|
|
47
|
+
const e = await g(t, s, i);
|
|
48
|
+
return !e || !(e != null && e.children) || !((p = e.children) != null && p.length) ? !1 : !!w(e.children).find((u) => {
|
|
49
|
+
let c = (u == null ? void 0 : u.originalCode) ?? u.code;
|
|
50
|
+
return c.includes(s + ".") && (c = c.replace(s + ".", "").replaceAll(".", "-")), c === a;
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export {
|
|
56
|
+
k as useGetAuth
|
|
57
|
+
};
|
package/nextTiken/index.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { PersonalInfo, TenantInfo } from '@das-fed/utils/common-info/type';
|
|
2
|
+
|
|
2
3
|
/** 等待获取到token */
|
|
3
4
|
export declare const tokenNextTick_1: () => Promise<string>;
|
|
4
5
|
/** 等待获取到projectId */
|
|
5
|
-
export declare const projectNextTick: () => Promise<string>;
|
|
6
|
+
export declare const projectNextTick: () => Promise<string | number>;
|
|
6
7
|
/** 等待获取到token和projectId */
|
|
7
8
|
export declare const tokenNextTick: () => Promise<boolean>;
|
|
8
9
|
/** 等待获取到userInfo */
|
|
9
10
|
export declare const userInfoNextTick: () => Promise<PersonalInfo>;
|
|
10
11
|
/** 等待获取到租户信息 */
|
|
11
12
|
export declare const tenantInfoNextTick: () => Promise<TenantInfo>;
|
|
12
|
-
/** 等待获取到默认页配置 */
|
|
13
|
-
export declare const defaultInfoNextTick: () => Promise<any>;
|
package/nextTiken/index.js
CHANGED
|
@@ -1,62 +1,50 @@
|
|
|
1
|
-
import { getToken as
|
|
1
|
+
import { getToken as r, getProjectInfo as c, getPersonalInfo as s, getTenantInfo as i } from "@das-fed/utils/common-info";
|
|
2
2
|
const k = () => new Promise((n) => {
|
|
3
|
-
const
|
|
4
|
-
const
|
|
5
|
-
if (
|
|
6
|
-
return n(
|
|
7
|
-
setTimeout(() =>
|
|
3
|
+
const e = () => {
|
|
4
|
+
const t = r();
|
|
5
|
+
if (t)
|
|
6
|
+
return n(t);
|
|
7
|
+
setTimeout(() => e(), 50);
|
|
8
8
|
};
|
|
9
|
-
|
|
9
|
+
e();
|
|
10
10
|
}), m = () => new Promise((n) => {
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
setTimeout(() => t(), 50);
|
|
11
|
+
const e = () => {
|
|
12
|
+
const t = c().id ? c().id : "";
|
|
13
|
+
if (t)
|
|
14
|
+
return n(t);
|
|
15
|
+
setTimeout(() => e(), 50);
|
|
17
16
|
};
|
|
18
|
-
|
|
17
|
+
e();
|
|
19
18
|
}), T = () => new Promise((n) => {
|
|
20
|
-
const
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
if (e && o)
|
|
19
|
+
const e = () => {
|
|
20
|
+
const t = r(), o = c().id ? c().id : "";
|
|
21
|
+
if (t && o)
|
|
24
22
|
return n(!0);
|
|
25
|
-
setTimeout(() =>
|
|
23
|
+
setTimeout(() => e(), 50);
|
|
26
24
|
};
|
|
27
|
-
|
|
28
|
-
}),
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
if (
|
|
32
|
-
return n(
|
|
33
|
-
setTimeout(() =>
|
|
25
|
+
e();
|
|
26
|
+
}), f = () => new Promise((n) => {
|
|
27
|
+
const e = () => {
|
|
28
|
+
const t = s();
|
|
29
|
+
if (t != null && t.id)
|
|
30
|
+
return n(t);
|
|
31
|
+
setTimeout(() => e(), 50);
|
|
34
32
|
};
|
|
35
|
-
|
|
36
|
-
}),
|
|
37
|
-
const
|
|
33
|
+
e();
|
|
34
|
+
}), d = () => new Promise((n) => {
|
|
35
|
+
const e = () => {
|
|
38
36
|
var o;
|
|
39
|
-
const
|
|
40
|
-
if ((o =
|
|
41
|
-
return n(
|
|
42
|
-
setTimeout(() =>
|
|
43
|
-
};
|
|
44
|
-
t();
|
|
45
|
-
}), g = () => new Promise((n) => {
|
|
46
|
-
const t = () => {
|
|
47
|
-
var o, c;
|
|
48
|
-
const e = JSON.parse(sessionStorage.getItem("home-config") || "{}");
|
|
49
|
-
if (e != null && e.info && ((o = r()) == null ? void 0 : o.id) === ((c = e == null ? void 0 : e.info) == null ? void 0 : c.projectId))
|
|
50
|
-
return n(e.info);
|
|
51
|
-
setTimeout(() => t(), 50);
|
|
37
|
+
const t = i();
|
|
38
|
+
if ((o = t == null ? void 0 : t.tenant) != null && o.id)
|
|
39
|
+
return n(t);
|
|
40
|
+
setTimeout(() => e(), 50);
|
|
52
41
|
};
|
|
53
|
-
|
|
42
|
+
e();
|
|
54
43
|
});
|
|
55
44
|
export {
|
|
56
|
-
g as defaultInfoNextTick,
|
|
57
45
|
m as projectNextTick,
|
|
58
|
-
|
|
46
|
+
d as tenantInfoNextTick,
|
|
59
47
|
T as tokenNextTick,
|
|
60
48
|
k as tokenNextTick_1,
|
|
61
|
-
|
|
49
|
+
f as userInfoNextTick
|
|
62
50
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.3.0-beta.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
"license": "ISC",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@antv/x6": "^2.18.1",
|
|
12
|
-
"@das-fed/
|
|
13
|
-
"@das-fed/utils": "1.0.8",
|
|
12
|
+
"@das-fed/utils": "workspace:^",
|
|
14
13
|
"@vue/shared": "^3.4.21",
|
|
14
|
+
"@vueuse/core": "^9.6.0",
|
|
15
15
|
"axios": "^1.6.7",
|
|
16
16
|
"dayjs": "^1.11.10",
|
|
17
17
|
"konva": "^9.3.6",
|
|
@@ -21,8 +21,9 @@
|
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@vitejs/plugin-vue": "^5.0.4",
|
|
24
|
-
"
|
|
24
|
+
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
25
25
|
"ant-design-vue": "3.2.20",
|
|
26
|
+
"consola": "^3.2.3",
|
|
26
27
|
"element-plus": "2.4.2",
|
|
27
28
|
"fast-glob": "^3.3.2",
|
|
28
29
|
"fs-extra": "^11.2.0",
|