@opengis/admin 0.3.77 → 0.3.79
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/{add-page-CAIOJCHI.js → add-page-DHcV6ZVu.js} +5 -5
- package/dist/{admin-interface-BS39PBJt.js → admin-interface-sixpdw0Z.js} +12 -12
- package/dist/{admin-view-CTng2Bgj.js → admin-view-CyAdQyhH.js} +43 -43
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +73 -73
- package/dist/{card-view-Dm_mixDf.js → card-view-fIhBcWi3.js} +3 -3
- package/dist/{edit-page-CvPLXtsE.js → edit-page-sxUa27zw.js} +8 -8
- package/dist/{import-file-BSRkcRkP.js → import-file-DyHdxyPP.js} +18505 -18375
- package/dist/{profile-page--JAUPzak.js → profile-page-DmjElRBr.js} +4 -4
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/server/helpers/core/buttonHelper.js +2 -2
- package/server/helpers/utils/buttonDel.js +24 -5
- package/server/helpers/utils/buttonEdit.js +17 -4
@@ -1,5 +1,5 @@
|
|
1
|
-
import { _ as d,
|
2
|
-
import { resolveComponent as b,
|
1
|
+
import { _ as d, f as m, u as f, s as g } from "./import-file-DyHdxyPP.js";
|
2
|
+
import { resolveComponent as b, createElementBlock as x, openBlock as h, createElementVNode as i, normalizeClass as y, normalizeStyle as p, createBlock as w, createCommentVNode as v } from "vue";
|
3
3
|
const $ = {
|
4
4
|
data() {
|
5
5
|
return {
|
@@ -16,7 +16,7 @@ const $ = {
|
|
16
16
|
},
|
17
17
|
computed: {
|
18
18
|
color() {
|
19
|
-
return
|
19
|
+
return g.value.buttonColor || "blue";
|
20
20
|
}
|
21
21
|
},
|
22
22
|
methods: {
|
@@ -28,7 +28,7 @@ const $ = {
|
|
28
28
|
},
|
29
29
|
async getFormScheme() {
|
30
30
|
var l, o;
|
31
|
-
const t = this.flattenMenu(
|
31
|
+
const t = this.flattenMenu(f.value);
|
32
32
|
t != null && t.length || this.$router.replace("/404");
|
33
33
|
const e = t == null ? void 0 : t.find((s) => {
|
34
34
|
var r, n;
|
@@ -41,7 +41,7 @@ const $ = {
|
|
41
41
|
const s = await m.get(`/api/table-data/${a}`), { data: r } = await m.get(
|
42
42
|
`/api/template/form/${(l = s == null ? void 0 : s.data) == null ? void 0 : l.form}`
|
43
43
|
);
|
44
|
-
this.scheme = (r == null ? void 0 : r.schema) || r, this.style = (r == null ? void 0 : r.style) || null, this.api = (r == null ? void 0 : r.api) || "", this.token = (o = s == null ? void 0 : s.data) == null ? void 0 : o.addToken;
|
44
|
+
this.scheme = (r == null ? void 0 : r.schema) || r, this.style = (r == null ? void 0 : r.style) || null, this.api = (r == null ? void 0 : r.api) || "", this.token = ((o = s == null ? void 0 : s.data) == null ? void 0 : o.addToken) || "";
|
45
45
|
} catch {
|
46
46
|
}
|
47
47
|
},
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { _ as S, h as Je, i as Ge, j as Qe,
|
2
|
-
import {
|
1
|
+
import { _ as S, h as Je, i as Ge, j as Qe, f as M, I as Xe, s as E, k as Ue, l as Q, V as Ye, m as Ze, n as et, o as tt, A as X, p as st, b as nt, q as at, r as lt, a as rt, t as ot, u as Ee } from "./import-file-DyHdxyPP.js";
|
2
|
+
import { createElementBlock as i, openBlock as r, createTextVNode as P, createElementVNode as l, toDisplayString as A, createCommentVNode as k, normalizeClass as w, resolveComponent as f, Fragment as $, createVNode as x, withCtx as D, createBlock as v, renderList as V, withModifiers as it, createStaticVNode as dt, withDirectives as U, vModelCheckbox as ut, Transition as W, vModelText as ct, renderSlot as ht, vShow as Y, Teleport as pt, getCurrentInstance as Re, ref as J, resolveDynamicComponent as G, defineComponent as bt, withKeys as ft, normalizeStyle as K } from "vue";
|
3
3
|
const gt = {
|
4
4
|
data() {
|
5
5
|
return {
|
@@ -101,9 +101,9 @@ function vt(t, e, n, o, s, a) {
|
|
101
101
|
}
|
102
102
|
const kt = /* @__PURE__ */ S(gt, [["render", vt]]), _t = {
|
103
103
|
components: {
|
104
|
-
IconMore:
|
104
|
+
IconMore: Qe,
|
105
105
|
IconDelete: Ge,
|
106
|
-
IconEdit:
|
106
|
+
IconEdit: Je
|
107
107
|
},
|
108
108
|
emits: ["updateTable"],
|
109
109
|
props: {
|
@@ -774,10 +774,10 @@ const Vs = /* @__PURE__ */ S($s, [["render", Ds], ["__scopeId", "data-v-c6318482
|
|
774
774
|
components: {
|
775
775
|
AdminComponentIs: X,
|
776
776
|
AdminTree: Vs,
|
777
|
-
VsNoData:
|
778
|
-
VsWidgetComments:
|
779
|
-
VsWidgetMap:
|
780
|
-
VsWidgetFileList:
|
777
|
+
VsNoData: tt,
|
778
|
+
VsWidgetComments: et,
|
779
|
+
VsWidgetMap: Ze,
|
780
|
+
VsWidgetFileList: Ye
|
781
781
|
},
|
782
782
|
props: { table: String, columns: Array, row: Object }
|
783
783
|
}, Fs = {
|
@@ -1252,11 +1252,11 @@ const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
|
|
1252
1252
|
// AdminTablePrint,
|
1253
1253
|
AdminTableColumnsHidden: vs,
|
1254
1254
|
AdminTableColumn: kt,
|
1255
|
-
AdminNodata:
|
1255
|
+
AdminNodata: ot,
|
1256
1256
|
IconPlus: Q,
|
1257
|
-
IconSearch:
|
1257
|
+
IconSearch: rt,
|
1258
1258
|
AdminTableCardInfo: Ns,
|
1259
|
-
IconOpenCard:
|
1259
|
+
IconOpenCard: lt,
|
1260
1260
|
AdminComponentIs: X,
|
1261
1261
|
AdminTableFilters: Ws,
|
1262
1262
|
AdminTableTabs: Xs,
|
@@ -1330,7 +1330,7 @@ const In = /* @__PURE__ */ S(vn, [["render", An]]), Dn = {
|
|
1330
1330
|
this.tableData = null, this.columnsWidth = {}, await this.getTableData();
|
1331
1331
|
},
|
1332
1332
|
searchValue: {
|
1333
|
-
handler:
|
1333
|
+
handler: at(async function(t) {
|
1334
1334
|
var e;
|
1335
1335
|
this.page = 1, await this.getTableData(), this.$router.push({
|
1336
1336
|
...this.$route,
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import { _ as y, I as K, s as g, a as X, u as A, b as se, c as Y, d as ue, e as
|
1
|
+
import { createElementBlock as u, openBlock as n, createElementVNode as o, createStaticVNode as Q, resolveComponent as p, createCommentVNode as w, createVNode as h, normalizeClass as f, createTextVNode as V, toDisplayString as B, Transition as q, withCtx as _, withDirectives as W, Fragment as U, renderList as P, vShow as J, createBlock as T, resolveDynamicComponent as F, ref as le, onMounted as ae, computed as oe, withModifiers as ne } from "vue";
|
2
|
+
import { _ as y, I as K, s as g, a as X, u as A, b as se, c as Y, d as ue, e as ie, f as de, g as ce } from "./import-file-DyHdxyPP.js";
|
3
3
|
import "./user-B_2kh6ic.js";
|
4
4
|
const he = {}, ge = {
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -95,16 +95,16 @@ const ee = /* @__PURE__ */ y(fe, [["render", xe]]), ve = {
|
|
95
95
|
class: "py-0.5 px-2 inline-flex items-center gap-x-1.5 text-xs font-medium bg-blue-100 text-blue-800 rounded-full dark:bg-blue-500/10 dark:text-blue-500"
|
96
96
|
}, _e = { key: 1 }, we = ["innerHTML"];
|
97
97
|
function ye(t, e, r, s, a, l) {
|
98
|
-
var
|
98
|
+
var d, v, m, H, E, k, C, z, M, $, I, O, D, j, N;
|
99
99
|
const b = p("IconChevronDown"), x = p("router-link");
|
100
|
-
return (
|
100
|
+
return (d = r.route) != null && d.menu ? (n(), u("div", me, [
|
101
101
|
o("button", {
|
102
102
|
onClick: e[0] || (e[0] = (c) => a.isOpen = !a.isOpen),
|
103
103
|
class: f(["flex items-center justify-start w-full px-3 py-2 text-sm text-left text-gray-800 duration-300 border-none rounded-lg cursor-pointer gap-x-3 focus:outline-none hover:bg-gray-100", [
|
104
104
|
((m = (v = r.route) == null ? void 0 : v.menu) == null ? void 0 : m.some(
|
105
105
|
(c) => {
|
106
|
-
var
|
107
|
-
return (c == null ? void 0 : c.path) === t.$route.path.replace("/", "") || (c == null ? void 0 : c.table) === ((L = (
|
106
|
+
var i, L;
|
107
|
+
return (c == null ? void 0 : c.path) === t.$route.path.replace("/", "") || (c == null ? void 0 : c.table) === ((L = (i = t.$route) == null ? void 0 : i.params) == null ? void 0 : L.table) && (c == null ? void 0 : c.table);
|
108
108
|
}
|
109
109
|
)) && (l.darkMode ? "bg-white/10" : "bg-gray-100"),
|
110
110
|
{
|
@@ -128,17 +128,17 @@ function ye(t, e, r, s, a, l) {
|
|
128
128
|
W(o("ul", {
|
129
129
|
class: f(["ml-[28px] pt-[6px] before:block before:absolute relative w-[calc(100%-28px)] flex-col gap-y-1.5 inline-flex before:w-[2px] before:h-[100%] before:left-[-10px] cursor-pointer", l.darkMode ? "before:bg-white/10" : "before:bg-gray-100"])
|
130
130
|
}, [
|
131
|
-
(n(!0), u(U, null, P((c = r.route) == null ? void 0 : c.menu, (
|
131
|
+
(n(!0), u(U, null, P((c = r.route) == null ? void 0 : c.menu, (i, L) => {
|
132
132
|
var Z, S;
|
133
133
|
return n(), u("li", {
|
134
134
|
key: L,
|
135
135
|
class: "w-full"
|
136
136
|
}, [
|
137
137
|
h(x, {
|
138
|
-
innerHTML: l.highLight(
|
139
|
-
to: "/" + (
|
138
|
+
innerHTML: l.highLight(i == null ? void 0 : i.ua),
|
139
|
+
to: "/" + (i == null ? void 0 : i.path),
|
140
140
|
class: f([[
|
141
|
-
((
|
141
|
+
((i == null ? void 0 : i.path) === t.$route.path.replace("/", "") || ((S = (Z = t.$route) == null ? void 0 : Z.params) == null ? void 0 : S.table) === (i == null ? void 0 : i.table) && (i == null ? void 0 : i.table)) && (l.darkMode ? "bg-white/10" : "bg-gray-100"),
|
142
142
|
{
|
143
143
|
"text-white/80 hover:bg-white/10 hover:text-white/80 focus:bg-white/10": l.darkMode,
|
144
144
|
"text-gray-800 hover:bg-gray-100 hover:text-gray-800 focus:bg-gray-100": !l.darkMode
|
@@ -306,7 +306,7 @@ function Ge(t, e, r, s, a, l) {
|
|
306
306
|
ref: "langPopover"
|
307
307
|
}, {
|
308
308
|
reference: _(() => {
|
309
|
-
var
|
309
|
+
var d, v, m;
|
310
310
|
return [
|
311
311
|
o("button", {
|
312
312
|
type: "button",
|
@@ -317,7 +317,7 @@ function Ge(t, e, r, s, a, l) {
|
|
317
317
|
])
|
318
318
|
}, [
|
319
319
|
o("div", null, [
|
320
|
-
(n(), T(F((
|
320
|
+
(n(), T(F((d = l.selectedLang) == null ? void 0 : d.icon), { class: "w-[16px] h-[16px] rounded-full" }))
|
321
321
|
]),
|
322
322
|
o("span", Qe, B(a.currentLang === "ukraine" ? (v = l.selectedLang) == null ? void 0 : v.titleUA : (m = l.selectedLang) == null ? void 0 : m.titleEN), 1)
|
323
323
|
], 2)
|
@@ -325,16 +325,16 @@ function Ge(t, e, r, s, a, l) {
|
|
325
325
|
}),
|
326
326
|
default: _(() => [
|
327
327
|
o("div", null, [
|
328
|
-
(n(!0), u(U, null, P(a.languagesOptions, (
|
329
|
-
key:
|
328
|
+
(n(!0), u(U, null, P(a.languagesOptions, (d) => (n(), u("button", {
|
329
|
+
key: d.id,
|
330
330
|
type: "button",
|
331
|
-
onClick: (v) => l.changeLang(
|
332
|
-
class: f(["flex items-center gap-x-2 cursor-pointer dark:hs-selected:bg-neutral-800 py-2 px-4 w-full text-sm text-gray-800 hover:bg-gray-100 rounded-lg focus:outline-none focus:bg-gray-100 dark:text-neutral-300 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800 selected", (
|
331
|
+
onClick: (v) => l.changeLang(d.id),
|
332
|
+
class: f(["flex items-center gap-x-2 cursor-pointer dark:hs-selected:bg-neutral-800 py-2 px-4 w-full text-sm text-gray-800 hover:bg-gray-100 rounded-lg focus:outline-none focus:bg-gray-100 dark:text-neutral-300 dark:hover:bg-neutral-800 dark:focus:bg-neutral-800 selected", (d == null ? void 0 : d.id) === a.currentLang ? "bg-gray-100" : ""])
|
333
333
|
}, [
|
334
|
-
(n(), T(F(
|
335
|
-
o("div", Pe, B(a.currentLang === "ukraine" ?
|
334
|
+
(n(), T(F(d == null ? void 0 : d.icon), { class: "w-[16px] h-[16px] rounded-full" })),
|
335
|
+
o("div", Pe, B(a.currentLang === "ukraine" ? d == null ? void 0 : d.titleUA : d == null ? void 0 : d.titleEN), 1),
|
336
336
|
o("span", Fe, [
|
337
|
-
(
|
337
|
+
(d == null ? void 0 : d.id) === a.currentLang ? (n(), T(b, { key: 0 })) : w("", !0)
|
338
338
|
])
|
339
339
|
], 10, Ae))), 128))
|
340
340
|
])
|
@@ -404,7 +404,7 @@ const re = /* @__PURE__ */ y(Ze, [["render", Ge]]), Re = {
|
|
404
404
|
};
|
405
405
|
function et(t, e, r, s, a, l) {
|
406
406
|
var v;
|
407
|
-
const b = p("VsText"), x = p("NavbarItem"),
|
407
|
+
const b = p("VsText"), x = p("NavbarItem"), d = p("NavbarFooter");
|
408
408
|
return n(), u("div", {
|
409
409
|
class: f(["lg:flex lg:relative lg:left-0 flex-col h-[100vh] pt-3 border-r w-[260px] top-0 bottom-0 shrink-0 absolute transition left-[-100%] z-[11]", {
|
410
410
|
"left-0": t.$parent.showMenu,
|
@@ -462,14 +462,14 @@ function et(t, e, r, s, a, l) {
|
|
462
462
|
}, " Не знайдено ", 2))
|
463
463
|
])
|
464
464
|
], 2),
|
465
|
-
l.docs || l.languages ? (n(), T(
|
465
|
+
l.docs || l.languages ? (n(), T(d, {
|
466
466
|
key: 0,
|
467
467
|
docs: l.docs,
|
468
468
|
languages: l.languages
|
469
469
|
}, null, 8, ["docs", "languages"])) : w("", !0)
|
470
470
|
], 2);
|
471
471
|
}
|
472
|
-
const R = /* @__PURE__ */ y(Re, [["render", et], ["__scopeId", "data-v-
|
472
|
+
const R = /* @__PURE__ */ y(Re, [["render", et], ["__scopeId", "data-v-7817bab2"]]), tt = {
|
473
473
|
components: { IconChevronDown: K },
|
474
474
|
props: { route: Object, searchable: String },
|
475
475
|
mounted() {
|
@@ -522,16 +522,16 @@ const R = /* @__PURE__ */ y(Re, [["render", et], ["__scopeId", "data-v-d8b78d9f"
|
|
522
522
|
class: "py-0.5 px-2 inline-flex items-center gap-x-1.5 text-xs font-medium bg-blue-100 text-blue-800 rounded-full dark:bg-blue-500/10 dark:text-blue-500"
|
523
523
|
}, at = { class: "ml-[28px] pt-[6px] before:block before:absolute relative w-[calc(100%-28px)] before:bg-gray-200 flex-col gap-y-1.5 inline-flex before:w-[2px] before:h-[100%] before:left-[-10px] cursor-pointer" }, ot = { key: 1 }, nt = ["innerHTML"];
|
524
524
|
function st(t, e, r, s, a, l) {
|
525
|
-
var
|
525
|
+
var d, v, m, H, E, k, C, z, M, $, I, O, D, j, N;
|
526
526
|
const b = p("IconChevronDown"), x = p("router-link");
|
527
|
-
return (
|
527
|
+
return (d = r.route) != null && d.menu ? (n(), u("div", rt, [
|
528
528
|
o("button", {
|
529
529
|
onClick: e[0] || (e[0] = (c) => a.isOpen = !a.isOpen),
|
530
530
|
class: f(["flex items-center justify-start w-full px-3 py-2 text-sm text-left text-gray-800 duration-300 border-none rounded-lg cursor-pointer gap-x-3 focus:outline-none hover:bg-gray-200", [
|
531
531
|
((m = (v = r.route) == null ? void 0 : v.menu) == null ? void 0 : m.some(
|
532
532
|
(c) => {
|
533
|
-
var
|
534
|
-
return (c == null ? void 0 : c.path) === t.$route.path.replace("/", "") || (c == null ? void 0 : c.table) === ((L = (
|
533
|
+
var i, L;
|
534
|
+
return (c == null ? void 0 : c.path) === t.$route.path.replace("/", "") || (c == null ? void 0 : c.table) === ((L = (i = t.$route) == null ? void 0 : i.params) == null ? void 0 : L.table) && (c == null ? void 0 : c.table);
|
535
535
|
}
|
536
536
|
)) && "bg-gray-200"
|
537
537
|
]])
|
@@ -549,17 +549,17 @@ function st(t, e, r, s, a, l) {
|
|
549
549
|
var c;
|
550
550
|
return [
|
551
551
|
W(o("ul", at, [
|
552
|
-
(n(!0), u(U, null, P((c = r.route) == null ? void 0 : c.menu, (
|
552
|
+
(n(!0), u(U, null, P((c = r.route) == null ? void 0 : c.menu, (i, L) => {
|
553
553
|
var Z, S;
|
554
554
|
return n(), u("li", {
|
555
555
|
key: L,
|
556
556
|
class: "w-full"
|
557
557
|
}, [
|
558
558
|
h(x, {
|
559
|
-
innerHTML: l.highLight(
|
560
|
-
to: "/" + (
|
559
|
+
innerHTML: l.highLight(i == null ? void 0 : i.ua),
|
560
|
+
to: "/" + (i == null ? void 0 : i.path),
|
561
561
|
class: f([[
|
562
|
-
((
|
562
|
+
((i == null ? void 0 : i.path) === t.$route.path.replace("/", "") || ((S = (Z = t.$route) == null ? void 0 : Z.params) == null ? void 0 : S.table) === (i == null ? void 0 : i.table) && (i == null ? void 0 : i.table)) && "bg-gray-200"
|
563
563
|
], "block px-3 py-2 text-sm rounded-lg focus:outline-none hover:bg-gray-200 focus:bg-gray-200"])
|
564
564
|
}, null, 8, ["innerHTML", "to", "class"])
|
565
565
|
]);
|
@@ -590,7 +590,7 @@ function st(t, e, r, s, a, l) {
|
|
590
590
|
}, 8, ["to", "class"])
|
591
591
|
]));
|
592
592
|
}
|
593
|
-
const ut = /* @__PURE__ */ y(tt, [["render", st]]),
|
593
|
+
const ut = /* @__PURE__ */ y(tt, [["render", st]]), it = { class: "relative w-fit mx-auto" }, dt = {
|
594
594
|
key: 0,
|
595
595
|
class: "w-60 duration absolute top-full left-0 z-20 bg-white rounded-xl shadow-xl block"
|
596
596
|
}, ct = { class: "p-1" }, ht = {
|
@@ -604,7 +604,7 @@ const ut = /* @__PURE__ */ y(tt, [["render", st]]), dt = { class: "relative w-fi
|
|
604
604
|
}), (r, s) => {
|
605
605
|
var l;
|
606
606
|
const a = p("router-link");
|
607
|
-
return n(), u("div",
|
607
|
+
return n(), u("div", it, [
|
608
608
|
o("button", {
|
609
609
|
onClick: s[0] || (s[0] = (b) => e.value = !e.value),
|
610
610
|
type: "button",
|
@@ -616,7 +616,7 @@ const ut = /* @__PURE__ */ y(tt, [["render", st]]), dt = { class: "relative w-fi
|
|
616
616
|
height: "16"
|
617
617
|
})
|
618
618
|
]),
|
619
|
-
e.value ? (n(), u("div",
|
619
|
+
e.value ? (n(), u("div", dt, [
|
620
620
|
o("div", ct, [
|
621
621
|
s[2] || (s[2] = o("a", {
|
622
622
|
class: "flex items-center gap-x-3 py-2 px-3 rounded-lg text-sm text-gray-800 hover:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none focus:outline-hidden focus:bg-gray-100 dark:text-neutral-300 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700",
|
@@ -726,7 +726,7 @@ const ut = /* @__PURE__ */ y(tt, [["render", st]]), dt = { class: "relative w-fi
|
|
726
726
|
class: "flex flex-col gap-y-1"
|
727
727
|
}, vt = { class: "h-[55px] border-t w-full px-5 shrink-0 lg:px-5 flex items-center" }, mt = { href: "/" }, kt = ["src"];
|
728
728
|
function _t(t, e, r, s, a, l) {
|
729
|
-
var
|
729
|
+
var d;
|
730
730
|
const b = p("NavbarUser"), x = p("NavbarItem");
|
731
731
|
return n(), u("div", {
|
732
732
|
class: f(["lg:flex lg:relative lg:left-0 flex-col h-[100vh] border-r w-[260px] bg-gray-100 top-0 bottom-0 shrink-0 absolute transition left-[-100%] z-[11]", {
|
@@ -741,7 +741,7 @@ function _t(t, e, r, s, a, l) {
|
|
741
741
|
])
|
742
742
|
}, [
|
743
743
|
o("nav", bt, [
|
744
|
-
(
|
744
|
+
(d = l.data) != null && d.length ? (n(), u("ul", xt, [
|
745
745
|
(n(!0), u(U, null, P(l.data, (v, m) => (n(), u("li", {
|
746
746
|
key: m,
|
747
747
|
class: "flex flex-col gap-[6px]"
|
@@ -770,7 +770,7 @@ function _t(t, e, r, s, a, l) {
|
|
770
770
|
])
|
771
771
|
], 2);
|
772
772
|
}
|
773
|
-
const wt = /* @__PURE__ */ y(ft, [["render", _t], ["__scopeId", "data-v-
|
773
|
+
const wt = /* @__PURE__ */ y(ft, [["render", _t], ["__scopeId", "data-v-3cea82a7"]]), yt = {
|
774
774
|
__name: "navbar",
|
775
775
|
setup(t) {
|
776
776
|
const e = {
|
@@ -787,9 +787,9 @@ const wt = /* @__PURE__ */ y(ft, [["render", _t], ["__scopeId", "data-v-05078f3f
|
|
787
787
|
}, Ct = {
|
788
788
|
components: {
|
789
789
|
IconQuestion: te,
|
790
|
-
IconUser:
|
790
|
+
IconUser: ie,
|
791
791
|
AdminNotification: Y,
|
792
|
-
IconUserOutline:
|
792
|
+
IconUserOutline: ue,
|
793
793
|
IconLogout: G
|
794
794
|
},
|
795
795
|
data() {
|
@@ -817,12 +817,12 @@ const wt = /* @__PURE__ */ y(ft, [["render", _t], ["__scopeId", "data-v-05078f3f
|
|
817
817
|
}
|
818
818
|
},
|
819
819
|
created() {
|
820
|
-
this.userData = this.$user,
|
820
|
+
this.userData = this.$user, ce.value = this.$settings;
|
821
821
|
},
|
822
822
|
methods: {
|
823
823
|
async logout() {
|
824
824
|
try {
|
825
|
-
await
|
825
|
+
await de.get("/logout"), await window.history.pushState({}, "", "/login"), await location.reload(), localStorage.removeItem("user");
|
826
826
|
} catch {
|
827
827
|
}
|
828
828
|
},
|
@@ -847,7 +847,7 @@ const wt = /* @__PURE__ */ y(ft, [["render", _t], ["__scopeId", "data-v-05078f3f
|
|
847
847
|
class: "flex items-center justify-center bg-gray-200 rounded-full size-10"
|
848
848
|
}, Dt = { class: "grow" }, jt = { class: "block text-sm font-medium text-gray-800 dark:text-neutral-200" }, Nt = { class: "text-xs text-gray-500 dark:text-neutral-500" }, Bt = { class: "flex flex-col space-y-0.5" };
|
849
849
|
function Et(t, e, r, s, a, l) {
|
850
|
-
const b = p("IconQuestion"), x = p("VsPopover"),
|
850
|
+
const b = p("IconQuestion"), x = p("VsPopover"), d = p("AdminNotification"), v = p("IconUser"), m = p("router-link"), H = p("IconUserOutline"), E = p("IconLogout");
|
851
851
|
return n(), u("div", {
|
852
852
|
class: f(["h-[58px] border-b flex items-center px-[20px]", l.headerBadgeTitle ? "justify-between" : "justify-end"])
|
853
853
|
}, [
|
@@ -882,7 +882,7 @@ function Et(t, e, r, s, a, l) {
|
|
882
882
|
h(x, { trigger: "hover" }, {
|
883
883
|
reference: _(() => [
|
884
884
|
o("a", Ht, [
|
885
|
-
h(
|
885
|
+
h(d)
|
886
886
|
])
|
887
887
|
]),
|
888
888
|
default: _(() => [
|
@@ -1001,7 +1001,7 @@ function At(t, e, r, s, a, l) {
|
|
1001
1001
|
h(b),
|
1002
1002
|
a.showMenu ? (n(), u("div", {
|
1003
1003
|
key: 0,
|
1004
|
-
onClick: e[0] || (e[0] = (
|
1004
|
+
onClick: e[0] || (e[0] = (d) => a.showMenu = !1),
|
1005
1005
|
class: "z-[10] lg:hidden transition duration fixed inset-0 bg-gray-900 bg-opacity-50 dark:bg-opacity-80 dark:bg-neutral-900"
|
1006
1006
|
})) : w("", !0),
|
1007
1007
|
o("div", St, [
|
package/dist/admin.js
CHANGED