x-essential-lib 0.7.1 → 0.7.3
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/composables/viewStack.d.ts +1 -1
- package/dist/index.js +417 -416
- package/dist/store/global.d.ts +2 -2
- package/dist/store/viewMgr.d.ts +2 -2
- package/dist/utils/axios.d.ts +1 -1
- package/dist/utils/dialog.d.ts +1 -1
- package/dist/utils/permission.d.ts +17 -17
- package/package.json +28 -24
package/dist/index.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
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-7ab74c70]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-7ab74c70]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-7ab74c70]{transform-origin:20px 20px;animation:lds-spinner-7ab74c70 1.2s linear infinite}.lds-spinner div[data-v-7ab74c70]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-7ab74c70]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-7ab74c70]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-7ab74c70]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-7ab74c70]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-7ab74c70]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-7ab74c70]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-7ab74c70]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-7ab74c70]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-7ab74c70]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-7ab74c70]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-7ab74c70]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-7ab74c70]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-7ab74c70{0%{opacity:1}to{opacity:0}}.x-item[data-v-d5cfe252]{width:600px}@media (max-width: 600px){.x-item[data-v-d5cfe252]{width:calc(100vw - 16px)}}.x-cont[data-v-
|
|
2
|
-
import { ref as
|
|
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-7ab74c70]{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;align-items:center;justify-content:center}.lds-spinner[data-v-7ab74c70]{color:official;display:inline-block;position:relative;width:40px;height:40px}.lds-spinner div[data-v-7ab74c70]{transform-origin:20px 20px;animation:lds-spinner-7ab74c70 1.2s linear infinite}.lds-spinner div[data-v-7ab74c70]:after{content:" ";display:block;position:absolute;top:3px;left:18px;width:2px;height:6px;border-radius:5%;background:#9e9e9e}.lds-spinner div[data-v-7ab74c70]:nth-child(1){transform:rotate(0);animation-delay:-1.1s}.lds-spinner div[data-v-7ab74c70]:nth-child(2){transform:rotate(30deg);animation-delay:-1s}.lds-spinner div[data-v-7ab74c70]:nth-child(3){transform:rotate(60deg);animation-delay:-.9s}.lds-spinner div[data-v-7ab74c70]:nth-child(4){transform:rotate(90deg);animation-delay:-.8s}.lds-spinner div[data-v-7ab74c70]:nth-child(5){transform:rotate(120deg);animation-delay:-.7s}.lds-spinner div[data-v-7ab74c70]:nth-child(6){transform:rotate(150deg);animation-delay:-.6s}.lds-spinner div[data-v-7ab74c70]:nth-child(7){transform:rotate(180deg);animation-delay:-.5s}.lds-spinner div[data-v-7ab74c70]:nth-child(8){transform:rotate(210deg);animation-delay:-.4s}.lds-spinner div[data-v-7ab74c70]:nth-child(9){transform:rotate(240deg);animation-delay:-.3s}.lds-spinner div[data-v-7ab74c70]:nth-child(10){transform:rotate(270deg);animation-delay:-.2s}.lds-spinner div[data-v-7ab74c70]:nth-child(11){transform:rotate(300deg);animation-delay:-.1s}.lds-spinner div[data-v-7ab74c70]:nth-child(12){transform:rotate(330deg);animation-delay:0s}@keyframes lds-spinner-7ab74c70{0%{opacity:1}to{opacity:0}}.x-item[data-v-d5cfe252]{width:600px}@media (max-width: 600px){.x-item[data-v-d5cfe252]{width:calc(100vw - 16px)}}.x-cont[data-v-8fd5d800]{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 _, defineComponent as E, computed as v, onMounted as M, onBeforeUnmount as I, watch as Z, resolveComponent as h, openBlock as L, createBlock as O, withKeys as F, withModifiers as W, withCtx as w, createVNode as x, createTextVNode as T, toDisplayString as q, createElementBlock as Q, normalizeStyle as re, createElementVNode as m, createCommentVNode as ne, unref as le, Fragment as fe, renderList as ge, useTemplateRef as ve, getCurrentScope as me, onScopeDispose as he, watchEffect as we, getCurrentInstance as ye } from "vue";
|
|
3
3
|
import { useI18n as Y } from "vue-i18n";
|
|
4
4
|
import { defineStore as ce } from "pinia";
|
|
5
|
-
import
|
|
6
|
-
import { useRouter as ue, useRoute as
|
|
5
|
+
import xe from "axios";
|
|
6
|
+
import { useRouter as ue, useRoute as be } from "vue-router";
|
|
7
7
|
import { useTheme as P, useDisplay as ke } from "vuetify";
|
|
8
8
|
const G = ce("global", () => {
|
|
9
|
-
const e =
|
|
9
|
+
const e = _(), t = _("en"), a = _({}), r = _(""), o = _("");
|
|
10
10
|
return {
|
|
11
11
|
dark: e,
|
|
12
|
-
locale:
|
|
13
|
-
permissionObjects:
|
|
12
|
+
locale: t,
|
|
13
|
+
permissionObjects: a,
|
|
14
14
|
permissionChecksum: r,
|
|
15
|
-
lastAppPath:
|
|
15
|
+
lastAppPath: o
|
|
16
16
|
};
|
|
17
17
|
}), H = ce("viewMgr", () => {
|
|
18
|
-
const e =
|
|
19
|
-
function
|
|
18
|
+
const e = _([]);
|
|
19
|
+
function t() {
|
|
20
20
|
return e.value.length <= 0;
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function a() {
|
|
23
23
|
const u = e.value.length;
|
|
24
24
|
if (u > 0)
|
|
25
25
|
return e.value[u - 1];
|
|
26
26
|
}
|
|
27
27
|
function r(u) {
|
|
28
|
-
return e.value.find((
|
|
28
|
+
return e.value.find((p) => p === u) !== void 0;
|
|
29
29
|
}
|
|
30
|
-
function
|
|
31
|
-
const
|
|
32
|
-
|
|
30
|
+
function o(u) {
|
|
31
|
+
const p = e.value.findIndex((d) => d === u);
|
|
32
|
+
p !== -1 && e.value.splice(p, 1), e.value.push(u);
|
|
33
33
|
}
|
|
34
34
|
function l(u) {
|
|
35
|
-
const
|
|
36
|
-
|
|
35
|
+
const p = e.value.findIndex((d) => d === u);
|
|
36
|
+
p !== -1 && e.value.splice(p, 1);
|
|
37
37
|
}
|
|
38
38
|
function n() {
|
|
39
39
|
console.assert(e.value.length > 0), e.value.pop();
|
|
@@ -43,10 +43,10 @@ const G = ce("global", () => {
|
|
|
43
43
|
}
|
|
44
44
|
return {
|
|
45
45
|
views: e,
|
|
46
|
-
isEmpty:
|
|
47
|
-
lastView:
|
|
46
|
+
isEmpty: t,
|
|
47
|
+
lastView: a,
|
|
48
48
|
hasView: r,
|
|
49
|
-
addView:
|
|
49
|
+
addView: o,
|
|
50
50
|
delView: l,
|
|
51
51
|
popView: n,
|
|
52
52
|
clearViews: c
|
|
@@ -54,10 +54,10 @@ const G = ce("global", () => {
|
|
|
54
54
|
});
|
|
55
55
|
/*! js-cookie v3.0.5 | MIT */
|
|
56
56
|
function X(e) {
|
|
57
|
-
for (var
|
|
58
|
-
var
|
|
59
|
-
for (var r in
|
|
60
|
-
e[r] =
|
|
57
|
+
for (var t = 1; t < arguments.length; t++) {
|
|
58
|
+
var a = arguments[t];
|
|
59
|
+
for (var r in a)
|
|
60
|
+
e[r] = a[r];
|
|
61
61
|
}
|
|
62
62
|
return e;
|
|
63
63
|
}
|
|
@@ -72,195 +72,191 @@ var Ce = {
|
|
|
72
72
|
);
|
|
73
73
|
}
|
|
74
74
|
};
|
|
75
|
-
function J(e,
|
|
76
|
-
function
|
|
75
|
+
function J(e, t) {
|
|
76
|
+
function a(o, l, n) {
|
|
77
77
|
if (!(typeof document > "u")) {
|
|
78
|
-
n = X({},
|
|
78
|
+
n = X({}, t, n), typeof n.expires == "number" && (n.expires = new Date(Date.now() + n.expires * 864e5)), n.expires && (n.expires = n.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
79
79
|
var c = "";
|
|
80
80
|
for (var u in n)
|
|
81
81
|
n[u] && (c += "; " + u, n[u] !== !0 && (c += "=" + n[u].split(";")[0]));
|
|
82
|
-
return document.cookie =
|
|
82
|
+
return document.cookie = o + "=" + e.write(l, o) + c;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
function r(
|
|
86
|
-
if (!(typeof document > "u" || arguments.length && !
|
|
85
|
+
function r(o) {
|
|
86
|
+
if (!(typeof document > "u" || arguments.length && !o)) {
|
|
87
87
|
for (var l = document.cookie ? document.cookie.split("; ") : [], n = {}, c = 0; c < l.length; c++) {
|
|
88
|
-
var u = l[c].split("="),
|
|
88
|
+
var u = l[c].split("="), p = u.slice(1).join("=");
|
|
89
89
|
try {
|
|
90
|
-
var
|
|
91
|
-
if (n[
|
|
90
|
+
var d = decodeURIComponent(u[0]);
|
|
91
|
+
if (n[d] = e.read(p, d), o === d)
|
|
92
92
|
break;
|
|
93
93
|
} catch {
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
return
|
|
96
|
+
return o ? n[o] : n;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
return Object.create(
|
|
100
100
|
{
|
|
101
|
-
set:
|
|
101
|
+
set: a,
|
|
102
102
|
get: r,
|
|
103
|
-
remove: function(
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
remove: function(o, l) {
|
|
104
|
+
a(
|
|
105
|
+
o,
|
|
106
106
|
"",
|
|
107
107
|
X({}, l, {
|
|
108
108
|
expires: -1
|
|
109
109
|
})
|
|
110
110
|
);
|
|
111
111
|
},
|
|
112
|
-
withAttributes: function(
|
|
113
|
-
return J(this.converter, X({}, this.attributes,
|
|
112
|
+
withAttributes: function(o) {
|
|
113
|
+
return J(this.converter, X({}, this.attributes, o));
|
|
114
114
|
},
|
|
115
|
-
withConverter: function(
|
|
116
|
-
return J(X({}, this.converter,
|
|
115
|
+
withConverter: function(o) {
|
|
116
|
+
return J(X({}, this.converter, o), this.attributes);
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
|
-
attributes: { value: Object.freeze(
|
|
120
|
+
attributes: { value: Object.freeze(t) },
|
|
121
121
|
converter: { value: Object.freeze(e) }
|
|
122
122
|
}
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
125
|
var j = J(Ce, { path: "/" });
|
|
126
|
-
function
|
|
127
|
-
const
|
|
126
|
+
function mt(e) {
|
|
127
|
+
const t = xe.create({
|
|
128
128
|
timeout: 6e3
|
|
129
129
|
});
|
|
130
|
-
return
|
|
131
|
-
(
|
|
132
|
-
(
|
|
133
|
-
|
|
130
|
+
return t.defaults.baseURL = e.baseUrl, t.interceptors.request.use(
|
|
131
|
+
(a) => De(a),
|
|
132
|
+
(a) => {
|
|
133
|
+
Le(a, e.onError);
|
|
134
134
|
}
|
|
135
|
-
),
|
|
136
|
-
(
|
|
137
|
-
(
|
|
138
|
-
),
|
|
135
|
+
), t.interceptors.response.use(
|
|
136
|
+
(a) => Ve(a),
|
|
137
|
+
(a) => Me(a, e.onError)
|
|
138
|
+
), t;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
const
|
|
142
|
-
return e.headers.Authorization = "Basic " +
|
|
140
|
+
function De(e) {
|
|
141
|
+
const t = j.get("accessToken") ?? "";
|
|
142
|
+
return e.headers.Authorization = "Basic " + t, e.headers["Content-Type"] = "application/json", e.data = JSON.stringify(e.data), e;
|
|
143
143
|
}
|
|
144
|
-
function
|
|
145
|
-
console.error(e),
|
|
144
|
+
function Le(e, t) {
|
|
145
|
+
console.error(e), t("request timeout");
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Ve(e) {
|
|
148
148
|
return e.data;
|
|
149
149
|
}
|
|
150
|
-
function
|
|
151
|
-
var
|
|
152
|
-
const
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
message: t.statusText
|
|
160
|
-
}), o(r), Promise.reject(e);
|
|
161
|
-
}
|
|
162
|
-
function Me() {
|
|
150
|
+
function Me(e, t) {
|
|
151
|
+
var o, l;
|
|
152
|
+
const r = e.response;
|
|
153
|
+
return r && (r.status === 401 && Se(), (o = r.data) != null && o.message ? t((l = r.data) == null ? void 0 : l.message) : t({
|
|
154
|
+
code: r.status,
|
|
155
|
+
message: r.statusText
|
|
156
|
+
})), Promise.reject(e);
|
|
157
|
+
}
|
|
158
|
+
function Se() {
|
|
163
159
|
j.remove("accessToken"), j.remove("refreshToken"), j.remove("activeOrg"), ue().replace({ path: "/passport/login" });
|
|
164
160
|
}
|
|
165
|
-
function
|
|
166
|
-
return { all: e = e || /* @__PURE__ */ new Map(), on: function(
|
|
167
|
-
var r = e.get(
|
|
168
|
-
r ? r.push(
|
|
169
|
-
}, off: function(
|
|
170
|
-
var r = e.get(
|
|
171
|
-
r && (
|
|
172
|
-
}, emit: function(
|
|
173
|
-
var r = e.get(
|
|
174
|
-
r && r.slice().map(function(
|
|
175
|
-
a
|
|
176
|
-
}), (r = e.get("*")) && r.slice().map(function(
|
|
177
|
-
|
|
161
|
+
function Ae(e) {
|
|
162
|
+
return { all: e = e || /* @__PURE__ */ new Map(), on: function(t, a) {
|
|
163
|
+
var r = e.get(t);
|
|
164
|
+
r ? r.push(a) : e.set(t, [a]);
|
|
165
|
+
}, off: function(t, a) {
|
|
166
|
+
var r = e.get(t);
|
|
167
|
+
r && (a ? r.splice(r.indexOf(a) >>> 0, 1) : e.set(t, []));
|
|
168
|
+
}, emit: function(t, a) {
|
|
169
|
+
var r = e.get(t);
|
|
170
|
+
r && r.slice().map(function(o) {
|
|
171
|
+
o(a);
|
|
172
|
+
}), (r = e.get("*")) && r.slice().map(function(o) {
|
|
173
|
+
o(t, a);
|
|
178
174
|
});
|
|
179
175
|
} };
|
|
180
176
|
}
|
|
181
|
-
const
|
|
182
|
-
return window.eventBus || (window.eventBus =
|
|
177
|
+
const s = function() {
|
|
178
|
+
return window.eventBus || (window.eventBus = Ae()), window.eventBus;
|
|
183
179
|
}();
|
|
184
|
-
async function
|
|
185
|
-
return new Promise((
|
|
186
|
-
setTimeout(
|
|
180
|
+
async function ht(e) {
|
|
181
|
+
return new Promise((t) => {
|
|
182
|
+
setTimeout(t, e);
|
|
187
183
|
});
|
|
188
184
|
}
|
|
189
|
-
async function ee(e,
|
|
185
|
+
async function ee(e, t, a) {
|
|
190
186
|
const r = Date.now();
|
|
191
|
-
return new Promise((
|
|
187
|
+
return new Promise((o) => {
|
|
192
188
|
const l = async () => {
|
|
193
|
-
e() ?
|
|
189
|
+
e() ? o(!0) : t && Date.now() - r > t ? o(!1) : setTimeout(l, a ?? 30);
|
|
194
190
|
};
|
|
195
191
|
l();
|
|
196
192
|
});
|
|
197
193
|
}
|
|
198
|
-
function
|
|
199
|
-
const
|
|
200
|
-
|
|
201
|
-
|
|
194
|
+
function qe(e, t) {
|
|
195
|
+
const a = document.getElementById("single-spa-application:" + e);
|
|
196
|
+
a && (a.classList.remove("app-left", "app-right", "app-reset"), t ? a.classList.add("app-left") : a.classList.add("app-right"), setTimeout(() => {
|
|
197
|
+
a.classList.add("app-reset");
|
|
202
198
|
}, 50));
|
|
203
199
|
}
|
|
204
|
-
let
|
|
200
|
+
let ae = Date.now();
|
|
205
201
|
function pe() {
|
|
206
202
|
const e = Date.now();
|
|
207
|
-
return e -
|
|
203
|
+
return e - ae > 500 ? (ae = e, !0) : !1;
|
|
208
204
|
}
|
|
209
|
-
let
|
|
205
|
+
let Re = 0;
|
|
210
206
|
function se() {
|
|
211
|
-
return ++
|
|
207
|
+
return ++Re;
|
|
212
208
|
}
|
|
213
|
-
async function
|
|
209
|
+
async function wt(e) {
|
|
214
210
|
if (!pe())
|
|
215
211
|
return;
|
|
216
|
-
let
|
|
212
|
+
let t = !1, a;
|
|
217
213
|
const r = (l) => {
|
|
218
|
-
|
|
219
|
-
},
|
|
220
|
-
return
|
|
214
|
+
a = l, t = !0;
|
|
215
|
+
}, o = se();
|
|
216
|
+
return s.on("confirmDlgResult" + o, r), s.emit("confirmDlg", { ...e, seq: o }), await ee(() => t), s.off("confirmDlgResult" + o, r), a;
|
|
221
217
|
}
|
|
222
|
-
async function
|
|
218
|
+
async function yt(e) {
|
|
223
219
|
if (!pe())
|
|
224
220
|
return;
|
|
225
|
-
let
|
|
221
|
+
let t = !1, a;
|
|
226
222
|
const r = (l) => {
|
|
227
|
-
|
|
228
|
-
},
|
|
229
|
-
return
|
|
223
|
+
a = l, t = !0;
|
|
224
|
+
}, o = se();
|
|
225
|
+
return s.on("promptDlgResult" + o, r), s.emit("promptDlg", { ...e, seq: o }), await ee(() => t), s.off("promptDlgResult" + o, r), a;
|
|
230
226
|
}
|
|
231
|
-
function
|
|
232
|
-
|
|
227
|
+
function xt(e) {
|
|
228
|
+
s.emit("openWaitDlg", { text: e });
|
|
233
229
|
}
|
|
234
|
-
function
|
|
235
|
-
|
|
230
|
+
function bt() {
|
|
231
|
+
s.emit("closeWaitDlg");
|
|
236
232
|
}
|
|
237
|
-
function kt(e,
|
|
238
|
-
|
|
233
|
+
function kt(e, t) {
|
|
234
|
+
s.emit("message", { type: "error", text: e, timeout: t });
|
|
239
235
|
}
|
|
240
|
-
function Ct(e,
|
|
241
|
-
|
|
236
|
+
function Ct(e, t) {
|
|
237
|
+
s.emit("message", { type: "info", text: e, timeout: t });
|
|
242
238
|
}
|
|
243
|
-
function
|
|
244
|
-
|
|
239
|
+
function Dt(e, t) {
|
|
240
|
+
s.emit("message", { type: "success", text: e, timeout: t });
|
|
245
241
|
}
|
|
246
|
-
function
|
|
247
|
-
|
|
242
|
+
function Lt(e, t) {
|
|
243
|
+
s.emit("message", { type: "warning", text: e, timeout: t });
|
|
248
244
|
}
|
|
249
|
-
var
|
|
250
|
-
function
|
|
245
|
+
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_compute_space = "list_compute_space", e.get_compute_space = "get_compute_space", e.create_compute_space = "create_compute_space", e.delete_compute_space = "delete_compute_space", e.update_compute_space = "update_compute_space", e.arrange_compute_space = "arrange_compute_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_compute_layer = "open_compute_layer", e.list_data_space = "list_data_space", e.get_data_space = "get_data_space", e.create_data_space = "create_data_space", e.delete_data_space = "delete_data_space", e.update_data_space = "update_data_space", e.arrange_data_space = "arrange_data_space", e.list_table_group = "list_table_group", e.create_table_group = "create_table_group", e.delete_table_group = "delete_table_group", e.update_table_group = "update_table_group", e.arrange_table_group = "arrange_table_group", e.list_table = "list_table", e.get_table = "get_table", e.create_table = "create_table", e.delete_table = "delete_table", e.update_table = "update_table", e.get_data = "get_data", e.create_data = "create_data", e.delete_data = "delete_data", e.update_data = "update_data", e.get_relation_graph = "get_relation_graph", e.update_relation_graph = "update_relation_graph", e.list_change = "list_change", e.apply_change = "apply_change", e.open_data_layer = "open_data_layer", e.list_resource_space = "list_resource_space", e.get_resource_space = "get_resource_space", e.create_resource_space = "create_resource_space", e.delete_resource_space = "delete_resource_space", e.update_resource_space = "update_resource_space", e.arrange_resource_space = "arrange_resource_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_resource = "list_resource", e.get_resource = "get_resource", e.create_resource = "create_resource", e.delete_resource = "delete_resource", e.update_resource = "update_resource", e.move_resource = "move_resource", e.open_resource_layer = "open_resource_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_table = "filter_table", e))(Ie || {});
|
|
246
|
+
function oe(e, t) {
|
|
251
247
|
if (!e)
|
|
252
248
|
return !1;
|
|
253
|
-
let
|
|
254
|
-
return Object.keys(
|
|
255
|
-
if (Object.keys(
|
|
249
|
+
let a = e;
|
|
250
|
+
return Object.keys(a).length <= 0 || (t.split("/").forEach((o) => {
|
|
251
|
+
if (Object.keys(a).length <= 0)
|
|
256
252
|
return !0;
|
|
257
|
-
if (
|
|
258
|
-
|
|
253
|
+
if (a[o])
|
|
254
|
+
a = a[o];
|
|
259
255
|
else
|
|
260
256
|
return !1;
|
|
261
|
-
}), Object.keys(
|
|
257
|
+
}), Object.keys(a).length <= 0);
|
|
262
258
|
}
|
|
263
|
-
const
|
|
259
|
+
const Oe = [
|
|
264
260
|
{
|
|
265
261
|
app: "x-passport-mf",
|
|
266
262
|
path: "/passport/login",
|
|
@@ -369,142 +365,143 @@ const Ie = [
|
|
|
369
365
|
}
|
|
370
366
|
];
|
|
371
367
|
function K(e) {
|
|
372
|
-
let
|
|
373
|
-
const r = e.split("/").filter((
|
|
374
|
-
return
|
|
375
|
-
const l =
|
|
368
|
+
let t, a = 0;
|
|
369
|
+
const r = e.split("/").filter((o) => o.trim() !== "");
|
|
370
|
+
return Oe.forEach((o) => {
|
|
371
|
+
const l = o.path.split("/").filter((c) => c.trim() !== "");
|
|
376
372
|
let n = 0;
|
|
377
373
|
for (let c = 0; c < r.length && !(c >= l.length || r[c] !== l[c]); c++)
|
|
378
374
|
n++;
|
|
379
|
-
n > 0 && n >
|
|
380
|
-
}),
|
|
381
|
-
}
|
|
382
|
-
const N =
|
|
383
|
-
function
|
|
384
|
-
const
|
|
385
|
-
|
|
386
|
-
const r = K(e),
|
|
375
|
+
n > 0 && n > a && (t = o, a = n);
|
|
376
|
+
}), t;
|
|
377
|
+
}
|
|
378
|
+
const N = _("");
|
|
379
|
+
function V(e, t) {
|
|
380
|
+
const a = G();
|
|
381
|
+
t === "/" && (t = a.lastAppPath);
|
|
382
|
+
const r = K(e), o = K(t);
|
|
387
383
|
if (!r) {
|
|
388
384
|
console.assert(!1);
|
|
389
385
|
return;
|
|
390
386
|
}
|
|
391
|
-
if (console.info(`~~~~routeChange~~~~ ${
|
|
387
|
+
if (console.info(`~~~~routeChange~~~~ ${t} -> ${e}`), !o)
|
|
392
388
|
return;
|
|
393
|
-
const l = r.app ===
|
|
394
|
-
l ? n ? N.value = "" : N.value = c ? "inner-left" : "inner-right" : (N.value = "",
|
|
389
|
+
const l = r.app === o.app, n = r.path === o.path, c = r.level >= o.level;
|
|
390
|
+
l ? n ? N.value = "" : N.value = c ? "inner-left" : "inner-right" : (N.value = "", qe(r.app, c));
|
|
395
391
|
}
|
|
396
|
-
function
|
|
392
|
+
function Te() {
|
|
397
393
|
return !!j.get("accessToken");
|
|
398
394
|
}
|
|
399
|
-
function
|
|
395
|
+
function je() {
|
|
400
396
|
return !!j.get("activeOrg");
|
|
401
397
|
}
|
|
402
|
-
function
|
|
403
|
-
const r =
|
|
398
|
+
function Vt(e, t, a) {
|
|
399
|
+
const r = Te(), o = je(), l = K(e.path);
|
|
404
400
|
if (!l) {
|
|
405
|
-
console.assert(!1),
|
|
401
|
+
console.assert(!1), a();
|
|
406
402
|
return;
|
|
407
403
|
}
|
|
408
404
|
if (l.requiredState === "auth")
|
|
409
405
|
if (r)
|
|
410
|
-
if (
|
|
406
|
+
if (o) {
|
|
411
407
|
const n = "/main";
|
|
412
|
-
|
|
408
|
+
V(n, t.path), a({ path: n });
|
|
413
409
|
} else
|
|
414
|
-
|
|
410
|
+
V(e.path, t.path), a();
|
|
415
411
|
else {
|
|
416
412
|
const n = "/passport/login";
|
|
417
|
-
|
|
413
|
+
V(n, t.path), a({ path: n });
|
|
418
414
|
}
|
|
419
415
|
else if (l.requiredState === "org")
|
|
420
416
|
if (r)
|
|
421
|
-
if (
|
|
422
|
-
|
|
417
|
+
if (o)
|
|
418
|
+
V(e.path, t.path), a();
|
|
423
419
|
else {
|
|
424
420
|
const n = "/org/joinOrCreate";
|
|
425
|
-
|
|
421
|
+
V(n, t.path), a({ path: n });
|
|
426
422
|
}
|
|
427
423
|
else {
|
|
428
424
|
const n = "/passport/login";
|
|
429
|
-
|
|
425
|
+
V(n, t.path), a({ path: n });
|
|
430
426
|
}
|
|
431
427
|
else if (r)
|
|
432
|
-
if (
|
|
428
|
+
if (o) {
|
|
433
429
|
const n = "/main";
|
|
434
|
-
|
|
430
|
+
V(n, t.path), a({ path: n });
|
|
435
431
|
} else {
|
|
436
432
|
const n = "/org/joinOrCreate";
|
|
437
|
-
|
|
433
|
+
V(n, t.path), a({ path: n });
|
|
438
434
|
}
|
|
439
435
|
else
|
|
440
|
-
|
|
436
|
+
V(e.path, t.path), a();
|
|
441
437
|
}
|
|
442
|
-
const
|
|
438
|
+
const Ee = /* @__PURE__ */ E({
|
|
443
439
|
__name: "index",
|
|
444
440
|
setup(e) {
|
|
445
|
-
const { t
|
|
441
|
+
const { t } = Y(), a = H(), r = v({
|
|
446
442
|
get() {
|
|
447
|
-
return
|
|
443
|
+
return a.hasView("confirmDlg");
|
|
448
444
|
},
|
|
449
|
-
set(
|
|
450
|
-
|
|
445
|
+
set(C) {
|
|
446
|
+
C ? a.addView("confirmDlg") : a.delView("confirmDlg");
|
|
451
447
|
}
|
|
452
|
-
}),
|
|
453
|
-
let
|
|
454
|
-
const
|
|
455
|
-
var
|
|
456
|
-
|
|
448
|
+
}), o = _(""), l = _(""), n = _(""), c = _(""), u = _(""), p = _("");
|
|
449
|
+
let d = 0, y = !1;
|
|
450
|
+
const f = (C) => {
|
|
451
|
+
var D, S, R, k;
|
|
452
|
+
const g = C;
|
|
453
|
+
o.value = g.title, l.value = g.text, n.value = ((D = g.cancel) == null ? void 0 : D.color) ?? "primary", c.value = ((S = g.cancel) == null ? void 0 : S.text) ?? t("dlg.common.cancel"), u.value = ((R = g.confirm) == null ? void 0 : R.color) ?? "primary", p.value = ((k = g.confirm) == null ? void 0 : k.text) ?? t("dlg.common.confirm"), d = g.seq, y = !1, r.value = !0;
|
|
457
454
|
};
|
|
458
|
-
|
|
459
|
-
|
|
455
|
+
M(() => {
|
|
456
|
+
s.on("confirmDlg", f);
|
|
460
457
|
}), I(() => {
|
|
461
|
-
|
|
458
|
+
s.off("confirmDlg", f);
|
|
462
459
|
});
|
|
463
|
-
const
|
|
464
|
-
r.value = !1, y || (
|
|
460
|
+
const b = () => {
|
|
461
|
+
r.value = !1, y || (s.emit("confirmDlgResult" + d, !0), y = !0);
|
|
465
462
|
};
|
|
466
|
-
return Z(r, (
|
|
467
|
-
!
|
|
468
|
-
}), (
|
|
469
|
-
const
|
|
470
|
-
return
|
|
463
|
+
return Z(r, (C) => {
|
|
464
|
+
!C && !y && (s.emit("confirmDlgResult" + d, !1), y = !0);
|
|
465
|
+
}), (C, g) => {
|
|
466
|
+
const D = h("v-card-text"), S = h("v-btn"), R = h("v-card-actions"), k = h("v-card"), i = h("v-dialog");
|
|
467
|
+
return L(), O(i, {
|
|
471
468
|
modelValue: r.value,
|
|
472
|
-
"onUpdate:modelValue":
|
|
469
|
+
"onUpdate:modelValue": g[1] || (g[1] = (A) => r.value = A),
|
|
473
470
|
transition: "dialog-top-transition",
|
|
474
471
|
"max-width": "600px",
|
|
475
472
|
onKeydown: [
|
|
476
|
-
|
|
477
|
-
F(W(
|
|
473
|
+
g[2] || (g[2] = F(W((A) => r.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
474
|
+
F(W(b, ["stop", "prevent"]), ["enter"])
|
|
478
475
|
]
|
|
479
476
|
}, {
|
|
480
477
|
default: w(() => [
|
|
481
|
-
|
|
478
|
+
x(k, { title: o.value }, {
|
|
482
479
|
default: w(() => [
|
|
483
|
-
|
|
480
|
+
x(D, null, {
|
|
484
481
|
default: w(() => [
|
|
485
|
-
|
|
482
|
+
T(q(l.value), 1)
|
|
486
483
|
]),
|
|
487
484
|
_: 1
|
|
488
485
|
}),
|
|
489
|
-
|
|
486
|
+
x(R, { class: "d-flex justify-end" }, {
|
|
490
487
|
default: w(() => [
|
|
491
|
-
|
|
488
|
+
x(S, {
|
|
492
489
|
color: n.value,
|
|
493
490
|
variant: "text",
|
|
494
|
-
onClick:
|
|
491
|
+
onClick: g[0] || (g[0] = (A) => r.value = !1)
|
|
495
492
|
}, {
|
|
496
493
|
default: w(() => [
|
|
497
|
-
|
|
494
|
+
T(q(c.value), 1)
|
|
498
495
|
]),
|
|
499
496
|
_: 1
|
|
500
497
|
}, 8, ["color"]),
|
|
501
|
-
|
|
498
|
+
x(S, {
|
|
502
499
|
color: u.value,
|
|
503
500
|
variant: "text",
|
|
504
|
-
onClick:
|
|
501
|
+
onClick: b
|
|
505
502
|
}, {
|
|
506
503
|
default: w(() => [
|
|
507
|
-
|
|
504
|
+
T(q(p.value), 1)
|
|
508
505
|
]),
|
|
509
506
|
_: 1
|
|
510
507
|
}, 8, ["color"])
|
|
@@ -519,44 +516,44 @@ const je = /* @__PURE__ */ T({
|
|
|
519
516
|
}, 8, ["modelValue", "onKeydown"]);
|
|
520
517
|
};
|
|
521
518
|
}
|
|
522
|
-
}),
|
|
519
|
+
}), Be = /* @__PURE__ */ E({
|
|
523
520
|
__name: "index",
|
|
524
521
|
props: {
|
|
525
522
|
zIndex: { default: 1 }
|
|
526
523
|
},
|
|
527
524
|
setup(e) {
|
|
528
|
-
const
|
|
529
|
-
background:
|
|
530
|
-
zIndex:
|
|
525
|
+
const t = P(), a = e, r = v(() => ({
|
|
526
|
+
background: t.current.value.dark ? "#1e1e1e" : "#ffffff",
|
|
527
|
+
zIndex: a.zIndex
|
|
531
528
|
}));
|
|
532
|
-
return (
|
|
529
|
+
return (o, l) => (L(), Q("div", {
|
|
533
530
|
class: "x-cont",
|
|
534
531
|
style: re(r.value)
|
|
535
532
|
}, l[0] || (l[0] = [
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
533
|
+
m("div", { class: "lds-spinner" }, [
|
|
534
|
+
m("div"),
|
|
535
|
+
m("div"),
|
|
536
|
+
m("div"),
|
|
537
|
+
m("div"),
|
|
538
|
+
m("div"),
|
|
539
|
+
m("div"),
|
|
540
|
+
m("div"),
|
|
541
|
+
m("div"),
|
|
542
|
+
m("div"),
|
|
543
|
+
m("div"),
|
|
544
|
+
m("div"),
|
|
545
|
+
m("div")
|
|
549
546
|
], -1)
|
|
550
547
|
]), 4));
|
|
551
548
|
}
|
|
552
|
-
}), te = (e,
|
|
553
|
-
const
|
|
554
|
-
for (const [r,
|
|
555
|
-
|
|
556
|
-
return
|
|
557
|
-
},
|
|
558
|
-
var
|
|
559
|
-
const
|
|
549
|
+
}), te = (e, t) => {
|
|
550
|
+
const a = e.__vccOpts || e;
|
|
551
|
+
for (const [r, o] of t)
|
|
552
|
+
a[r] = o;
|
|
553
|
+
return a;
|
|
554
|
+
}, Ue = /* @__PURE__ */ te(Be, [["__scopeId", "data-v-7ab74c70"]]);
|
|
555
|
+
var We = "M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z", He = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z", $e = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z", ze = "M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z", Xe = "M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z";
|
|
556
|
+
const Fe = /* @__PURE__ */ E({
|
|
560
557
|
__name: "item",
|
|
561
558
|
props: {
|
|
562
559
|
id: {},
|
|
@@ -565,147 +562,149 @@ const Xe = /* @__PURE__ */ T({
|
|
|
565
562
|
timeout: { default: 5e3 }
|
|
566
563
|
},
|
|
567
564
|
emits: ["timeout"],
|
|
568
|
-
setup(e, { emit:
|
|
569
|
-
const
|
|
565
|
+
setup(e, { emit: t }) {
|
|
566
|
+
const a = e, r = v(() => ({
|
|
570
567
|
width: "calc(100% - 64px)",
|
|
571
568
|
overflowWrap: "break-word"
|
|
572
|
-
})),
|
|
573
|
-
switch (
|
|
569
|
+
})), o = v(() => {
|
|
570
|
+
switch (a.type) {
|
|
574
571
|
case "success":
|
|
575
|
-
return
|
|
572
|
+
return He;
|
|
576
573
|
case "info":
|
|
577
|
-
return
|
|
574
|
+
return Xe;
|
|
578
575
|
case "error":
|
|
579
|
-
return
|
|
576
|
+
return ze;
|
|
580
577
|
case "warning":
|
|
581
|
-
return
|
|
578
|
+
return We;
|
|
582
579
|
default:
|
|
583
580
|
return "";
|
|
584
581
|
}
|
|
585
|
-
}), l =
|
|
586
|
-
return
|
|
582
|
+
}), l = _(!0), n = t;
|
|
583
|
+
return M(() => {
|
|
587
584
|
setTimeout(() => {
|
|
588
|
-
n("timeout",
|
|
589
|
-
},
|
|
585
|
+
n("timeout", a.id);
|
|
586
|
+
}, a.timeout);
|
|
590
587
|
}), Z(l, (c) => {
|
|
591
|
-
c || n("timeout",
|
|
588
|
+
c || n("timeout", a.id);
|
|
592
589
|
}), (c, u) => {
|
|
593
|
-
const
|
|
594
|
-
return
|
|
590
|
+
const p = h("v-icon"), d = h("v-sheet");
|
|
591
|
+
return L(), O(d, {
|
|
595
592
|
class: "x-item d-flex align-center py-2 mb-2",
|
|
596
|
-
color:
|
|
593
|
+
color: a.type,
|
|
597
594
|
elevation: 1
|
|
598
595
|
}, {
|
|
599
596
|
default: w(() => [
|
|
600
|
-
|
|
597
|
+
o.value ? (L(), O(p, {
|
|
601
598
|
key: 0,
|
|
602
599
|
class: "mx-1",
|
|
603
|
-
icon:
|
|
600
|
+
icon: o.value
|
|
604
601
|
}, null, 8, ["icon"])) : ne("", !0),
|
|
605
|
-
|
|
602
|
+
m("div", {
|
|
606
603
|
style: re(r.value)
|
|
607
|
-
}, q(
|
|
608
|
-
|
|
604
|
+
}, q(a.text), 5),
|
|
605
|
+
x(p, {
|
|
609
606
|
class: "mx-1",
|
|
610
|
-
icon: le(
|
|
611
|
-
onClick: u[0] || (u[0] = (y) => n("timeout",
|
|
607
|
+
icon: le($e),
|
|
608
|
+
onClick: u[0] || (u[0] = (y) => n("timeout", a.id))
|
|
612
609
|
}, null, 8, ["icon"])
|
|
613
610
|
]),
|
|
614
611
|
_: 1
|
|
615
612
|
}, 8, ["color"]);
|
|
616
613
|
};
|
|
617
614
|
}
|
|
618
|
-
}),
|
|
615
|
+
}), Ke = /* @__PURE__ */ te(Fe, [["__scopeId", "data-v-d5cfe252"]]), Ze = /* @__PURE__ */ E({
|
|
619
616
|
__name: "index",
|
|
620
617
|
setup(e) {
|
|
621
|
-
const
|
|
622
|
-
|
|
623
|
-
|
|
618
|
+
const t = _([]);
|
|
619
|
+
M(() => {
|
|
620
|
+
s.on("message", a);
|
|
624
621
|
}), I(() => {
|
|
625
|
-
|
|
622
|
+
s.off("message", a);
|
|
626
623
|
});
|
|
627
|
-
const
|
|
628
|
-
|
|
624
|
+
const a = (c) => {
|
|
625
|
+
const { type: u, text: p, timeout: d } = c;
|
|
626
|
+
l(u, p, d);
|
|
629
627
|
}, r = (c) => {
|
|
630
628
|
n(c);
|
|
631
629
|
};
|
|
632
|
-
let
|
|
633
|
-
const l = (c, u,
|
|
634
|
-
const
|
|
635
|
-
|
|
630
|
+
let o = 0;
|
|
631
|
+
const l = (c, u, p) => {
|
|
632
|
+
const d = o++;
|
|
633
|
+
t.value.push({ id: d, type: c, text: u, timeout: p });
|
|
636
634
|
}, n = (c) => {
|
|
637
|
-
const u =
|
|
638
|
-
u >= 0 &&
|
|
635
|
+
const u = t.value.findIndex((p) => p.id === c);
|
|
636
|
+
u >= 0 && t.value.splice(u, 1);
|
|
639
637
|
};
|
|
640
|
-
return (c, u) => (
|
|
638
|
+
return (c, u) => (L(), Q("div", {
|
|
641
639
|
class: "x-cont d-flex flex-column-reverse align-center",
|
|
642
640
|
onClick: u[0] || (u[0] = W(() => {
|
|
643
641
|
}, ["stop"]))
|
|
644
642
|
}, [
|
|
645
|
-
(
|
|
646
|
-
id:
|
|
647
|
-
key:
|
|
648
|
-
type:
|
|
649
|
-
text:
|
|
650
|
-
timeout:
|
|
643
|
+
(L(!0), Q(fe, null, ge(t.value, (p) => (L(), O(Ke, {
|
|
644
|
+
id: p.id,
|
|
645
|
+
key: p.id,
|
|
646
|
+
type: p.type,
|
|
647
|
+
text: p.text,
|
|
648
|
+
timeout: p.timeout,
|
|
651
649
|
onTimeout: r
|
|
652
650
|
}, null, 8, ["id", "type", "text", "timeout"]))), 128))
|
|
653
651
|
]));
|
|
654
652
|
}
|
|
655
|
-
}),
|
|
653
|
+
}), Ge = /* @__PURE__ */ te(Ze, [["__scopeId", "data-v-8fd5d800"]]), Ne = /* @__PURE__ */ E({
|
|
656
654
|
__name: "index",
|
|
657
655
|
setup(e) {
|
|
658
|
-
const { t
|
|
656
|
+
const { t } = Y(), a = H(), r = v({
|
|
659
657
|
get() {
|
|
660
|
-
return
|
|
658
|
+
return a.hasView("promptDlg");
|
|
661
659
|
},
|
|
662
|
-
set(
|
|
663
|
-
|
|
660
|
+
set(k) {
|
|
661
|
+
k ? a.addView("promptDlg") : a.delView("promptDlg");
|
|
664
662
|
}
|
|
665
|
-
}),
|
|
666
|
-
let
|
|
667
|
-
const S = async (
|
|
668
|
-
var
|
|
669
|
-
|
|
663
|
+
}), o = _(""), l = _(""), n = _(""), c = _(""), u = _(), p = _(""), d = _(""), y = _(""), f = _(""), b = _(""), C = ve("target");
|
|
664
|
+
let g = 0, D = !1;
|
|
665
|
+
const S = async (k) => {
|
|
666
|
+
var A, $, z, B;
|
|
667
|
+
const i = k;
|
|
668
|
+
o.value = i.title, l.value = i.text, n.value = i.label, c.value = i.placeholder, u.value = i.rules, p.value = i.value, d.value = ((A = i.cancel) == null ? void 0 : A.color) ?? "primary", y.value = (($ = i.cancel) == null ? void 0 : $.text) ?? t("dlg.common.cancel"), f.value = ((z = i.confirm) == null ? void 0 : z.color) ?? "primary", b.value = ((B = i.confirm) == null ? void 0 : B.text) ?? t("dlg.common.confirm"), g = i.seq, D = !1, r.value = !0, await ee(() => !!C.value), C.value.focus();
|
|
670
669
|
};
|
|
671
|
-
|
|
672
|
-
|
|
670
|
+
M(() => {
|
|
671
|
+
s.on("promptDlg", S);
|
|
673
672
|
}), I(() => {
|
|
674
|
-
|
|
673
|
+
s.off("promptDlg", S);
|
|
675
674
|
});
|
|
676
675
|
const R = () => {
|
|
677
|
-
r.value = !1,
|
|
676
|
+
r.value = !1, D || (s.emit("promptDlgResult" + g, p.value ?? ""), D = !0);
|
|
678
677
|
};
|
|
679
|
-
return Z(r, (
|
|
680
|
-
!
|
|
681
|
-
}), (
|
|
682
|
-
const A = h("v-card-text"), $ = h("v-text-field"), z = h("v-form"), B = h("v-btn"),
|
|
683
|
-
return
|
|
678
|
+
return Z(r, (k) => {
|
|
679
|
+
!k && !D && (s.emit("promptDlgResult" + g, void 0), D = !0);
|
|
680
|
+
}), (k, i) => {
|
|
681
|
+
const A = h("v-card-text"), $ = h("v-text-field"), z = h("v-form"), B = h("v-btn"), _e = h("v-card-actions"), de = h("v-card"), ie = h("v-dialog");
|
|
682
|
+
return L(), O(ie, {
|
|
684
683
|
modelValue: r.value,
|
|
685
|
-
"onUpdate:modelValue":
|
|
684
|
+
"onUpdate:modelValue": i[2] || (i[2] = (U) => r.value = U),
|
|
686
685
|
transition: "dialog-top-transition",
|
|
687
686
|
"max-width": "600px",
|
|
688
687
|
onKeydown: [
|
|
689
|
-
|
|
688
|
+
i[3] || (i[3] = F(W((U) => r.value = !1, ["stop", "prevent"]), ["esc"])),
|
|
690
689
|
F(W(R, ["stop", "prevent"]), ["enter"])
|
|
691
690
|
]
|
|
692
691
|
}, {
|
|
693
692
|
default: w(() => [
|
|
694
|
-
|
|
693
|
+
x(de, { title: o.value }, {
|
|
695
694
|
default: w(() => [
|
|
696
|
-
l.value ? (
|
|
695
|
+
l.value ? (L(), O(A, { key: 0 }, {
|
|
697
696
|
default: w(() => [
|
|
698
|
-
|
|
697
|
+
T(q(l.value), 1)
|
|
699
698
|
]),
|
|
700
699
|
_: 1
|
|
701
700
|
})) : ne("", !0),
|
|
702
|
-
|
|
701
|
+
x(z, { class: "mx-3" }, {
|
|
703
702
|
default: w(() => [
|
|
704
|
-
|
|
703
|
+
x($, {
|
|
705
704
|
ref_key: "target",
|
|
706
|
-
ref:
|
|
707
|
-
modelValue:
|
|
708
|
-
"onUpdate:modelValue":
|
|
705
|
+
ref: C,
|
|
706
|
+
modelValue: p.value,
|
|
707
|
+
"onUpdate:modelValue": i[0] || (i[0] = (U) => p.value = U),
|
|
709
708
|
label: n.value,
|
|
710
709
|
placeholder: c.value,
|
|
711
710
|
rules: u.value
|
|
@@ -713,25 +712,25 @@ const Xe = /* @__PURE__ */ T({
|
|
|
713
712
|
]),
|
|
714
713
|
_: 1
|
|
715
714
|
}),
|
|
716
|
-
|
|
715
|
+
x(_e, { class: "d-flex justify-end" }, {
|
|
717
716
|
default: w(() => [
|
|
718
|
-
|
|
719
|
-
color:
|
|
717
|
+
x(B, {
|
|
718
|
+
color: d.value,
|
|
720
719
|
variant: "text",
|
|
721
|
-
onClick:
|
|
720
|
+
onClick: i[1] || (i[1] = (U) => r.value = !1)
|
|
722
721
|
}, {
|
|
723
722
|
default: w(() => [
|
|
724
|
-
|
|
723
|
+
T(q(y.value), 1)
|
|
725
724
|
]),
|
|
726
725
|
_: 1
|
|
727
726
|
}, 8, ["color"]),
|
|
728
|
-
|
|
729
|
-
color:
|
|
727
|
+
x(B, {
|
|
728
|
+
color: f.value,
|
|
730
729
|
variant: "text",
|
|
731
730
|
onClick: R
|
|
732
731
|
}, {
|
|
733
732
|
default: w(() => [
|
|
734
|
-
|
|
733
|
+
T(q(b.value), 1)
|
|
735
734
|
]),
|
|
736
735
|
_: 1
|
|
737
736
|
}, 8, ["color"])
|
|
@@ -746,28 +745,29 @@ const Xe = /* @__PURE__ */ T({
|
|
|
746
745
|
}, 8, ["modelValue", "onKeydown"]);
|
|
747
746
|
};
|
|
748
747
|
}
|
|
749
|
-
}),
|
|
748
|
+
}), Qe = { class: "mx-auto my-auto" }, Je = { class: "w-100 h-100 d-flex align-center justify-center" }, Ye = { class: "text-body-1" }, Pe = /* @__PURE__ */ E({
|
|
750
749
|
__name: "index",
|
|
751
750
|
setup(e) {
|
|
752
|
-
const { t
|
|
751
|
+
const { t } = Y(), a = H(), r = v({
|
|
753
752
|
get() {
|
|
754
|
-
return
|
|
753
|
+
return a.hasView("waitDlg");
|
|
755
754
|
},
|
|
756
755
|
set(c) {
|
|
757
|
-
c ?
|
|
756
|
+
c ? a.addView("waitDlg") : a.delView("waitDlg");
|
|
758
757
|
}
|
|
759
|
-
}),
|
|
760
|
-
|
|
758
|
+
}), o = _(""), l = (c) => {
|
|
759
|
+
const u = c;
|
|
760
|
+
o.value = u.text ?? t("dlg.common.waiting"), r.value = !0;
|
|
761
761
|
}, n = () => {
|
|
762
762
|
r.value = !1;
|
|
763
763
|
};
|
|
764
|
-
return
|
|
765
|
-
|
|
764
|
+
return M(() => {
|
|
765
|
+
s.on("openWaitDlg", l), s.on("closeWaitDlg", n);
|
|
766
766
|
}), I(() => {
|
|
767
|
-
|
|
767
|
+
s.off("openWaitDlg", l), s.off("closeWaitDlg", n);
|
|
768
768
|
}), (c, u) => {
|
|
769
|
-
const
|
|
770
|
-
return
|
|
769
|
+
const p = h("v-card"), d = h("v-dialog");
|
|
770
|
+
return L(), O(d, {
|
|
771
771
|
modelValue: r.value,
|
|
772
772
|
"onUpdate:modelValue": u[0] || (u[0] = (y) => r.value = y),
|
|
773
773
|
persistent: "",
|
|
@@ -775,15 +775,15 @@ const Xe = /* @__PURE__ */ T({
|
|
|
775
775
|
fullscreen: ""
|
|
776
776
|
}, {
|
|
777
777
|
default: w(() => [
|
|
778
|
-
|
|
779
|
-
|
|
778
|
+
m("div", Qe, [
|
|
779
|
+
x(p, {
|
|
780
780
|
width: "300px",
|
|
781
781
|
height: "80px",
|
|
782
782
|
loading: ""
|
|
783
783
|
}, {
|
|
784
784
|
default: w(() => [
|
|
785
|
-
|
|
786
|
-
|
|
785
|
+
m("div", Je, [
|
|
786
|
+
m("span", Ye, q(o.value), 1)
|
|
787
787
|
])
|
|
788
788
|
]),
|
|
789
789
|
_: 1
|
|
@@ -794,177 +794,178 @@ const Xe = /* @__PURE__ */ T({
|
|
|
794
794
|
}, 8, ["modelValue"]);
|
|
795
795
|
};
|
|
796
796
|
}
|
|
797
|
-
}),
|
|
798
|
-
e.component("XConfirmDlg",
|
|
797
|
+
}), et = (e) => {
|
|
798
|
+
e.component("XConfirmDlg", Ee), e.component("XLoading", Ue), e.component("XMessage", Ge), e.component("XPromptDlg", Ne), e.component("XWaitDlg", Pe);
|
|
799
799
|
};
|
|
800
|
-
function
|
|
801
|
-
const e = P(),
|
|
800
|
+
function Mt() {
|
|
801
|
+
const e = P(), t = v(() => e.global.current.value.colors.primary), a = v(() => e.global.current.value.colors.secondary), r = v(() => e.current.value.dark ? "#2e2e2e" : "#bdbdbd"), o = v(() => e.current.value.dark ? "#272727" : "#eeeeee"), l = v(() => e.current.value.dark ? "#1e1e1e" : "#ffffff"), n = v(() => e.current.value.dark ? "#303030" : "#f6f6f6"), c = v(() => e.current.value.dark ? "#ffffff1f" : "#0000001f");
|
|
802
802
|
return {
|
|
803
|
-
primaryColor:
|
|
804
|
-
secondaryColor:
|
|
803
|
+
primaryColor: t,
|
|
804
|
+
secondaryColor: a,
|
|
805
805
|
backgroundColor0: r,
|
|
806
|
-
backgroundColor1:
|
|
806
|
+
backgroundColor1: o,
|
|
807
807
|
backgroundColor2: l,
|
|
808
808
|
highlightColor: n,
|
|
809
809
|
borderColor: c
|
|
810
810
|
};
|
|
811
811
|
}
|
|
812
|
-
function et(e) {
|
|
813
|
-
return ve() ? (me(e), !0) : !1;
|
|
814
|
-
}
|
|
815
812
|
function tt(e) {
|
|
813
|
+
return me() ? (he(e), !0) : !1;
|
|
814
|
+
}
|
|
815
|
+
function at(e) {
|
|
816
816
|
return typeof e == "function" ? e() : le(e);
|
|
817
817
|
}
|
|
818
818
|
const ot = typeof window < "u" && typeof document < "u";
|
|
819
819
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
820
|
-
const
|
|
821
|
-
function
|
|
822
|
-
const e =
|
|
823
|
-
return
|
|
820
|
+
const rt = ot ? window : void 0;
|
|
821
|
+
function nt() {
|
|
822
|
+
const e = _(!1), t = ye();
|
|
823
|
+
return t && M(() => {
|
|
824
824
|
e.value = !0;
|
|
825
|
-
},
|
|
825
|
+
}, t), e;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
828
|
-
const
|
|
829
|
-
return
|
|
827
|
+
function lt(e) {
|
|
828
|
+
const t = nt();
|
|
829
|
+
return v(() => (t.value, !!e()));
|
|
830
830
|
}
|
|
831
|
-
function
|
|
832
|
-
const { window:
|
|
833
|
-
let
|
|
834
|
-
const l =
|
|
835
|
-
l.value =
|
|
831
|
+
function ct(e, t = {}) {
|
|
832
|
+
const { window: a = rt } = t, r = lt(() => a && "matchMedia" in a && typeof a.matchMedia == "function");
|
|
833
|
+
let o;
|
|
834
|
+
const l = _(!1), n = (p) => {
|
|
835
|
+
l.value = p.matches;
|
|
836
836
|
}, c = () => {
|
|
837
|
-
|
|
838
|
-
}, u =
|
|
839
|
-
r.value && (c(),
|
|
837
|
+
o && ("removeEventListener" in o ? o.removeEventListener("change", n) : o.removeListener(n));
|
|
838
|
+
}, u = we(() => {
|
|
839
|
+
r.value && (c(), o = a.matchMedia(at(e)), "addEventListener" in o ? o.addEventListener("change", n) : o.addListener(n), l.value = o.matches);
|
|
840
840
|
});
|
|
841
|
-
return
|
|
842
|
-
u(), c(),
|
|
841
|
+
return tt(() => {
|
|
842
|
+
u(), c(), o = void 0;
|
|
843
843
|
}), l;
|
|
844
844
|
}
|
|
845
|
-
function
|
|
846
|
-
return
|
|
845
|
+
function ut(e) {
|
|
846
|
+
return ct("(prefers-color-scheme: dark)", e);
|
|
847
847
|
}
|
|
848
|
-
function
|
|
849
|
-
const e = ke(),
|
|
850
|
-
return { dark: r, sysBarAvail:
|
|
848
|
+
function pt() {
|
|
849
|
+
const e = ke(), t = G(), a = ut(), r = v(() => typeof t.dark == "boolean" ? t.dark : a.value), o = v(() => !!window.cordova), l = v(() => e.width.value <= 1280 ? e.width.value + "px" : e.width.value <= 1920 ? 1920 / 2.5 + "px" : 2560 / 2.5 + "px");
|
|
850
|
+
return { dark: r, sysBarAvail: o, compactWidth: l };
|
|
851
851
|
}
|
|
852
|
-
function
|
|
853
|
-
const e =
|
|
852
|
+
function St() {
|
|
853
|
+
const e = be(), t = ue(), a = P(), { dark: r } = pt(), o = G(), l = H();
|
|
854
854
|
Z(
|
|
855
855
|
r,
|
|
856
|
-
(
|
|
857
|
-
|
|
856
|
+
(f) => {
|
|
857
|
+
a.global.name.value = f ? "dark" : "light";
|
|
858
858
|
},
|
|
859
859
|
{ immediate: !0 }
|
|
860
860
|
);
|
|
861
|
-
const n = (
|
|
862
|
-
if (
|
|
861
|
+
const n = (f) => {
|
|
862
|
+
if (f.key === "Escape") {
|
|
863
863
|
c();
|
|
864
864
|
return;
|
|
865
865
|
}
|
|
866
866
|
}, c = () => {
|
|
867
|
-
var
|
|
867
|
+
var b;
|
|
868
868
|
if (!l.isEmpty()) {
|
|
869
869
|
l.hasView("waitDlg") || l.popView();
|
|
870
870
|
return;
|
|
871
871
|
}
|
|
872
|
-
const
|
|
873
|
-
(
|
|
872
|
+
const f = K(e.path);
|
|
873
|
+
(f == null ? void 0 : f.level) === 0 ? (b = navigator == null ? void 0 : navigator.Backbutton) == null || b.goHome(
|
|
874
874
|
() => {
|
|
875
875
|
},
|
|
876
876
|
() => {
|
|
877
877
|
}
|
|
878
|
-
) :
|
|
878
|
+
) : t.back();
|
|
879
879
|
};
|
|
880
|
-
|
|
881
|
-
window.addEventListener("keydown", n),
|
|
880
|
+
M(() => {
|
|
881
|
+
window.addEventListener("keydown", n), s.on("backbutton", c);
|
|
882
882
|
}), I(() => {
|
|
883
|
-
window.removeEventListener("keydown", n),
|
|
883
|
+
window.removeEventListener("keydown", n), s.off("backbutton", c);
|
|
884
884
|
});
|
|
885
|
-
const u = (
|
|
886
|
-
|
|
887
|
-
},
|
|
888
|
-
|
|
889
|
-
},
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
885
|
+
const u = (f) => {
|
|
886
|
+
o.dark = f;
|
|
887
|
+
}, p = (f) => {
|
|
888
|
+
o.locale = f;
|
|
889
|
+
}, d = (f) => {
|
|
890
|
+
const b = f;
|
|
891
|
+
o.permissionObjects = b[0], o.permissionChecksum = b[1];
|
|
892
|
+
}, y = (f) => {
|
|
893
|
+
o.lastAppPath = f;
|
|
893
894
|
};
|
|
894
|
-
|
|
895
|
-
|
|
895
|
+
M(() => {
|
|
896
|
+
s.on("updateDark", u), s.on("updateLocale", p), s.on("updatePermission", d), s.on("updateLastAppPath", y), s.emit("syncGlobalState");
|
|
896
897
|
}), I(() => {
|
|
897
|
-
|
|
898
|
+
s.off("updateDark", u), s.off("updateLocale", p), s.off("updatePermission", d), s.off("updateLastAppPath", y);
|
|
898
899
|
});
|
|
899
900
|
}
|
|
900
|
-
function
|
|
901
|
+
function At() {
|
|
901
902
|
const e = G();
|
|
902
|
-
function
|
|
903
|
-
const
|
|
904
|
-
return
|
|
903
|
+
function t(a, r) {
|
|
904
|
+
const o = e.permissionObjects[a];
|
|
905
|
+
return o ? r ? !(!oe(o.includes, r) || oe(o.excludes, r)) : !0 : !1;
|
|
905
906
|
}
|
|
906
|
-
return { verifyPermission:
|
|
907
|
+
return { verifyPermission: t };
|
|
907
908
|
}
|
|
908
|
-
function
|
|
909
|
-
const
|
|
909
|
+
function qt(e, t) {
|
|
910
|
+
const a = H(), r = v({
|
|
910
911
|
get() {
|
|
911
|
-
return
|
|
912
|
+
return a.hasView(e);
|
|
912
913
|
},
|
|
913
914
|
set(l) {
|
|
914
|
-
l ?
|
|
915
|
+
l ? a.addView(e) : a.delView(e);
|
|
915
916
|
}
|
|
916
|
-
}),
|
|
917
|
-
|
|
917
|
+
}), o = (l) => {
|
|
918
|
+
t == null || t(l), r.value = !0;
|
|
918
919
|
};
|
|
919
|
-
return
|
|
920
|
-
|
|
920
|
+
return M(() => {
|
|
921
|
+
s.on(e, o);
|
|
921
922
|
}), I(() => {
|
|
922
|
-
|
|
923
|
+
s.off(e, o);
|
|
923
924
|
}), { open: r };
|
|
924
925
|
}
|
|
925
|
-
const
|
|
926
|
-
const r = e[
|
|
927
|
-
return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((
|
|
926
|
+
const st = (e, t, a) => {
|
|
927
|
+
const r = e[t];
|
|
928
|
+
return r ? typeof r == "function" ? r() : Promise.resolve(r) : new Promise((o, l) => {
|
|
928
929
|
(typeof queueMicrotask == "function" ? queueMicrotask : setTimeout)(
|
|
929
930
|
l.bind(
|
|
930
931
|
null,
|
|
931
932
|
new Error(
|
|
932
|
-
"Unknown variable dynamic import: " +
|
|
933
|
+
"Unknown variable dynamic import: " + t + (t.split("/").length !== a ? ". Note that variables only represent file names one level deep." : "")
|
|
933
934
|
)
|
|
934
935
|
)
|
|
935
936
|
);
|
|
936
937
|
});
|
|
937
938
|
};
|
|
938
|
-
async function
|
|
939
|
-
return (await
|
|
939
|
+
async function Rt(e) {
|
|
940
|
+
return (await st(/* @__PURE__ */ Object.assign({ "./locales/en/index.ts": () => import("./en-iuzmkt0n.js"), "./locales/zhHans/index.ts": () => import("./zhHans-m6y1by9n.js") }), `./locales/${e}/index.ts`, 4)).default;
|
|
940
941
|
}
|
|
941
|
-
const
|
|
942
|
+
const It = { install: et };
|
|
942
943
|
export {
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
944
|
+
Ie as Permission,
|
|
945
|
+
qe as appAppear,
|
|
946
|
+
bt as closeWaitDlg,
|
|
947
|
+
mt as createAxios,
|
|
948
|
+
It as default,
|
|
949
|
+
s as eventBus,
|
|
950
|
+
oe as isExist,
|
|
951
|
+
Rt as loadLocaleMessageEssential,
|
|
951
952
|
K as matchRouteMeta,
|
|
952
953
|
kt as messageError,
|
|
953
954
|
Ct as messageInfo,
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
955
|
+
Dt as messageSuccess,
|
|
956
|
+
Lt as messageWarning,
|
|
957
|
+
Vt as onBeforeEach,
|
|
958
|
+
wt as openConfirmDlg,
|
|
959
|
+
yt as openPromptDlg,
|
|
960
|
+
xt as openWaitDlg,
|
|
960
961
|
N as routeTransName,
|
|
961
|
-
|
|
962
|
+
Mt as useColor,
|
|
962
963
|
G as useGlobalStore,
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
964
|
+
St as useMicroApp,
|
|
965
|
+
At as usePermission,
|
|
966
|
+
pt as useSystem,
|
|
966
967
|
H as useViewMgrStore,
|
|
967
|
-
|
|
968
|
-
|
|
968
|
+
qt as useViewStack,
|
|
969
|
+
ht as waitMs,
|
|
969
970
|
ee as waitUtil
|
|
970
971
|
};
|