@opengis/admin 0.1.0
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 +29 -0
- package/config.js +5 -0
- package/dist/add-page-C-msiPrU.js +64 -0
- package/dist/admin-interface-vPkHXzQK.js +762 -0
- package/dist/admin-view-BYF4ITZY.js +220 -0
- package/dist/card-page-HOwuHNjV.js +49 -0
- package/dist/card-view-CjZRvfqy.js +11 -0
- package/dist/edit-page-7yrRusn4.js +58 -0
- package/dist/form-TrZSpRSC.js +38 -0
- package/dist/import-file-DPHo57R5.js +3726 -0
- package/dist/settings.js +4 -0
- package/dist/settings.umd.cjs +36 -0
- package/dist/style.css +1 -0
- package/dist/userMenu-CT1xO2Pt.js +5 -0
- package/package.json +52 -0
- package/plugin.js +25 -0
- package/server/helpers/controllers/badge.js +12 -0
- package/server/helpers/controllers/hb.js +3 -0
- package/server/helpers/controllers/map.js +3 -0
- package/server/helpers/controllers/mls.js +3 -0
- package/server/helpers/controllers/vue.js +3 -0
- package/server/helpers/index.mjs +13 -0
- package/server/plugins/docs.js +28 -0
- package/server/plugins/hook.js +94 -0
- package/server/plugins/vite.js +64 -0
- package/server/routes/data/controllers/cardData.js +30 -0
- package/server/routes/data/controllers/metaFormat/getSelectVal.js +19 -0
- package/server/routes/data/controllers/metaFormat/index.js +29 -0
- package/server/routes/data/controllers/tableData.js +129 -0
- package/server/routes/data/controllers/tableDataId.js +28 -0
- package/server/routes/data/controllers/tableFilter.js +51 -0
- package/server/routes/data/index.mjs +10 -0
- package/server/routes/menu/controllers/getMenu.js +50 -0
- package/server/routes/menu/index.mjs +5 -0
- package/server/routes/root.mjs +3 -0
- package/server/routes/templates/controllers/getTemplate.js +9 -0
- package/server/routes/templates/funcs/addTempateFolder.js +47 -0
- package/server/routes/templates/funcs/getTemplate.js +70 -0
- package/server/routes/templates/funcs/getTemplatePath.js +39 -0
- package/server/routes/templates/funcs/loadTemplate.js +1 -0
- package/server/routes/templates/funcs/loadTemplateDir.js +1 -0
- package/server/routes/templates/funcs/loadTemplatePath.js +1 -0
- package/server/routes/templates/index.mjs +14 -0
- package/server/templates/cls/test.json +10 -0
- package/server/templates/form/admin.user_cls.data.form.json +50 -0
- package/server/templates/form/admin.user_group_rel.form.json +22 -0
- package/server/templates/form/cp_building.form.json +33 -0
- package/server/templates/form/form-user-pass.json +11 -0
- package/server/templates/form/form-user_group.json +40 -0
- package/server/templates/form/form-users.json +157 -0
- package/server/templates/form/user_group_access.form.json +23 -0
- package/server/templates/interface/management.user_group.html +1 -0
- package/server/templates/interface/management.user_group.json +10 -0
- package/server/templates/interface/management.users.html +1 -0
- package/server/templates/interface/management.users.json +10 -0
- package/server/templates/map/dgm_level_line.xml +52 -0
- package/server/templates/pt/admin-menu-pt.html +108 -0
- package/server/templates/pt/management.user_group.table.pt.html +127 -0
- package/server/templates/pt/management.users.table.pt.html +130 -0
- package/server/templates/pt/table-standard-pt.html +202 -0
- package/server/templates/select/account_id.json +3 -0
- package/server/templates/select/account_id.sql +1 -0
- package/server/templates/table/gis.dataset.table.json +44 -0
- package/server/templates/table/management.user_group.table.json +113 -0
- package/server/templates/table/management.users.table.json +127 -0
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { _ as f, a as N } from "./import-file-DPHo57R5.js";
|
|
2
|
+
import { u as g } from "./userMenu-CT1xO2Pt.js";
|
|
3
|
+
import { openBlock as r, createElementBlock as l, createElementVNode as s, createStaticVNode as B, resolveComponent as h, createTextVNode as v, toDisplayString as w, createVNode as C, normalizeClass as m, Transition as O, withCtx as V, withDirectives as L, Fragment as Z, renderList as E, vShow as D, vModelText as j, createBlock as z, createCommentVNode as S } from "vue";
|
|
4
|
+
const T = {}, F = {
|
|
5
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6
|
+
viewBox: "0 0 24 24",
|
|
7
|
+
fill: "none",
|
|
8
|
+
stroke: "currentColor",
|
|
9
|
+
"stroke-width": "2",
|
|
10
|
+
"stroke-linecap": "round",
|
|
11
|
+
"stroke-linejoin": "round",
|
|
12
|
+
class: "icon icon-tabler icons-tabler-outline icon-tabler-logout"
|
|
13
|
+
};
|
|
14
|
+
function U(o, e, t, u, n, a) {
|
|
15
|
+
return r(), l("svg", F, e[0] || (e[0] = [
|
|
16
|
+
s("path", {
|
|
17
|
+
stroke: "none",
|
|
18
|
+
d: "M0 0h24v24H0z",
|
|
19
|
+
fill: "none"
|
|
20
|
+
}, null, -1),
|
|
21
|
+
s("path", { d: "M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2" }, null, -1),
|
|
22
|
+
s("path", { d: "M9 12h12l-3 -3" }, null, -1),
|
|
23
|
+
s("path", { d: "M18 15l3 -3" }, null, -1)
|
|
24
|
+
]));
|
|
25
|
+
}
|
|
26
|
+
const q = /* @__PURE__ */ f(T, [["render", U]]), A = {}, G = {
|
|
27
|
+
viewBox: "0 0 1823 249",
|
|
28
|
+
fill: "none",
|
|
29
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
30
|
+
};
|
|
31
|
+
function J(o, e, t, u, n, a) {
|
|
32
|
+
return r(), l("svg", G, e[0] || (e[0] = [
|
|
33
|
+
B('<path d="M218.88 96.05C223.55 99.19 228.69 101.56 234.09 103.07V145.42C212.05 151.54 195.83 171.79 195.83 195.75C195.83 200.22 196.41 204.65 197.53 208.94L160.92 230.08C156.82 226.06 152.08 222.73 146.91 220.24V171.62C164.83 163.13 176.59 145.06 176.59 124.48C176.59 123.17 176.54 121.86 176.44 120.56L218.88 96.05ZM220.32 79.09L160.97 113.36C162.04 116.88 162.61 120.61 162.61 124.48C162.61 142.66 149.93 157.87 132.93 161.76V230.05C143.4 232.46 152.23 239.16 157.46 248.21L215 214.99C211.7 209.34 209.81 202.77 209.81 195.75C209.81 174.62 226.94 157.49 248.07 157.49V91.02C237.14 91.02 227.29 86.43 220.32 79.09Z" fill="#CE3936"></path><path d="M161.39 19.13L197.44 39.94C196.39 44.11 195.84 48.42 195.84 52.75C195.84 54.21 195.9 55.65 196.02 57.1L153.9 81.42C145.27 75.5 134.95 72.24 124.36 72.24C113.83 72.24 103.57 75.47 94.96 81.32L52.71 56.93C52.82 55.55 52.88 54.16 52.88 52.76C52.88 48.43 52.34 44.12 51.28 39.95L87.3 19.16C96.98 28.89 110.26 34.58 124.34 34.58C138.42 34.57 151.7 28.87 161.39 19.13ZM157.77 0.919983C151.24 12.66 138.71 20.6 124.33 20.6C109.95 20.6 97.44 12.67 90.9 0.939983L33.9 33.85C37.08 39.43 38.91 45.88 38.91 52.76C38.91 56.71 38.31 60.52 37.2 64.11L96.46 98.32C103.44 90.87 113.36 86.22 124.37 86.22C135.44 86.22 145.41 90.93 152.39 98.44L211.59 64.27C210.45 60.64 209.83 56.78 209.83 52.77C209.83 45.89 211.65 39.44 214.84 33.86L157.77 0.919983Z" fill="#CE3936"></path><path d="M29.97 95.95L72.28 120.38C72.17 121.74 72.12 123.1 72.12 124.47C72.12 145.02 83.86 163.08 101.74 171.58V220.23C96.58 222.71 91.84 226.04 87.75 230.05L51.17 208.93C52.29 204.64 52.87 200.21 52.87 195.74C52.87 171.78 36.65 151.53 14.61 145.41V103.06C20.07 101.55 25.27 99.14 29.97 95.95ZM28.5 78.97C21.52 86.38 11.63 91.02 0.640015 91.02V157.49C21.77 157.49 38.9 174.62 38.9 195.75C38.9 202.77 37 209.33 33.71 214.99L91.2 248.18C96.43 239.14 105.25 232.45 115.71 230.04V161.73C98.74 157.81 86.09 142.62 86.09 124.46C86.09 120.54 86.68 116.75 87.78 113.18L28.5 78.97Z" fill="#CE3936"></path><path d="M498.39 177.5V144.88C498.39 128.55 485.11 115.27 468.78 115.27H343.22C342.69 115.27 342.18 115.32 341.67 115.4H337.19C332.35 115.4 328.42 111.46 328.42 106.63V74C328.42 69.16 332.36 65.23 337.19 65.23H486.33C492.08 65.23 496.75 60.57 496.75 54.81C496.75 49.06 492.08 44.39 486.33 44.39H337.19C320.86 44.39 307.58 57.67 307.58 74V106.62C307.58 122.95 320.86 136.23 337.19 136.23H462.75C463.28 136.23 463.79 136.18 464.3 136.1H468.78C473.62 136.1 477.55 140.04 477.55 144.87V177.49C477.55 182.33 473.61 186.26 468.78 186.26H319.64C313.89 186.26 309.22 190.92 309.22 196.68C309.22 202.43 313.89 207.1 319.64 207.1H468.78C485.11 207.11 498.39 193.83 498.39 177.5Z" fill="#CE3935"></path><path d="M710.7 177.32V75.24C710.7 58.91 697.42 45.63 681.09 45.63H550.05C533.72 45.63 520.44 58.91 520.44 75.24V177.32C520.44 193.65 533.72 206.93 550.05 206.93H681.1C697.42 206.93 710.7 193.65 710.7 177.32ZM541.27 75.24C541.27 70.4 545.21 66.47 550.04 66.47H681.09C685.93 66.47 689.86 70.41 689.86 75.24V177.32C689.86 182.16 685.92 186.09 681.09 186.09H550.05C545.21 186.09 541.28 182.15 541.28 177.32V75.24H541.27Z" fill="#CE3935"></path><path d="M1823 177.32V75.24C1823 58.91 1809.72 45.63 1793.39 45.63H1662.34C1646.01 45.63 1632.73 58.91 1632.73 75.24V177.32C1632.73 193.65 1646.01 206.93 1662.34 206.93H1793.39C1809.72 206.93 1823 193.65 1823 177.32ZM1653.57 75.24C1653.57 70.4 1657.51 66.47 1662.34 66.47H1793.39C1798.23 66.47 1802.16 70.41 1802.16 75.24V177.32C1802.16 182.16 1798.22 186.09 1793.39 186.09H1662.34C1657.5 186.09 1653.57 182.15 1653.57 177.32V75.24Z" fill="#CE3935"></path><path d="M756.76 196.51V152H849.42C855.17 152 859.84 147.34 859.84 141.58C859.84 135.83 855.17 131.16 849.42 131.16H756.76V75.23C756.76 70.39 760.7 66.46 765.53 66.46H893.29C899.04 66.46 903.71 61.8 903.71 56.04C903.71 50.29 899.04 45.62 893.29 45.62H765.53C749.2 45.62 735.92 58.9 735.92 75.23V196.5C735.92 202.25 740.59 206.92 746.34 206.92C752.09 206.93 756.76 202.27 756.76 196.51Z" fill="#CE3935"></path><path d="M933.86 66.47H1006.51V194.32C1006.51 200.07 1011.18 204.74 1016.93 204.74C1022.68 204.74 1027.35 200.07 1027.35 194.32V66.47H1100C1105.75 66.47 1110.42 61.81 1110.42 56.05C1110.42 50.3 1105.76 45.63 1100 45.63H933.86C928.11 45.63 923.44 50.29 923.44 56.05C923.45 61.81 928.11 66.47 933.86 66.47Z" fill="#CE3935"></path><path d="M1218.44 204.19C1224.19 204.19 1228.86 199.53 1228.86 193.77V152H1368.13C1384.46 152 1397.74 138.72 1397.74 122.39V75.24C1397.74 58.91 1384.46 45.63 1368.13 45.63H1237.63C1221.3 45.63 1208.02 58.91 1208.02 75.24V193.77C1208.02 199.53 1212.68 204.19 1218.44 204.19ZM1237.63 66.47H1368.13C1372.97 66.47 1376.9 70.41 1376.9 75.24V122.39C1376.9 127.23 1372.96 131.16 1368.13 131.16H1228.86V75.23C1228.86 70.41 1232.79 66.47 1237.63 66.47Z" fill="#CE3935"></path><path d="M1430.64 204.19C1436.39 204.19 1441.06 199.53 1441.06 193.77V152H1523.95C1524.57 153.18 1525.42 154.26 1526.51 155.17L1581.89 201.23C1583.83 202.85 1586.2 203.64 1588.55 203.64C1591.54 203.64 1594.5 202.36 1596.57 199.88C1600.25 195.46 1599.64 188.89 1595.22 185.21L1555.29 152H1580.33C1596.66 152 1609.94 138.72 1609.94 122.39V75.24C1609.94 58.91 1596.66 45.63 1580.33 45.63H1449.83C1433.5 45.63 1420.22 58.91 1420.22 75.24V193.77C1420.22 199.53 1424.88 204.19 1430.64 204.19ZM1449.83 66.47H1580.33C1585.17 66.47 1589.1 70.41 1589.1 75.24V122.39C1589.1 127.23 1585.17 131.16 1580.33 131.16H1441.06V75.23C1441.05 70.41 1444.99 66.47 1449.83 66.47Z" fill="#CE3935"></path>', 10)
|
|
34
|
+
]));
|
|
35
|
+
}
|
|
36
|
+
const K = /* @__PURE__ */ f(A, [["render", J]]), P = {}, Q = {
|
|
37
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
38
|
+
viewBox: "0 0 24 24",
|
|
39
|
+
fill: "none",
|
|
40
|
+
stroke: "currentColor",
|
|
41
|
+
"stroke-width": "2",
|
|
42
|
+
"stroke-linecap": "round",
|
|
43
|
+
"stroke-linejoin": "round",
|
|
44
|
+
class: "icon icon-tabler icons-tabler-outline icon-tabler-chevron-down"
|
|
45
|
+
};
|
|
46
|
+
function R(o, e, t, u, n, a) {
|
|
47
|
+
return r(), l("svg", Q, e[0] || (e[0] = [
|
|
48
|
+
s("path", {
|
|
49
|
+
stroke: "none",
|
|
50
|
+
d: "M0 0h24v24H0z",
|
|
51
|
+
fill: "none"
|
|
52
|
+
}, null, -1),
|
|
53
|
+
s("path", { d: "M6 9l6 6l6 -6" }, null, -1)
|
|
54
|
+
]));
|
|
55
|
+
}
|
|
56
|
+
const W = /* @__PURE__ */ f(P, [["render", R]]), X = {
|
|
57
|
+
components: { IconChevronDown: W },
|
|
58
|
+
props: { route: Object },
|
|
59
|
+
data() {
|
|
60
|
+
return {
|
|
61
|
+
isOpen: !1
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}, Y = {
|
|
65
|
+
key: 0,
|
|
66
|
+
class: ""
|
|
67
|
+
}, e1 = { class: "ml-[30px] before:block before:absolute relative w-[196px] inline-block before:w-[2px] before:h-[100%] before:bg-gray-100 before:left-[-14px] cursor-pointer" }, t1 = { key: 1 };
|
|
68
|
+
function o1(o, e, t, u, n, a) {
|
|
69
|
+
var x, p, b, k, H, y;
|
|
70
|
+
const _ = h("IconChevronDown"), i = h("router-link");
|
|
71
|
+
return (x = t.route) != null && x.menu ? (r(), l("div", Y, [
|
|
72
|
+
s("button", {
|
|
73
|
+
onClick: e[0] || (e[0] = (d) => n.isOpen = !n.isOpen),
|
|
74
|
+
class: "flex cursor-pointer gap-x-3 py-2 px-3 mb-[6px] text-sm text-gray-800 justify-start w-full border-none focus:outline-none text-gray-800 rounded-lg items-center focus:bg-gray-100 hover:bg-gray-100 duration-300"
|
|
75
|
+
}, [
|
|
76
|
+
v(w((p = t.route) == null ? void 0 : p.ua) + " ", 1),
|
|
77
|
+
C(_, {
|
|
78
|
+
class: m([[n.isOpen && "-rotate-180"], "ml-auto duration-300"]),
|
|
79
|
+
width: "16",
|
|
80
|
+
height: "16"
|
|
81
|
+
}, null, 8, ["class"])
|
|
82
|
+
]),
|
|
83
|
+
C(O, { name: "fade" }, {
|
|
84
|
+
default: V(() => {
|
|
85
|
+
var d;
|
|
86
|
+
return [
|
|
87
|
+
L(s("ul", e1, [
|
|
88
|
+
(r(!0), l(Z, null, E((d = t.route) == null ? void 0 : d.menu, (c, I) => {
|
|
89
|
+
var M, $;
|
|
90
|
+
return r(), l("li", {
|
|
91
|
+
key: I,
|
|
92
|
+
class: "w-full"
|
|
93
|
+
}, [
|
|
94
|
+
C(i, {
|
|
95
|
+
to: "/" + (c == null ? void 0 : c.path),
|
|
96
|
+
class: m([[(($ = (M = o.$route) == null ? void 0 : M.path) == null ? void 0 : $.includes(c == null ? void 0 : c.path)) && "bg-gray-100"], "flex gap-x-3 py-2 w-full font-[400] px-3 text-sm text-gray-800 rounded-lg items-center hover:bg-gray-100 duration-300 hover:text-gray-800"])
|
|
97
|
+
}, {
|
|
98
|
+
default: V(() => [
|
|
99
|
+
v(w(c == null ? void 0 : c.ua), 1)
|
|
100
|
+
]),
|
|
101
|
+
_: 2
|
|
102
|
+
}, 1032, ["to", "class"])
|
|
103
|
+
]);
|
|
104
|
+
}), 128))
|
|
105
|
+
], 512), [
|
|
106
|
+
[D, n.isOpen]
|
|
107
|
+
])
|
|
108
|
+
];
|
|
109
|
+
}),
|
|
110
|
+
_: 1
|
|
111
|
+
})
|
|
112
|
+
])) : (r(), l("div", t1, [
|
|
113
|
+
C(i, {
|
|
114
|
+
to: (b = t.route) == null ? void 0 : b.path,
|
|
115
|
+
class: m([[((y = (k = o.$route) == null ? void 0 : k.path) == null ? void 0 : y.includes((H = t.route) == null ? void 0 : H.path)) && "bg-gray-100"], "flex gap-x-3 py-2 w-full font-[400] px-3 text-sm text-gray-800 rounded-lg items-center hover:bg-gray-100 duration-300 hover:text-gray-800"])
|
|
116
|
+
}, {
|
|
117
|
+
default: V(() => {
|
|
118
|
+
var d;
|
|
119
|
+
return [
|
|
120
|
+
v(w((d = t.route) == null ? void 0 : d.ua), 1)
|
|
121
|
+
];
|
|
122
|
+
}),
|
|
123
|
+
_: 1
|
|
124
|
+
}, 8, ["to", "class"])
|
|
125
|
+
]));
|
|
126
|
+
}
|
|
127
|
+
const n1 = /* @__PURE__ */ f(X, [["render", o1]]), r1 = {
|
|
128
|
+
components: { IconLogout: q, NavbarItem: n1, IconLogo: K },
|
|
129
|
+
data() {
|
|
130
|
+
return {
|
|
131
|
+
activeIndex: null,
|
|
132
|
+
data: null,
|
|
133
|
+
searchValue: ""
|
|
134
|
+
};
|
|
135
|
+
},
|
|
136
|
+
computed: {
|
|
137
|
+
data() {
|
|
138
|
+
var o, e;
|
|
139
|
+
return (o = this.searchValue) != null && o.trim() ? (e = this.flattenMenu(g.value)) == null ? void 0 : e.filter(
|
|
140
|
+
(t) => {
|
|
141
|
+
var u, n, a;
|
|
142
|
+
return (a = (u = t == null ? void 0 : t.ua) == null ? void 0 : u.toLowerCase()) == null ? void 0 : a.includes((n = this.searchValue) == null ? void 0 : n.toLowerCase());
|
|
143
|
+
}
|
|
144
|
+
) : g.value;
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
methods: {
|
|
148
|
+
flattenMenu(o) {
|
|
149
|
+
const e = [];
|
|
150
|
+
return o.forEach((t) => {
|
|
151
|
+
t.menu ? e.push(...this.flattenMenu(t.menu)) : e.push(t);
|
|
152
|
+
}), e;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}, l1 = { class: "flex flex-col h-[100vh] border-r w-[300px]" }, a1 = { class: "p-[16px] overflow-y-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300 dark:[&::-webkit-scrollbar-track]:bg-neutral-700 dark:[&::-webkit-scrollbar-thumb]:bg-neutral-500" }, s1 = { class: "pb-3 w-full flex flex-col flex-wrap" }, c1 = {
|
|
156
|
+
key: 0,
|
|
157
|
+
class: "flex flex-col gap-[6px]"
|
|
158
|
+
}, u1 = {
|
|
159
|
+
key: 1,
|
|
160
|
+
class: "text-gray-800 text-lg mt-[20px]"
|
|
161
|
+
};
|
|
162
|
+
function C1(o, e, t, u, n, a) {
|
|
163
|
+
var x;
|
|
164
|
+
const _ = h("IconLogo"), i = h("NavbarItem");
|
|
165
|
+
return r(), l("div", l1, [
|
|
166
|
+
C(_, {
|
|
167
|
+
height: "40",
|
|
168
|
+
width: "200",
|
|
169
|
+
class: "my-[20px] ml-[20px]"
|
|
170
|
+
}),
|
|
171
|
+
L(s("input", {
|
|
172
|
+
type: "text",
|
|
173
|
+
"onUpdate:modelValue": e[0] || (e[0] = (p) => n.searchValue = p),
|
|
174
|
+
placeholder: "Пошук по меню",
|
|
175
|
+
class: "h-[40px] block rounded-lg border mx-[10px] pl-[10px] focus:border-blue-600 focus:border-[2px] outline-none"
|
|
176
|
+
}, null, 512), [
|
|
177
|
+
[j, n.searchValue]
|
|
178
|
+
]),
|
|
179
|
+
s("div", a1, [
|
|
180
|
+
s("nav", s1, [
|
|
181
|
+
(x = a.data) != null && x.length ? (r(), l("ul", c1, [
|
|
182
|
+
(r(!0), l(Z, null, E(a.data, (p, b) => (r(), l("li", { key: b }, [
|
|
183
|
+
C(i, { route: p }, null, 8, ["route"])
|
|
184
|
+
]))), 128))
|
|
185
|
+
])) : (r(), l("div", u1, "Нічього не знайдено"))
|
|
186
|
+
])
|
|
187
|
+
])
|
|
188
|
+
]);
|
|
189
|
+
}
|
|
190
|
+
const i1 = /* @__PURE__ */ f(r1, [["render", C1]]), p1 = {
|
|
191
|
+
components: { navbar: i1 },
|
|
192
|
+
mounted() {
|
|
193
|
+
this.getMenu();
|
|
194
|
+
},
|
|
195
|
+
computed: {
|
|
196
|
+
isMenu() {
|
|
197
|
+
return g.value;
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
methods: {
|
|
201
|
+
async getMenu() {
|
|
202
|
+
try {
|
|
203
|
+
const { data: o } = await N.get("/api/user-menu");
|
|
204
|
+
g.value = o;
|
|
205
|
+
} catch {
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}, d1 = { class: "admin-wrapper" };
|
|
210
|
+
function h1(o, e, t, u, n, a) {
|
|
211
|
+
const _ = h("navbar"), i = h("router-view");
|
|
212
|
+
return r(), l("div", d1, [
|
|
213
|
+
C(_),
|
|
214
|
+
a.isMenu ? (r(), z(i, { key: 0 })) : S("", !0)
|
|
215
|
+
]);
|
|
216
|
+
}
|
|
217
|
+
const b1 = /* @__PURE__ */ f(p1, [["render", h1], ["__scopeId", "data-v-3a278cfb"]]);
|
|
218
|
+
export {
|
|
219
|
+
b1 as default
|
|
220
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { _ as n, a as c } from "./import-file-DPHo57R5.js";
|
|
2
|
+
import { openBlock as i, createElementBlock as l, createElementVNode as t } from "vue";
|
|
3
|
+
const d = {
|
|
4
|
+
data() {
|
|
5
|
+
return {
|
|
6
|
+
objectData: null
|
|
7
|
+
};
|
|
8
|
+
},
|
|
9
|
+
mounted() {
|
|
10
|
+
this.getObjectData();
|
|
11
|
+
},
|
|
12
|
+
methods: {
|
|
13
|
+
async getObjectData() {
|
|
14
|
+
var a, r;
|
|
15
|
+
const { table: s, id: o } = (a = this.$route) == null ? void 0 : a.params;
|
|
16
|
+
(!s || !o) && this.$router.replace("/404");
|
|
17
|
+
try {
|
|
18
|
+
const { data: e } = await c.get(`/api/table-data/${s}/${o}`);
|
|
19
|
+
this.objectData = (r = e == null ? void 0 : e.data) == null ? void 0 : r.general_info, console.log(e == null ? void 0 : e.rows);
|
|
20
|
+
} catch {
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}, p = { style: { width: "calc(100vw - 260px)" } }, x = {
|
|
25
|
+
style: { height: "calc(100vh - 60px)", width: "calc(100vw - 260px)" },
|
|
26
|
+
class: "bg-gray-50 p-[20px] flex"
|
|
27
|
+
}, u = { class: "p-[20px]" }, h = ["innerHTML"];
|
|
28
|
+
function b(s, o, a, r, e, f) {
|
|
29
|
+
return i(), l("div", p, [
|
|
30
|
+
o[0] || (o[0] = t("div", { class: "h-[58px] bg-gray-50 flex items-center justify-between px-[30px]" }, [
|
|
31
|
+
t("h2", { class: "text-xl font-medium" }, "Створити"),
|
|
32
|
+
t("div", { class: "flex items-center gap-[6px]" }, [
|
|
33
|
+
t("button", { class: "py-2 px-3 flex items-center gap-x-2 text-sm text-white font-medium rounded-lg border-none bg-blue-500 text-gray-800 shadow-sm focus:border-none focus:outline-none hover:bg-blue-700 hover:text-white duration-300" }, " Редагувати ")
|
|
34
|
+
])
|
|
35
|
+
], -1)),
|
|
36
|
+
t("div", x, [
|
|
37
|
+
t("div", u, [
|
|
38
|
+
t("div", {
|
|
39
|
+
class: "bg-white w-full rounded-xl border p-[20px]",
|
|
40
|
+
innerHTML: e.objectData
|
|
41
|
+
}, null, 8, h)
|
|
42
|
+
])
|
|
43
|
+
])
|
|
44
|
+
]);
|
|
45
|
+
}
|
|
46
|
+
const _ = /* @__PURE__ */ n(d, [["render", b]]);
|
|
47
|
+
export {
|
|
48
|
+
_ as default
|
|
49
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { resolveComponent as e, openBlock as r, createBlock as t } from "vue";
|
|
2
|
+
import { _ as c } from "./import-file-DPHo57R5.js";
|
|
3
|
+
const n = {};
|
|
4
|
+
function s(_, p, a, i, f, m) {
|
|
5
|
+
const o = e("router-view");
|
|
6
|
+
return r(), t(o);
|
|
7
|
+
}
|
|
8
|
+
const l = /* @__PURE__ */ c(n, [["render", s]]);
|
|
9
|
+
export {
|
|
10
|
+
l as default
|
|
11
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import "./userMenu-CT1xO2Pt.js";
|
|
2
|
+
import { f as u } from "./form-TrZSpRSC.js";
|
|
3
|
+
import { resolveComponent as m, openBlock as a, createElementBlock as i, createElementVNode as t, createVNode as p } from "vue";
|
|
4
|
+
import { _ as c } from "./import-file-DPHo57R5.js";
|
|
5
|
+
const f = {
|
|
6
|
+
data() {
|
|
7
|
+
return {
|
|
8
|
+
formValues: {}
|
|
9
|
+
};
|
|
10
|
+
},
|
|
11
|
+
computed: {
|
|
12
|
+
form() {
|
|
13
|
+
return u;
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
mounted() {
|
|
17
|
+
},
|
|
18
|
+
methods: {
|
|
19
|
+
flattenMenu(r) {
|
|
20
|
+
const e = [];
|
|
21
|
+
return r.forEach((o) => {
|
|
22
|
+
o.menu ? e.push(...this.flattenMenu(o.menu)) : e.push(o);
|
|
23
|
+
}), e;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}, x = { style: { width: "calc(100vw - 260px)" } }, h = { class: "h-[58px] bg-gray-50 flex items-center justify-between px-[30px]" }, g = { class: "flex items-center gap-[6px]" }, b = {
|
|
27
|
+
style: { height: "calc(100vh - 60px)", width: "calc(100vw - 260px)" },
|
|
28
|
+
class: "bg-gray-50 p-[20px] flex"
|
|
29
|
+
}, v = { class: "bg-white w-full rounded-xl border p-[20px]" };
|
|
30
|
+
function w(r, e, o, y, s, l) {
|
|
31
|
+
const d = m("VsForm");
|
|
32
|
+
return a(), i("div", x, [
|
|
33
|
+
t("div", h, [
|
|
34
|
+
e[3] || (e[3] = t("h2", { class: "text-xl font-medium" }, "Створити", -1)),
|
|
35
|
+
t("div", g, [
|
|
36
|
+
t("button", {
|
|
37
|
+
onClick: e[0] || (e[0] = (n) => r.$router.back()),
|
|
38
|
+
class: "py-2 px-3 flex items-center gap-x-2 text-sm font-medium rounded-lg border border-gray-100 text-gray-800 shadow bg-white focus:outline-none hover:bg-gray-50 hover:border-gray-100 duration-300"
|
|
39
|
+
}, " Скасувати "),
|
|
40
|
+
e[2] || (e[2] = t("button", { class: "py-2 px-3 flex items-center gap-x-2 text-sm text-white font-medium rounded-lg border-none bg-blue-500 text-gray-800 shadow-sm focus:border-none focus:outline-none hover:bg-blue-700 hover:text-white duration-300" }, " Зберегти ", -1))
|
|
41
|
+
])
|
|
42
|
+
]),
|
|
43
|
+
t("div", b, [
|
|
44
|
+
t("div", v, [
|
|
45
|
+
p(d, {
|
|
46
|
+
scheme: l.form,
|
|
47
|
+
modelValue: s.formValues,
|
|
48
|
+
"onUpdate:modelValue": e[1] || (e[1] = (n) => s.formValues = n),
|
|
49
|
+
class: "p-0 mt-[20px]"
|
|
50
|
+
}, null, 8, ["scheme", "modelValue"])
|
|
51
|
+
])
|
|
52
|
+
])
|
|
53
|
+
]);
|
|
54
|
+
}
|
|
55
|
+
const $ = /* @__PURE__ */ c(f, [["render", w]]);
|
|
56
|
+
export {
|
|
57
|
+
$ as default
|
|
58
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
ua: "Прізвище",
|
|
3
|
+
type: "text",
|
|
4
|
+
validators: [
|
|
5
|
+
"required"
|
|
6
|
+
]
|
|
7
|
+
}, a = {
|
|
8
|
+
ua: "Ім'я",
|
|
9
|
+
type: "text",
|
|
10
|
+
validators: [
|
|
11
|
+
"required"
|
|
12
|
+
]
|
|
13
|
+
}, t = {
|
|
14
|
+
ua: "По батькові",
|
|
15
|
+
type: "text"
|
|
16
|
+
}, r = {
|
|
17
|
+
ua: "Email",
|
|
18
|
+
type: "email",
|
|
19
|
+
validators: [
|
|
20
|
+
"required"
|
|
21
|
+
]
|
|
22
|
+
}, n = {
|
|
23
|
+
ua: "Номер телефону",
|
|
24
|
+
type: "text"
|
|
25
|
+
}, s = {
|
|
26
|
+
ua: "Аватар",
|
|
27
|
+
type: "file"
|
|
28
|
+
}, o = {
|
|
29
|
+
sur_name: e,
|
|
30
|
+
user_name: a,
|
|
31
|
+
father_name: t,
|
|
32
|
+
email: r,
|
|
33
|
+
phone: n,
|
|
34
|
+
avatar: s
|
|
35
|
+
};
|
|
36
|
+
export {
|
|
37
|
+
o as f
|
|
38
|
+
};
|