@opengis/admin 0.4.27 → 0.4.29
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/README.md +97 -97
- package/dist/{add-page-sde7JqiX.js → add-page-VsKeXogR.js} +4 -4
- package/dist/{admin-interface-Dhqli6Vu.js → admin-interface-CRxPKyYw.js} +20 -23
- package/dist/{admin-view-BoHHzowt.js → admin-view-ulbtCtj1.js} +17 -22
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +59 -59
- package/dist/assets/logo.svg +41 -41
- package/dist/{card-view-Cf1C7sZW.js → card-view-DibuO4qO.js} +3 -3
- package/dist/{edit-page-Cpp4ig3I.js → edit-page-DTvgV6IT.js} +8 -8
- package/dist/{import-file-A4o0SJpP.js → import-file-BCkV-vfK.js} +11193 -11248
- package/dist/{profile-page-C2xnBGUM.js → profile-page-pFO4XMgi.js} +2 -2
- package/dist/style.css +1 -1
- package/module/settings/card/admin.accounts.table/index.yml +7 -7
- package/module/settings/card/admin.accounts.table/rules.hbs +18 -18
- package/module/settings/card/admin.accounts.table/users.hbs +13 -13
- package/module/settings/card/admin.routes.table/groups.hbs +11 -11
- package/module/settings/card/admin.routes.table/users.hbs +16 -16
- package/module/settings/cls/core.actions.json +17 -17
- package/module/settings/cls/core.scope.json +13 -13
- package/module/settings/cls/properties.site_status.json +13 -13
- package/module/settings/cls/properties.widget_status.json +13 -13
- package/module/settings/cls/yes_no.json +11 -11
- package/module/settings/form/admin.accounts.form.json +13 -13
- package/module/settings/form/admin.properties.form.json +15 -15
- package/module/settings/form/admin.roles.form.json +21 -21
- package/module/settings/form/admin.user_properties.form.json +15 -15
- package/module/settings/form/admin.user_roles_card.form.json +13 -13
- package/module/settings/interface/admin.properties.json +4 -4
- package/module/settings/interface/admin.roles.json +4 -4
- package/module/settings/interface/admin.routes.json +4 -4
- package/module/settings/interface/admin.users.json +4 -4
- package/module/settings/select/core.routes.sql +1 -1
- package/module/settings/select/core.user_mentioned.sql +1 -1
- package/module/settings/select/core.user_uid.sql +1 -1
- package/module/settings/table/admin.properties.table.json +39 -39
- package/module/settings/table/admin.user_properties.table.json +34 -34
- package/package.json +82 -82
- package/server/helpers/core/coalesce.js +7 -7
- package/server/helpers/core/select.js +48 -48
- package/server/helpers/core/token.js +18 -18
- package/server/helpers/list/buttonHelper.js +21 -21
- package/server/helpers/temp/contentList.js +58 -58
- package/server/helpers/temp/ifCond.js +101 -101
- package/server/helpers/utils/button.js +5 -5
- package/server/helpers/utils/mdToHTML.js +17 -17
- package/server/plugins/cron.js +10 -10
- package/server/plugins/docs.js +28 -28
- package/server/routes/calendar/controllers/calendar.data.js +124 -124
- package/server/routes/calendar/index.mjs +7 -7
- package/server/routes/notifications/controllers/readNotifications.js +18 -18
- package/server/routes/notifications/controllers/testEmail.js +35 -35
- package/server/routes/notifications/controllers/userNotifications.js +53 -53
- package/server/routes/notifications/hook/onWidgetSet.js +56 -56
- package/server/routes/notifications/index.mjs +26 -26
- package/server/routes/root.mjs +3 -3
- package/server/routes/user/controllers/user.cls.id.js +14 -14
- package/server/routes/user/controllers/user.cls.js +72 -72
- package/server/routes/user/controllers/user.info.js +17 -17
- package/server/templates/cls/itree.recrzone_category.json +73 -73
- package/server/templates/cls/test.json +9 -9
- package/server/templates/form/admin.user_cls.data.form.json +49 -49
- package/server/templates/form/admin.user_group_rel.form.json +21 -21
- package/server/templates/form/form-user-pass.json +10 -10
- package/server/templates/form/form-user_group.json +39 -39
- package/server/templates/form/form-users.json +156 -156
- package/server/templates/form/user_group_access.form.json +22 -22
- package/server/templates/select/account_id.json +2 -2
- package/server/templates/table/gis.dataset.table.json +43 -43
- package/server/templates/table/management.user_group.table.json +112 -112
- package/server/templates/table/management.users.table.json +126 -126
- package/server/utils/addNotification.js +21 -21
- package/server/utils/sendNotification.js +89 -89
package/README.md
CHANGED
@@ -1,97 +1,97 @@
|
|
1
|
-

