@opengis/admin 0.3.105 → 0.3.106

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.
Files changed (109) hide show
  1. package/README.md +97 -97
  2. package/config.js +4 -4
  3. package/dist/{add-page-BtME1JJf.js → add-page-mpXXLEuf.js} +4 -4
  4. package/dist/{admin-interface-mIo1_gE2.js → admin-interface-C4iRix-U.js} +13 -13
  5. package/dist/{admin-view-URsx4MBX.js → admin-view-Bzb14Z1a.js} +6 -6
  6. package/dist/admin.js +1 -1
  7. package/dist/admin.umd.cjs +76 -76
  8. package/dist/assets/logo.svg +41 -41
  9. package/dist/{card-view-BPUveYDd.js → card-view-C7Qpg_zt.js} +3 -3
  10. package/dist/{edit-page-DVyHgdP0.js → edit-page-8o4I7nX6.js} +8 -8
  11. package/dist/{import-file-Bs86FUW3.js → import-file-DcMkaBsX.js} +17146 -17023
  12. package/dist/{profile-page-DHRxyJA_.js → profile-page-D5Vy_Za-.js} +4 -4
  13. package/dist/style.css +1 -1
  14. package/module/settings/card/admin.accounts.table/index.yml +7 -7
  15. package/module/settings/card/admin.accounts.table/rules.hbs +18 -18
  16. package/module/settings/card/admin.accounts.table/users.hbs +13 -13
  17. package/module/settings/card/admin.routes.table/groups.hbs +11 -11
  18. package/module/settings/card/admin.routes.table/users.hbs +16 -16
  19. package/module/settings/cls/core.actions.json +17 -17
  20. package/module/settings/cls/core.scope.json +13 -13
  21. package/module/settings/cls/properties.site_status.json +13 -13
  22. package/module/settings/cls/properties.widget_status.json +13 -13
  23. package/module/settings/cls/yes_no.json +11 -11
  24. package/module/settings/form/admin.accounts.form.json +13 -13
  25. package/module/settings/form/admin.properties.form.json +15 -15
  26. package/module/settings/form/admin.roles.form.json +21 -21
  27. package/module/settings/form/admin.user_properties.form.json +15 -15
  28. package/module/settings/form/admin.user_roles_card.form.json +13 -13
  29. package/module/settings/interface/admin.properties.json +4 -4
  30. package/module/settings/interface/admin.roles.json +4 -4
  31. package/module/settings/interface/admin.routes.json +4 -4
  32. package/module/settings/interface/admin.users.json +4 -4
  33. package/module/settings/select/core.routes.sql +1 -1
  34. package/module/settings/select/core.user_mentioned.sql +1 -1
  35. package/module/settings/select/core.user_uid.sql +1 -1
  36. package/module/settings/table/admin.properties.table.json +39 -39
  37. package/module/settings/table/admin.user_properties.table.json +34 -34
  38. package/package.json +1 -1
  39. package/server/helpers/core/coalesce.js +7 -7
  40. package/server/helpers/core/select.js +48 -48
  41. package/server/helpers/core/token.js +18 -18
  42. package/server/helpers/list/buttonHelper.js +21 -21
  43. package/server/helpers/list/utils/button.js +5 -5
  44. package/server/helpers/temp/contentList.js +58 -58
  45. package/server/helpers/temp/ifCond.js +101 -101
  46. package/server/helpers/utils/button.js +5 -5
  47. package/server/helpers/utils/mdToHTML.js +17 -17
  48. package/server/plugins/access/index.mjs +6 -6
  49. package/server/plugins/adminHook.js +81 -81
  50. package/server/plugins/cron.js +10 -10
  51. package/server/plugins/docs.js +28 -28
  52. package/server/routes/access/controllers/access.group.js +29 -29
  53. package/server/routes/access/controllers/access.group.post.js +54 -54
  54. package/server/routes/access/index.mjs +11 -11
  55. package/server/routes/access/schema.mjs +67 -67
  56. package/server/routes/calendar/controllers/calendar.data.js +125 -125
  57. package/server/routes/calendar/index.mjs +7 -7
  58. package/server/routes/calendar/schema.js +21 -21
  59. package/server/routes/data/controllers/cardTabData.js +49 -49
  60. package/server/routes/data/controllers/funcs/getFilterSQL/index.js +92 -92
  61. package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +170 -170
  62. package/server/routes/data/controllers/funcs/getFilterSQL/util/getCustomQuery.js +13 -13
  63. package/server/routes/data/controllers/funcs/getFilterSQL/util/getFilterQuery.js +64 -64
  64. package/server/routes/data/controllers/funcs/getFilterSQL/util/getOptimizedQuery.js +12 -12
  65. package/server/routes/data/controllers/funcs/getFilterSQL/util/getTableSql.js +34 -34
  66. package/server/routes/data/controllers/tableDataId.js +27 -27
  67. package/server/routes/data/controllers/tokenInfo.js +9 -9
  68. package/server/routes/data/controllers/utils/assignTokens.js +30 -30
  69. package/server/routes/data/controllers/utils/conditions.js +20 -20
  70. package/server/routes/data/controllers/utils/getColumns.js +8 -8
  71. package/server/routes/data/index.mjs +20 -20
  72. package/server/routes/data/schema.js +54 -54
  73. package/server/routes/notifications/controllers/readNotifications.js +18 -18
  74. package/server/routes/notifications/controllers/testEmail.js +35 -35
  75. package/server/routes/notifications/controllers/userNotifications.js +53 -53
  76. package/server/routes/notifications/hook/onWidgetSet.js +56 -56
  77. package/server/routes/notifications/index.mjs +26 -26
  78. package/server/routes/notifications/schema.js +16 -16
  79. package/server/routes/properties/schema.js +10 -10
  80. package/server/routes/report/controllers/list.js +21 -21
  81. package/server/routes/report/index.mjs +9 -9
  82. package/server/routes/report/utils/formatValue.js +179 -179
  83. package/server/routes/root.mjs +3 -3
  84. package/server/routes/templates/controllers/getTemplate.js +44 -44
  85. package/server/routes/templates/schema.js +8 -8
  86. package/server/routes/user/controllers/user.cls.id.js +14 -14
  87. package/server/routes/user/controllers/user.cls.js +72 -72
  88. package/server/routes/user/controllers/user.info.js +17 -17
  89. package/server/routes/user/schema.js +14 -14
  90. package/server/routes/util/controllers/code.generator.js +89 -89
  91. package/server/routes/widget/controllers/widget.del.js +80 -80
  92. package/server/routes/widget/controllers/widget.set.js +101 -101
  93. package/server/routes/widget/hook/onWidgetSet.js +12 -12
  94. package/server/routes/widget/index.mjs +20 -20
  95. package/server/routes/widget/schema.js +12 -12
  96. package/server/templates/cls/itree.recrzone_category.json +73 -73
  97. package/server/templates/cls/test.json +9 -9
  98. package/server/templates/form/admin.user_cls.data.form.json +49 -49
  99. package/server/templates/form/admin.user_group_rel.form.json +21 -21
  100. package/server/templates/form/form-user-pass.json +10 -10
  101. package/server/templates/form/form-user_group.json +39 -39
  102. package/server/templates/form/form-users.json +156 -156
  103. package/server/templates/form/user_group_access.form.json +22 -22
  104. package/server/templates/select/account_id.json +2 -2
  105. package/server/templates/table/gis.dataset.table.json +43 -43
  106. package/server/templates/table/management.user_group.table.json +112 -112
  107. package/server/templates/table/management.users.table.json +126 -126
  108. package/server/utils/addNotification.js +21 -21
  109. package/server/utils/sendNotification.js +89 -89
