x-essential-lib 0.5.26 → 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 +75 -75
- 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
|
-
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
|
|
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,9 +179,9 @@ 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
|
-
function
|
|
184
|
+
function je(e) {
|
|
185
185
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(a, t) {
|
|
186
186
|
var l = e.get(a);
|
|
187
187
|
l ? l.push(t) : e.set(a, [t]);
|
|
@@ -198,14 +198,14 @@ function Ae(e) {
|
|
|
198
198
|
} };
|
|
199
199
|
}
|
|
200
200
|
const p = function() {
|
|
201
|
-
return window.eventBus || (window.eventBus =
|
|
201
|
+
return window.eventBus || (window.eventBus = je()), window.eventBus;
|
|
202
202
|
}();
|
|
203
203
|
async function rt(e) {
|
|
204
204
|
return new Promise((a) => {
|
|
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,14 +225,14 @@ 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
|
-
let
|
|
233
|
+
let Ae = 0;
|
|
234
234
|
function se() {
|
|
235
|
-
return ++
|
|
235
|
+
return ++Ae;
|
|
236
236
|
}
|
|
237
237
|
async function ct(e) {
|
|
238
238
|
if (!ue())
|
|
@@ -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;
|
|
@@ -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(() => {
|
|
@@ -418,19 +418,19 @@ const Ue = /* @__PURE__ */ M({
|
|
|
418
418
|
}), O(() => {
|
|
419
419
|
p.off("confirmDlg", T);
|
|
420
420
|
});
|
|
421
|
-
const
|
|
421
|
+
const A = () => {
|
|
422
422
|
t.value = !1, C || (p.emit("confirmDlgResult" + x, !0), C = !0);
|
|
423
423
|
};
|
|
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),
|
|
431
431
|
onKeydown: [
|
|
432
432
|
g[2] || (g[2] = L(K((U) => t.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
433
|
-
L(K(
|
|
433
|
+
L(K(A, ["stop", "prevent"]), ["enter"])
|
|
434
434
|
],
|
|
435
435
|
transition: "dialog-top-transition",
|
|
436
436
|
"max-width": "600px"
|
|
@@ -440,29 +440,29 @@ const Ue = /* @__PURE__ */ M({
|
|
|
440
440
|
default: w(() => [
|
|
441
441
|
k(b, null, {
|
|
442
442
|
default: w(() => [
|
|
443
|
-
I(
|
|
443
|
+
I(j(o.value), 1)
|
|
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"
|
|
453
453
|
}, {
|
|
454
454
|
default: w(() => [
|
|
455
|
-
I(
|
|
455
|
+
I(j(s.value), 1)
|
|
456
456
|
]),
|
|
457
457
|
_: 1
|
|
458
458
|
}, 8, ["color"]),
|
|
459
|
-
k(
|
|
460
|
-
onClick:
|
|
459
|
+
k(q, {
|
|
460
|
+
onClick: A,
|
|
461
461
|
color: _.value,
|
|
462
462
|
variant: "text"
|
|
463
463
|
}, {
|
|
464
464
|
default: w(() => [
|
|
465
|
-
I(
|
|
465
|
+
I(j(v.value), 1)
|
|
466
466
|
]),
|
|
467
467
|
_: 1
|
|
468
468
|
}, 8, ["color"])
|
|
@@ -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(() => {
|
|
@@ -597,33 +597,33 @@ const Ue = /* @__PURE__ */ M({
|
|
|
597
597
|
}), T = f(() => {
|
|
598
598
|
var d;
|
|
599
599
|
return ((d = v.value) == null ? void 0 : d.color) ?? "primary";
|
|
600
|
-
}),
|
|
600
|
+
}), A = f(() => {
|
|
601
601
|
var d;
|
|
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"
|
|
@@ -633,7 +633,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
633
633
|
default: w(() => [
|
|
634
634
|
o.value ? (V(), E(U, { key: 0 }, {
|
|
635
635
|
default: w(() => [
|
|
636
|
-
I(
|
|
636
|
+
I(j(o.value), 1)
|
|
637
637
|
]),
|
|
638
638
|
_: 1
|
|
639
639
|
})) : ke("", !0),
|
|
@@ -653,23 +653,23 @@ 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"
|
|
660
660
|
}, {
|
|
661
661
|
default: w(() => [
|
|
662
|
-
I(
|
|
662
|
+
I(j(C.value), 1)
|
|
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
|
}, {
|
|
671
671
|
default: w(() => [
|
|
672
|
-
I(A
|
|
672
|
+
I(j(A.value), 1)
|
|
673
673
|
]),
|
|
674
674
|
_: 1
|
|
675
675
|
}, 8, ["color"])
|
|
@@ -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;
|
|
@@ -714,7 +714,7 @@ const Ue = /* @__PURE__ */ M({
|
|
|
714
714
|
}, {
|
|
715
715
|
default: w(() => [
|
|
716
716
|
m("div", Ge, [
|
|
717
|
-
m("span", null,
|
|
717
|
+
m("span", null, j(z(a).t("waitingResponse")), 1)
|
|
718
718
|
])
|
|
719
719
|
]),
|
|
720
720
|
_: 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
|
}
|
|
@@ -815,20 +815,20 @@ function mt(e, a) {
|
|
|
815
815
|
u && await C(), clearTimeout(x), x = setTimeout(async () => {
|
|
816
816
|
await C(), x && T();
|
|
817
817
|
}, 3e3);
|
|
818
|
-
},
|
|
818
|
+
}, A = () => {
|
|
819
819
|
clearTimeout(x), x = void 0;
|
|
820
820
|
};
|
|
821
821
|
S(() => {
|
|
822
822
|
a && T(!0);
|
|
823
823
|
}), O(() => {
|
|
824
|
-
|
|
824
|
+
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
|
};
|