@opengis/admin 0.4.11 → 0.4.13
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-Dr2puaaA.js → add-page-EIB1Pyip.js} +4 -4
- package/dist/{admin-interface-DrOpA2in.js → admin-interface-LC70gGpC.js} +19 -16
- package/dist/{admin-view-CAeidCEb.js → admin-view-BCrdh-at.js} +16 -11
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +89 -201
- package/dist/assets/logo.svg +41 -41
- package/dist/{card-view-Xjfy9e67.js → card-view-DEdfR4KR.js} +3 -3
- package/dist/{edit-page-BwLm4xql.js → edit-page-CD1odufF.js} +8 -8
- package/dist/import-file-gAIxmvH0.js +45492 -0
- package/dist/{profile-page-B9AsAneW.js → profile-page-UC1JPZyD.js} +4 -4
- 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 +8 -19
- 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/list/utils/button.js +5 -5
- 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/access/index.mjs +6 -6
- package/server/plugins/cron.js +10 -10
- package/server/plugins/docs.js +28 -28
- package/server/routes/access/controllers/access.group.js +29 -29
- package/server/routes/access/controllers/access.group.post.js +54 -54
- package/server/routes/access/index.mjs +11 -11
- package/server/routes/access/schema.mjs +67 -67
- package/server/routes/calendar/controllers/calendar.data.js +125 -125
- 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/routes/util/controllers/code.generator.js +89 -89
- package/server/routes/widget/controllers/widget.del.js +79 -79
- package/server/routes/widget/controllers/widget.set.js +99 -99
- package/server/routes/widget/hook/onWidgetSet.js +12 -12
- package/server/routes/widget/index.mjs +20 -20
- package/server/routes/widget/schema.js +12 -12
- 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/dist/import-file-DhiI6wfo.js +0 -61803
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, f as m, u as f, s as g } from "./import-file-gAIxmvH0.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;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { _ as A, h as Ke, i as Je, j as Ge,
|
2
|
-
import {
|
1
|
+
import { _ as A, h as Ke, i as Je, j as Ge, f as q, I as Qe, s as R, k as J, V as Xe, l as Ye, m as Ze, n as et, A as G, o as tt, p as st, b as nt, q as lt, r as at, a as rt, t as ot, v as it, u as Ee } from "./import-file-gAIxmvH0.js";
|
2
|
+
import { createElementBlock as u, openBlock as r, createTextVNode as L, createElementVNode as a, toDisplayString as T, createCommentVNode as k, normalizeClass as w, resolveComponent as p, Fragment as $, createVNode as x, withCtx as P, createBlock as y, renderList as V, withModifiers as ut, Transition as Q, withDirectives as X, renderSlot as dt, vShow as Y, Teleport as ct, getCurrentInstance as Ue, ref as H, resolveDynamicComponent as K, 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__ */ A(vt, [["render", _t]]), wt = {
|
127
127
|
components: {
|
128
|
-
IconMore:
|
128
|
+
IconMore: Ge,
|
129
129
|
IconDelete: Je,
|
130
|
-
IconEdit:
|
130
|
+
IconEdit: Ke,
|
131
131
|
IconLink: Ct
|
132
132
|
},
|
133
133
|
emits: ["updateTable"],
|
@@ -240,7 +240,8 @@ function Vt(e, t, n, o, s, l) {
|
|
240
240
|
x(g, { color: "#000" }),
|
241
241
|
t[4] || (t[4] = L(" Редагувати "))
|
242
242
|
]),
|
243
|
-
_: 1
|
243
|
+
_: 1,
|
244
|
+
__: [4]
|
244
245
|
}, 8, ["to"])) : k("", !0),
|
245
246
|
(r(!0), u($, null, V(l.getCustomActions, (S, F) => (r(), u("button", {
|
246
247
|
key: F,
|
@@ -289,7 +290,8 @@ function Vt(e, t, n, o, s, l) {
|
|
289
290
|
}, " Так, я впевнена(ий) ")
|
290
291
|
])
|
291
292
|
]),
|
292
|
-
_: 1
|
293
|
+
_: 1,
|
294
|
+
__: [6]
|
293
295
|
}, 8, ["visible"])
|
294
296
|
], 64);
|
295
297
|
}
|
@@ -637,14 +639,14 @@ function ps(e, t, n, o, s, l) {
|
|
637
639
|
])
|
638
640
|
]);
|
639
641
|
}
|
640
|
-
const bs = /* @__PURE__ */ A(is, [["render", ps], ["__scopeId", "data-v-
|
642
|
+
const bs = /* @__PURE__ */ A(is, [["render", ps], ["__scopeId", "data-v-c6318482"]]), fs = {
|
641
643
|
components: {
|
642
644
|
AdminComponentIs: G,
|
643
645
|
AdminTree: bs,
|
644
|
-
VsNoData:
|
645
|
-
VsWidgetComments:
|
646
|
-
VsWidgetMap:
|
647
|
-
VsWidgetFileList:
|
646
|
+
VsNoData: et,
|
647
|
+
VsWidgetComments: Ze,
|
648
|
+
VsWidgetMap: Ye,
|
649
|
+
VsWidgetFileList: Xe
|
648
650
|
},
|
649
651
|
props: { table: String, columns: Array, row: Object }
|
650
652
|
}, gs = {
|
@@ -1117,13 +1119,13 @@ const hn = /* @__PURE__ */ A(sn, [["render", cn]]), pn = {
|
|
1117
1119
|
AdminTableControl: Ft,
|
1118
1120
|
AdminTableExport: ns,
|
1119
1121
|
// AdminTablePrint,
|
1120
|
-
AdminTableColumnsHidden:
|
1122
|
+
AdminTableColumnsHidden: it,
|
1121
1123
|
AdminTableColumn: yt,
|
1122
|
-
AdminNodata:
|
1124
|
+
AdminNodata: ot,
|
1123
1125
|
IconPlus: J,
|
1124
1126
|
IconSearch: rt,
|
1125
1127
|
AdminTableCardInfo: ws,
|
1126
|
-
IconOpenCard:
|
1128
|
+
IconOpenCard: at,
|
1127
1129
|
AdminComponentIs: G,
|
1128
1130
|
AdminTableFilters: Is,
|
1129
1131
|
AdminTableTabs: js,
|
@@ -1199,7 +1201,7 @@ const hn = /* @__PURE__ */ A(sn, [["render", cn]]), pn = {
|
|
1199
1201
|
// await this.getTableData();
|
1200
1202
|
// },
|
1201
1203
|
searchValue: {
|
1202
|
-
handler:
|
1204
|
+
handler: lt(async function(e) {
|
1203
1205
|
var t;
|
1204
1206
|
this.page = 1, await this.getTableData(), this.$router.push({
|
1205
1207
|
...this.$route,
|
@@ -1375,7 +1377,8 @@ function Fn(e, t, n, o, s, l) {
|
|
1375
1377
|
}),
|
1376
1378
|
t[5] || (t[5] = L(" Додати "))
|
1377
1379
|
]),
|
1378
|
-
_: 1
|
1380
|
+
_: 1,
|
1381
|
+
__: [5]
|
1379
1382
|
}, 8, ["to", "class"]))
|
1380
1383
|
], 64)) : k("", !0)
|
1381
1384
|
]),
|
@@ -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 { 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-gAIxmvH0.js";
|
3
3
|
import "./user-B_2kh6ic.js";
|
4
4
|
const he = {}, ge = {
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|
@@ -629,7 +629,8 @@ const ut = /* @__PURE__ */ y(tt, [["render", st]]), it = { class: "relative w-fi
|
|
629
629
|
default: _(() => s[1] || (s[1] = [
|
630
630
|
V(" Налаштування ")
|
631
631
|
])),
|
632
|
-
_: 1
|
632
|
+
_: 1,
|
633
|
+
__: [1]
|
633
634
|
})
|
634
635
|
]),
|
635
636
|
s[3] || (s[3] = o("div", { class: "p-1 border-t border-gray-200 dark:border-neutral-700" }, [
|
@@ -787,9 +788,9 @@ const wt = /* @__PURE__ */ y(ft, [["render", _t], ["__scopeId", "data-v-3cea82a7
|
|
787
788
|
}, Ct = {
|
788
789
|
components: {
|
789
790
|
IconQuestion: te,
|
790
|
-
IconUser:
|
791
|
+
IconUser: ie,
|
791
792
|
AdminNotification: Y,
|
792
|
-
IconUserOutline:
|
793
|
+
IconUserOutline: ue,
|
793
794
|
IconLogout: G
|
794
795
|
},
|
795
796
|
data() {
|
@@ -817,12 +818,12 @@ const wt = /* @__PURE__ */ y(ft, [["render", _t], ["__scopeId", "data-v-3cea82a7
|
|
817
818
|
}
|
818
819
|
},
|
819
820
|
created() {
|
820
|
-
this.userData = this.$user,
|
821
|
+
this.userData = this.$user, ce.value = this.$settings;
|
821
822
|
},
|
822
823
|
methods: {
|
823
824
|
async logout() {
|
824
825
|
try {
|
825
|
-
await
|
826
|
+
await de.get("/logout"), await window.history.pushState({}, "", "/login"), await location.reload(), localStorage.removeItem("user");
|
826
827
|
} catch {
|
827
828
|
}
|
828
829
|
},
|
@@ -877,7 +878,8 @@ function Et(t, e, r, s, a, l) {
|
|
877
878
|
default: _(() => [
|
878
879
|
e[5] || (e[5] = V(" Допомога "))
|
879
880
|
]),
|
880
|
-
_: 1
|
881
|
+
_: 1,
|
882
|
+
__: [5]
|
881
883
|
}),
|
882
884
|
h(x, { trigger: "hover" }, {
|
883
885
|
reference: _(() => [
|
@@ -888,7 +890,8 @@ function Et(t, e, r, s, a, l) {
|
|
888
890
|
default: _(() => [
|
889
891
|
e[6] || (e[6] = V(" Сповіщення "))
|
890
892
|
]),
|
891
|
-
_: 1
|
893
|
+
_: 1,
|
894
|
+
__: [6]
|
892
895
|
}),
|
893
896
|
e[12] || (e[12] = o("div", { class: "h-[30px] w-[1px] bg-gray-200 ml-[10px] mr-[10px]" }, null, -1)),
|
894
897
|
o("div", Lt, [
|
@@ -913,7 +916,8 @@ function Et(t, e, r, s, a, l) {
|
|
913
916
|
default: _(() => [
|
914
917
|
e[7] || (e[7] = V(" Профіль "))
|
915
918
|
]),
|
916
|
-
_: 1
|
919
|
+
_: 1,
|
920
|
+
__: [7]
|
917
921
|
})
|
918
922
|
]),
|
919
923
|
a.isVisible ? (n(), u("div", {
|
@@ -958,7 +962,8 @@ function Et(t, e, r, s, a, l) {
|
|
958
962
|
h(H, { class: "size-4" }),
|
959
963
|
e[8] || (e[8] = V(" Профіль "))
|
960
964
|
]),
|
961
|
-
_: 1
|
965
|
+
_: 1,
|
966
|
+
__: [8]
|
962
967
|
})
|
963
968
|
])
|
964
969
|
]),
|
package/dist/admin.js
CHANGED