x-essential-lib 0.5.25 → 0.5.27
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/dist/index.js +58 -58
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.id="x-essential-lib",a.appendChild(document.createTextNode('.x-cont[data-v-f4ad116e]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-f4ad116e]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-f4ad116e]{transform-origin:20px 20px;animation:lds-spinner-f4ad116e 1.2s linear infinite}.lds-spinner div[data-v-f4ad116e]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-f4ad116e]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-f4ad116e]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-f4ad116e]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-f4ad116e]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-f4ad116e]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-f4ad116e]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-f4ad116e]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-f4ad116e]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-f4ad116e]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-f4ad116e]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-f4ad116e]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-f4ad116e]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-f4ad116e{0%{opacity:1}to{opacity:0}}.x-cont[data-v-8c2268ea]{position:absolute;left:50%;bottom:20px;transform:translate(-50%);z-index:9999}')),document.head.appendChild(a)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
2
2
|
import { ref as i, watch as N, computed as f, onMounted as S, onBeforeUnmount as O, defineComponent as M, resolveComponent as h, openBlock as V, createBlock as E, unref as z, isRef as G, withKeys as L, withModifiers as K, withCtx as w, createVNode as k, createTextVNode as I, toDisplayString as j, createElementBlock as J, normalizeStyle as ve, pushScopeId as me, popScopeId as he, createElementVNode as m, reactive as we, Fragment as ye, renderList as xe, createCommentVNode as ke } from "vue";
|
|
3
3
|
import { useTheme as H, useLocale as Q, useDisplay as be } from "vuetify";
|
|
4
|
-
import { defineStore as
|
|
4
|
+
import { defineStore as re } from "pinia";
|
|
5
5
|
import Ce from "axios";
|
|
6
|
-
import { useRouter as
|
|
7
|
-
const
|
|
6
|
+
import { useRouter as ne, useRoute as De } from "vue-router";
|
|
7
|
+
const Y = re(
|
|
8
8
|
"global",
|
|
9
9
|
() => {
|
|
10
10
|
const e = H(), a = i(), t = i("en"), l = i({}), o = i(""), n = i("/");
|
|
@@ -34,7 +34,7 @@ const ne = le(
|
|
|
34
34
|
}
|
|
35
35
|
]
|
|
36
36
|
}
|
|
37
|
-
), ce =
|
|
37
|
+
), ce = re("viewMgr", () => {
|
|
38
38
|
const e = i([]);
|
|
39
39
|
function a() {
|
|
40
40
|
return e.value.length <= 0;
|
|
@@ -149,10 +149,10 @@ function lt(e) {
|
|
|
149
149
|
return a.defaults.baseURL = e.baseUrl, a.interceptors.request.use(
|
|
150
150
|
(t) => Ve(t),
|
|
151
151
|
(t) => {
|
|
152
|
-
|
|
152
|
+
qe(t, e.onError);
|
|
153
153
|
}
|
|
154
154
|
), a.interceptors.response.use(
|
|
155
|
-
(t) =>
|
|
155
|
+
(t) => Re(t),
|
|
156
156
|
(t) => Oe(t, e.onError)
|
|
157
157
|
), a;
|
|
158
158
|
}
|
|
@@ -160,10 +160,10 @@ function Ve(e) {
|
|
|
160
160
|
const a = B.get("accessToken") ?? "";
|
|
161
161
|
return e.headers.Authorization = "Basic " + a, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
|
|
162
162
|
}
|
|
163
|
-
function
|
|
163
|
+
function qe(e, a) {
|
|
164
164
|
console.error(e), a("request timeout");
|
|
165
165
|
}
|
|
166
|
-
function
|
|
166
|
+
function Re(e) {
|
|
167
167
|
return e.data;
|
|
168
168
|
}
|
|
169
169
|
function Oe(e, a) {
|
|
@@ -179,7 +179,7 @@ function Oe(e, a) {
|
|
|
179
179
|
}), a(l), Promise.reject(e);
|
|
180
180
|
}
|
|
181
181
|
function Te() {
|
|
182
|
-
B.remove("accessToken"), B.remove("refreshToken"), B.remove("activeOrg"),
|
|
182
|
+
B.remove("accessToken"), B.remove("refreshToken"), B.remove("activeOrg"), ne().replace({ path: "/passport/login" });
|
|
183
183
|
}
|
|
184
184
|
function je(e) {
|
|
185
185
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(a, t) {
|
|
@@ -205,7 +205,7 @@ async function rt(e) {
|
|
|
205
205
|
setTimeout(a, e);
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
|
-
async function
|
|
208
|
+
async function Z(e, a, t) {
|
|
209
209
|
const l = Date.now();
|
|
210
210
|
return new Promise((o) => {
|
|
211
211
|
const n = async () => {
|
|
@@ -225,10 +225,10 @@ function nt(e) {
|
|
|
225
225
|
t.add("app-reset");
|
|
226
226
|
}, 0));
|
|
227
227
|
}
|
|
228
|
-
let
|
|
228
|
+
let te = Date.now();
|
|
229
229
|
function ue() {
|
|
230
230
|
const e = Date.now();
|
|
231
|
-
return e -
|
|
231
|
+
return e - te > 500 ? (te = e, !0) : !1;
|
|
232
232
|
}
|
|
233
233
|
let Ae = 0;
|
|
234
234
|
function se() {
|
|
@@ -241,7 +241,7 @@ async function ct(e) {
|
|
|
241
241
|
const l = (n) => {
|
|
242
242
|
t = n, a = !0;
|
|
243
243
|
}, o = se();
|
|
244
|
-
return p.on("confirmDlgResult" + o, l), p.emit("confirmDlg", { ...e, seq: o }), await
|
|
244
|
+
return p.on("confirmDlgResult" + o, l), p.emit("confirmDlg", { ...e, seq: o }), await Z(() => a), p.off("confirmDlgResult" + o, l), t;
|
|
245
245
|
}
|
|
246
246
|
async function ut(e) {
|
|
247
247
|
if (!ue())
|
|
@@ -250,7 +250,7 @@ async function ut(e) {
|
|
|
250
250
|
const l = (n) => {
|
|
251
251
|
t = n, a = !0;
|
|
252
252
|
}, o = se();
|
|
253
|
-
return p.on("promptDlgResult" + o, l), p.emit("promptDlg", { ...e, seq: o }), await
|
|
253
|
+
return p.on("promptDlgResult" + o, l), p.emit("promptDlg", { ...e, seq: o }), await Z(() => a), p.off("promptDlgResult" + o, l), t;
|
|
254
254
|
}
|
|
255
255
|
function st() {
|
|
256
256
|
p.emit("openWaitDlg");
|
|
@@ -271,7 +271,7 @@ function ft(e, a) {
|
|
|
271
271
|
p.emit("message", { type: "warning", text: e, timeout: a });
|
|
272
272
|
}
|
|
273
273
|
var Ie = /* @__PURE__ */ ((e) => (e.list_app_group = "list_app_group", e.create_app_group = "create_app_group", e.delete_app_group = "delete_app_group", e.update_app_group = "update_app_group", e.arrange_app_group = "arrange_app_group", e.list_app = "list_app", e.get_app = "get_app", e.create_app = "create_app", e.delete_app = "delete_app", e.update_app = "update_app", e.list_app_release = "list_app_release", e.get_app_release = "get_app_release", e.create_app_release = "create_app_release", e.delete_app_release = "delete_app_release", e.deploy_app_release = "deploy_app_release", e.open_app_layer = "open_app_layer", e.open_app = "open_app", e.list_calc_space = "list_calc_space", e.get_calc_space = "get_calc_space", e.create_calc_space = "create_calc_space", e.delete_calc_space = "delete_calc_space", e.update_calc_space = "update_calc_space", e.arrange_calc_space = "arrange_calc_space", e.list_func_group = "list_func_group", e.create_func_group = "create_func_group", e.delete_func_group = "delete_func_group", e.update_func_group = "update_func_group", e.arrange_func_group = "arrange_func_group", e.list_func = "list_func", e.get_func = "get_func", e.create_func = "create_func", e.delete_func = "delete_func", e.update_func = "update_func", e.debug_func = "debug_func", e.call_func = "call_func", e.list_func_release = "list_func_release", e.get_func_release = "get_func_release", e.create_func_release = "create_func_release", e.delete_func_release = "delete_func_release", e.deploy_func_release = "deploy_func_release", e.list_flow_group = "list_flow_group", e.create_flow_group = "create_flow_group", e.delete_flow_group = "delete_flow_group", e.update_flow_group = "update_flow_group", e.arrange_flow_group = "arrange_flow_group", e.list_flow = "list_flow", e.get_flow = "get_flow", e.create_flow = "create_flow", e.delete_flow = "delete_flow", e.update_flow = "update_flow", e.call_flow = "call_flow", e.list_flow_release = "list_flow_release", e.get_flow_release = "get_flow_release", e.create_flow_release = "create_flow_release", e.delete_flow_release = "delete_flow_release", e.deploy_flow_release = "deploy_flow_release", e.list_task = "list_task", e.get_task = "get_task", e.create_task = "create_task", e.delete_task = "delete_task", e.update_task = "update_task", e.call_task = "call_task", e.open_calc_layer = "open_calc_layer", e.list_db_space = "list_db_space", e.get_db_space = "get_db_space", e.create_db_space = "create_db_space", e.delete_db_space = "delete_db_space", e.update_db_space = "update_db_space", e.arrange_db_space = "arrange_db_space", e.list_model_group = "list_model_group", e.create_model_group = "create_model_group", e.delete_model_group = "delete_model_group", e.update_model_group = "update_model_group", e.arrange_model_group = "arrange_model_group", e.list_model = "list_model", e.get_model = "get_model", e.create_model = "create_model", e.delete_model = "delete_model", e.update_model = "update_model", e.get_model_data = "get_model_data", e.create_model_data = "create_model_data", e.delete_model_data = "delete_model_data", e.update_model_data = "update_model_data", e.get_graph = "get_graph", e.update_graph = "update_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_asset_space = "list_asset_space", e.get_asset_space = "get_asset_space", e.create_asset_space = "create_asset_space", e.delete_asset_space = "delete_asset_space", e.update_asset_space = "update_asset_space", e.arrange_asset_space = "arrange_asset_space", e.list_dir = "list_dir", e.create_dir = "create_dir", e.delete_dir = "delete_dir", e.update_dir = "update_dir", e.move_dir = "move_dir", e.list_asset = "list_asset", e.get_asset = "get_asset", e.create_asset = "create_asset", e.delete_asset = "delete_asset", e.update_asset = "update_asset", e.move_asset = "move_asset", e.open_asset_layer = "open_asset_layer", e.list_org_member = "list_org_member", e.add_org_member = "add_org_member", e.remove_org_member = "remove_org_member", e.update_org_member = "update_org_member", e.list_org_role = "list_org_role", e.get_org_role = "get_org_role", e.create_org_role = "create_org_role", e.delete_org_role = "delete_org_role", e.update_org_role = "update_org_role", e.arrange_org_role = "arrange_org_role", e.get_org_structure = "get_org_structure", e.update_org_structure = "update_org_structure", e.filter_model = "filter_model", e))(Ie || {});
|
|
274
|
-
function
|
|
274
|
+
function ae(e, a) {
|
|
275
275
|
if (!e)
|
|
276
276
|
return !1;
|
|
277
277
|
let t = e;
|
|
@@ -297,7 +297,7 @@ const Be = [
|
|
|
297
297
|
{ path: "/mine/general", level: 2, requiredState: "org" },
|
|
298
298
|
{ path: "/mine/general/darkMode", level: 3, requiredState: "org" },
|
|
299
299
|
{ path: "/mine/general/language", level: 3, requiredState: "org" },
|
|
300
|
-
{ path: "/app/manager", level: 1, requiredState: "org" },
|
|
300
|
+
{ path: "/app/manager", level: 1, requiredState: "org", mainActive: 2 },
|
|
301
301
|
{ path: "/app/editor", level: 2, requiredState: "org" },
|
|
302
302
|
{ path: "/asset", level: 1, requiredState: "org", mainActive: 2 },
|
|
303
303
|
{ path: "/calc", level: 1, requiredState: "org", mainActive: 2 },
|
|
@@ -314,21 +314,21 @@ function F(e) {
|
|
|
314
314
|
r > 0 && r >= t && (a = o, t = r);
|
|
315
315
|
}), a;
|
|
316
316
|
}
|
|
317
|
-
function
|
|
318
|
-
|
|
317
|
+
function oe(e) {
|
|
318
|
+
const { lastAppPath: a } = Y();
|
|
319
|
+
if (e === "/" && (e = a), e === "/")
|
|
319
320
|
return { app: "", path: "/", level: -1 };
|
|
320
|
-
const
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
return console.assert(t.length >= 2), { app: t[1], path: a.path, level: a.level };
|
|
321
|
+
const t = F(e);
|
|
322
|
+
console.assert(t, "invalid route meta");
|
|
323
|
+
const l = e.split("/");
|
|
324
|
+
return console.assert(l.length >= 2), { app: l[1], path: t.path, level: t.level };
|
|
325
325
|
}
|
|
326
|
-
const
|
|
326
|
+
const le = i("");
|
|
327
327
|
function D(e, a) {
|
|
328
|
-
const t =
|
|
328
|
+
const t = oe(e), l = oe(a), o = t.app === l.app, n = t.path === l.path, r = t.level >= l.level;
|
|
329
329
|
console.info(
|
|
330
330
|
`~~~~before route change~~~~ ${l.path} -> ${t.path} inner=${o} forward=${r}`
|
|
331
|
-
), o ? n ?
|
|
331
|
+
), o ? n ? le.value = "" : le.value = r ? "inner-left" : "inner-right" : window.routeExtras = { forward: r };
|
|
332
332
|
}
|
|
333
333
|
function Ee() {
|
|
334
334
|
return !!B.get("accessToken");
|
|
@@ -376,7 +376,7 @@ function gt(e, a, t) {
|
|
|
376
376
|
else
|
|
377
377
|
D(e.path, a.path), t();
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function P(e, a) {
|
|
380
380
|
const t = ce(), l = f({
|
|
381
381
|
get() {
|
|
382
382
|
return t.hasView(e);
|
|
@@ -396,7 +396,7 @@ function Z(e, a) {
|
|
|
396
396
|
const Ue = /* @__PURE__ */ M({
|
|
397
397
|
__name: "index",
|
|
398
398
|
setup(e) {
|
|
399
|
-
const a = Q(), { open: t } =
|
|
399
|
+
const a = Q(), { open: t } = P("confirmDlg"), l = i(""), o = i(""), n = i(), r = i(), c = f(() => {
|
|
400
400
|
var u;
|
|
401
401
|
return ((u = n.value) == null ? void 0 : u.color) ?? "primary";
|
|
402
402
|
}), s = f(() => {
|
|
@@ -424,7 +424,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
424
424
|
return N(t, (u) => {
|
|
425
425
|
!u && !C && (p.emit("confirmDlgResult" + x, !1), C = !0);
|
|
426
426
|
}), (u, g) => {
|
|
427
|
-
const b = h("v-card-text"),
|
|
427
|
+
const b = h("v-card-text"), q = h("v-btn"), R = h("v-card-actions"), d = h("v-card"), y = h("v-dialog");
|
|
428
428
|
return V(), E(y, {
|
|
429
429
|
modelValue: z(t),
|
|
430
430
|
"onUpdate:modelValue": g[1] || (g[1] = (U) => G(t) ? t.value = U : null),
|
|
@@ -444,9 +444,9 @@ const Ue = /* @__PURE__ */ M({
|
|
|
444
444
|
]),
|
|
445
445
|
_: 1
|
|
446
446
|
}),
|
|
447
|
-
k(
|
|
447
|
+
k(R, { class: "d-flex justify-end" }, {
|
|
448
448
|
default: w(() => [
|
|
449
|
-
k(
|
|
449
|
+
k(q, {
|
|
450
450
|
onClick: g[0] || (g[0] = (U) => t.value = !1),
|
|
451
451
|
color: c.value,
|
|
452
452
|
variant: "text"
|
|
@@ -456,7 +456,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
456
456
|
]),
|
|
457
457
|
_: 1
|
|
458
458
|
}, 8, ["color"]),
|
|
459
|
-
k(
|
|
459
|
+
k(q, {
|
|
460
460
|
onClick: A,
|
|
461
461
|
color: _.value,
|
|
462
462
|
variant: "text"
|
|
@@ -588,7 +588,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
588
588
|
}), He = /* @__PURE__ */ pe(Ne, [["__scopeId", "data-v-8c2268ea"]]), Je = /* @__PURE__ */ M({
|
|
589
589
|
__name: "index",
|
|
590
590
|
setup(e) {
|
|
591
|
-
const a = Q(), { open: t } =
|
|
591
|
+
const a = Q(), { open: t } = P("promptDlg"), l = i(""), o = i(""), n = i(), r = i(), c = i(), s = i(""), _ = i(), v = i(), x = f(() => {
|
|
592
592
|
var d;
|
|
593
593
|
return ((d = _.value) == null ? void 0 : d.color) ?? "primary";
|
|
594
594
|
}), C = f(() => {
|
|
@@ -602,28 +602,28 @@ const Ue = /* @__PURE__ */ M({
|
|
|
602
602
|
return ((d = v.value) == null ? void 0 : d.text) ?? a.t("confirm");
|
|
603
603
|
}), u = i();
|
|
604
604
|
let g = 0, b = !1;
|
|
605
|
-
const
|
|
605
|
+
const q = async (d) => {
|
|
606
606
|
var y;
|
|
607
|
-
l.value = d.title, o.value = d.text, n.value = d.label, r.value = d.placeholder, c.value = d.rules, s.value = d.value, _.value = d.cancel, v.value = d.confirm, g = d.seq, b = !1, t.value = !0, await
|
|
607
|
+
l.value = d.title, o.value = d.text, n.value = d.label, r.value = d.placeholder, c.value = d.rules, s.value = d.value, _.value = d.cancel, v.value = d.confirm, g = d.seq, b = !1, t.value = !0, await Z(() => u.value !== void 0, 1e3), (y = u.value) == null || y.focus();
|
|
608
608
|
};
|
|
609
609
|
S(() => {
|
|
610
|
-
p.on("promptDlg",
|
|
610
|
+
p.on("promptDlg", q);
|
|
611
611
|
}), O(() => {
|
|
612
|
-
p.off("promptDlg",
|
|
612
|
+
p.off("promptDlg", q);
|
|
613
613
|
});
|
|
614
|
-
const
|
|
614
|
+
const R = () => {
|
|
615
615
|
t.value = !1, b || (p.emit("promptDlgResult" + g, s.value ?? ""), b = !0);
|
|
616
616
|
};
|
|
617
617
|
return N(t, (d) => {
|
|
618
618
|
!d && !b && (p.emit("promptDlgResult" + g, void 0), b = !0);
|
|
619
619
|
}), (d, y) => {
|
|
620
|
-
const U = h("v-card-text"), _e = h("v-text-field"), de = h("v-form"),
|
|
620
|
+
const U = h("v-card-text"), _e = h("v-text-field"), de = h("v-form"), ee = h("v-btn"), ie = h("v-card-actions"), fe = h("v-card"), ge = h("v-dialog");
|
|
621
621
|
return V(), E(ge, {
|
|
622
622
|
modelValue: z(t),
|
|
623
623
|
"onUpdate:modelValue": y[2] || (y[2] = ($) => G(t) ? t.value = $ : null),
|
|
624
624
|
onKeydown: [
|
|
625
625
|
y[3] || (y[3] = L(K(($) => t.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
626
|
-
L(K(
|
|
626
|
+
L(K(R, ["stop", "prevent"]), ["enter"])
|
|
627
627
|
],
|
|
628
628
|
transition: "dialog-top-transition",
|
|
629
629
|
"max-width": "600px"
|
|
@@ -653,7 +653,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
653
653
|
}),
|
|
654
654
|
k(ie, { class: "d-flex justify-end" }, {
|
|
655
655
|
default: w(() => [
|
|
656
|
-
k(
|
|
656
|
+
k(ee, {
|
|
657
657
|
onClick: y[1] || (y[1] = ($) => t.value = !1),
|
|
658
658
|
color: x.value,
|
|
659
659
|
variant: "text"
|
|
@@ -663,8 +663,8 @@ const Ue = /* @__PURE__ */ M({
|
|
|
663
663
|
]),
|
|
664
664
|
_: 1
|
|
665
665
|
}, 8, ["color"]),
|
|
666
|
-
k(
|
|
667
|
-
onClick:
|
|
666
|
+
k(ee, {
|
|
667
|
+
onClick: R,
|
|
668
668
|
color: T.value,
|
|
669
669
|
variant: "text"
|
|
670
670
|
}, {
|
|
@@ -687,7 +687,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
687
687
|
}), Xe = { class: "mx-auto my-auto" }, Ge = { class: "d-flex align-center justify-center w-100 h-100" }, Qe = /* @__PURE__ */ M({
|
|
688
688
|
__name: "index",
|
|
689
689
|
setup(e) {
|
|
690
|
-
const a = Q(), { open: t } =
|
|
690
|
+
const a = Q(), { open: t } = P("waitDlg"), l = () => {
|
|
691
691
|
t.value = !0;
|
|
692
692
|
}, o = () => {
|
|
693
693
|
t.value = !1;
|
|
@@ -744,7 +744,7 @@ function Ze(e, a) {
|
|
|
744
744
|
return e.post("pullPermission", a);
|
|
745
745
|
}
|
|
746
746
|
function mt(e, a) {
|
|
747
|
-
const t = De(), l =
|
|
747
|
+
const t = De(), l = ne(), o = Y(), n = ce();
|
|
748
748
|
let r = !0;
|
|
749
749
|
const c = () => {
|
|
750
750
|
r = !1;
|
|
@@ -800,14 +800,14 @@ function mt(e, a) {
|
|
|
800
800
|
});
|
|
801
801
|
if (!g)
|
|
802
802
|
return;
|
|
803
|
-
const
|
|
804
|
-
for (const
|
|
805
|
-
if (
|
|
803
|
+
const q = {};
|
|
804
|
+
for (const R in b) {
|
|
805
|
+
if (R === "checksum")
|
|
806
806
|
continue;
|
|
807
|
-
const d = b[
|
|
808
|
-
R
|
|
807
|
+
const d = b[R];
|
|
808
|
+
q[R] = JSON.parse(d);
|
|
809
809
|
}
|
|
810
|
-
o.permissionObjects =
|
|
810
|
+
o.permissionObjects = q, o.permissionChecksum = b.checksum ?? "";
|
|
811
811
|
} catch (g) {
|
|
812
812
|
console.error(g);
|
|
813
813
|
}
|
|
@@ -825,10 +825,10 @@ function mt(e, a) {
|
|
|
825
825
|
});
|
|
826
826
|
}
|
|
827
827
|
function ht() {
|
|
828
|
-
const e =
|
|
828
|
+
const e = Y();
|
|
829
829
|
function a(t, l) {
|
|
830
830
|
const o = e.permissionObjects[t];
|
|
831
|
-
return o ? l ? !(!
|
|
831
|
+
return o ? l ? !(!ae(o.includes, l) || ae(o.excludes, l)) : !0 : !1;
|
|
832
832
|
}
|
|
833
833
|
return { verifyPermission: a };
|
|
834
834
|
}
|
|
@@ -844,7 +844,7 @@ export {
|
|
|
844
844
|
lt as createAxios,
|
|
845
845
|
yt as default,
|
|
846
846
|
p as eventBus,
|
|
847
|
-
|
|
847
|
+
ae as isExist,
|
|
848
848
|
F as matchRouteMeta,
|
|
849
849
|
_t as messageError,
|
|
850
850
|
dt as messageInfo,
|
|
@@ -854,14 +854,14 @@ export {
|
|
|
854
854
|
ct as openConfirmDlg,
|
|
855
855
|
ut as openPromptDlg,
|
|
856
856
|
st as openWaitDlg,
|
|
857
|
-
|
|
857
|
+
le as routeTransName,
|
|
858
858
|
vt as useColor,
|
|
859
|
-
|
|
859
|
+
Y as useGlobalStore,
|
|
860
860
|
mt as useMicroApp,
|
|
861
861
|
ht as usePermission,
|
|
862
862
|
wt as useSystem,
|
|
863
863
|
ce as useViewMgrStore,
|
|
864
|
-
|
|
864
|
+
P as useViewStack,
|
|
865
865
|
rt as waitMs,
|
|
866
|
-
|
|
866
|
+
Z as waitUtil
|
|
867
867
|
};
|