package/README.md CHANGED
@@ -1,97 +1,97 @@
1
- ![alt text](https://cdn.softpro.ua/data/npm/admin/opengis-admin.png)
2
-
3
- [![NPM version](https://img.shields.io/npm/v/@opengis/admin?style=plain)](https://www.npmjs.com/package/@opengis/admin)
4
- [![NPM last update](https://img.shields.io/npm/last-update/@opengis/admin?style=plain)]()
5
- [![NPM downloads](https://img.shields.io/npm/dw/@opengis/admin?style=plain)]()
6
- [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=plain)](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>&nbsp;&nbsp;
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>&nbsp;&nbsp;
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>&nbsp;&nbsp;
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>&nbsp;&nbsp;
93
- </p>
94
-
95
- ### License
96
-
97
- Copyright © SOFTPRO. All rights reserved.
1
+ ![alt text](https://cdn.softpro.ua/data/npm/admin/opengis-admin.png)
2
+
3
+ [![NPM version](https://img.shields.io/npm/v/@opengis/admin?style=plain)](https://www.npmjs.com/package/@opengis/admin)
4
+ [![NPM last update](https://img.shields.io/npm/last-update/@opengis/admin?style=plain)]()
5
+ [![NPM downloads](https://img.shields.io/npm/dw/@opengis/admin?style=plain)]()
6
+ [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=plain)](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>&nbsp;&nbsp;
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>&nbsp;&nbsp;
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>&nbsp;&nbsp;
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>&nbsp;&nbsp;
93
+ </p>
94
+
95
+ ### License
96
+
97
+ Copyright © SOFTPRO. All rights reserved.
package/config.js CHANGED
@@ -1,5 +1,5 @@
1
- import { readFile } from 'fs/promises';
2
- import fs from 'fs';
3
- const config = fs.existsSync('config.json') ? JSON.parse(await readFile('config.json')) : {};
4
-
1
+ import { readFile } from 'fs/promises';
2
+ import fs from 'fs';
3
+ const config = fs.existsSync('config.json') ? JSON.parse(await readFile('config.json')) : {};
4
+
5
5
  export default config;
@@ -1,5 +1,5 @@
1
- import { _ as d, s as f, u as g, g as m } from "./import-file-Bs86FUW3.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";
1
+ import { _ as d, f as m, u as f, s as g } from "./import-file-DcMkaBsX.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 f.value.buttonColor || "blue";
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(g.value);
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 C, h as Je, i as Ge, j as Qe, g as z, I as Xe, s as E, k as Ue, l as Q, A as X, V as Ye, m as Ze, n as et, o as tt, p as st, b as nt, q as lt, a as rt, r as at, t as ot, u as Ee } from "./import-file-Bs86FUW3.js";
2
- import { openBlock as a, createElementBlock as i, createTextVNode as j, toDisplayString as T, createElementVNode as r, normalizeClass as $, createCommentVNode as v, resolveComponent as b, Fragment as S, createVNode as m, withCtx as V, createBlock as y, renderList as P, 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 He, ref as J, resolveDynamicComponent as G, defineComponent as bt, withKeys as ft, normalizeStyle as K } from "vue";
1
+ import { _ as C, h as Je, i as Ge, j as Qe, f as z, 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 lt, r as rt, a as at, t as ot, u as Ee } from "./import-file-DcMkaBsX.js";
2
+ import { createElementBlock as i, openBlock as a, createTextVNode as j, createElementVNode as r, toDisplayString as T, createCommentVNode as v, normalizeClass as $, resolveComponent as b, Fragment as S, createVNode as m, withCtx as V, createBlock as y, renderList as P, 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 He, 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 {
@@ -125,9 +125,9 @@ function wt(e, t) {
125
125
  }
126
126
  const $t = /* @__PURE__ */ C(_t, [["render", wt]]), St = {
127
127
  components: {
128
- IconMore: Je,
128
+ IconMore: Qe,
129
129
  IconDelete: Ge,
130
- IconEdit: Qe,
130
+ IconEdit: Je,
131
131
  IconLink: $t
132
132
  },
133
133
  emits: ["updateTable"],
@@ -798,14 +798,14 @@ function js(e, t, n, o, s, l) {
798
798
  ])
799
799
  ]);
800
800
  }
801
- const Ls = /* @__PURE__ */ C(Is, [["render", js], ["__scopeId", "data-v-e1f274c9"]]), Ms = {
801
+ const Ls = /* @__PURE__ */ C(Is, [["render", js], ["__scopeId", "data-v-c6318482"]]), Ms = {
802
802
  components: {
803
803
  AdminComponentIs: X,
804
804
  AdminTree: Ls,
805
- VsNoData: Ye,
806
- VsWidgetComments: Ze,
807
- VsWidgetMap: et,
808
- VsWidgetFileList: tt
805
+ VsNoData: tt,
806
+ VsWidgetComments: et,
807
+ VsWidgetMap: Ze,
808
+ VsWidgetFileList: Ye
809
809
  },
810
810
  props: { table: String, columns: Array, row: Object }
811
811
  }, zs = {
@@ -1280,11 +1280,11 @@ const Fn = /* @__PURE__ */ C(wn, [["render", Pn]]), jn = {
1280
1280
  // AdminTablePrint,
1281
1281
  AdminTableColumnsHidden: ws,
1282
1282
  AdminTableColumn: vt,
1283
- AdminNodata: lt,
1283
+ AdminNodata: ot,
1284
1284
  IconPlus: Q,
1285
- IconSearch: rt,
1285
+ IconSearch: at,
1286
1286
  AdminTableCardInfo: Rs,
1287
- IconOpenCard: at,
1287
+ IconOpenCard: rt,
1288
1288
  AdminComponentIs: X,
1289
1289
  AdminTableFilters: Qs,
1290
1290
  AdminTableTabs: tn,
@@ -1360,7 +1360,7 @@ const Fn = /* @__PURE__ */ C(wn, [["render", Pn]]), jn = {
1360
1360
  // await this.getTableData();
1361
1361
  // },
1362
1362
  searchValue: {
1363
- handler: ot(async function(e) {
1363
+ handler: lt(async function(e) {
1364
1364
  var t;
1365
1365
  this.page = 1, await this.getTableData(), this.$router.push({
1366
1366
  ...this.$route,
@@ -1,5 +1,5 @@
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-Bs86FUW3.js";
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-DcMkaBsX.js";
3
3
  import "./user-B_2kh6ic.js";
4
4
  const he = {}, ge = {
5
5
  xmlns: "http://www.w3.org/2000/svg",
@@ -787,9 +787,9 @@ const wt = /* @__PURE__ */ y(ft, [["render", _t], ["__scopeId", "data-v-3cea82a7
787
787
  }, Ct = {
788
788
  components: {
789
789
  IconQuestion: te,
790
- IconUser: ue,
790
+ IconUser: ie,
791
791
  AdminNotification: Y,
792
- IconUserOutline: ie,
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-3cea82a7
817
817
  }
818
818
  },
819
819
  created() {
820
- this.userData = this.$user, de.value = this.$settings;
820
+ this.userData = this.$user, ce.value = this.$settings;
821
821
  },
822
822
  methods: {
823
823
  async logout() {
824
824
  try {
825
- await ce.get("/logout"), await window.history.pushState({}, "", "/login"), await location.reload(), localStorage.removeItem("user");
825
+ await de.get("/logout"), await window.history.pushState({}, "", "/login"), await location.reload(), localStorage.removeItem("user");
826
826
  } catch {
827
827
  }
828
828
  },
package/dist/admin.js CHANGED
@@ -1,4 +1,4 @@
1
- import { v as f } from "./import-file-Bs86FUW3.js";
1
+ import { v as f } from "./import-file-DcMkaBsX.js";
2
2
  export {
3
3
  f as default
4
4
  };