@sunny-base-web/effects 0.0.0 → 0.0.1
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.mjs
CHANGED
|
@@ -1,33 +1,32 @@
|
|
|
1
|
-
import { getCurrentInstance as qA, inject as
|
|
1
|
+
import { getCurrentInstance as qA, inject as JA, defineComponent as p, computed as W, openBlock as P, createElementBlock as z, normalizeStyle as gA, normalizeClass as S, createElementVNode as I, ref as X, reactive as TA, onMounted as uA, onUnmounted as HA, resolveComponent as K, createVNode as D, withCtx as t, unref as s, Fragment as q, renderList as BA, createBlock as y, createCommentVNode as _, withModifiers as tA, createTextVNode as V, toDisplayString as N, createSlots as CA, watch as sA, withDirectives as hA, vModelText as _A, nextTick as $A } from "vue";
|
|
2
2
|
import { Message as eA } from "@arco-design/web-vue";
|
|
3
3
|
import Ag from "jsencrypt";
|
|
4
4
|
import { isFunction as LA, isUndefined as ZA, merge as gg, bindMethods as Bg, isString as Cg } from "@sunny-base-web/utils";
|
|
5
5
|
import AA from "axios";
|
|
6
6
|
export * from "axios";
|
|
7
7
|
import vA from "qs";
|
|
8
|
-
import { useAccessStore as QA, useAuthStore as Qg, useUserStore as Eg, useTabbarStore as
|
|
8
|
+
import { useAccessStore as QA, useAuthStore as Qg, useUserStore as Eg, useTabbarStore as RA } from "@sunny-base-web/stores";
|
|
9
9
|
import { useI18n as Ig } from "vue-i18n";
|
|
10
10
|
import wg from "vue3-slide-verify";
|
|
11
11
|
import { SSO_ORIGIN as FA } from "@sunny-base-web/constants";
|
|
12
12
|
import { useRoute as YA, useRouter as rA } from "vue-router";
|
|
13
|
-
import { SunnyIcon as b, SunnyScrollbar as
|
|
13
|
+
import { SunnyIcon as b, SunnyScrollbar as NA } from "@sunny-base-web/ui";
|
|
14
14
|
import { useColorMode as fg } from "@vueuse/core";
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
const Dg = /* @__PURE__ */ Symbol("ArcoConfigProvider"), vg = "arco", ng = "$arco", oA = (A) => {
|
|
15
|
+
import { useI18n as eg, loadLocaleMessages as Dg } from "@sunny-base-web/locales";
|
|
16
|
+
const vg = /* @__PURE__ */ Symbol("ArcoConfigProvider"), ng = "arco", tg = "$arco", oA = (A) => {
|
|
18
17
|
var g, Q, C;
|
|
19
|
-
const E = qA(), w =
|
|
20
|
-
return `${(C = (Q = w?.prefixCls) != null ? Q : (g = E?.appContext.config.globalProperties[
|
|
21
|
-
},
|
|
18
|
+
const E = qA(), w = JA(vg, void 0);
|
|
19
|
+
return `${(C = (Q = w?.prefixCls) != null ? Q : (g = E?.appContext.config.globalProperties[tg]) == null ? void 0 : g.classPrefix) != null ? C : ng}-${A}`;
|
|
20
|
+
}, sg = Object.prototype.toString;
|
|
22
21
|
function PA(A) {
|
|
23
|
-
return
|
|
22
|
+
return sg.call(A) === "[object Number]" && A === A;
|
|
24
23
|
}
|
|
25
24
|
var cA = (A, g) => {
|
|
26
25
|
for (const [Q, C] of g)
|
|
27
26
|
A[Q] = C;
|
|
28
27
|
return A;
|
|
29
28
|
};
|
|
30
|
-
const
|
|
29
|
+
const rg = p({
|
|
31
30
|
name: "IconDesktop",
|
|
32
31
|
props: {
|
|
33
32
|
size: {
|
|
@@ -66,9 +65,9 @@ const sg = p({
|
|
|
66
65
|
}
|
|
67
66
|
};
|
|
68
67
|
}
|
|
69
|
-
}),
|
|
70
|
-
function
|
|
71
|
-
return P(),
|
|
68
|
+
}), og = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
69
|
+
function Pg(A, g, Q, C, E, w) {
|
|
70
|
+
return P(), z("svg", {
|
|
72
71
|
viewBox: "0 0 48 48",
|
|
73
72
|
fill: "none",
|
|
74
73
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -81,16 +80,16 @@ function og(A, g, Q, C, E, w) {
|
|
|
81
80
|
onClick: g[0] || (g[0] = (...B) => A.onClick && A.onClick(...B))
|
|
82
81
|
}, g[1] || (g[1] = [
|
|
83
82
|
I("path", { d: "M24 32v8m0 0h-9m9 0h9M7 32h34a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1Z" }, null, -1)
|
|
84
|
-
]), 14,
|
|
83
|
+
]), 14, og);
|
|
85
84
|
}
|
|
86
|
-
var zA = /* @__PURE__ */ cA(
|
|
87
|
-
const
|
|
85
|
+
var zA = /* @__PURE__ */ cA(rg, [["render", Pg]]);
|
|
86
|
+
const cg = Object.assign(zA, {
|
|
88
87
|
install: (A, g) => {
|
|
89
88
|
var Q;
|
|
90
89
|
const C = (Q = g?.iconPrefix) != null ? Q : "";
|
|
91
90
|
A.component(C + zA.name, zA);
|
|
92
91
|
}
|
|
93
|
-
}),
|
|
92
|
+
}), Mg = p({
|
|
94
93
|
name: "IconLanguage",
|
|
95
94
|
props: {
|
|
96
95
|
size: {
|
|
@@ -129,9 +128,9 @@ const Pg = Object.assign(zA, {
|
|
|
129
128
|
}
|
|
130
129
|
};
|
|
131
130
|
}
|
|
132
|
-
}),
|
|
133
|
-
function
|
|
134
|
-
return P(),
|
|
131
|
+
}), Fg = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
132
|
+
function zg(A, g, Q, C, E, w) {
|
|
133
|
+
return P(), z("svg", {
|
|
135
134
|
viewBox: "0 0 48 48",
|
|
136
135
|
fill: "none",
|
|
137
136
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -145,16 +144,16 @@ function Fg(A, g, Q, C, E, w) {
|
|
|
145
144
|
}, g[1] || (g[1] = [
|
|
146
145
|
I("path", { d: "m42 43-2.385-6M26 43l2.384-6m11.231 0-.795-2-4.18-10h-1.28l-4.181 10-.795 2m11.231 0h-11.23M17 5l1 5M5 11h26M11 11s1.889 7.826 6.611 12.174C22.333 27.522 30 31 30 31" }, null, -1),
|
|
147
146
|
I("path", { d: "M25 11s-1.889 7.826-6.611 12.174C13.667 27.522 6 31 6 31" }, null, -1)
|
|
148
|
-
]), 14,
|
|
147
|
+
]), 14, Fg);
|
|
149
148
|
}
|
|
150
|
-
var dA = /* @__PURE__ */ cA(
|
|
151
|
-
const
|
|
149
|
+
var dA = /* @__PURE__ */ cA(Mg, [["render", zg]]);
|
|
150
|
+
const dg = Object.assign(dA, {
|
|
152
151
|
install: (A, g) => {
|
|
153
152
|
var Q;
|
|
154
153
|
const C = (Q = g?.iconPrefix) != null ? Q : "";
|
|
155
154
|
A.component(C + dA.name, dA);
|
|
156
155
|
}
|
|
157
|
-
}),
|
|
156
|
+
}), ag = p({
|
|
158
157
|
name: "IconLock",
|
|
159
158
|
props: {
|
|
160
159
|
size: {
|
|
@@ -193,9 +192,9 @@ const zg = Object.assign(dA, {
|
|
|
193
192
|
}
|
|
194
193
|
};
|
|
195
194
|
}
|
|
196
|
-
}),
|
|
197
|
-
function
|
|
198
|
-
return P(),
|
|
195
|
+
}), Gg = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
196
|
+
function bg(A, g, Q, C, E, w) {
|
|
197
|
+
return P(), z("svg", {
|
|
199
198
|
viewBox: "0 0 48 48",
|
|
200
199
|
fill: "none",
|
|
201
200
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -215,16 +214,16 @@ function Gg(A, g, Q, C, E, w) {
|
|
|
215
214
|
rx: "1"
|
|
216
215
|
}, null, -1),
|
|
217
216
|
I("path", { d: "M15 21v-6a9 9 0 1 1 18 0v6M24 35v-8" }, null, -1)
|
|
218
|
-
]), 14,
|
|
217
|
+
]), 14, Gg);
|
|
219
218
|
}
|
|
220
|
-
var aA = /* @__PURE__ */ cA(
|
|
221
|
-
const
|
|
219
|
+
var aA = /* @__PURE__ */ cA(ag, [["render", bg]]);
|
|
220
|
+
const Og = Object.assign(aA, {
|
|
222
221
|
install: (A, g) => {
|
|
223
222
|
var Q;
|
|
224
223
|
const C = (Q = g?.iconPrefix) != null ? Q : "";
|
|
225
224
|
A.component(C + aA.name, aA);
|
|
226
225
|
}
|
|
227
|
-
}),
|
|
226
|
+
}), lg = p({
|
|
228
227
|
name: "IconUser",
|
|
229
228
|
props: {
|
|
230
229
|
size: {
|
|
@@ -263,9 +262,9 @@ const bg = Object.assign(aA, {
|
|
|
263
262
|
}
|
|
264
263
|
};
|
|
265
264
|
}
|
|
266
|
-
}),
|
|
267
|
-
function
|
|
268
|
-
return P(),
|
|
265
|
+
}), ug = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
|
|
266
|
+
function Yg(A, g, Q, C, E, w) {
|
|
267
|
+
return P(), z("svg", {
|
|
269
268
|
viewBox: "0 0 48 48",
|
|
270
269
|
fill: "none",
|
|
271
270
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -283,10 +282,10 @@ function ug(A, g, Q, C, E, w) {
|
|
|
283
282
|
cy: "15",
|
|
284
283
|
r: "8"
|
|
285
284
|
}, null, -1)
|
|
286
|
-
]), 14,
|
|
285
|
+
]), 14, ug);
|
|
287
286
|
}
|
|
288
|
-
var GA = /* @__PURE__ */ cA(
|
|
289
|
-
const
|
|
287
|
+
var GA = /* @__PURE__ */ cA(lg, [["render", Yg]]);
|
|
288
|
+
const Ug = Object.assign(GA, {
|
|
290
289
|
install: (A, g) => {
|
|
291
290
|
var Q;
|
|
292
291
|
const C = (Q = g?.iconPrefix) != null ? Q : "";
|
|
@@ -319,8 +318,8 @@ if (lA()) {
|
|
|
319
318
|
var nA = document.head || document.getElementsByTagName("head")[0] || document.documentElement, fA = document.createElement("script");
|
|
320
319
|
fA.src = "http://localhost:8000/CLodopfuncs.js?priority=1", nA.insertBefore(fA, nA.firstChild), fA = document.createElement("script"), fA.src = "http://localhost:18000/CLodopfuncs.js?priority=0", nA.insertBefore(fA, nA.firstChild);
|
|
321
320
|
}
|
|
322
|
-
function
|
|
323
|
-
var Q = "<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='install_lodop32.exe' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>", C = "<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='install_lodop32.exe' target='_self'>执行升级</a>,升级后请重新进入。</font>", E = "<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='install_lodop64.exe' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>", w = "<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='install_lodop64.exe' target='_self'>执行升级</a>,升级后请重新进入。</font>", B = "<br><br><font color='#FF00FF'>(注意:如曾安装过Lodop旧版附件npActiveXPLugin,请在【工具】->【附加组件】->【扩展】中先卸它)</font>",
|
|
321
|
+
function XA(A, g) {
|
|
322
|
+
var Q = "<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='install_lodop32.exe' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>", C = "<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='install_lodop32.exe' target='_self'>执行升级</a>,升级后请重新进入。</font>", E = "<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='install_lodop64.exe' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>", w = "<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='install_lodop64.exe' target='_self'>执行升级</a>,升级后请重新进入。</font>", B = "<br><br><font color='#FF00FF'>(注意:如曾安装过Lodop旧版附件npActiveXPLugin,请在【工具】->【附加组件】->【扩展】中先卸它)</font>", v = "<br><br><font color='#FF00FF'>(如果此前正常,仅因浏览器升级或重安装而出问题,需重新执行以上安装)</font>", e = "<br><font color='#FF00FF'>CLodop云打印服务需升级!点击这里<a href='CLodop_Setup_for_Win32NT.exe' target='_self'>执行升级</a>,升级后请刷新页面。</font>", M = navigator.userAgent.indexOf("MSIE") >= 0 || navigator.userAgent.indexOf("Trident") >= 0, k = M && navigator.userAgent.indexOf("x64") >= 0, c;
|
|
324
323
|
try {
|
|
325
324
|
if (lA()) {
|
|
326
325
|
try {
|
|
@@ -331,21 +330,21 @@ function kA(A, g) {
|
|
|
331
330
|
console.log("C-Lodop没准备好,请稍后再试!");
|
|
332
331
|
return;
|
|
333
332
|
} else
|
|
334
|
-
CLODOP.CVERSION < "3.0.0.2" && (
|
|
335
|
-
} else if (A != null || g != null || (bA == null ? (c = document.createElement("object"), c.setAttribute("width", 0), c.setAttribute("height", 0), c.setAttribute("style", "position:absolute;left:0px;top:-100px;width:0px;height:0px;"),
|
|
336
|
-
return navigator.userAgent.indexOf("Chrome") >= 0 && (document.documentElement.innerHTML =
|
|
337
|
-
return c.VERSION < "6.0" && (lA() || (k ? document.write(w) :
|
|
333
|
+
CLODOP.CVERSION < "3.0.0.2" && (M ? document.write(e) : document.documentElement.innerHTML = e + document.documentElement.innerHTML), g?.parentNode, A?.parentNode;
|
|
334
|
+
} else if (A != null || g != null || (bA == null ? (c = document.createElement("object"), c.setAttribute("width", 0), c.setAttribute("height", 0), c.setAttribute("style", "position:absolute;left:0px;top:-100px;width:0px;height:0px;"), M ? c.setAttribute("classid", "clsid:2105C259-1E0C-4534-8141-A753534CB4CA") : c.setAttribute("type", "application/x-print-lodop"), document.documentElement.appendChild(c), bA = c) : c = bA), c == null || typeof c.VERSION > "u")
|
|
335
|
+
return navigator.userAgent.indexOf("Chrome") >= 0 && (document.documentElement.innerHTML = v + document.documentElement.innerHTML), navigator.userAgent.indexOf("Firefox") >= 0 && (document.documentElement.innerHTML = B + document.documentElement.innerHTML), k ? document.write(E) : M ? document.write(Q) : document.documentElement.innerHTML = Q + document.documentElement.innerHTML, c;
|
|
336
|
+
return c.VERSION < "6.0" && (lA() || (k ? document.write(w) : M ? document.write(C) : document.documentElement.innerHTML = C + document.documentElement.innerHTML)), c;
|
|
338
337
|
} catch (H) {
|
|
339
338
|
console.log("getLodop出错:" + H);
|
|
340
339
|
}
|
|
341
340
|
}
|
|
342
|
-
const
|
|
341
|
+
const jA = /* @__PURE__ */ Symbol("EFFECTS_CONFIG");
|
|
343
342
|
let IA = {};
|
|
344
|
-
const
|
|
343
|
+
const oC = (A) => (IA = { ...A }, {
|
|
345
344
|
install(g) {
|
|
346
|
-
g.provide(
|
|
345
|
+
g.provide(jA, A);
|
|
347
346
|
}
|
|
348
|
-
}),
|
|
347
|
+
}), VA = () => JA(jA, {});
|
|
349
348
|
function OA(A) {
|
|
350
349
|
const g = new Ag(), Q = IA.publicKey || "";
|
|
351
350
|
return g.setPublicKey(Q), g.encrypt(A);
|
|
@@ -375,23 +374,23 @@ const ig = ({
|
|
|
375
374
|
formatToken: E
|
|
376
375
|
}) => ({
|
|
377
376
|
rejected: async (w) => {
|
|
378
|
-
const { config: B, response:
|
|
379
|
-
if (
|
|
377
|
+
const { config: B, response: v } = w;
|
|
378
|
+
if (v?.status !== 401)
|
|
380
379
|
throw w;
|
|
381
380
|
if (!C || B.__isRetryRequest)
|
|
382
381
|
throw await g(), w;
|
|
383
382
|
if (A.isRefreshing)
|
|
384
|
-
return new Promise((
|
|
385
|
-
A.refreshTokenQueue.push((
|
|
386
|
-
B.headers.Authorization = E(
|
|
383
|
+
return new Promise((e) => {
|
|
384
|
+
A.refreshTokenQueue.push((M) => {
|
|
385
|
+
B.headers.Authorization = E(M), e(A.request(B.url, { ...B }));
|
|
387
386
|
});
|
|
388
387
|
});
|
|
389
388
|
A.isRefreshing = !0, B.__isRetryRequest = !0;
|
|
390
389
|
try {
|
|
391
|
-
const
|
|
392
|
-
return A.refreshTokenQueue.forEach((
|
|
393
|
-
} catch (
|
|
394
|
-
throw A.refreshTokenQueue.forEach((
|
|
390
|
+
const e = await Q();
|
|
391
|
+
return A.refreshTokenQueue.forEach((M) => M(e)), A.refreshTokenQueue = [], A.request(w.config.url, { ...w.config });
|
|
392
|
+
} catch (e) {
|
|
393
|
+
throw A.refreshTokenQueue.forEach((M) => M("")), A.refreshTokenQueue = [], console.error("Refresh token failed, please login again."), await g(), e;
|
|
395
394
|
} finally {
|
|
396
395
|
A.isRefreshing = !1;
|
|
397
396
|
}
|
|
@@ -431,8 +430,8 @@ class Zg {
|
|
|
431
430
|
const B = E.toLowerCase();
|
|
432
431
|
if (typeof w[B] == "function") {
|
|
433
432
|
if (["POST", "PUT"].includes(E)) {
|
|
434
|
-
const { data:
|
|
435
|
-
return await w[B](g,
|
|
433
|
+
const { data: v, ...e } = C;
|
|
434
|
+
return await w[B](g, v, e);
|
|
436
435
|
}
|
|
437
436
|
return await w[B](g, C);
|
|
438
437
|
}
|
|
@@ -494,22 +493,22 @@ class Hg {
|
|
|
494
493
|
if (B.handlers && B.handlers.length > 0) {
|
|
495
494
|
for (const r of B.handlers)
|
|
496
495
|
if (typeof r?.fulfilled == "function") {
|
|
497
|
-
const
|
|
498
|
-
|
|
496
|
+
const d = await r.fulfilled(w);
|
|
497
|
+
d && (w = d);
|
|
499
498
|
}
|
|
500
499
|
}
|
|
501
|
-
const
|
|
500
|
+
const v = new Headers();
|
|
502
501
|
Object.entries(
|
|
503
502
|
w.headers ?? {}
|
|
504
|
-
).forEach(([r,
|
|
505
|
-
let
|
|
506
|
-
const
|
|
507
|
-
|
|
503
|
+
).forEach(([r, d]) => v.set(r, String(d))), C?.headers && new Headers(C.headers).forEach((r, d) => v.set(d, r)), v.has("accept") || v.set("accept", "text/event-stream");
|
|
504
|
+
let e = C?.body ?? Q;
|
|
505
|
+
const M = (v.get("content-type") || "").toLowerCase();
|
|
506
|
+
e && typeof e == "object" && !ArrayBuffer.isView(e) && !(e instanceof ArrayBuffer) && !(e instanceof Blob) && !(e instanceof FormData) && M.includes("application/json") && (e = JSON.stringify(e));
|
|
508
507
|
const k = {
|
|
509
508
|
...C,
|
|
510
509
|
method: w.method,
|
|
511
|
-
headers:
|
|
512
|
-
body:
|
|
510
|
+
headers: v,
|
|
511
|
+
body: e
|
|
513
512
|
}, c = await fetch(Rg(E, g), k);
|
|
514
513
|
if (!c.ok)
|
|
515
514
|
throw new Error(`HTTP error! status: ${c.status}`);
|
|
@@ -518,12 +517,12 @@ class Hg {
|
|
|
518
517
|
throw new Error("No reader");
|
|
519
518
|
let o = !1;
|
|
520
519
|
for (; !o; ) {
|
|
521
|
-
const { done: r, value:
|
|
520
|
+
const { done: r, value: d } = await H.read();
|
|
522
521
|
if (r) {
|
|
523
522
|
o = !0, l.decode(new Uint8Array(0), { stream: !1 }), C?.onEnd?.(), H.releaseLock?.();
|
|
524
523
|
break;
|
|
525
524
|
}
|
|
526
|
-
const J = l.decode(
|
|
525
|
+
const J = l.decode(d, { stream: !0 });
|
|
527
526
|
C?.onMessage?.(J);
|
|
528
527
|
}
|
|
529
528
|
}
|
|
@@ -538,10 +537,10 @@ class Ng {
|
|
|
538
537
|
}
|
|
539
538
|
async upload(g, Q, C) {
|
|
540
539
|
const E = new FormData();
|
|
541
|
-
Object.entries(Q).forEach(([B,
|
|
542
|
-
Array.isArray(
|
|
543
|
-
!ZA(
|
|
544
|
-
}) : !ZA(
|
|
540
|
+
Object.entries(Q).forEach(([B, v]) => {
|
|
541
|
+
Array.isArray(v) ? v.forEach((e, M) => {
|
|
542
|
+
!ZA(e) && E.append(`${B}[${M}]`, e);
|
|
543
|
+
}) : !ZA(v) && E.append(B, v);
|
|
545
544
|
});
|
|
546
545
|
const w = {
|
|
547
546
|
...C,
|
|
@@ -553,7 +552,7 @@ class Ng {
|
|
|
553
552
|
return this.client.post(g, E, w);
|
|
554
553
|
}
|
|
555
554
|
}
|
|
556
|
-
function
|
|
555
|
+
function kA(A) {
|
|
557
556
|
if (Cg(A))
|
|
558
557
|
switch (A) {
|
|
559
558
|
case "brackets":
|
|
@@ -592,17 +591,17 @@ class SA {
|
|
|
592
591
|
// 默认超时时间
|
|
593
592
|
timeout: 1e4
|
|
594
593
|
}, { ...C } = g, E = gg(C, Q);
|
|
595
|
-
E.paramsSerializer =
|
|
594
|
+
E.paramsSerializer = kA(
|
|
596
595
|
E.paramsSerializer
|
|
597
596
|
), this.instance = AA.create(E), Bg(this);
|
|
598
597
|
const w = new Jg(this.instance);
|
|
599
598
|
this.addRequestInterceptor = w.addRequestInterceptor.bind(w), this.addResponseInterceptor = w.addResponseInterceptor.bind(w);
|
|
600
599
|
const B = new Ng(this);
|
|
601
600
|
this.upload = B.upload.bind(B);
|
|
602
|
-
const
|
|
603
|
-
this.download =
|
|
604
|
-
const
|
|
605
|
-
this.postSSE =
|
|
601
|
+
const v = new Zg(this);
|
|
602
|
+
this.download = v.download.bind(v);
|
|
603
|
+
const e = new Hg(this);
|
|
604
|
+
this.postSSE = e.postSSE.bind(e), this.requestSSE = e.requestSSE.bind(e);
|
|
606
605
|
}
|
|
607
606
|
/**
|
|
608
607
|
* DELETE请求方法
|
|
@@ -642,7 +641,7 @@ class SA {
|
|
|
642
641
|
return await this.instance({
|
|
643
642
|
url: g,
|
|
644
643
|
...Q,
|
|
645
|
-
...Q.paramsSerializer ? { paramsSerializer:
|
|
644
|
+
...Q.paramsSerializer ? { paramsSerializer: kA(Q.paramsSerializer) } : {}
|
|
646
645
|
});
|
|
647
646
|
} catch (C) {
|
|
648
647
|
throw C.response ? C.response.data : C;
|
|
@@ -661,7 +660,7 @@ function yA(A) {
|
|
|
661
660
|
function Sg(A) {
|
|
662
661
|
return wA.post("/getSlideVerificationCode", A);
|
|
663
662
|
}
|
|
664
|
-
function
|
|
663
|
+
function PC(A) {
|
|
665
664
|
return wA.post("/core/contact/findAllStaticFrontI18n", A);
|
|
666
665
|
}
|
|
667
666
|
function yg(A, g) {
|
|
@@ -671,20 +670,20 @@ function yg(A, g) {
|
|
|
671
670
|
});
|
|
672
671
|
async function C() {
|
|
673
672
|
console.warn("Access token or refresh token is invalid or expired. ");
|
|
674
|
-
const B = QA(),
|
|
675
|
-
B.setAccessToken(null), await
|
|
673
|
+
const B = QA(), v = Qg();
|
|
674
|
+
B.setAccessToken(null), await v.logout();
|
|
676
675
|
}
|
|
677
676
|
async function E() {
|
|
678
|
-
const B = QA(),
|
|
679
|
-
return B.setAccessToken(
|
|
677
|
+
const B = QA(), e = (await Vg()).data;
|
|
678
|
+
return B.setAccessToken(e), e;
|
|
680
679
|
}
|
|
681
680
|
function w(B) {
|
|
682
681
|
return B ? `Bearer ${B}` : null;
|
|
683
682
|
}
|
|
684
683
|
return Q.addRequestInterceptor({
|
|
685
684
|
fulfilled: async (B) => {
|
|
686
|
-
const
|
|
687
|
-
return B.headers.Authorization = w(
|
|
685
|
+
const v = QA();
|
|
686
|
+
return B.headers.Authorization = w(v.accessToken), B.headers["Accept-Language"] = IA.locale, IA.apiPrefix && (B.baseURL = IA.apiPrefix), B;
|
|
688
687
|
}
|
|
689
688
|
}), Q.addResponseInterceptor(
|
|
690
689
|
ig({
|
|
@@ -702,15 +701,15 @@ function yg(A, g) {
|
|
|
702
701
|
formatToken: w
|
|
703
702
|
})
|
|
704
703
|
), Q.addResponseInterceptor(
|
|
705
|
-
Lg((B,
|
|
706
|
-
const
|
|
707
|
-
eA.error(
|
|
704
|
+
Lg((B, v) => {
|
|
705
|
+
const e = v?.response?.data ?? {}, M = e?.error ?? e?.message ?? "";
|
|
706
|
+
eA.error(M || B);
|
|
708
707
|
})
|
|
709
708
|
), Q;
|
|
710
709
|
}
|
|
711
710
|
const wA = yg("", {
|
|
712
711
|
responseReturn: "data"
|
|
713
|
-
}),
|
|
712
|
+
}), cC = new SA({ baseURL: "" });
|
|
714
713
|
function Wg(A) {
|
|
715
714
|
return wA.post("/base-auth/login", {}, { params: A });
|
|
716
715
|
}
|
|
@@ -729,19 +728,19 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
729
728
|
setup(A, { emit: g }) {
|
|
730
729
|
const Q = g, { t: C, locale: E } = Ig(), w = X(), B = X();
|
|
731
730
|
X(!1);
|
|
732
|
-
const
|
|
731
|
+
const v = TA({
|
|
733
732
|
username: "",
|
|
734
733
|
password: "",
|
|
735
734
|
langList: "",
|
|
736
735
|
macAddress: ""
|
|
737
|
-
}),
|
|
736
|
+
}), e = X([]), M = X([]), k = X(!1);
|
|
738
737
|
X(void 0);
|
|
739
|
-
const c = X(-1), H = X(!1), l = X(), o = X(""), r = X(!0),
|
|
740
|
-
|
|
738
|
+
const c = X(-1), H = X(!1), l = X(), o = X(""), r = X(!0), d = X("zh-CN"), J = W(() => !["slide", "single"].includes(o.value)), R = W(() => `${C("向右滑动")}(${v.cVerificationCode || ""})`), L = (n) => {
|
|
739
|
+
d.value = n, E.value = n, sessionStorage.removeItem("langObj"), window.location.reload();
|
|
741
740
|
}, EA = () => {
|
|
742
741
|
const n = document.querySelector(".d-01"), f = document.querySelector(".d-02");
|
|
743
742
|
!n || !f || (window.onresize = () => {
|
|
744
|
-
const Y = document.body.clientWidth, i = document.body.clientHeight,
|
|
743
|
+
const Y = document.body.clientWidth, i = document.body.clientHeight, a = 26 / (1366 / 657), O = Y / i * a;
|
|
745
744
|
n.style.transform = `rotate(${O}deg)`, f.style.transform = `rotate(${O}deg)`;
|
|
746
745
|
}, setInterval(() => {
|
|
747
746
|
n.style.transition = ".6s", n.style.left = "22.3%", n.style.top = "98%", f.style.transition = ".6s", f.style.left = "95.3%", f.style.top = "-18%", setTimeout(() => {
|
|
@@ -778,31 +777,31 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
778
777
|
return "mac";
|
|
779
778
|
}, U = () => {
|
|
780
779
|
const n = new Promise((Y, i) => {
|
|
781
|
-
AA.post("http://127.0.0.1:19101").then((
|
|
782
|
-
console.log("1",
|
|
783
|
-
const O =
|
|
780
|
+
AA.post("http://127.0.0.1:19101").then((a) => {
|
|
781
|
+
console.log("1", a);
|
|
782
|
+
const O = a.data;
|
|
784
783
|
Y([O]);
|
|
785
|
-
}).catch((
|
|
786
|
-
i(
|
|
784
|
+
}).catch((a) => {
|
|
785
|
+
i(a);
|
|
787
786
|
});
|
|
788
787
|
}), f = new Promise((Y, i) => {
|
|
789
|
-
AA.post("http://127.0.0.1:29101").then((
|
|
790
|
-
console.log("2",
|
|
791
|
-
const O =
|
|
788
|
+
AA.post("http://127.0.0.1:29101").then((a) => {
|
|
789
|
+
console.log("2", a);
|
|
790
|
+
const O = a.data;
|
|
792
791
|
Y([O]);
|
|
793
|
-
}).catch((
|
|
794
|
-
i(
|
|
792
|
+
}).catch((a) => {
|
|
793
|
+
i(a);
|
|
795
794
|
});
|
|
796
795
|
});
|
|
797
796
|
Promise.any([n, f]).then((Y) => {
|
|
798
|
-
|
|
797
|
+
e.value = Y, v.macAddress = Y.join(",");
|
|
799
798
|
}).catch(() => {
|
|
800
799
|
console.log("mac 获取失败");
|
|
801
800
|
});
|
|
802
801
|
}, h = (n) => {
|
|
803
802
|
let f;
|
|
804
803
|
try {
|
|
805
|
-
f =
|
|
804
|
+
f = XA();
|
|
806
805
|
} catch (Y) {
|
|
807
806
|
console.log(Y);
|
|
808
807
|
}
|
|
@@ -816,83 +815,83 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
816
815
|
for (let f = Number(n); f > 0; f--)
|
|
817
816
|
h("NetworkAdapter." + f + ".PhysicalAddress");
|
|
818
817
|
} else
|
|
819
|
-
h("NetworkAdapter." + n + ".PhysicalAddress"),
|
|
818
|
+
h("NetworkAdapter." + n + ".PhysicalAddress"), e.value.push(n), v.macAddress = e.value.join(",");
|
|
820
819
|
}, x = () => {
|
|
821
|
-
const n = new Promise((
|
|
820
|
+
const n = new Promise((a, O) => {
|
|
822
821
|
AA.get("http://localhost:19101/getmac?select=c2VsZWN0ICogZnJvbSBXaW4zMl9OZXR3b3JrQWRhcHRlcg==").then((Z) => {
|
|
823
822
|
const j = Z.data;
|
|
824
823
|
if (G() === "mac")
|
|
825
|
-
|
|
824
|
+
a(j);
|
|
826
825
|
else if (j.Code == 0) {
|
|
827
|
-
const $ = j.Win32_NetworkAdapter.map((
|
|
828
|
-
|
|
826
|
+
const $ = j.Win32_NetworkAdapter.map((F) => F.MACAddress).filter((F) => !!F);
|
|
827
|
+
a($);
|
|
829
828
|
} else
|
|
830
829
|
O(Z);
|
|
831
830
|
}).catch((Z) => {
|
|
832
831
|
O(Z);
|
|
833
832
|
});
|
|
834
|
-
}), f = new Promise((
|
|
833
|
+
}), f = new Promise((a, O) => {
|
|
835
834
|
AA.get("http://localhost:29101/getmac?select=c2VsZWN0ICogZnJvbSBXaW4zMl9OZXR3b3JrQWRhcHRlcg==").then((Z) => {
|
|
836
835
|
const j = Z.data;
|
|
837
836
|
if (G() === "mac")
|
|
838
|
-
|
|
837
|
+
a(j);
|
|
839
838
|
else if (j.Code == 0) {
|
|
840
|
-
const $ = j.Win32_NetworkAdapter.map((
|
|
841
|
-
|
|
839
|
+
const $ = j.Win32_NetworkAdapter.map((F) => F.MACAddress).filter((F) => !!F);
|
|
840
|
+
a($);
|
|
842
841
|
} else
|
|
843
842
|
O(Z);
|
|
844
843
|
}).catch((Z) => {
|
|
845
844
|
O(Z);
|
|
846
845
|
});
|
|
847
|
-
}), Y = new Promise((
|
|
846
|
+
}), Y = new Promise((a, O) => {
|
|
848
847
|
AA.get("https://localhost:19102/getmac?select=c2VsZWN0ICogZnJvbSBXaW4zMl9OZXR3b3JrQWRhcHRlcg==").then((Z) => {
|
|
849
848
|
const j = Z.data;
|
|
850
849
|
if (G() === "mac")
|
|
851
|
-
|
|
850
|
+
a(j);
|
|
852
851
|
else if (j.Code == 0) {
|
|
853
|
-
const $ = j.Win32_NetworkAdapter.map((
|
|
854
|
-
|
|
852
|
+
const $ = j.Win32_NetworkAdapter.map((F) => F.MACAddress).filter((F) => !!F);
|
|
853
|
+
a($);
|
|
855
854
|
} else
|
|
856
855
|
O(Z);
|
|
857
856
|
}).catch((Z) => {
|
|
858
857
|
O(Z);
|
|
859
858
|
});
|
|
860
|
-
}), i = new Promise((
|
|
859
|
+
}), i = new Promise((a, O) => {
|
|
861
860
|
AA.get("https://localhost:29102/getmac?select=c2VsZWN0ICogZnJvbSBXaW4zMl9OZXR3b3JrQWRhcHRlcg==").then((Z) => {
|
|
862
861
|
const j = Z.data;
|
|
863
862
|
if (G() === "mac")
|
|
864
|
-
|
|
863
|
+
a(j);
|
|
865
864
|
else if (j.Code == 0) {
|
|
866
|
-
const $ = j.Win32_NetworkAdapter.map((
|
|
867
|
-
|
|
865
|
+
const $ = j.Win32_NetworkAdapter.map((F) => F.MACAddress).filter((F) => !!F);
|
|
866
|
+
a($);
|
|
868
867
|
} else
|
|
869
868
|
O(Z);
|
|
870
869
|
}).catch((Z) => {
|
|
871
870
|
O(Z);
|
|
872
871
|
});
|
|
873
872
|
});
|
|
874
|
-
Promise.any([n, f, Y, i]).then((
|
|
875
|
-
|
|
873
|
+
Promise.any([n, f, Y, i]).then((a) => {
|
|
874
|
+
e.value = a, v.macAddress = a.join(",");
|
|
876
875
|
}).catch(() => {
|
|
877
|
-
let
|
|
876
|
+
let a;
|
|
878
877
|
const O = setInterval(() => {
|
|
879
878
|
try {
|
|
880
|
-
|
|
879
|
+
a = XA();
|
|
881
880
|
} catch {
|
|
882
881
|
}
|
|
883
|
-
|
|
882
|
+
a && (h("NetworkAdapter.Count"), clearInterval(O));
|
|
884
883
|
}, 500);
|
|
885
884
|
});
|
|
886
885
|
}, m = async () => {
|
|
887
|
-
if (!
|
|
886
|
+
if (!v.username) {
|
|
888
887
|
eA.warning(C("请输入账号"));
|
|
889
888
|
return;
|
|
890
889
|
}
|
|
891
|
-
if (!
|
|
890
|
+
if (!v.password) {
|
|
892
891
|
eA.warning(C("请输入密码"));
|
|
893
892
|
return;
|
|
894
893
|
}
|
|
895
|
-
if (o.value === "mac" && !
|
|
894
|
+
if (o.value === "mac" && !v.macAddress) {
|
|
896
895
|
eA.warning(C("未获取到Mac地址"));
|
|
897
896
|
return;
|
|
898
897
|
}
|
|
@@ -904,12 +903,12 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
904
903
|
const UA = async () => {
|
|
905
904
|
k.value = !0;
|
|
906
905
|
try {
|
|
907
|
-
const { username: n, password: f, macAddress: Y, cVerificationCode: i, systemSign:
|
|
906
|
+
const { username: n, password: f, macAddress: Y, cVerificationCode: i, systemSign: a } = v, O = await Wg({
|
|
908
907
|
username: n.trim(),
|
|
909
908
|
password: OA(f),
|
|
910
909
|
macAddress: Y,
|
|
911
910
|
cVerificationCode: i,
|
|
912
|
-
systemSign: OA(
|
|
911
|
+
systemSign: OA(a) ? OA(a) : ""
|
|
913
912
|
});
|
|
914
913
|
if (O.code === 0 || O.success) {
|
|
915
914
|
const Z = O.result?.token || O.result;
|
|
@@ -921,8 +920,8 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
921
920
|
k.value = !1;
|
|
922
921
|
}
|
|
923
922
|
}, iA = () => new Promise((n, f) => {
|
|
924
|
-
Sg({ usernumb:
|
|
925
|
-
Y.code === 200 ? (
|
|
923
|
+
Sg({ usernumb: v.username }).then((Y) => {
|
|
924
|
+
Y.code === 200 ? (v.cVerificationCode = Y.result.verificationCode, n()) : (r.value = !1, setTimeout(() => {
|
|
926
925
|
r.value = !0;
|
|
927
926
|
}, 5e3), f(new Error("error")));
|
|
928
927
|
}).catch((Y) => {
|
|
@@ -939,13 +938,13 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
939
938
|
};
|
|
940
939
|
return uA(() => {
|
|
941
940
|
document.addEventListener("click", KA), EA(), T(), DA(), yA({ cXuhao: "LANG_V3" }).then((n) => {
|
|
942
|
-
|
|
941
|
+
M.value = n.result;
|
|
943
942
|
});
|
|
944
|
-
}),
|
|
943
|
+
}), HA(() => {
|
|
945
944
|
document.removeEventListener("click", KA);
|
|
946
945
|
}), (n, f) => {
|
|
947
|
-
const Y = K("a-input"), i = K("a-form-item"),
|
|
948
|
-
return P(),
|
|
946
|
+
const Y = K("a-input"), i = K("a-form-item"), a = K("a-input-password"), O = K("a-option"), Z = K("a-select"), j = K("a-button"), $ = K("a-form");
|
|
947
|
+
return P(), z("div", EB, [
|
|
949
948
|
I("div", {
|
|
950
949
|
class: "bg-01",
|
|
951
950
|
style: gA({ backgroundImage: `url(${A.bg01})` })
|
|
@@ -980,33 +979,33 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
980
979
|
}, null, 8, vB)
|
|
981
980
|
]),
|
|
982
981
|
I("div", nB, [
|
|
983
|
-
|
|
982
|
+
D($, {
|
|
984
983
|
ref_key: "loginFormRef",
|
|
985
984
|
ref: w,
|
|
986
|
-
model:
|
|
985
|
+
model: v,
|
|
987
986
|
layout: "vertical"
|
|
988
987
|
}, {
|
|
989
988
|
default: t(() => [
|
|
990
|
-
|
|
989
|
+
D(i, {
|
|
991
990
|
field: "username",
|
|
992
991
|
rules: [{ required: !0, message: n.$t("请输入账号") }],
|
|
993
992
|
"hide-label": ""
|
|
994
993
|
}, {
|
|
995
994
|
default: t(() => [
|
|
996
|
-
|
|
997
|
-
modelValue:
|
|
998
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
995
|
+
D(Y, {
|
|
996
|
+
modelValue: v.username,
|
|
997
|
+
"onUpdate:modelValue": f[0] || (f[0] = (F) => v.username = F),
|
|
999
998
|
tabindex: "1",
|
|
1000
999
|
placeholder: n.$t("请输入账号"),
|
|
1001
|
-
onFocus: f[1] || (f[1] = (
|
|
1002
|
-
onBlur: f[2] || (f[2] = (
|
|
1000
|
+
onFocus: f[1] || (f[1] = (F) => c.value = 0),
|
|
1001
|
+
onBlur: f[2] || (f[2] = (F) => c.value = -1),
|
|
1003
1002
|
"allow-clear": ""
|
|
1004
1003
|
}, {
|
|
1005
1004
|
prefix: t(() => [
|
|
1006
1005
|
I("div", {
|
|
1007
1006
|
class: S(["input-icon-wrapper", { active: c.value === 0 }])
|
|
1008
1007
|
}, [
|
|
1009
|
-
|
|
1008
|
+
D(s(Ug))
|
|
1010
1009
|
], 2)
|
|
1011
1010
|
]),
|
|
1012
1011
|
_: 1
|
|
@@ -1014,28 +1013,28 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1014
1013
|
]),
|
|
1015
1014
|
_: 1
|
|
1016
1015
|
}, 8, ["rules"]),
|
|
1017
|
-
|
|
1016
|
+
D(i, {
|
|
1018
1017
|
field: "password",
|
|
1019
1018
|
rules: [{ required: !0, message: n.$t("请输入密码") }],
|
|
1020
1019
|
"hide-label": ""
|
|
1021
1020
|
}, {
|
|
1022
1021
|
default: t(() => [
|
|
1023
|
-
|
|
1022
|
+
D(a, {
|
|
1024
1023
|
ref_key: "pwdInputRef",
|
|
1025
1024
|
ref: B,
|
|
1026
|
-
modelValue:
|
|
1027
|
-
"onUpdate:modelValue": f[3] || (f[3] = (
|
|
1025
|
+
modelValue: v.password,
|
|
1026
|
+
"onUpdate:modelValue": f[3] || (f[3] = (F) => v.password = F),
|
|
1028
1027
|
tabindex: "2",
|
|
1029
1028
|
placeholder: n.$t("请输入密码"),
|
|
1030
|
-
onFocus: f[4] || (f[4] = (
|
|
1031
|
-
onBlur: f[5] || (f[5] = (
|
|
1029
|
+
onFocus: f[4] || (f[4] = (F) => c.value = 1),
|
|
1030
|
+
onBlur: f[5] || (f[5] = (F) => c.value = -1),
|
|
1032
1031
|
"allow-clear": ""
|
|
1033
1032
|
}, {
|
|
1034
1033
|
prefix: t(() => [
|
|
1035
1034
|
I("div", {
|
|
1036
1035
|
class: S(["input-icon-wrapper", { active: c.value === 1 }])
|
|
1037
1036
|
}, [
|
|
1038
|
-
|
|
1037
|
+
D(s(Og))
|
|
1039
1038
|
], 2)
|
|
1040
1039
|
]),
|
|
1041
1040
|
_: 1
|
|
@@ -1043,29 +1042,29 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1043
1042
|
]),
|
|
1044
1043
|
_: 1
|
|
1045
1044
|
}, 8, ["rules"]),
|
|
1046
|
-
|
|
1045
|
+
D(i, { "hide-label": "" }, {
|
|
1047
1046
|
default: t(() => [
|
|
1048
|
-
|
|
1049
|
-
modelValue:
|
|
1050
|
-
"onUpdate:modelValue": f[6] || (f[6] = (
|
|
1047
|
+
D(Z, {
|
|
1048
|
+
modelValue: d.value,
|
|
1049
|
+
"onUpdate:modelValue": f[6] || (f[6] = (F) => d.value = F),
|
|
1051
1050
|
placeholder: n.$t("请选择语言"),
|
|
1052
1051
|
style: { width: "100%" },
|
|
1053
1052
|
onChange: L,
|
|
1054
|
-
onFocus: f[7] || (f[7] = (
|
|
1055
|
-
onBlur: f[8] || (f[8] = (
|
|
1053
|
+
onFocus: f[7] || (f[7] = (F) => c.value = 2),
|
|
1054
|
+
onBlur: f[8] || (f[8] = (F) => c.value = -1)
|
|
1056
1055
|
}, {
|
|
1057
1056
|
prefix: t(() => [
|
|
1058
1057
|
I("div", {
|
|
1059
1058
|
class: S(["input-icon-wrapper", { active: c.value === 2 }])
|
|
1060
1059
|
}, [
|
|
1061
|
-
|
|
1060
|
+
D(s(dg))
|
|
1062
1061
|
], 2)
|
|
1063
1062
|
]),
|
|
1064
1063
|
default: t(() => [
|
|
1065
|
-
(P(!0),
|
|
1066
|
-
key:
|
|
1067
|
-
label:
|
|
1068
|
-
value:
|
|
1064
|
+
(P(!0), z(q, null, BA(M.value, (F) => (P(), y(O, {
|
|
1065
|
+
key: F.id,
|
|
1066
|
+
label: F.cName,
|
|
1067
|
+
value: F.cXuhao
|
|
1069
1068
|
}, null, 8, ["label", "value"]))), 128))
|
|
1070
1069
|
]),
|
|
1071
1070
|
_: 1
|
|
@@ -1078,19 +1077,19 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1078
1077
|
"hide-label": ""
|
|
1079
1078
|
}, {
|
|
1080
1079
|
default: t(() => [
|
|
1081
|
-
|
|
1082
|
-
modelValue:
|
|
1083
|
-
"onUpdate:modelValue": f[9] || (f[9] = (
|
|
1080
|
+
D(Y, {
|
|
1081
|
+
modelValue: v.macAddress,
|
|
1082
|
+
"onUpdate:modelValue": f[9] || (f[9] = (F) => v.macAddress = F),
|
|
1084
1083
|
readonly: "",
|
|
1085
1084
|
placeholder: n.$t("MAC地址"),
|
|
1086
|
-
onFocus: f[10] || (f[10] = (
|
|
1087
|
-
onBlur: f[11] || (f[11] = (
|
|
1085
|
+
onFocus: f[10] || (f[10] = (F) => c.value = 3),
|
|
1086
|
+
onBlur: f[11] || (f[11] = (F) => c.value = -1)
|
|
1088
1087
|
}, {
|
|
1089
1088
|
prefix: t(() => [
|
|
1090
1089
|
I("div", {
|
|
1091
1090
|
class: S(["input-icon-wrapper", { active: c.value === 3 }])
|
|
1092
1091
|
}, [
|
|
1093
|
-
|
|
1092
|
+
D(s(cg))
|
|
1094
1093
|
], 2)
|
|
1095
1094
|
]),
|
|
1096
1095
|
_: 1
|
|
@@ -1098,9 +1097,9 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1098
1097
|
]),
|
|
1099
1098
|
_: 1
|
|
1100
1099
|
})) : _("", !0),
|
|
1101
|
-
|
|
1100
|
+
D(i, { style: { position: "relative" } }, {
|
|
1102
1101
|
default: t(() => [
|
|
1103
|
-
H.value ? (P(),
|
|
1102
|
+
H.value ? (P(), z("div", {
|
|
1104
1103
|
key: 0,
|
|
1105
1104
|
class: "verify-popover",
|
|
1106
1105
|
ref_key: "verifyPopoverRef",
|
|
@@ -1119,7 +1118,7 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1119
1118
|
onAgain: iA
|
|
1120
1119
|
}, null, 8, ["slider-text"])) : _("", !0)
|
|
1121
1120
|
], 512)) : _("", !0),
|
|
1122
|
-
|
|
1121
|
+
D(j, {
|
|
1123
1122
|
type: "primary",
|
|
1124
1123
|
style: { width: "100%" },
|
|
1125
1124
|
loading: k.value,
|
|
@@ -1138,7 +1137,7 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1138
1137
|
_: 1
|
|
1139
1138
|
}, 8, ["model"]),
|
|
1140
1139
|
I("div", tB, [
|
|
1141
|
-
J.value ? (P(),
|
|
1140
|
+
J.value ? (P(), z("div", sB, [
|
|
1142
1141
|
V(N(n.$t("如果您无法获取到MAC地址,请先下载并安装插件")) + ": ", 1),
|
|
1143
1142
|
I("a", {
|
|
1144
1143
|
href: `${s(FA)}/sunnyoptical_getmac.exe`
|
|
@@ -1149,7 +1148,7 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1149
1148
|
}, N(n.$t("下载地址2")), 9, oB),
|
|
1150
1149
|
f[13] || (f[13] = I("br", null, null, -1))
|
|
1151
1150
|
])) : _("", !0),
|
|
1152
|
-
A.ssoUrl ? (P(),
|
|
1151
|
+
A.ssoUrl ? (P(), z("div", PB, [
|
|
1153
1152
|
V(N(n.$t("公司内部人员另外登录途径")) + ":", 1),
|
|
1154
1153
|
I("a", {
|
|
1155
1154
|
href: `${s(FA)}/login?service=${A.ssoUrl}`
|
|
@@ -1166,7 +1165,7 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1166
1165
|
for (const [C, E] of g)
|
|
1167
1166
|
Q[C] = E;
|
|
1168
1167
|
return Q;
|
|
1169
|
-
},
|
|
1168
|
+
}, MC = /* @__PURE__ */ WA(MB, [["__scopeId", "data-v-a4bd09b7"]]), FB = {
|
|
1170
1169
|
key: 0,
|
|
1171
1170
|
class: "mr-2 inline-flex items-center"
|
|
1172
1171
|
}, zB = /* @__PURE__ */ p({
|
|
@@ -1178,22 +1177,22 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1178
1177
|
setup(A) {
|
|
1179
1178
|
return (g, Q) => {
|
|
1180
1179
|
const C = K("MenuItem", !0), E = K("a-sub-menu"), w = K("a-menu-item");
|
|
1181
|
-
return P(!0),
|
|
1180
|
+
return P(!0), z(q, null, BA(A.menus, (B) => (P(), z(q, {
|
|
1182
1181
|
key: B.path
|
|
1183
1182
|
}, [
|
|
1184
1183
|
B.children && B.children.length > 0 ? (P(), y(E, {
|
|
1185
1184
|
key: B.path
|
|
1186
1185
|
}, {
|
|
1187
1186
|
title: t(() => [
|
|
1188
|
-
B.icon ? (P(),
|
|
1189
|
-
|
|
1187
|
+
B.icon ? (P(), z("span", FB, [
|
|
1188
|
+
D(s(b), {
|
|
1190
1189
|
icon: B.icon
|
|
1191
1190
|
}, null, 8, ["icon"])
|
|
1192
1191
|
])) : _("", !0),
|
|
1193
1192
|
V(" " + N(B.name), 1)
|
|
1194
1193
|
]),
|
|
1195
1194
|
default: t(() => [
|
|
1196
|
-
|
|
1195
|
+
D(C, {
|
|
1197
1196
|
menus: B.children
|
|
1198
1197
|
}, null, 8, ["menus"])
|
|
1199
1198
|
]),
|
|
@@ -1209,7 +1208,7 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1209
1208
|
B.icon ? {
|
|
1210
1209
|
name: "icon",
|
|
1211
1210
|
fn: t(() => [
|
|
1212
|
-
|
|
1211
|
+
D(s(b), {
|
|
1213
1212
|
icon: B.icon
|
|
1214
1213
|
}, null, 8, ["icon"])
|
|
1215
1214
|
]),
|
|
@@ -1227,22 +1226,22 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1227
1226
|
__name: "breadcrumb",
|
|
1228
1227
|
setup(A) {
|
|
1229
1228
|
const g = YA(), Q = rA(), C = W(() => g.matched.filter((B) => B.meta && B.meta.title && !B.meta.hideInBreadcrumb)), E = (B) => B.path === g.path || B.redirect === "noRedirect", w = (B) => {
|
|
1230
|
-
const { redirect:
|
|
1231
|
-
if (
|
|
1232
|
-
Q.push(
|
|
1229
|
+
const { redirect: v, path: e } = B;
|
|
1230
|
+
if (v) {
|
|
1231
|
+
Q.push(v);
|
|
1233
1232
|
return;
|
|
1234
1233
|
}
|
|
1235
|
-
Q.push(
|
|
1234
|
+
Q.push(e);
|
|
1236
1235
|
};
|
|
1237
|
-
return (B,
|
|
1238
|
-
const
|
|
1239
|
-
return P(), y(
|
|
1236
|
+
return (B, v) => {
|
|
1237
|
+
const e = K("a-breadcrumb-item"), M = K("a-breadcrumb");
|
|
1238
|
+
return P(), y(M, { class: "ml-4" }, {
|
|
1240
1239
|
default: t(() => [
|
|
1241
|
-
(P(!0),
|
|
1240
|
+
(P(!0), z(q, null, BA(C.value, (k) => (P(), y(e, {
|
|
1242
1241
|
key: k.path
|
|
1243
1242
|
}, {
|
|
1244
1243
|
default: t(() => [
|
|
1245
|
-
E(k) ? (P(),
|
|
1244
|
+
E(k) ? (P(), z("span", dB, N(k.meta?.title), 1)) : (P(), z("a", {
|
|
1246
1245
|
key: 1,
|
|
1247
1246
|
onClick: tA((c) => w(k), ["prevent"]),
|
|
1248
1247
|
class: "cursor-pointer text-[var(--color-text-2)] hover:text-[var(--color-text-1)] transition-colors"
|
|
@@ -1268,7 +1267,7 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1268
1267
|
name: "HeaderSearch",
|
|
1269
1268
|
__name: "search",
|
|
1270
1269
|
setup(A) {
|
|
1271
|
-
const g = rA(), Q = QA(), C = X(!1), E = X(""), w = X(), B = X(),
|
|
1270
|
+
const g = rA(), Q = QA(), C = X(!1), E = X(""), w = X(), B = X(), v = X([]), e = X(0), M = X(!0), k = navigator.platform.toUpperCase().indexOf("MAC") >= 0, c = (G, U = []) => {
|
|
1272
1271
|
let h = [];
|
|
1273
1272
|
for (const u of G) {
|
|
1274
1273
|
const x = u.meta?.title || u.title || u.name, m = [...U];
|
|
@@ -1291,15 +1290,15 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1291
1290
|
);
|
|
1292
1291
|
});
|
|
1293
1292
|
sA(E, () => {
|
|
1294
|
-
|
|
1293
|
+
e.value = 0;
|
|
1295
1294
|
});
|
|
1296
1295
|
let o = -1, r = -1;
|
|
1297
|
-
const
|
|
1296
|
+
const d = (G) => {
|
|
1298
1297
|
if (o === -1 && r === -1) {
|
|
1299
1298
|
o = G.screenX, r = G.screenY;
|
|
1300
1299
|
return;
|
|
1301
1300
|
}
|
|
1302
|
-
(G.screenX !== o || G.screenY !== r) && (
|
|
1301
|
+
(G.screenX !== o || G.screenY !== r) && (M.value = !0, o = G.screenX, r = G.screenY);
|
|
1303
1302
|
}, J = () => {
|
|
1304
1303
|
C.value = !0, E.value = "", $A(() => {
|
|
1305
1304
|
w.value?.focus();
|
|
@@ -1312,32 +1311,32 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1312
1311
|
if (l.value.length !== 0)
|
|
1313
1312
|
switch (G.key) {
|
|
1314
1313
|
case "ArrowDown":
|
|
1315
|
-
G.preventDefault(),
|
|
1314
|
+
G.preventDefault(), M.value = !1, e.value = (e.value + 1) % l.value.length, T();
|
|
1316
1315
|
break;
|
|
1317
1316
|
case "ArrowUp":
|
|
1318
|
-
G.preventDefault(),
|
|
1317
|
+
G.preventDefault(), M.value = !1, e.value = (e.value - 1 + l.value.length) % l.value.length, T();
|
|
1319
1318
|
break;
|
|
1320
1319
|
case "Enter":
|
|
1321
|
-
G.preventDefault(), l.value.length > 0 && L(l.value[
|
|
1320
|
+
G.preventDefault(), l.value.length > 0 && L(l.value[e.value]);
|
|
1322
1321
|
break;
|
|
1323
1322
|
}
|
|
1324
1323
|
}, T = () => {
|
|
1325
|
-
|
|
1324
|
+
e.value >= 0 && v.value[e.value] && v.value[e.value].scrollIntoView({ block: "nearest" });
|
|
1326
1325
|
}, DA = (G) => {
|
|
1327
1326
|
(G.ctrlKey || G.metaKey) && G.key === "k" && (G.preventDefault(), C.value ? C.value = !1 : J());
|
|
1328
1327
|
};
|
|
1329
1328
|
return uA(() => {
|
|
1330
1329
|
window.addEventListener("keydown", DA);
|
|
1331
|
-
}),
|
|
1330
|
+
}), HA(() => {
|
|
1332
1331
|
window.removeEventListener("keydown", DA);
|
|
1333
1332
|
}), (G, U) => {
|
|
1334
1333
|
const h = K("a-modal");
|
|
1335
|
-
return P(),
|
|
1334
|
+
return P(), z("div", null, [
|
|
1336
1335
|
I("div", {
|
|
1337
1336
|
class: "flex items-center gap-2 px-3 py-1.5 bg-[var(--color-fill-2)] hover:bg-[var(--color-fill-3)] rounded-full cursor-pointer transition-all duration-300 border border-transparent hover:border-[var(--color-border)] hover:shadow-sm",
|
|
1338
1337
|
onClick: J
|
|
1339
1338
|
}, [
|
|
1340
|
-
|
|
1339
|
+
D(s(b), {
|
|
1341
1340
|
icon: "lucide:search",
|
|
1342
1341
|
size: 14,
|
|
1343
1342
|
class: "text-[var(--color-text-3)]"
|
|
@@ -1345,7 +1344,7 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1345
1344
|
U[3] || (U[3] = I("span", { class: "text-[var(--color-text-3)] text-xs" }, "搜索...", -1)),
|
|
1346
1345
|
I("span", bB, N(k ? "⌘ K" : "Ctrl K"), 1)
|
|
1347
1346
|
]),
|
|
1348
|
-
|
|
1347
|
+
D(h, {
|
|
1349
1348
|
visible: C.value,
|
|
1350
1349
|
"onUpdate:visible": U[2] || (U[2] = (u) => C.value = u),
|
|
1351
1350
|
footer: !1,
|
|
@@ -1359,7 +1358,7 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1359
1358
|
default: t(() => [
|
|
1360
1359
|
I("div", OB, [
|
|
1361
1360
|
I("div", lB, [
|
|
1362
|
-
|
|
1361
|
+
D(s(b), {
|
|
1363
1362
|
icon: "lucide:search",
|
|
1364
1363
|
size: 18,
|
|
1365
1364
|
class: "text-[var(--color-text-3)] mr-2"
|
|
@@ -1374,43 +1373,43 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1374
1373
|
}, null, 544), [
|
|
1375
1374
|
[_A, E.value]
|
|
1376
1375
|
]),
|
|
1377
|
-
E.value ? (P(),
|
|
1376
|
+
E.value ? (P(), z("div", {
|
|
1378
1377
|
key: 0,
|
|
1379
1378
|
class: "cursor-pointer text-[var(--color-text-4)] hover:text-[var(--color-text-3)] transition-colors p-0.5 rounded hover:bg-[var(--color-fill-3)]",
|
|
1380
1379
|
onClick: U[1] || (U[1] = (u) => E.value = "")
|
|
1381
1380
|
}, [
|
|
1382
|
-
|
|
1381
|
+
D(s(b), {
|
|
1383
1382
|
icon: "lucide:x",
|
|
1384
1383
|
size: 14
|
|
1385
1384
|
})
|
|
1386
|
-
])) : (P(),
|
|
1385
|
+
])) : (P(), z("div", uB, " ESC "))
|
|
1387
1386
|
]),
|
|
1388
1387
|
I("div", {
|
|
1389
1388
|
class: "overflow-y-auto custom-scrollbar p-1.5 flex-1",
|
|
1390
1389
|
ref_key: "listRef",
|
|
1391
1390
|
ref: B,
|
|
1392
|
-
onMousemove:
|
|
1391
|
+
onMousemove: d
|
|
1393
1392
|
}, [
|
|
1394
|
-
l.value.length > 0 ? (P(),
|
|
1393
|
+
l.value.length > 0 ? (P(), z(q, { key: 0 }, [
|
|
1395
1394
|
U[4] || (U[4] = I("div", { class: "text-[10px] text-[var(--color-text-4)] px-2 py-1.5 font-medium" }, "应用菜单", -1)),
|
|
1396
|
-
(P(!0),
|
|
1395
|
+
(P(!0), z(q, null, BA(l.value, (u, x) => (P(), z("div", {
|
|
1397
1396
|
key: u.path,
|
|
1398
1397
|
ref_for: !0,
|
|
1399
1398
|
ref: (m) => {
|
|
1400
|
-
m && (
|
|
1399
|
+
m && (v.value[x] = m);
|
|
1401
1400
|
},
|
|
1402
1401
|
class: S(["flex items-center justify-between px-2 py-2 rounded-lg cursor-pointer mb-0.5 group border border-transparent", {
|
|
1403
|
-
"bg-[rgb(var(--primary-6))] shadow-sm border-transparent":
|
|
1404
|
-
"hover:bg-[var(--color-fill-2)] text-[var(--color-text-1)]":
|
|
1402
|
+
"bg-[rgb(var(--primary-6))] shadow-sm border-transparent": e.value === x,
|
|
1403
|
+
"hover:bg-[var(--color-fill-2)] text-[var(--color-text-1)]": e.value !== x
|
|
1405
1404
|
}]),
|
|
1406
1405
|
onClick: (m) => L(u),
|
|
1407
|
-
onMouseenter: (m) =>
|
|
1406
|
+
onMouseenter: (m) => M.value && (e.value = x)
|
|
1408
1407
|
}, [
|
|
1409
1408
|
I("div", UB, [
|
|
1410
1409
|
I("div", {
|
|
1411
|
-
class: S(["flex items-center justify-center w-7 h-7 rounded shrink-0",
|
|
1410
|
+
class: S(["flex items-center justify-center w-7 h-7 rounded shrink-0", e.value === x ? "bg-white/20 text-white" : "bg-[var(--color-fill-3)] text-[var(--color-text-3)] group-hover:bg-[var(--color-fill-4)] group-hover:text-[var(--color-text-2)]"])
|
|
1412
1411
|
}, [
|
|
1413
|
-
|
|
1412
|
+
D(s(b), {
|
|
1414
1413
|
icon: u.icon || "lucide:layout-grid",
|
|
1415
1414
|
size: 14
|
|
1416
1415
|
}, null, 8, ["icon"])
|
|
@@ -1418,18 +1417,18 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1418
1417
|
I("div", iB, [
|
|
1419
1418
|
I("div", KB, [
|
|
1420
1419
|
I("span", {
|
|
1421
|
-
class: S(["truncate font-medium text-sm leading-none",
|
|
1420
|
+
class: S(["truncate font-medium text-sm leading-none", e.value === x ? "text-white" : "text-[var(--color-text-1)]"])
|
|
1422
1421
|
}, N(u.title), 3)
|
|
1423
1422
|
]),
|
|
1424
1423
|
I("div", {
|
|
1425
|
-
class: S(["flex items-center text-[10px] mt-1 truncate leading-none",
|
|
1424
|
+
class: S(["flex items-center text-[10px] mt-1 truncate leading-none", e.value === x ? "text-white/70" : "text-[var(--color-text-3)]"])
|
|
1426
1425
|
}, [
|
|
1427
|
-
(P(!0),
|
|
1426
|
+
(P(!0), z(q, null, BA(u.parentNames, (m, MA) => (P(), z("span", {
|
|
1428
1427
|
key: MA,
|
|
1429
1428
|
class: "flex items-center"
|
|
1430
1429
|
}, [
|
|
1431
1430
|
V(N(m) + " ", 1),
|
|
1432
|
-
|
|
1431
|
+
D(s(b), {
|
|
1433
1432
|
icon: "lucide:chevron-right",
|
|
1434
1433
|
size: 10,
|
|
1435
1434
|
class: "mx-0.5 opacity-60"
|
|
@@ -1439,18 +1438,18 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1439
1438
|
])
|
|
1440
1439
|
]),
|
|
1441
1440
|
I("div", {
|
|
1442
|
-
class: S(["transition-opacity duration-200",
|
|
1441
|
+
class: S(["transition-opacity duration-200", e.value === x ? "opacity-100" : "opacity-0"])
|
|
1443
1442
|
}, [
|
|
1444
|
-
|
|
1443
|
+
D(s(b), {
|
|
1445
1444
|
icon: "lucide:corner-down-left",
|
|
1446
1445
|
size: 14,
|
|
1447
1446
|
class: "text-white"
|
|
1448
1447
|
})
|
|
1449
1448
|
], 2)
|
|
1450
1449
|
], 42, YB))), 128))
|
|
1451
|
-
], 64)) : E.value ? (P(),
|
|
1450
|
+
], 64)) : E.value ? (P(), z("div", LB, [
|
|
1452
1451
|
I("div", ZB, [
|
|
1453
|
-
|
|
1452
|
+
D(s(b), {
|
|
1454
1453
|
icon: "lucide:search-x",
|
|
1455
1454
|
size: 24,
|
|
1456
1455
|
class: "opacity-50"
|
|
@@ -1458,9 +1457,9 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1458
1457
|
]),
|
|
1459
1458
|
U[5] || (U[5] = I("p", { class: "text-sm font-medium mb-0.5" }, "未找到结果", -1)),
|
|
1460
1459
|
U[6] || (U[6] = I("p", { class: "text-[10px] opacity-70" }, "尝试搜索其他关键词", -1))
|
|
1461
|
-
])) : (P(),
|
|
1460
|
+
])) : (P(), z("div", XB, [
|
|
1462
1461
|
I("div", kB, [
|
|
1463
|
-
|
|
1462
|
+
D(s(b), {
|
|
1464
1463
|
icon: "lucide:command",
|
|
1465
1464
|
size: 40,
|
|
1466
1465
|
class: "mb-3 text-[var(--color-text-4)]"
|
|
@@ -1510,15 +1509,15 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1510
1509
|
g.value = E;
|
|
1511
1510
|
};
|
|
1512
1511
|
return (E, w) => {
|
|
1513
|
-
const B = K("a-doption"),
|
|
1514
|
-
return P(), y(
|
|
1512
|
+
const B = K("a-doption"), v = K("a-dropdown");
|
|
1513
|
+
return P(), y(v, {
|
|
1515
1514
|
trigger: "click",
|
|
1516
1515
|
onSelect: C
|
|
1517
1516
|
}, {
|
|
1518
1517
|
content: t(() => [
|
|
1519
|
-
|
|
1518
|
+
D(B, { value: "light" }, CA({
|
|
1520
1519
|
icon: t(() => [
|
|
1521
|
-
|
|
1520
|
+
D(s(b), { icon: "lucide:sun" })
|
|
1522
1521
|
]),
|
|
1523
1522
|
default: t(() => [
|
|
1524
1523
|
w[0] || (w[0] = I("span", null, "浅色模式", -1))
|
|
@@ -1528,7 +1527,7 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1528
1527
|
s(g) === "light" ? {
|
|
1529
1528
|
name: "suffix",
|
|
1530
1529
|
fn: t(() => [
|
|
1531
|
-
|
|
1530
|
+
D(s(b), {
|
|
1532
1531
|
icon: "lucide:check",
|
|
1533
1532
|
class: "text-[rgb(var(--primary-6))]"
|
|
1534
1533
|
})
|
|
@@ -1536,9 +1535,9 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1536
1535
|
key: "0"
|
|
1537
1536
|
} : void 0
|
|
1538
1537
|
]), 1024),
|
|
1539
|
-
|
|
1538
|
+
D(B, { value: "dark" }, CA({
|
|
1540
1539
|
icon: t(() => [
|
|
1541
|
-
|
|
1540
|
+
D(s(b), { icon: "lucide:moon" })
|
|
1542
1541
|
]),
|
|
1543
1542
|
default: t(() => [
|
|
1544
1543
|
w[1] || (w[1] = I("span", null, "暗色模式", -1))
|
|
@@ -1548,7 +1547,7 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1548
1547
|
s(g) === "dark" ? {
|
|
1549
1548
|
name: "suffix",
|
|
1550
1549
|
fn: t(() => [
|
|
1551
|
-
|
|
1550
|
+
D(s(b), {
|
|
1552
1551
|
icon: "lucide:check",
|
|
1553
1552
|
class: "text-[rgb(var(--primary-6))]"
|
|
1554
1553
|
})
|
|
@@ -1556,9 +1555,9 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1556
1555
|
key: "0"
|
|
1557
1556
|
} : void 0
|
|
1558
1557
|
]), 1024),
|
|
1559
|
-
|
|
1558
|
+
D(B, { value: "auto" }, CA({
|
|
1560
1559
|
icon: t(() => [
|
|
1561
|
-
|
|
1560
|
+
D(s(b), { icon: "lucide:monitor" })
|
|
1562
1561
|
]),
|
|
1563
1562
|
default: t(() => [
|
|
1564
1563
|
w[2] || (w[2] = I("span", null, "跟随系统", -1))
|
|
@@ -1568,7 +1567,7 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1568
1567
|
s(g) === "auto" ? {
|
|
1569
1568
|
name: "suffix",
|
|
1570
1569
|
fn: t(() => [
|
|
1571
|
-
|
|
1570
|
+
D(s(b), {
|
|
1572
1571
|
icon: "lucide:check",
|
|
1573
1572
|
class: "text-[rgb(var(--primary-6))]"
|
|
1574
1573
|
})
|
|
@@ -1579,7 +1578,7 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1579
1578
|
]),
|
|
1580
1579
|
default: t(() => [
|
|
1581
1580
|
I("div", HB, [
|
|
1582
|
-
|
|
1581
|
+
D(s(b), {
|
|
1583
1582
|
icon: Q.value,
|
|
1584
1583
|
size: 20
|
|
1585
1584
|
}, null, 8, ["icon"])
|
|
@@ -1593,13 +1592,13 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1593
1592
|
name: "Tabbar",
|
|
1594
1593
|
__name: "index",
|
|
1595
1594
|
setup(A) {
|
|
1596
|
-
const g =
|
|
1595
|
+
const g = RA(), Q = QA(), C = rA(), E = YA(), w = () => {
|
|
1597
1596
|
g.toggleContentFullScreen();
|
|
1598
|
-
}, B = (o) => o.path === E.path,
|
|
1597
|
+
}, B = (o) => o.path === E.path, v = (o) => {
|
|
1599
1598
|
C.push(o.path);
|
|
1600
|
-
},
|
|
1599
|
+
}, e = async (o) => {
|
|
1601
1600
|
await g.closeTab(o, C);
|
|
1602
|
-
},
|
|
1601
|
+
}, M = (o) => {
|
|
1603
1602
|
const r = g.getTabs;
|
|
1604
1603
|
return {
|
|
1605
1604
|
disabledCloseCurrent: o.meta?.affixTab,
|
|
@@ -1614,14 +1613,14 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1614
1613
|
}, k = (o) => {
|
|
1615
1614
|
const {
|
|
1616
1615
|
disabledCloseCurrent: r,
|
|
1617
|
-
disabledRefresh:
|
|
1618
|
-
} =
|
|
1616
|
+
disabledRefresh: d
|
|
1617
|
+
} = M(o), J = o?.meta?.affixTab ?? !1;
|
|
1619
1618
|
return [
|
|
1620
1619
|
{
|
|
1621
1620
|
key: "reload",
|
|
1622
1621
|
text: "重新加载",
|
|
1623
1622
|
icon: "lucide:rotate-cw",
|
|
1624
|
-
disabled:
|
|
1623
|
+
disabled: d
|
|
1625
1624
|
},
|
|
1626
1625
|
{
|
|
1627
1626
|
key: "close-current",
|
|
@@ -1662,7 +1661,7 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1662
1661
|
break;
|
|
1663
1662
|
}
|
|
1664
1663
|
}, H = async (o) => {
|
|
1665
|
-
const r = g.getTabs.find((
|
|
1664
|
+
const r = g.getTabs.find((d) => d.path === E.path);
|
|
1666
1665
|
r && c(o, r);
|
|
1667
1666
|
}, l = () => {
|
|
1668
1667
|
const o = C.getRoutes().filter((r) => !!r.meta?.affixTab);
|
|
@@ -1685,29 +1684,29 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1685
1684
|
},
|
|
1686
1685
|
{ immediate: !0 }
|
|
1687
1686
|
), (o, r) => {
|
|
1688
|
-
const
|
|
1689
|
-
return P(),
|
|
1687
|
+
const d = K("a-doption"), J = K("a-dropdown");
|
|
1688
|
+
return P(), z("div", NB, [
|
|
1690
1689
|
I("div", jB, [
|
|
1691
|
-
|
|
1690
|
+
D(s(NA), {
|
|
1692
1691
|
horizontal: "",
|
|
1693
1692
|
class: "w-full h-full flex items-center",
|
|
1694
1693
|
style: { display: "flex", alignItems: "center" }
|
|
1695
1694
|
}, {
|
|
1696
1695
|
default: t(() => [
|
|
1697
1696
|
I("div", VB, [
|
|
1698
|
-
(P(!0),
|
|
1697
|
+
(P(!0), z(q, null, BA(s(g).getTabs, (R) => (P(), z("div", {
|
|
1699
1698
|
key: R.key,
|
|
1700
1699
|
class: "flex items-center"
|
|
1701
1700
|
}, [
|
|
1702
|
-
|
|
1701
|
+
D(J, {
|
|
1703
1702
|
trigger: "contextMenu",
|
|
1704
1703
|
onSelect: (L) => c(L, R)
|
|
1705
1704
|
}, {
|
|
1706
1705
|
content: t(() => [
|
|
1707
|
-
(P(!0),
|
|
1706
|
+
(P(!0), z(q, null, BA(k(R), (L) => (P(), z(q, {
|
|
1708
1707
|
key: L.key
|
|
1709
1708
|
}, [
|
|
1710
|
-
L.separator ? (P(), y(
|
|
1709
|
+
L.separator ? (P(), y(d, {
|
|
1711
1710
|
key: 1,
|
|
1712
1711
|
value: L.key,
|
|
1713
1712
|
disabled: L.disabled,
|
|
@@ -1721,13 +1720,13 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1721
1720
|
L.icon ? {
|
|
1722
1721
|
name: "icon",
|
|
1723
1722
|
fn: t(() => [
|
|
1724
|
-
|
|
1723
|
+
D(s(b), {
|
|
1725
1724
|
icon: L.icon
|
|
1726
1725
|
}, null, 8, ["icon"])
|
|
1727
1726
|
]),
|
|
1728
1727
|
key: "0"
|
|
1729
1728
|
} : void 0
|
|
1730
|
-
]), 1032, ["value", "disabled"])) : (P(), y(
|
|
1729
|
+
]), 1032, ["value", "disabled"])) : (P(), y(d, {
|
|
1731
1730
|
key: 0,
|
|
1732
1731
|
value: L.key,
|
|
1733
1732
|
disabled: L.disabled
|
|
@@ -1740,7 +1739,7 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1740
1739
|
L.icon ? {
|
|
1741
1740
|
name: "icon",
|
|
1742
1741
|
fn: t(() => [
|
|
1743
|
-
|
|
1742
|
+
D(s(b), {
|
|
1744
1743
|
icon: L.icon
|
|
1745
1744
|
}, null, 8, ["icon"])
|
|
1746
1745
|
]),
|
|
@@ -1754,10 +1753,10 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1754
1753
|
class: S(["group relative flex items-center gap-2 px-3 py-1 text-sm rounded-sm cursor-pointer transition-all duration-200 border whitespace-nowrap", [
|
|
1755
1754
|
B(R) ? "bg-[rgb(var(--primary-6))] text-white border-[rgb(var(--primary-6))] dark:bg-[var(--color-bg-1)] dark:text-[rgb(var(--primary-6))]" : "bg-[var(--color-bg-1)] text-[var(--color-text-2)] border-[var(--color-border)] hover:text-[var(--color-text-1)] hover:border-[var(--color-border-3)]"
|
|
1756
1755
|
]]),
|
|
1757
|
-
onClick: (L) =>
|
|
1756
|
+
onClick: (L) => v(R)
|
|
1758
1757
|
}, [
|
|
1759
1758
|
I("span", null, N(R.meta?.title || R.name), 1),
|
|
1760
|
-
R.meta?.affixTab ? (P(),
|
|
1759
|
+
R.meta?.affixTab ? (P(), z("span", {
|
|
1761
1760
|
key: 0,
|
|
1762
1761
|
class: S(["flex items-center justify-center w-4 h-4 rounded-full transition-colors", [
|
|
1763
1762
|
B(R) ? "hover:bg-[rgba(255,255,255,0.2)] dark:hover:bg-[var(--color-fill-3)]" : "hover:bg-[var(--color-fill-3)]"
|
|
@@ -1765,18 +1764,18 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1765
1764
|
onClick: tA((L) => s(g).toggleTabPin(R), ["stop"]),
|
|
1766
1765
|
title: "取消固定"
|
|
1767
1766
|
}, [
|
|
1768
|
-
|
|
1767
|
+
D(s(b), {
|
|
1769
1768
|
icon: "lucide:pin",
|
|
1770
1769
|
size: 12
|
|
1771
1770
|
})
|
|
1772
|
-
], 10, yB)) : (P(),
|
|
1771
|
+
], 10, yB)) : (P(), z("span", {
|
|
1773
1772
|
key: 1,
|
|
1774
1773
|
class: S(["flex items-center justify-center w-4 h-4 rounded-full transition-colors opacity-0 group-hover:opacity-100", [
|
|
1775
1774
|
B(R) ? "hover:bg-[rgba(255,255,255,0.2)] dark:hover:bg-[var(--color-fill-3)]" : "hover:bg-[var(--color-fill-3)]"
|
|
1776
1775
|
]]),
|
|
1777
|
-
onClick: tA((L) =>
|
|
1776
|
+
onClick: tA((L) => e(R), ["stop"])
|
|
1778
1777
|
}, [
|
|
1779
|
-
|
|
1778
|
+
D(s(b), {
|
|
1780
1779
|
icon: "lucide:x",
|
|
1781
1780
|
size: 12
|
|
1782
1781
|
})
|
|
@@ -1792,41 +1791,41 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1792
1791
|
})
|
|
1793
1792
|
]),
|
|
1794
1793
|
I("div", xB, [
|
|
1795
|
-
|
|
1794
|
+
D(J, {
|
|
1796
1795
|
trigger: "click",
|
|
1797
1796
|
onSelect: H
|
|
1798
1797
|
}, {
|
|
1799
1798
|
content: t(() => [
|
|
1800
|
-
|
|
1799
|
+
D(d, { value: "reload" }, {
|
|
1801
1800
|
icon: t(() => [
|
|
1802
|
-
|
|
1801
|
+
D(s(b), { icon: "lucide:rotate-cw" })
|
|
1803
1802
|
]),
|
|
1804
1803
|
default: t(() => [
|
|
1805
1804
|
r[0] || (r[0] = V(" 重新加载 ", -1))
|
|
1806
1805
|
]),
|
|
1807
1806
|
_: 1
|
|
1808
1807
|
}),
|
|
1809
|
-
|
|
1808
|
+
D(d, { value: "close-current" }, {
|
|
1810
1809
|
icon: t(() => [
|
|
1811
|
-
|
|
1810
|
+
D(s(b), { icon: "lucide:x" })
|
|
1812
1811
|
]),
|
|
1813
1812
|
default: t(() => [
|
|
1814
1813
|
r[1] || (r[1] = V(" 关闭当前 ", -1))
|
|
1815
1814
|
]),
|
|
1816
1815
|
_: 1
|
|
1817
1816
|
}),
|
|
1818
|
-
|
|
1817
|
+
D(d, { value: "close-other" }, {
|
|
1819
1818
|
icon: t(() => [
|
|
1820
|
-
|
|
1819
|
+
D(s(b), { icon: "lucide:minus-circle" })
|
|
1821
1820
|
]),
|
|
1822
1821
|
default: t(() => [
|
|
1823
1822
|
r[2] || (r[2] = V(" 关闭其他 ", -1))
|
|
1824
1823
|
]),
|
|
1825
1824
|
_: 1
|
|
1826
1825
|
}),
|
|
1827
|
-
|
|
1826
|
+
D(d, { value: "close-all" }, {
|
|
1828
1827
|
icon: t(() => [
|
|
1829
|
-
|
|
1828
|
+
D(s(b), { icon: "lucide:trash-2" })
|
|
1830
1829
|
]),
|
|
1831
1830
|
default: t(() => [
|
|
1832
1831
|
r[3] || (r[3] = V(" 关闭全部 ", -1))
|
|
@@ -1836,7 +1835,7 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1836
1835
|
]),
|
|
1837
1836
|
default: t(() => [
|
|
1838
1837
|
I("div", pB, [
|
|
1839
|
-
|
|
1838
|
+
D(s(b), {
|
|
1840
1839
|
icon: "lucide:chevron-down",
|
|
1841
1840
|
size: 16
|
|
1842
1841
|
})
|
|
@@ -1848,7 +1847,7 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1848
1847
|
class: "flex items-center justify-center w-8 h-8 rounded-sm hover:bg-[var(--color-fill-3)] cursor-pointer text-[var(--color-text-2)] hover:text-[var(--color-text-1)] transition-colors",
|
|
1849
1848
|
onClick: w
|
|
1850
1849
|
}, [
|
|
1851
|
-
|
|
1850
|
+
D(s(b), {
|
|
1852
1851
|
icon: s(g).contentFullScreen ? "lucide:minimize" : "lucide:maximize",
|
|
1853
1852
|
size: 16
|
|
1854
1853
|
}, null, 8, ["icon"])
|
|
@@ -1861,37 +1860,37 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1861
1860
|
name: "LanguageToggle",
|
|
1862
1861
|
__name: "language-toggle",
|
|
1863
1862
|
setup(A) {
|
|
1864
|
-
const g = X([]);
|
|
1863
|
+
const { locale: g } = eg(), Q = VA(), C = X([]);
|
|
1865
1864
|
uA(() => {
|
|
1866
|
-
yA({ cXuhao: "LANG_V3" }).then((
|
|
1867
|
-
|
|
1865
|
+
yA({ cXuhao: "LANG_V3" }).then((w) => {
|
|
1866
|
+
C.value = w.result || [];
|
|
1868
1867
|
});
|
|
1869
1868
|
});
|
|
1870
|
-
const
|
|
1871
|
-
if (!
|
|
1872
|
-
const
|
|
1873
|
-
|
|
1869
|
+
const E = async (w) => {
|
|
1870
|
+
if (!w) return;
|
|
1871
|
+
const B = w;
|
|
1872
|
+
Q.onLocaleChange && await Q.onLocaleChange(B), await Dg(B);
|
|
1874
1873
|
};
|
|
1875
|
-
return (
|
|
1876
|
-
const
|
|
1877
|
-
return P(), y(
|
|
1874
|
+
return (w, B) => {
|
|
1875
|
+
const v = K("a-doption"), e = K("a-dropdown");
|
|
1876
|
+
return P(), y(e, {
|
|
1878
1877
|
trigger: "click",
|
|
1879
|
-
onSelect:
|
|
1878
|
+
onSelect: E
|
|
1880
1879
|
}, {
|
|
1881
1880
|
content: t(() => [
|
|
1882
|
-
(P(!0),
|
|
1883
|
-
key:
|
|
1884
|
-
value:
|
|
1881
|
+
(P(!0), z(q, null, BA(C.value, (M) => (P(), y(v, {
|
|
1882
|
+
key: M.id,
|
|
1883
|
+
value: M.cXuhao
|
|
1885
1884
|
}, CA({
|
|
1886
1885
|
default: t(() => [
|
|
1887
|
-
I("span", null, N(
|
|
1886
|
+
I("span", null, N(M.cName), 1)
|
|
1888
1887
|
]),
|
|
1889
1888
|
_: 2
|
|
1890
1889
|
}, [
|
|
1891
|
-
s(
|
|
1890
|
+
s(g) === M.cXuhao ? {
|
|
1892
1891
|
name: "suffix",
|
|
1893
1892
|
fn: t(() => [
|
|
1894
|
-
|
|
1893
|
+
D(s(b), {
|
|
1895
1894
|
icon: "lucide:check",
|
|
1896
1895
|
class: "text-[rgb(var(--primary-6))]"
|
|
1897
1896
|
})
|
|
@@ -1902,7 +1901,7 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1902
1901
|
]),
|
|
1903
1902
|
default: t(() => [
|
|
1904
1903
|
I("div", TB, [
|
|
1905
|
-
|
|
1904
|
+
D(s(b), {
|
|
1906
1905
|
icon: "lucide:languages",
|
|
1907
1906
|
size: 20
|
|
1908
1907
|
})
|
|
@@ -1918,16 +1917,16 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1918
1917
|
}, AC = { class: "header-actions flex items-center gap-4" }, gC = {
|
|
1919
1918
|
id: "layout-content-wrapper",
|
|
1920
1919
|
class: "flex flex-col flex-1 overflow-hidden"
|
|
1921
|
-
},
|
|
1920
|
+
}, FC = /* @__PURE__ */ p({
|
|
1922
1921
|
name: "BasicLayout",
|
|
1923
1922
|
__name: "index",
|
|
1924
1923
|
setup(A) {
|
|
1925
|
-
const g =
|
|
1924
|
+
const g = VA(), Q = QA(), C = RA(), E = rA(), w = YA(), B = X(!1), v = X([]), e = X([]), M = (l, o) => {
|
|
1926
1925
|
for (const r of l) {
|
|
1927
1926
|
if (r.path === o) return r;
|
|
1928
1927
|
if (r.children) {
|
|
1929
|
-
const
|
|
1930
|
-
if (
|
|
1928
|
+
const d = M(r.children, o);
|
|
1929
|
+
if (d) return d;
|
|
1931
1930
|
}
|
|
1932
1931
|
}
|
|
1933
1932
|
return null;
|
|
@@ -1935,10 +1934,10 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1935
1934
|
sA(
|
|
1936
1935
|
() => w.path,
|
|
1937
1936
|
(l) => {
|
|
1938
|
-
|
|
1939
|
-
const o =
|
|
1940
|
-
o && o.parents && o.parents.forEach((
|
|
1941
|
-
|
|
1937
|
+
v.value = [l];
|
|
1938
|
+
const o = M(Q.accessMenus, l);
|
|
1939
|
+
o && o.parents && o.parents.forEach((d) => {
|
|
1940
|
+
e.value.includes(d) || e.value.push(d);
|
|
1942
1941
|
});
|
|
1943
1942
|
},
|
|
1944
1943
|
{ immediate: !0 }
|
|
@@ -1952,13 +1951,13 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1952
1951
|
E.push(l);
|
|
1953
1952
|
};
|
|
1954
1953
|
return (l, o) => {
|
|
1955
|
-
const r = K("a-menu"),
|
|
1954
|
+
const r = K("a-menu"), d = K("a-layout-sider"), J = K("a-layout-header"), R = K("router-view"), L = K("a-layout-content"), EA = K("a-layout");
|
|
1956
1955
|
return P(), y(EA, {
|
|
1957
1956
|
class: "h-screen w-screen",
|
|
1958
1957
|
ref: "rootLayoutRef"
|
|
1959
1958
|
}, {
|
|
1960
1959
|
default: t(() => [
|
|
1961
|
-
s(C).contentFullScreen ? _("", !0) : (P(), y(
|
|
1960
|
+
s(C).contentFullScreen ? _("", !0) : (P(), y(d, {
|
|
1962
1961
|
key: 0,
|
|
1963
1962
|
breakpoint: "xl",
|
|
1964
1963
|
collapsible: "",
|
|
@@ -1970,7 +1969,7 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1970
1969
|
class: "h-full bg-[var(--color-bg-2)] border-r border-[var(--color-border)] flex flex-col [&>.arco-layout-sider-children]:flex [&>.arco-layout-sider-children]:flex-col [&>.arco-layout-sider-children]:overflow-hidden [&>.arco-layout-sider-children]:flex-1"
|
|
1971
1970
|
}, {
|
|
1972
1971
|
default: t(() => [
|
|
1973
|
-
s(g).logo?.enable ? (P(),
|
|
1972
|
+
s(g).logo?.enable ? (P(), z("div", {
|
|
1974
1973
|
key: 0,
|
|
1975
1974
|
class: "h-16 shrink-0 flex items-center justify-center border-b border-[var(--color-border)] gap-2 overflow-hidden whitespace-nowrap",
|
|
1976
1975
|
style: gA({ height: (s(g).header?.height ?? 64) + "px" })
|
|
@@ -1981,21 +1980,21 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
1981
1980
|
style: gA({ objectFit: s(g).logo?.fit || "contain" }),
|
|
1982
1981
|
alt: "Logo"
|
|
1983
1982
|
}, null, 12, _B),
|
|
1984
|
-
B.value ? _("", !0) : (P(),
|
|
1983
|
+
B.value ? _("", !0) : (P(), z("span", $B, N(s(g).app?.name || "Admin"), 1))
|
|
1985
1984
|
], 4)) : _("", !0),
|
|
1986
|
-
|
|
1985
|
+
D(s(NA), { class: "flex-1 overflow-hidden" }, {
|
|
1987
1986
|
default: t(() => [
|
|
1988
|
-
|
|
1989
|
-
"selected-keys":
|
|
1990
|
-
"onUpdate:selectedKeys": o[0] || (o[0] = (T) =>
|
|
1991
|
-
"open-keys":
|
|
1992
|
-
"onUpdate:openKeys": o[1] || (o[1] = (T) =>
|
|
1987
|
+
D(r, {
|
|
1988
|
+
"selected-keys": v.value,
|
|
1989
|
+
"onUpdate:selectedKeys": o[0] || (o[0] = (T) => v.value = T),
|
|
1990
|
+
"open-keys": e.value,
|
|
1991
|
+
"onUpdate:openKeys": o[1] || (o[1] = (T) => e.value = T),
|
|
1993
1992
|
onMenuItemClick: H,
|
|
1994
1993
|
style: { width: "100%" },
|
|
1995
1994
|
"auto-open": !0
|
|
1996
1995
|
}, {
|
|
1997
1996
|
default: t(() => [
|
|
1998
|
-
|
|
1997
|
+
D(zB, {
|
|
1999
1998
|
menus: s(Q).accessMenus
|
|
2000
1999
|
}, null, 8, ["menus"])
|
|
2001
2000
|
]),
|
|
@@ -2007,7 +2006,7 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
2007
2006
|
]),
|
|
2008
2007
|
_: 1
|
|
2009
2008
|
}, 8, ["width", "collapsed"])),
|
|
2010
|
-
|
|
2009
|
+
D(EA, { ref: "innerLayoutRef" }, {
|
|
2011
2010
|
default: t(() => [
|
|
2012
2011
|
s(C).contentFullScreen ? _("", !0) : (P(), y(J, {
|
|
2013
2012
|
key: 0,
|
|
@@ -2019,26 +2018,26 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
2019
2018
|
class: "cursor-pointer flex items-center p-1 rounded hover:bg-[var(--color-fill-3)] text-[var(--color-text-2)] hover:text-[var(--color-text-1)] transition-colors",
|
|
2020
2019
|
onClick: c
|
|
2021
2020
|
}, [
|
|
2022
|
-
|
|
2021
|
+
D(s(b), {
|
|
2023
2022
|
icon: B.value ? "lucide:panel-left-open" : "lucide:panel-left-close",
|
|
2024
2023
|
size: 24
|
|
2025
2024
|
}, null, 8, ["icon"])
|
|
2026
2025
|
]),
|
|
2027
|
-
|
|
2026
|
+
D(GB),
|
|
2028
2027
|
o[3] || (o[3] = I("div", { style: { flex: "1" } }, null, -1)),
|
|
2029
2028
|
I("div", AC, [
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2029
|
+
D(JB),
|
|
2030
|
+
D(hB),
|
|
2031
|
+
D(RB)
|
|
2033
2032
|
])
|
|
2034
2033
|
]),
|
|
2035
2034
|
_: 1
|
|
2036
2035
|
}, 8, ["style"])),
|
|
2037
2036
|
I("div", gC, [
|
|
2038
|
-
|
|
2039
|
-
|
|
2037
|
+
D(qB),
|
|
2038
|
+
D(L, { class: "flex-1 p-2 overflow-auto bg-[var(--color-fill-2)]" }, {
|
|
2040
2039
|
default: t(() => [
|
|
2041
|
-
|
|
2040
|
+
D(R)
|
|
2042
2041
|
]),
|
|
2043
2042
|
_: 1
|
|
2044
2043
|
})
|
|
@@ -2053,21 +2052,21 @@ const xg = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA8AAAAIcCAYAAAA5Xcd7AA
|
|
|
2053
2052
|
}
|
|
2054
2053
|
});
|
|
2055
2054
|
export {
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2055
|
+
FC as BasicLayout,
|
|
2056
|
+
jA as EFFECTS_CONFIG_KEY,
|
|
2057
|
+
MC as Login,
|
|
2059
2058
|
SA as RequestClient,
|
|
2060
2059
|
Kg as authenticateResponseInterceptor,
|
|
2061
|
-
|
|
2062
|
-
|
|
2060
|
+
cC as baseRequestClient,
|
|
2061
|
+
oC as createEffects,
|
|
2063
2062
|
ig as defaultResponseInterceptor,
|
|
2064
2063
|
Lg as errorMessageResponseInterceptor,
|
|
2065
|
-
|
|
2064
|
+
PC as findAllStaticFrontI18n,
|
|
2066
2065
|
jg as getEnterStrategy,
|
|
2067
2066
|
Sg as getSlideVerificationCode,
|
|
2068
2067
|
IA as globalConfig,
|
|
2069
2068
|
yA as queryByXuhao,
|
|
2070
2069
|
Vg as refreshTokenApi,
|
|
2071
2070
|
wA as requestClient,
|
|
2072
|
-
|
|
2071
|
+
VA as useEffectsConfig
|
|
2073
2072
|
};
|