|
2
|
-
|
3
|
-
[](https://www.npmjs.com/package/@opengis/admin)
|
4
|
-
[]()
|
5
|
-
[]()
|
6
|
-
[](http://standardjs.com/)
|
7
|
-
|
8
|
-
This package standardizes the entire website administration process. Built using the **Fastify** and **Vite** frameworks for reactive, component-driven development.
|
9
|
-
|
10
|
-
### Features
|
11
|
-
|
12
|
-
- **Real-time Editing** - Simplifies and accelerates the development process.
|
13
|
-
- **Customization** - Enabling developers to add custom components, templates, and modules.
|
14
|
-
- **Database Management** - Provides tools to facilitate seamless management and interaction with PostgreSQL.
|
15
|
-
- **Base Theme** - A clean and practical design inspired by Preline.
|
16
|
-
- **Info Cards** - Easily created using pre-built layouts or custom Vue components.
|
17
|
-
- **Geometry Visualization** - Enables visualization and editing of geometric data, using geometry inputs.
|
18
|
-
- **User Settings** - Includes functionality for managing user settings, creating user groups, and defining roles with interface permissions.
|
19
|
-
|
20
|
-
---
|
21
|
-
|
22
|
-
### Install
|
23
|
-
|
24
|
-
```bash
|
25
|
-
npm i @opengis/admin
|
26
|
-
```
|
27
|
-
|
28
|
-
### Usage
|
29
|
-
|
30
|
-
```js
|
31
|
-
fastify.register(import('@opengis/admin'), config);
|
32
|
-
```
|
33
|
-
|
34
|
-
```js
|
35
|
-
import v3admin from '@opengis/admin';
|
36
|
-
import '@opengis/admin/dist/style.css';
|
37
|
-
v3admin.install(app);
|
38
|
-
```
|
39
|
-
|
40
|
-
---
|
41
|
-
|
42
|
-
### Documentation
|
43
|
-
|
44
|
-
For a detailed understanding of `admin`, its features, and how to use them, refer to our [Documentation](https://apidocs.softpro.ua/admin/).
|
45
|
-
|
46
|
-
---
|
47
|
-
|
48
|
-
### Technology stack
|
49
|
-
|
50
|
-
<a href="https://fastify.dev/" target="_blank">
|
51
|
-
<img src="https://img.shields.io/badge/Fastify-323330?style=for-the-badge&logo=fastify" /></a>
|
52
|
-
|
53
|
-
<a href="https://vuejs.org/" target="_blank">
|
54
|
-
<img src="https://img.shields.io/badge/Vue%20js-323330?style=for-the-badge&logo=vuedotjs&logoColor=4FC08D" /></a>
|
55
|
-
|
56
|
-
<a href="https://vite.dev/" target="_blank">
|
57
|
-
<img src="https://img.shields.io/badge/Vite-323330?style=for-the-badge&logo=vite" /></a>
|
58
|
-
|
59
|
-
<a href="https://tiptap.dev/" target="_blank">
|
60
|
-
<img src="https://img.shields.io/badge/TipTap-323330?style=for-the-badge&logo=tiptap&logoColor=4FC08D" /></a>
|
61
|
-
|
62
|
-
<a href="https://www.postgresql.org/" target="_blank">
|
63
|
-
<img src="https://img.shields.io/badge/PostgreSQL-323330?style=for-the-badge&logo=postgresql&logoColor=white" /></a>
|
64
|
-
|
65
|
-
<a href="https://maplibre.org/" target="_blank">
|
66
|
-
<img src="https://img.shields.io/badge/Maplibre-323330?style=for-the-badge&logo=maplibre&logoColor=87b2f0" /></a>
|
67
|
-
|
68
|
-
<a href="https://handlebarsjs.com/" target="_blank">
|
69
|
-
<img src="https://img.shields.io/badge/Handlebars%20js-323330?style=for-the-badge&logo=handlebarsdotjs&logoColor=f0772b" /></a>
|
70
|
-
|
71
|
-
<a href="https://redis.io/" target="_blank">
|
72
|
-
<img src="https://img.shields.io/badge/redis-323330.svg?&style=for-the-badge&logo=redis&logoColor=%23DD0031" /></a>
|
73
|
-
|
74
|
-
---
|
75
|
-
|
76
|
-
### Contribute
|
77
|
-
|
78
|
-
Feel free to contact us through our website [SOFTPRO.UA](https://softpro.ua) or email <info@softpro.ua>
|
79
|
-
|
80
|
-
- Report bugs
|
81
|
-
- Share your ideas
|
82
|
-
- Ask questions
|
83
|
-
|
84
|
-
### Follow Us
|
85
|
-
|
86
|
-
[Official site](https://softpro.ua)
|
87
|
-
|
88
|
-
<p>
|
89
|
-
<a href="https://www.instagram.com/gissoftpro/" target="_blank"><img src="https://cdn.softpro.ua/data/npm/instagram.png" alt="Softpro Instagram" title="oftpro Instagram"></a>
|
90
|
-
<a href="https://www.facebook.com/gissoftpro" target="_blank"><img src="https://cdn.softpro.ua/data/npm/facebook.png" alt="Softpro Facebook" title="Softpro Facebook"></a>
|
91
|
-
<a href="https://t.me/softprogis" target="_blank"><img src="https://cdn.softpro.ua/data/npm/telegram.png" alt="Softpro Telegram" title="Softpro Telegram"></a>
|
92
|
-
<a href="https://www.linkedin.com/in/softpro-ukraine-a8876b282/recent-activity/all/" target="_blank"><img src="https://cdn.softpro.ua/data/npm/social/linkedin.png" alt="Softpro Linkedin" title="Softpro LinkedIn"></a>
|
93
|
-
</p>
|
94
|
-
|
95
|
-
### License
|
96
|
-
|
97
|
-
Copyright © SOFTPRO. All rights reserved.
|
1
|
+

|
2
|
+
|
3
|
+
[](https://www.npmjs.com/package/@opengis/admin)
|
4
|
+
[]()
|
5
|
+
[]()
|
6
|
+
[](http://standardjs.com/)
|
7
|
+
|
8
|
+
This package standardizes the entire website administration process. Built using the **Fastify** and **Vite** frameworks for reactive, component-driven development.
|
9
|
+
|
10
|
+
### Features
|
11
|
+
|
12
|
+
- **Real-time Editing** - Simplifies and accelerates the development process.
|
13
|
+
- **Customization** - Enabling developers to add custom components, templates, and modules.
|
14
|
+
- **Database Management** - Provides tools to facilitate seamless management and interaction with PostgreSQL.
|
15
|
+
- **Base Theme** - A clean and practical design inspired by Preline.
|
16
|
+
- **Info Cards** - Easily created using pre-built layouts or custom Vue components.
|
17
|
+
- **Geometry Visualization** - Enables visualization and editing of geometric data, using geometry inputs.
|
18
|
+
- **User Settings** - Includes functionality for managing user settings, creating user groups, and defining roles with interface permissions.
|
19
|
+
|
20
|
+
---
|
21
|
+
|
22
|
+
### Install
|
23
|
+
|
24
|
+
```bash
|
25
|
+
npm i @opengis/admin
|
26
|
+
```
|
27
|
+
|
28
|
+
### Usage
|
29
|
+
|
30
|
+
```js
|
31
|
+
fastify.register(import('@opengis/admin'), config);
|
32
|
+
```
|
33
|
+
|
34
|
+
```js
|
35
|
+
import v3admin from '@opengis/admin';
|
36
|
+
import '@opengis/admin/dist/style.css';
|
37
|
+
v3admin.install(app);
|
38
|
+
```
|
39
|
+
|
40
|
+
---
|
41
|
+
|
42
|
+
### Documentation
|
43
|
+
|
44
|
+
For a detailed understanding of `admin`, its features, and how to use them, refer to our [Documentation](https://apidocs.softpro.ua/admin/).
|
45
|
+
|
46
|
+
---
|
47
|
+
|
48
|
+
### Technology stack
|
49
|
+
|
50
|
+
<a href="https://fastify.dev/" target="_blank">
|
51
|
+
<img src="https://img.shields.io/badge/Fastify-323330?style=for-the-badge&logo=fastify" /></a>
|
52
|
+
|
53
|
+
<a href="https://vuejs.org/" target="_blank">
|
54
|
+
<img src="https://img.shields.io/badge/Vue%20js-323330?style=for-the-badge&logo=vuedotjs&logoColor=4FC08D" /></a>
|
55
|
+
|
56
|
+
<a href="https://vite.dev/" target="_blank">
|
57
|
+
<img src="https://img.shields.io/badge/Vite-323330?style=for-the-badge&logo=vite" /></a>
|
58
|
+
|
59
|
+
<a href="https://tiptap.dev/" target="_blank">
|
60
|
+
<img src="https://img.shields.io/badge/TipTap-323330?style=for-the-badge&logo=tiptap&logoColor=4FC08D" /></a>
|
61
|
+
|
62
|
+
<a href="https://www.postgresql.org/" target="_blank">
|
63
|
+
<img src="https://img.shields.io/badge/PostgreSQL-323330?style=for-the-badge&logo=postgresql&logoColor=white" /></a>
|
64
|
+
|
65
|
+
<a href="https://maplibre.org/" target="_blank">
|
66
|
+
<img src="https://img.shields.io/badge/Maplibre-323330?style=for-the-badge&logo=maplibre&logoColor=87b2f0" /></a>
|
67
|
+
|
68
|
+
<a href="https://handlebarsjs.com/" target="_blank">
|
69
|
+
<img src="https://img.shields.io/badge/Handlebars%20js-323330?style=for-the-badge&logo=handlebarsdotjs&logoColor=f0772b" /></a>
|
70
|
+
|
71
|
+
<a href="https://redis.io/" target="_blank">
|
72
|
+
<img src="https://img.shields.io/badge/redis-323330.svg?&style=for-the-badge&logo=redis&logoColor=%23DD0031" /></a>
|
73
|
+
|
74
|
+
---
|
75
|
+
|
76
|
+
### Contribute
|
77
|
+
|
78
|
+
Feel free to contact us through our website [SOFTPRO.UA](https://softpro.ua) or email <info@softpro.ua>
|
79
|
+
|
80
|
+
- Report bugs
|
81
|
+
- Share your ideas
|
82
|
+
- Ask questions
|
83
|
+
|
84
|
+
### Follow Us
|
85
|
+
|
86
|
+
[Official site](https://softpro.ua)
|
87
|
+
|
88
|
+
<p>
|
89
|
+
<a href="https://www.instagram.com/gissoftpro/" target="_blank"><img src="https://cdn.softpro.ua/data/npm/instagram.png" alt="Softpro Instagram" title="oftpro Instagram"></a>
|
90
|
+
<a href="https://www.facebook.com/gissoftpro" target="_blank"><img src="https://cdn.softpro.ua/data/npm/facebook.png" alt="Softpro Facebook" title="Softpro Facebook"></a>
|
91
|
+
<a href="https://t.me/softprogis" target="_blank"><img src="https://cdn.softpro.ua/data/npm/telegram.png" alt="Softpro Telegram" title="Softpro Telegram"></a>
|
92
|
+
<a href="https://www.linkedin.com/in/softpro-ukraine-a8876b282/recent-activity/all/" target="_blank"><img src="https://cdn.softpro.ua/data/npm/social/linkedin.png" alt="Softpro Linkedin" title="Softpro LinkedIn"></a>
|
93
|
+
</p>
|
94
|
+
|
95
|
+
### License
|
96
|
+
|
97
|
+
Copyright © SOFTPRO. All rights reserved.
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { _ as d,
|
2
|
-
import { resolveComponent as b,
|
1
|
+
import { _ as d, s as f, u as g, g as m } from "./import-file-BCkV-vfK.js";
|
2
|
+
import { resolveComponent as b, openBlock as h, createElementBlock as x, 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 f.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(g.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;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { _ as T, h as Je, i as Ke, j as Ge,
|
2
|
-
import {
|
1
|
+
import { _ as T, h as Je, i as Ke, j as Ge, g as L, I as Qe, s as R, k as K, A as G, V as Xe, l as Ye, m as Ze, n as et, o as tt, p as st, b as nt, q as at, r as lt, a as rt, t as ot, v as it, u as Ee } from "./import-file-BCkV-vfK.js";
|
2
|
+
import { openBlock as r, createElementBlock as d, createTextVNode as z, toDisplayString as A, createElementVNode as a, normalizeClass as w, createCommentVNode as k, resolveComponent as p, Fragment as $, createVNode as x, withCtx as P, createBlock as y, renderList as V, withModifiers as dt, Transition as Q, withDirectives as X, renderSlot as ut, vShow as Y, Teleport as ct, getCurrentInstance as Ue, ref as H, resolveDynamicComponent as J, defineComponent as ht, withKeys as pt, normalizeStyle as W } from "vue";
|
3
3
|
const bt = {
|
4
4
|
data() {
|
5
5
|
return {
|
@@ -125,9 +125,9 @@ function _t(e, t) {
|
|
125
125
|
}
|
126
126
|
const Ct = /* @__PURE__ */ T(vt, [["render", _t]]), wt = {
|
127
127
|
components: {
|
128
|
-
IconMore:
|
128
|
+
IconMore: Je,
|
129
129
|
IconDelete: Ke,
|
130
|
-
IconEdit:
|
130
|
+
IconEdit: Ge,
|
131
131
|
IconLink: Ct
|
132
132
|
},
|
133
133
|
emits: ["updateTable"],
|
@@ -238,10 +238,9 @@ function Vt(e, t, n, o, s, l) {
|
|
238
238
|
}, {
|
239
239
|
default: P(() => [
|
240
240
|
x(g, { color: "#000" }),
|
241
|
-
t[4] || (t[4] = z(" Редагувати "
|
241
|
+
t[4] || (t[4] = z(" Редагувати "))
|
242
242
|
]),
|
243
|
-
_: 1
|
244
|
-
__: [4]
|
243
|
+
_: 1
|
245
244
|
}, 8, ["to"])) : k("", !0),
|
246
245
|
(r(!0), d($, null, V(l.getCustomActions, (S, F) => (r(), d("button", {
|
247
246
|
key: F,
|
@@ -290,8 +289,7 @@ function Vt(e, t, n, o, s, l) {
|
|
290
289
|
}, " Так, я впевнена(ий) ")
|
291
290
|
])
|
292
291
|
]),
|
293
|
-
_: 1
|
294
|
-
__: [6]
|
292
|
+
_: 1
|
295
293
|
}, 8, ["visible"])
|
296
294
|
], 64);
|
297
295
|
}
|
@@ -490,7 +488,7 @@ function ss(e, t, n, o, s, l) {
|
|
490
488
|
height: "16",
|
491
489
|
width: "16"
|
492
490
|
}),
|
493
|
-
t[7] || (t[7] = z(" Експорт "
|
491
|
+
t[7] || (t[7] = z(" Експорт "))
|
494
492
|
]),
|
495
493
|
x(f, {
|
496
494
|
visible: s.isOpen,
|
@@ -658,14 +656,14 @@ function ps(e, t, n, o, s, l) {
|
|
658
656
|
])
|
659
657
|
]);
|
660
658
|
}
|
661
|
-
const bs = /* @__PURE__ */ T(is, [["render", ps], ["__scopeId", "data-v-
|
659
|
+
const bs = /* @__PURE__ */ T(is, [["render", ps], ["__scopeId", "data-v-c6318482"]]), fs = {
|
662
660
|
components: {
|
663
661
|
AdminComponentIs: G,
|
664
662
|
AdminTree: bs,
|
665
|
-
VsNoData:
|
666
|
-
VsWidgetComments:
|
667
|
-
VsWidgetMap:
|
668
|
-
VsWidgetFileList:
|
663
|
+
VsNoData: Xe,
|
664
|
+
VsWidgetComments: Ye,
|
665
|
+
VsWidgetMap: Ze,
|
666
|
+
VsWidgetFileList: et
|
669
667
|
},
|
670
668
|
props: { table: String, columns: Array, row: Object }
|
671
669
|
}, gs = {
|
@@ -743,7 +741,7 @@ function Ts(e, t, n, o, s, l) {
|
|
743
741
|
height: "16",
|
744
742
|
width: "16"
|
745
743
|
}),
|
746
|
-
t[4] || (t[4] = z(" Фільтри "
|
744
|
+
t[4] || (t[4] = z(" Фільтри ")),
|
747
745
|
n.onFilters ? (r(), d("span", Ss, A(n.onFilters), 1)) : k("", !0)
|
748
746
|
]),
|
749
747
|
x(Q, { name: "fade" }, {
|
@@ -1137,13 +1135,13 @@ const hn = /* @__PURE__ */ T(sn, [["render", cn]]), pn = {
|
|
1137
1135
|
AdminTableControl: Ft,
|
1138
1136
|
AdminTableExport: ns,
|
1139
1137
|
// AdminTablePrint,
|
1140
|
-
AdminTableColumnsHidden:
|
1138
|
+
AdminTableColumnsHidden: at,
|
1141
1139
|
AdminTableColumn: yt,
|
1142
|
-
AdminNodata:
|
1140
|
+
AdminNodata: lt,
|
1143
1141
|
IconPlus: K,
|
1144
1142
|
IconSearch: rt,
|
1145
1143
|
AdminTableCardInfo: ws,
|
1146
|
-
IconOpenCard:
|
1144
|
+
IconOpenCard: ot,
|
1147
1145
|
AdminComponentIs: G,
|
1148
1146
|
AdminTableFilters: Is,
|
1149
1147
|
AdminTableTabs: js,
|
@@ -1219,7 +1217,7 @@ const hn = /* @__PURE__ */ T(sn, [["render", cn]]), pn = {
|
|
1219
1217
|
// await this.getTableData();
|
1220
1218
|
// },
|
1221
1219
|
searchValue: {
|
1222
|
-
handler:
|
1220
|
+
handler: it(async function(e) {
|
1223
1221
|
var t;
|
1224
1222
|
this.page = 1, await this.getTableData(), this.$router.push({
|
1225
1223
|
...this.$route,
|
@@ -1393,10 +1391,9 @@ function Fn(e, t, n, o, s, l) {
|
|
1393
1391
|
height: "16",
|
1394
1392
|
width: "16"
|
1395
1393
|
}),
|
1396
|
-
t[5] || (t[5] = z(" Додати "
|
1394
|
+
t[5] || (t[5] = z(" Додати "))
|
1397
1395
|
]),
|
1398
|
-
_: 1
|
1399
|
-
__: [5]
|
1396
|
+
_: 1
|
1400
1397
|
}, 8, ["to", "class"]))
|
1401
1398
|
], 64)) : k("", !0)
|
1402
1399
|
]),
|
@@ -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 ie, f as de, g as ce } from "./import-file-
|
1
|
+
import { openBlock as n, createElementBlock as u, createElementVNode as o, createStaticVNode as Q, resolveComponent as p, normalizeClass as f, createTextVNode as V, toDisplayString as B, createCommentVNode as w, createVNode as h, 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-BCkV-vfK.js";
|
3
3
|
import "./user-DCzCj0wb.js";
|
4
4
|
const he = {}, ge = {
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -627,10 +627,9 @@ const ut = /* @__PURE__ */ y(tt, [["render", st]]), it = { class: "relative w-fi
|
|
627
627
|
to: "/admin.settings"
|
628
628
|
}, {
|
629
629
|
default: _(() => s[1] || (s[1] = [
|
630
|
-
V(" Налаштування "
|
630
|
+
V(" Налаштування ")
|
631
631
|
])),
|
632
|
-
_: 1
|
633
|
-
__: [1]
|
632
|
+
_: 1
|
634
633
|
})
|
635
634
|
]),
|
636
635
|
s[3] || (s[3] = o("div", { class: "p-1 border-t border-gray-200 dark:border-neutral-700" }, [
|
@@ -788,9 +787,9 @@ const wt = /* @__PURE__ */ y(ft, [["render", _t], ["__scopeId", "data-v-3cea82a7
|
|
788
787
|
}, Ct = {
|
789
788
|
components: {
|
790
789
|
IconQuestion: te,
|
791
|
-
IconUser:
|
790
|
+
IconUser: ue,
|
792
791
|
AdminNotification: Y,
|
793
|
-
IconUserOutline:
|
792
|
+
IconUserOutline: ie,
|
794
793
|
IconLogout: G
|
795
794
|
},
|
796
795
|
data() {
|
@@ -818,12 +817,12 @@ const wt = /* @__PURE__ */ y(ft, [["render", _t], ["__scopeId", "data-v-3cea82a7
|
|
818
817
|
}
|
819
818
|
},
|
820
819
|
created() {
|
821
|
-
this.userData = this.$user,
|
820
|
+
this.userData = this.$user, de.value = this.$settings;
|
822
821
|
},
|
823
822
|
methods: {
|
824
823
|
async logout() {
|
825
824
|
try {
|
826
|
-
await
|
825
|
+
await ce.get("/logout"), await window.history.pushState({}, "", "/login"), await location.reload(), localStorage.removeItem("user");
|
827
826
|
} catch {
|
828
827
|
}
|
829
828
|
},
|
@@ -876,10 +875,9 @@ function Et(t, e, r, s, a, l) {
|
|
876
875
|
])
|
877
876
|
]),
|
878
877
|
default: _(() => [
|
879
|
-
e[5] || (e[5] = V(" Допомога "
|
878
|
+
e[5] || (e[5] = V(" Допомога "))
|
880
879
|
]),
|
881
|
-
_: 1
|
882
|
-
__: [5]
|
880
|
+
_: 1
|
883
881
|
}),
|
884
882
|
h(x, { trigger: "hover" }, {
|
885
883
|
reference: _(() => [
|
@@ -888,10 +886,9 @@ function Et(t, e, r, s, a, l) {
|
|
888
886
|
])
|
889
887
|
]),
|
890
888
|
default: _(() => [
|
891
|
-
e[6] || (e[6] = V(" Сповіщення "
|
889
|
+
e[6] || (e[6] = V(" Сповіщення "))
|
892
890
|
]),
|
893
|
-
_: 1
|
894
|
-
__: [6]
|
891
|
+
_: 1
|
895
892
|
}),
|
896
893
|
e[12] || (e[12] = o("div", { class: "h-[30px] w-[1px] bg-gray-200 ml-[10px] mr-[10px]" }, null, -1)),
|
897
894
|
o("div", Lt, [
|
@@ -914,10 +911,9 @@ function Et(t, e, r, s, a, l) {
|
|
914
911
|
];
|
915
912
|
}),
|
916
913
|
default: _(() => [
|
917
|
-
e[7] || (e[7] = V(" Профіль "
|
914
|
+
e[7] || (e[7] = V(" Профіль "))
|
918
915
|
]),
|
919
|
-
_: 1
|
920
|
-
__: [7]
|
916
|
+
_: 1
|
921
917
|
})
|
922
918
|
]),
|
923
919
|
a.isVisible ? (n(), u("div", {
|
@@ -960,10 +956,9 @@ function Et(t, e, r, s, a, l) {
|
|
960
956
|
}, {
|
961
957
|
default: _(() => [
|
962
958
|
h(H, { class: "size-4" }),
|
963
|
-
e[8] || (e[8] = V(" Профіль "
|
959
|
+
e[8] || (e[8] = V(" Профіль "))
|
964
960
|
]),
|
965
|
-
_: 1
|
966
|
-
__: [8]
|
961
|
+
_: 1
|
967
962
|
})
|
968
963
|
])
|
969
964
|
]),
|
@@ -975,7 +970,7 @@ function Et(t, e, r, s, a, l) {
|
|
975
970
|
class: "w-full flex items-center gap-x-3.5 py-2 px-2.5 text-sm text-gray-800 rounded-lg hover:bg-gray-100 hover:text-red-500 focus:outline-none focus:bg-gray-100 focus:text-red-500 dark:text-white dark:hover:bg-neutral-800 dark:focus:bg-neutral-800 dark:hover:text-red-500 dark:focus:text-red-500"
|
976
971
|
}, [
|
977
972
|
h(E, { class: "size-4" }),
|
978
|
-
e[9] || (e[9] = V(" Вийти "
|
973
|
+
e[9] || (e[9] = V(" Вийти "))
|
979
974
|
])
|
980
975
|
])
|
981
976
|
])) : w("", !0)
|
package/dist/admin.js
CHANGED