@skyfox2000/webui 1.6.2 → 1.6.4
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/lib/assets/modules/{baseLayout-D6mTs3zS.js → baseLayout-9Hv2xP0D.js} +3 -3
- package/lib/assets/modules/{file-upload-B74s5Vtb.js → file-upload-BEB7Ig2N.js} +1 -1
- package/lib/assets/modules/{index-lmz2beMc.js → index-JAj15je-.js} +2 -2
- package/lib/assets/modules/{index-CXDKjQwi.js → index-ZDMvpXj5.js} +2 -2
- package/lib/assets/modules/{index-DP43BJ_M.js → index-kEckFtaA.js} +1 -1
- package/lib/assets/modules/{menuTabs-DGAhbfbK.js → menuTabs-CSJ0yT7g.js} +145 -142
- package/lib/assets/modules/{toolIcon-DTZ86PSe.js → toolIcon-Dcbc73H6.js} +1 -1
- package/lib/assets/modules/{upload-template-2YQlEeTh.js → upload-template-BxSAxxvr.js} +294 -274
- package/lib/assets/modules/{uploadList-DlwK6xXN.js → uploadList-DP03hr0k.js} +4 -4
- package/lib/es/AceEditor/index.js +3 -3
- package/lib/es/BasicLayout/index.js +2 -2
- package/lib/es/Error403/index.js +1 -1
- package/lib/es/Error404/index.js +1 -1
- package/lib/es/ExcelForm/index.js +4 -4
- package/lib/es/MenuLayout/index.js +2 -2
- package/lib/es/TemplateFile/index.js +4 -4
- package/lib/es/UploadForm/index.js +4 -4
- package/lib/stores/settingInfo.d.ts +3 -0
- package/lib/webui.es.js +13 -13
- package/package.json +1 -1
- package/src/components/layout/header/index.vue +4 -4
- package/src/locales/en-US.json +5 -0
- package/src/stores/settingInfo.ts +27 -5
- package/src/stores/userInfo.ts +13 -11
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as _, onMounted as I, createBlock as s, openBlock as o, unref as e, withCtx as l, createCommentVNode as r, createVNode as p, createElementVNode as x, createElementBlock as y, toDisplayString as g, renderSlot as h } from "vue";
|
|
2
2
|
import { Layout as i, LayoutSider as k } from "ant-design-vue";
|
|
3
|
-
import { a as b } from "./toolIcon-
|
|
4
|
-
import { I as C, _ as S, f as w, d as $, g as N } from "./menuTabs-
|
|
5
|
-
import { al as v, a as B, an as E } from "./upload-template-
|
|
3
|
+
import { a as b } from "./toolIcon-Dcbc73H6.js";
|
|
4
|
+
import { I as C, _ as S, f as w, d as $, g as N } from "./menuTabs-CSJ0yT7g.js";
|
|
5
|
+
import { al as v, a as B, an as E } from "./upload-template-BxSAxxvr.js";
|
|
6
6
|
import "@skyfox2000/microbase";
|
|
7
7
|
import "@skyfox2000/fapi";
|
|
8
8
|
import L from "vue-m-message";
|
|
@@ -4,7 +4,7 @@ var h = (i, e, a) => U(i, typeof e != "symbol" ? e + "" : e, a);
|
|
|
4
4
|
import { hostUrl as E } from "@skyfox2000/fapi";
|
|
5
5
|
import m from "dayjs";
|
|
6
6
|
import f from "vue-m-message";
|
|
7
|
-
import { $ as n, M as y, u as F } from "./upload-template-
|
|
7
|
+
import { $ as n, M as y, u as F } from "./upload-template-BxSAxxvr.js";
|
|
8
8
|
import { isMicroApp as g } from "@skyfox2000/microbase";
|
|
9
9
|
var l = /* @__PURE__ */ ((i) => (i.Pending = "pending", i.Uploading = "uploading", i.Success = "success", i.Error = "error", i.Online = "online", i.Offline = "offline", i))(l || {});
|
|
10
10
|
class M {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import H from "async-validator";
|
|
2
2
|
import { httpPost as $, ResStatus as M } from "@skyfox2000/fapi";
|
|
3
|
-
import { $ as d, i as U, av as V, L as j, u as T } from "./upload-template-
|
|
3
|
+
import { $ as d, i as U, av as V, L as j, u as T } from "./upload-template-BxSAxxvr.js";
|
|
4
4
|
import E from "vue-m-message";
|
|
5
5
|
import { defineComponent as S, useAttrs as B, createElementBlock as P, openBlock as y, createVNode as z, unref as v, mergeProps as _, computed as x, createBlock as D, withCtx as A, normalizeStyle as N } from "vue";
|
|
6
6
|
import { Spin as L, Alert as O } from "ant-design-vue";
|
|
7
|
-
import { _ as K } from "./toolIcon-
|
|
7
|
+
import { _ as K } from "./toolIcon-Dcbc73H6.js";
|
|
8
8
|
const W = (l) => {
|
|
9
9
|
const e = l.split(`
|
|
10
10
|
`).filter((i) => i.trim() !== "");
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as B, provide as N, ref as A, watch as m, onMounted as V, createBlock as r, openBlock as d, unref as o, withCtx as n, createElementVNode as $, renderSlot as C, createVNode as D, createCommentVNode as u, createTextVNode as v, toDisplayString as f } from "vue";
|
|
2
|
-
import { _ as c } from "./index-
|
|
2
|
+
import { _ as c } from "./index-kEckFtaA.js";
|
|
3
3
|
import { Modal as E, Space as M } from "ant-design-vue";
|
|
4
4
|
import "@skyfox2000/fapi";
|
|
5
|
-
import { P, d as K, $ as p, o as U, b as j } from "./upload-template-
|
|
5
|
+
import { P, d as K, $ as p, o as U, b as j } from "./upload-template-BxSAxxvr.js";
|
|
6
6
|
import "vue-m-message";
|
|
7
7
|
import "@skyfox2000/microbase";
|
|
8
8
|
import "async-validator";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as d, useAttrs as f, createElementBlock as u, openBlock as x, createVNode as e, withCtx as n, unref as o, mergeProps as r, renderSlot as p } from "vue";
|
|
2
2
|
import { Button as _ } from "ant-design-vue";
|
|
3
|
-
import { a as P, _ as k } from "./toolIcon-
|
|
3
|
+
import { a as P, _ as k } from "./toolIcon-Dcbc73H6.js";
|
|
4
4
|
const C = /* @__PURE__ */ d({
|
|
5
5
|
inheritAttrs: !1,
|
|
6
6
|
__name: "index",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as x, createBlock as
|
|
2
|
-
import { a as A, _ as k } from "./toolIcon-
|
|
3
|
-
import { c as D, Y as
|
|
1
|
+
import { defineComponent as x, createBlock as _, createCommentVNode as h, openBlock as c, unref as t, mergeProps as $, useAttrs as Y, computed as O, ref as b, watch as S, withCtx as m, createElementBlock as f, normalizeStyle as T, createElementVNode as g, inject as Z, onMounted as P, createVNode as u, toDisplayString as C, Fragment as L, renderList as U, createTextVNode as G, reactive as Q, nextTick as X, withModifiers as ee } from "vue";
|
|
2
|
+
import { a as A, _ as k } from "./toolIcon-Dcbc73H6.js";
|
|
3
|
+
import { c as D, Y as j, an as E, a1 as K, a0 as R, at as F, u as H, $ as w, M as te, as as V, au as ne, a as q, Z as oe, r as J, al as B } from "./upload-template-BxSAxxvr.js";
|
|
4
4
|
import { _ as se } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
-
import { theme as
|
|
5
|
+
import { theme as M, Breadcrumb as ie, Modal as ae, Flex as ce, Dropdown as le, Menu as W, MenuItem as re, LayoutHeader as ue, Space as pe, Tabs as de, TabPane as me } from "ant-design-vue";
|
|
6
6
|
import { isMicroApp as fe } from "@skyfox2000/microbase";
|
|
7
7
|
import { SERVER_HOST as N } from "@skyfox2000/fapi";
|
|
8
8
|
import "vue-m-message";
|
|
@@ -16,18 +16,18 @@ const ge = /* @__PURE__ */ x({
|
|
|
16
16
|
type: String
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
|
-
setup(
|
|
20
|
-
const o =
|
|
19
|
+
setup(l) {
|
|
20
|
+
const o = l, e = D({
|
|
21
21
|
iconUrl: `${N.APP_ICONS}`,
|
|
22
22
|
icon: o.icon
|
|
23
23
|
});
|
|
24
|
-
return (
|
|
24
|
+
return (r, i) => l.icon ? (c(), _(t(e), $({
|
|
25
25
|
key: 0,
|
|
26
|
-
icon:
|
|
26
|
+
icon: l.icon,
|
|
27
27
|
class: ["text-2xl", "align-middle", "w-6", "h-6"]
|
|
28
|
-
},
|
|
28
|
+
}, r.$attrs), null, 16, ["icon"])) : h("", !0);
|
|
29
29
|
}
|
|
30
|
-
}),
|
|
30
|
+
}), _e = ["xlink:href"], xe = /* @__PURE__ */ x({
|
|
31
31
|
inheritAttrs: !1,
|
|
32
32
|
__name: "index",
|
|
33
33
|
props: {
|
|
@@ -271,55 +271,55 @@ const ge = /* @__PURE__ */ x({
|
|
|
271
271
|
*/
|
|
272
272
|
"update:iconIndex"
|
|
273
273
|
],
|
|
274
|
-
setup(
|
|
275
|
-
const s = Y(), e =
|
|
274
|
+
setup(l, { emit: o }) {
|
|
275
|
+
const s = Y(), e = l, r = o, i = O(() => {
|
|
276
276
|
if (Array.isArray(e.size)) return e.size;
|
|
277
277
|
{
|
|
278
278
|
let a = e.size;
|
|
279
279
|
return [a, a];
|
|
280
280
|
}
|
|
281
|
-
}), n =
|
|
282
|
-
|
|
281
|
+
}), n = b(e.icon), p = b(e.iconIndex);
|
|
282
|
+
S(
|
|
283
283
|
() => e.icon,
|
|
284
284
|
(a) => {
|
|
285
285
|
n.value = a;
|
|
286
286
|
}
|
|
287
|
-
),
|
|
287
|
+
), S(
|
|
288
288
|
() => e.iconIndex,
|
|
289
289
|
(a) => {
|
|
290
290
|
p.value = a, n.value = e.icons[a];
|
|
291
291
|
}
|
|
292
292
|
);
|
|
293
|
-
const d =
|
|
293
|
+
const d = O({
|
|
294
294
|
get() {
|
|
295
295
|
return p.value;
|
|
296
296
|
},
|
|
297
297
|
set(a) {
|
|
298
|
-
p.value = a,
|
|
298
|
+
p.value = a, r("update:iconIndex", p.value);
|
|
299
299
|
}
|
|
300
300
|
});
|
|
301
301
|
e.icons.length > 0 ? (d.value = d.value >= e.icons.length ? 0 : d.value, n.value = e.icons[p.value]) : n.value = e.icon;
|
|
302
302
|
const I = (a) => {
|
|
303
303
|
if (a.stopPropagation(), e.clickEvent) {
|
|
304
|
-
const
|
|
305
|
-
|
|
304
|
+
const v = e.clickEvent.split("#");
|
|
305
|
+
v.length === 2 && Z("$" + v[0]).$emit(v[1], e.data);
|
|
306
306
|
}
|
|
307
|
-
e.autoSwitch && e.icons.length > 0 && (d.value = (d.value + 1) % e.icons.length, n.value = e.icons[p.value]),
|
|
308
|
-
},
|
|
307
|
+
e.autoSwitch && e.icons.length > 0 && (d.value = (d.value + 1) % e.icons.length, n.value = e.icons[p.value]), r("click");
|
|
308
|
+
}, y = () => {
|
|
309
309
|
let a = "";
|
|
310
310
|
return e.spin && (a += "rotate"), e.flip && (a += " flip"), a;
|
|
311
311
|
};
|
|
312
|
-
return (a,
|
|
312
|
+
return (a, v) => (c(), _(A, {
|
|
313
313
|
title: e.tiptext,
|
|
314
314
|
disabled: e.tiptext ? void 0 : "disabled",
|
|
315
|
-
color:
|
|
316
|
-
placement:
|
|
317
|
-
size:
|
|
315
|
+
color: l.tipcolor,
|
|
316
|
+
placement: l.placement,
|
|
317
|
+
size: l.tipsize
|
|
318
318
|
}, {
|
|
319
319
|
default: m(() => {
|
|
320
320
|
var z;
|
|
321
321
|
return [
|
|
322
|
-
n.value ? (
|
|
322
|
+
n.value ? (c(), f("div", {
|
|
323
323
|
key: 0,
|
|
324
324
|
class: "re-icon-container",
|
|
325
325
|
style: T({
|
|
@@ -327,41 +327,41 @@ const ge = /* @__PURE__ */ x({
|
|
|
327
327
|
height: i.value[1].toString()
|
|
328
328
|
})
|
|
329
329
|
}, [
|
|
330
|
-
(z = n.value) != null && z.startsWith("sym-") ? (
|
|
331
|
-
class: ["re-icon symbol", [e.clickable ? "clickable" : "",
|
|
330
|
+
(z = n.value) != null && z.startsWith("sym-") ? (c(), f("svg", $({ key: 1 }, t(s), {
|
|
331
|
+
class: ["re-icon symbol", [e.clickable ? "clickable" : "", y(), e.className]],
|
|
332
332
|
"aria-hidden": "true",
|
|
333
333
|
style: {
|
|
334
334
|
top: e.position ? e.position[1] : 0,
|
|
335
335
|
left: e.position ? e.position[0] : 0,
|
|
336
336
|
fontSize: e.fontsize,
|
|
337
337
|
transformOrigin: e.center ?? "center center",
|
|
338
|
-
transform: t(
|
|
338
|
+
transform: t(j)(),
|
|
339
339
|
color: e.color
|
|
340
340
|
}
|
|
341
341
|
}), [
|
|
342
|
-
|
|
342
|
+
g("use", {
|
|
343
343
|
"xlink:href": "#icon-" + n.value.replace("sym-", "")
|
|
344
|
-
}, null, 8,
|
|
345
|
-
], 16)) : (
|
|
346
|
-
class: ["re-icon iconfont fontclass", [e.clickable ? "clickable" : "", "icon-" + n.value,
|
|
344
|
+
}, null, 8, _e)
|
|
345
|
+
], 16)) : (c(), f("i", $({ key: 0 }, t(s), {
|
|
346
|
+
class: ["re-icon iconfont fontclass", [e.clickable ? "clickable" : "", "icon-" + n.value, y(), e.className]],
|
|
347
347
|
style: {
|
|
348
348
|
top: e.position ? e.position[1] : 1,
|
|
349
349
|
left: e.position ? e.position[0] : 0,
|
|
350
350
|
fontSize: e.fontsize,
|
|
351
351
|
transformOrigin: e.center ?? "center center",
|
|
352
|
-
transform: t(
|
|
352
|
+
transform: t(j)(e.angle, e.flip),
|
|
353
353
|
color: e.color
|
|
354
354
|
},
|
|
355
355
|
"aria-hidden": "true",
|
|
356
356
|
onClick: I
|
|
357
357
|
}), null, 16))
|
|
358
|
-
], 4)) :
|
|
358
|
+
], 4)) : h("", !0)
|
|
359
359
|
];
|
|
360
360
|
}),
|
|
361
361
|
_: 1
|
|
362
362
|
}, 8, ["title", "disabled", "color", "placement", "size"]));
|
|
363
363
|
}
|
|
364
|
-
}),
|
|
364
|
+
}), We = /* @__PURE__ */ se(xe, [["__scopeId", "data-v-0146f00c"]]), ye = /* @__PURE__ */ x({
|
|
365
365
|
__name: "projectIcon",
|
|
366
366
|
props: {
|
|
367
367
|
icon: {
|
|
@@ -378,66 +378,66 @@ const ge = /* @__PURE__ */ x({
|
|
|
378
378
|
default: !0
|
|
379
379
|
}
|
|
380
380
|
},
|
|
381
|
-
setup(
|
|
382
|
-
const o =
|
|
381
|
+
setup(l) {
|
|
382
|
+
const o = l, e = D({
|
|
383
383
|
iconUrl: `${o.iconUrl ?? N.PROJECT_ICONS ?? N.TOOL_ICONS}`,
|
|
384
384
|
monoColor: o.monoColor,
|
|
385
385
|
icon: o.icon,
|
|
386
386
|
icons: o.icons
|
|
387
387
|
});
|
|
388
|
-
return (
|
|
388
|
+
return (r, i) => l.icon || l.icons ? (c(), _(t(e), $({
|
|
389
389
|
key: 0,
|
|
390
|
-
icon:
|
|
391
|
-
icons:
|
|
390
|
+
icon: l.icon,
|
|
391
|
+
icons: l.icons,
|
|
392
392
|
class: ["align-middle"]
|
|
393
|
-
},
|
|
393
|
+
}, r.$attrs), null, 16, ["icon", "icons"])) : h("", !0);
|
|
394
394
|
}
|
|
395
395
|
}), he = { class: "text-xs leading-[3]" }, ve = {
|
|
396
396
|
key: 0,
|
|
397
397
|
class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]"
|
|
398
398
|
}, be = /* @__PURE__ */ x({
|
|
399
399
|
__name: "index",
|
|
400
|
-
setup(
|
|
401
|
-
const { useToken: o } =
|
|
402
|
-
return
|
|
400
|
+
setup(l) {
|
|
401
|
+
const { useToken: o } = M, { token: s } = o(), e = E();
|
|
402
|
+
return S(
|
|
403
403
|
() => e.TabActive,
|
|
404
404
|
() => K()
|
|
405
405
|
), P(() => {
|
|
406
406
|
K();
|
|
407
|
-
}), (
|
|
407
|
+
}), (r, i) => (c(), f("div", {
|
|
408
408
|
class: "ml-5 h-fit p-0 flex items-center justify-between",
|
|
409
409
|
style: T({
|
|
410
410
|
backgroundColor: t(s).colorBgContainer
|
|
411
411
|
})
|
|
412
412
|
}, [
|
|
413
|
-
|
|
413
|
+
u(t(k), {
|
|
414
414
|
icon: "icon-home",
|
|
415
415
|
class: "w-[15px] h-[15px]"
|
|
416
416
|
}),
|
|
417
|
-
i[0] || (i[0] =
|
|
418
|
-
|
|
417
|
+
i[0] || (i[0] = g("span", { class: "leading-[2.5] mx-[6px] text-[rgba(0,0,0,0.45)]" }, ">", -1)),
|
|
418
|
+
u(t(ie), {
|
|
419
419
|
routes: t(R),
|
|
420
420
|
separator: ""
|
|
421
421
|
}, {
|
|
422
422
|
itemRender: m(({ route: n }) => [
|
|
423
|
-
|
|
424
|
-
|
|
423
|
+
g("span", he, C(n.breadcrumbName), 1),
|
|
424
|
+
u(t(k), {
|
|
425
425
|
icon: n.icon,
|
|
426
426
|
fontsize: "15px"
|
|
427
427
|
}, null, 8, ["icon"]),
|
|
428
|
-
n.index < t(R).length - 1 ? (
|
|
428
|
+
n.index < t(R).length - 1 ? (c(), f("span", ve, ">")) : h("", !0)
|
|
429
429
|
]),
|
|
430
430
|
_: 1
|
|
431
431
|
}, 8, ["routes"])
|
|
432
432
|
], 4));
|
|
433
433
|
}
|
|
434
|
-
}), ke = { class: "font-['Courier'] text-[#666]" },
|
|
434
|
+
}), ke = { class: "font-['Courier'] text-[#666]" }, we = /* @__PURE__ */ x({
|
|
435
435
|
__name: "index",
|
|
436
|
-
setup(
|
|
437
|
-
const o =
|
|
436
|
+
setup(l) {
|
|
437
|
+
const o = b("");
|
|
438
438
|
return P(() => {
|
|
439
439
|
setInterval(() => {
|
|
440
|
-
const s = /* @__PURE__ */ new Date(), e = F(),
|
|
440
|
+
const s = /* @__PURE__ */ new Date(), e = F(), r = {
|
|
441
441
|
year: "numeric",
|
|
442
442
|
month: "2-digit",
|
|
443
443
|
day: "2-digit",
|
|
@@ -446,53 +446,53 @@ const ge = /* @__PURE__ */ x({
|
|
|
446
446
|
second: "2-digit",
|
|
447
447
|
hour12: !1
|
|
448
448
|
};
|
|
449
|
-
o.value = s.toLocaleString(e,
|
|
449
|
+
o.value = s.toLocaleString(e, r);
|
|
450
450
|
}, 1e3);
|
|
451
|
-
}), (s, e) => (
|
|
451
|
+
}), (s, e) => (c(), f("div", ke, C(o.value), 1));
|
|
452
452
|
}
|
|
453
|
-
}),
|
|
453
|
+
}), Se = { style: { margin: "0 0 0 20px", "font-weight": "400", "font-size": "16px" } }, Ce = /* @__PURE__ */ x({
|
|
454
454
|
__name: "headerExits",
|
|
455
|
-
setup(
|
|
456
|
-
const o = H(), s =
|
|
455
|
+
setup(l) {
|
|
456
|
+
const o = H(), s = b(!1), e = () => {
|
|
457
457
|
s.value = !1, fe() ? te.userLogout() : o.logout(!0);
|
|
458
458
|
};
|
|
459
|
-
return (
|
|
460
|
-
|
|
461
|
-
title: t(
|
|
459
|
+
return (r, i) => (c(), f(L, null, [
|
|
460
|
+
u(t(A), {
|
|
461
|
+
title: t(w)("webui.components.layout.header.exitPlatform")
|
|
462
462
|
}, {
|
|
463
463
|
default: m(() => [
|
|
464
|
-
|
|
464
|
+
u(t(k), {
|
|
465
465
|
icon: "icon-logout",
|
|
466
466
|
onClick: i[0] || (i[0] = (n) => s.value = !0),
|
|
467
467
|
clickable: "",
|
|
468
468
|
class: "w-5 h-5",
|
|
469
|
-
title: t(
|
|
469
|
+
title: t(w)("webui.components.layout.header.exitSystem")
|
|
470
470
|
}, null, 8, ["title"])
|
|
471
471
|
]),
|
|
472
472
|
_: 1
|
|
473
473
|
}, 8, ["title"]),
|
|
474
|
-
|
|
474
|
+
u(t(ae), {
|
|
475
475
|
open: s.value,
|
|
476
476
|
"onUpdate:open": i[1] || (i[1] = (n) => s.value = n),
|
|
477
|
-
title: t(
|
|
478
|
-
"ok-text": t(
|
|
479
|
-
"cancel-text": t(
|
|
477
|
+
title: t(w)("webui.components.layout.header.confirmExit"),
|
|
478
|
+
"ok-text": t(w)("webui.common.confirm"),
|
|
479
|
+
"cancel-text": t(w)("webui.common.cancel"),
|
|
480
480
|
width: 380,
|
|
481
481
|
onOk: e
|
|
482
482
|
}, {
|
|
483
483
|
default: m(() => [
|
|
484
|
-
|
|
484
|
+
u(t(ce), {
|
|
485
485
|
align: "center",
|
|
486
486
|
justify: "flex-start",
|
|
487
487
|
style: { padding: "0 32px", margin: "20px 0" }
|
|
488
488
|
}, {
|
|
489
489
|
default: m(() => [
|
|
490
|
-
|
|
490
|
+
u(t(k), {
|
|
491
491
|
icon: "icon-question-circle",
|
|
492
492
|
color: "orange",
|
|
493
493
|
class: "w-[60px] h-[60px]"
|
|
494
494
|
}),
|
|
495
|
-
|
|
495
|
+
g("div", Se, C(t(w)("webui.components.layout.header.exitConfirmMessage")), 1)
|
|
496
496
|
]),
|
|
497
497
|
_: 1
|
|
498
498
|
})
|
|
@@ -503,15 +503,15 @@ const ge = /* @__PURE__ */ x({
|
|
|
503
503
|
}
|
|
504
504
|
}), Ie = { class: "flex items-center flex-nowrap" }, $e = { class: "mr-2 text-sm whitespace-nowrap" }, Te = /* @__PURE__ */ x({
|
|
505
505
|
__name: "user",
|
|
506
|
-
setup(
|
|
506
|
+
setup(l) {
|
|
507
507
|
const o = H().userInfo;
|
|
508
|
-
return (s, e) => (
|
|
508
|
+
return (s, e) => (c(), _(t(A), {
|
|
509
509
|
title: t(o).Name
|
|
510
510
|
}, {
|
|
511
511
|
default: m(() => [
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
512
|
+
g("div", Ie, [
|
|
513
|
+
g("span", $e, C(t(o).Name), 1),
|
|
514
|
+
u(t(ge), { icon: "icon-account" })
|
|
515
515
|
])
|
|
516
516
|
]),
|
|
517
517
|
_: 1
|
|
@@ -519,24 +519,24 @@ const ge = /* @__PURE__ */ x({
|
|
|
519
519
|
}
|
|
520
520
|
}), Ae = { class: "flex items-center cursor-pointer" }, ze = /* @__PURE__ */ x({
|
|
521
521
|
__name: "language",
|
|
522
|
-
setup(
|
|
523
|
-
const o = V(), s =
|
|
522
|
+
setup(l) {
|
|
523
|
+
const o = V(), s = b(F()), e = o.length > 0, r = async (i) => {
|
|
524
524
|
try {
|
|
525
525
|
await ne(i), s.value = i, window.location.reload();
|
|
526
526
|
} catch (n) {
|
|
527
527
|
console.error("Failed to change language:", n);
|
|
528
528
|
}
|
|
529
529
|
};
|
|
530
|
-
return (i, n) => e ? (
|
|
530
|
+
return (i, n) => e ? (c(), _(t(le), {
|
|
531
531
|
key: 0,
|
|
532
532
|
placement: "bottomRight"
|
|
533
533
|
}, {
|
|
534
534
|
overlay: m(() => [
|
|
535
|
-
|
|
535
|
+
u(t(W), null, {
|
|
536
536
|
default: m(() => [
|
|
537
|
-
(
|
|
537
|
+
(c(!0), f(L, null, U(t(o), (p) => (c(), _(t(re), {
|
|
538
538
|
key: p.key,
|
|
539
|
-
onClick: (d) =>
|
|
539
|
+
onClick: (d) => r(p.key)
|
|
540
540
|
}, {
|
|
541
541
|
default: m(() => [
|
|
542
542
|
G(C(p.label), 1)
|
|
@@ -548,26 +548,29 @@ const ge = /* @__PURE__ */ x({
|
|
|
548
548
|
})
|
|
549
549
|
]),
|
|
550
550
|
default: m(() => [
|
|
551
|
-
|
|
552
|
-
|
|
551
|
+
g("div", Ae, [
|
|
552
|
+
u(t(k), {
|
|
553
553
|
icon: "icon-language",
|
|
554
554
|
class: "w-[18px] h-[18px]"
|
|
555
555
|
})
|
|
556
556
|
])
|
|
557
557
|
]),
|
|
558
558
|
_: 1
|
|
559
|
-
})) :
|
|
559
|
+
})) : h("", !0);
|
|
560
560
|
}
|
|
561
561
|
}), Be = { class: "flex items-center" }, Ne = {
|
|
562
562
|
key: 1,
|
|
563
563
|
class: "w-[1px] h-[16px] bg-[#d9d9d9] mx-[3px]"
|
|
564
|
-
},
|
|
564
|
+
}, Pe = {
|
|
565
|
+
key: 2,
|
|
566
|
+
class: "w-[1px] h-[16px] bg-[#d9d9d9] mx-[3px]"
|
|
567
|
+
}, Ye = /* @__PURE__ */ x({
|
|
565
568
|
__name: "index",
|
|
566
|
-
setup(
|
|
567
|
-
const { useToken: o } =
|
|
569
|
+
setup(l) {
|
|
570
|
+
const { useToken: o } = M, { token: s } = o(), e = q(), r = () => {
|
|
568
571
|
e.setMenuCollapse(!e.menuCollapse);
|
|
569
|
-
}, i = V().length > 1;
|
|
570
|
-
return (n, p) => (
|
|
572
|
+
}, i = (e.showLanguage ?? !0) && V().length > 1;
|
|
573
|
+
return (n, p) => (c(), _(t(ue), {
|
|
571
574
|
class: "w-full relative z-[1] shadow-[0_-3px_6px_#000] py-0 flex items-center justify-between",
|
|
572
575
|
style: T({
|
|
573
576
|
height: "40px",
|
|
@@ -578,29 +581,29 @@ const ge = /* @__PURE__ */ x({
|
|
|
578
581
|
})
|
|
579
582
|
}, {
|
|
580
583
|
default: m(() => [
|
|
581
|
-
|
|
582
|
-
|
|
584
|
+
g("div", Be, [
|
|
585
|
+
u(t(k), {
|
|
583
586
|
icon: "icon-menu",
|
|
584
587
|
clickable: "",
|
|
585
588
|
class: "w-[18px] h-[18px]",
|
|
586
589
|
angle: t(e).menuCollapse ? 90 : 0,
|
|
587
|
-
onClick:
|
|
590
|
+
onClick: r
|
|
588
591
|
}, null, 8, ["angle"]),
|
|
589
|
-
|
|
592
|
+
u(be)
|
|
590
593
|
]),
|
|
591
|
-
|
|
592
|
-
|
|
594
|
+
g("div", null, [
|
|
595
|
+
u(t(pe), {
|
|
593
596
|
size: "middle",
|
|
594
597
|
class: "flex items-center"
|
|
595
598
|
}, {
|
|
596
599
|
default: m(() => [
|
|
597
|
-
|
|
598
|
-
p[0] || (p[0] =
|
|
599
|
-
i ? (
|
|
600
|
-
i ? (
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
600
|
+
u(we),
|
|
601
|
+
p[0] || (p[0] = g("div", { class: "w-[1px] h-[16px] bg-[#d9d9d9] mx-[3px]" }, null, -1)),
|
|
602
|
+
t(i) ? (c(), _(ze, { key: 0 })) : h("", !0),
|
|
603
|
+
t(i) ? (c(), f("div", Ne)) : h("", !0),
|
|
604
|
+
u(Te),
|
|
605
|
+
t(e).showExit ? (c(), f("div", Pe)) : h("", !0),
|
|
606
|
+
t(e).showExit ? (c(), _(Ce, { key: 3 })) : h("", !0)
|
|
604
607
|
]),
|
|
605
608
|
_: 1
|
|
606
609
|
})
|
|
@@ -609,95 +612,95 @@ const ge = /* @__PURE__ */ x({
|
|
|
609
612
|
_: 1
|
|
610
613
|
}, 8, ["style"]));
|
|
611
614
|
}
|
|
612
|
-
}),
|
|
615
|
+
}), Ze = /* @__PURE__ */ x({
|
|
613
616
|
__name: "index",
|
|
614
617
|
props: {
|
|
615
618
|
routes: {}
|
|
616
619
|
},
|
|
617
|
-
setup(
|
|
618
|
-
const o =
|
|
619
|
-
B().push(
|
|
620
|
-
}, p = q(), d =
|
|
621
|
-
let
|
|
622
|
-
const a =
|
|
623
|
-
a.pop(), s.value = [a.join("/")], p.menuCollapse || (d.value = [a.join("/")]), e.value = [
|
|
620
|
+
setup(l) {
|
|
621
|
+
const o = l, s = b([]), e = b([]), r = Q([]), i = E(), n = (y) => {
|
|
622
|
+
B().push(y.key.toString());
|
|
623
|
+
}, p = q(), d = b([]), I = () => {
|
|
624
|
+
let y = i.TabActive;
|
|
625
|
+
const a = y.split("/");
|
|
626
|
+
a.pop(), s.value = [a.join("/")], p.menuCollapse || (d.value = [a.join("/")]), e.value = [y];
|
|
624
627
|
};
|
|
625
|
-
return
|
|
628
|
+
return S(
|
|
626
629
|
() => p.menuCollapse,
|
|
627
|
-
(
|
|
628
|
-
|
|
630
|
+
(y) => {
|
|
631
|
+
y || (d.value = [], X(() => {
|
|
629
632
|
d.value = [...s.value];
|
|
630
633
|
}));
|
|
631
634
|
}
|
|
632
|
-
),
|
|
635
|
+
), S(
|
|
633
636
|
() => i.TabActive,
|
|
634
637
|
() => {
|
|
635
638
|
I();
|
|
636
639
|
}
|
|
637
640
|
), P(() => {
|
|
638
|
-
oe(o.routes,
|
|
639
|
-
}), (
|
|
641
|
+
oe(o.routes, r, ye, { class: "!w-5 !h-5" }), i.setTabActive(J.currentRoute.value.path), I();
|
|
642
|
+
}), (y, a) => (c(), _(t(W), {
|
|
640
643
|
openKeys: d.value,
|
|
641
|
-
"onUpdate:openKeys": a[0] || (a[0] = (
|
|
644
|
+
"onUpdate:openKeys": a[0] || (a[0] = (v) => d.value = v),
|
|
642
645
|
selectedKeys: e.value,
|
|
643
|
-
"onUpdate:selectedKeys": a[1] || (a[1] = (
|
|
646
|
+
"onUpdate:selectedKeys": a[1] || (a[1] = (v) => e.value = v),
|
|
644
647
|
mode: "inline",
|
|
645
648
|
theme: "dark",
|
|
646
|
-
items:
|
|
649
|
+
items: r,
|
|
647
650
|
onClick: n
|
|
648
651
|
}, null, 8, ["openKeys", "selectedKeys", "items"]));
|
|
649
652
|
}
|
|
650
|
-
}),
|
|
653
|
+
}), Le = { class: "flex items-center" }, Ee = { class: "flex" }, Me = ["onClick"], Ge = /* @__PURE__ */ x({
|
|
651
654
|
__name: "menuTabs",
|
|
652
|
-
setup(
|
|
653
|
-
const { useToken: o } =
|
|
654
|
-
|
|
655
|
+
setup(l) {
|
|
656
|
+
const { useToken: o } = M, { token: s } = o(), e = E();
|
|
657
|
+
S(
|
|
655
658
|
() => J.currentRoute.value.path,
|
|
656
659
|
(n) => {
|
|
657
660
|
n !== e.TabActive && e.setTabActive(n);
|
|
658
661
|
}
|
|
659
662
|
);
|
|
660
|
-
const
|
|
663
|
+
const r = (n) => {
|
|
661
664
|
B().push(n);
|
|
662
665
|
}, i = (n) => {
|
|
663
666
|
e.removeTabPane(n), B().push(e.TabActive);
|
|
664
667
|
};
|
|
665
|
-
return (n, p) => (
|
|
668
|
+
return (n, p) => (c(), f("div", {
|
|
666
669
|
style: T({ height: "38px", backgroundColor: t(s).colorBgBase })
|
|
667
670
|
}, [
|
|
668
|
-
|
|
671
|
+
u(t(de), {
|
|
669
672
|
activeKey: t(e).TabActive,
|
|
670
673
|
"hide-add": "",
|
|
671
674
|
size: "small",
|
|
672
675
|
tabBarStyle: { padding: "0 20px" },
|
|
673
|
-
onTabClick:
|
|
676
|
+
onTabClick: r
|
|
674
677
|
}, {
|
|
675
678
|
default: m(() => [
|
|
676
|
-
(
|
|
679
|
+
(c(!0), f(L, null, U(t(e).TabPanes, (d) => (c(), _(t(me), {
|
|
677
680
|
key: d.key
|
|
678
681
|
}, {
|
|
679
682
|
tab: m(() => [
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
+
g("div", Le, [
|
|
684
|
+
g("span", Ee, C(d.title), 1),
|
|
685
|
+
u(t(A), {
|
|
683
686
|
title: n.$t("webui.common.close"),
|
|
684
687
|
placement: "top",
|
|
685
688
|
size: "small"
|
|
686
689
|
}, {
|
|
687
690
|
default: m(() => [
|
|
688
|
-
t(e).TabPanes.length > 1 && d.closable ? (
|
|
691
|
+
t(e).TabPanes.length > 1 && d.closable ? (c(), f("div", {
|
|
689
692
|
key: 0,
|
|
690
693
|
class: "inline-block mx-auto relative flex items-center",
|
|
691
694
|
onClick: ee((I) => i(d.key), ["stop"])
|
|
692
695
|
}, [
|
|
693
|
-
|
|
696
|
+
u(t(k), {
|
|
694
697
|
icon: "icon-new",
|
|
695
698
|
angle: 45,
|
|
696
699
|
clickable: "",
|
|
697
700
|
class: "w-[15px] h-[15px] ml-1",
|
|
698
701
|
tipcolor: t(s).colorBgSpotlight
|
|
699
702
|
}, null, 8, ["tipcolor"])
|
|
700
|
-
], 8, Me)) :
|
|
703
|
+
], 8, Me)) : h("", !0)
|
|
701
704
|
]),
|
|
702
705
|
_: 2
|
|
703
706
|
}, 1032, ["title"])
|
|
@@ -712,13 +715,13 @@ const ge = /* @__PURE__ */ x({
|
|
|
712
715
|
}
|
|
713
716
|
});
|
|
714
717
|
export {
|
|
715
|
-
|
|
718
|
+
We as I,
|
|
716
719
|
ge as _,
|
|
717
720
|
ye as a,
|
|
718
721
|
be as b,
|
|
719
|
-
|
|
720
|
-
|
|
722
|
+
we as c,
|
|
723
|
+
Ye as d,
|
|
721
724
|
Ce as e,
|
|
722
|
-
|
|
723
|
-
|
|
725
|
+
Ze as f,
|
|
726
|
+
Ge as g
|
|
724
727
|
};
|