@opengis/admin 0.1.59 → 0.1.61
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/{add-page-BOXd-uV_.js → add-page-C3Wh2-Ml.js} +13 -11
- package/dist/admin-interface-C4m7uvG2.js +896 -0
- package/dist/admin-view-YtM2-LrW.js +225 -0
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +95 -207
- package/dist/card-page-WrYs8chM.js +133 -0
- package/dist/{card-view-NLu0N8TA.js → card-view-BwtqUSFP.js} +1 -1
- package/dist/{edit-page-z7ozrw2C.js → edit-page-CMTqsvJf.js} +34 -33
- package/dist/import-file-bdYAo8iW.js +29759 -0
- package/dist/style.css +1 -1
- package/dist/userMenu-CT1xO2Pt.js +5 -0
- package/module/settings/select/core.roles.json +2 -2
- package/package.json +4 -4
- package/plugin.js +5 -69
- package/server/plugins/adminHook.js +165 -0
- package/server/plugins/cron.js +11 -0
- package/server/plugins/hook.js +145 -221
- package/server/routes/data/controllers/cardData.js +5 -4
- package/server/routes/data/controllers/funcs/getFilterSQL/util/formatValue.js +5 -5
- package/server/routes/data/controllers/tableData.js +9 -42
- package/server/routes/data/controllers/tableFilter.js +3 -3
- package/server/routes/data/controllers/utils/getColumns.js +2 -15
- package/server/routes/templates/controllers/getTemplate.js +5 -1
- package/dist/admin-interface-DbfKIAnw.js +0 -1347
- package/dist/admin-view-DDDd_P1v.js +0 -461
- package/dist/card-page-Bq7fUm5C.js +0 -230
- package/dist/import-file-BBA7riUK.js +0 -47257
@@ -1,5 +1,6 @@
|
|
1
|
-
import {
|
2
|
-
import {
|
1
|
+
import { u as m } from "./userMenu-CT1xO2Pt.js";
|
2
|
+
import { _ as b, a as c } from "./import-file-bdYAo8iW.js";
|
3
|
+
import { resolveComponent as h, openBlock as i, createElementBlock as d, createElementVNode as a, createBlock as f, createCommentVNode as p } from "vue";
|
3
4
|
const g = {
|
4
5
|
data() {
|
5
6
|
return {
|
@@ -19,7 +20,7 @@ const g = {
|
|
19
20
|
}), e;
|
20
21
|
},
|
21
22
|
async getFormScheme() {
|
22
|
-
const t = this.flattenMenu(
|
23
|
+
const t = this.flattenMenu(m.value);
|
23
24
|
t != null && t.length || this.$router.replace("/404");
|
24
25
|
const e = t == null ? void 0 : t.find((s) => {
|
25
26
|
var r, l;
|
@@ -37,8 +38,9 @@ const g = {
|
|
37
38
|
}
|
38
39
|
},
|
39
40
|
async createObject() {
|
41
|
+
var t, e;
|
40
42
|
try {
|
41
|
-
await this.$refs.form.doValidation(), await c.post(`/api/table/${this.table}`, this.formValues), await this.$router.
|
43
|
+
await this.$refs.form.doValidation(), await c.post(`/api/table/${this.table}`, this.formValues), await this.$router.replace(`/${(e = (t = this.$route) == null ? void 0 : t.query) == null ? void 0 : e.table}`), await this.$notify({
|
42
44
|
title: "Успішно!",
|
43
45
|
message: "Об'єкт успішно створено",
|
44
46
|
type: "success"
|
@@ -52,8 +54,8 @@ const g = {
|
|
52
54
|
}
|
53
55
|
}
|
54
56
|
}
|
55
|
-
}, x = { style: { width: "calc(100vw - 260px)" } }, w = { class: "h-[
|
56
|
-
style: { height: "calc(100vh -
|
57
|
+
}, x = { style: { width: "calc(100vw - 260px)" } }, w = { class: "h-[58px] bg-gray-50 flex items-center justify-between px-[30px]" }, y = { class: "flex items-center gap-[6px]" }, k = {
|
58
|
+
style: { height: "calc(100vh - 60px)", width: "calc(100vw - 260px)" },
|
57
59
|
class: "bg-gray-50 p-[20px] flex"
|
58
60
|
}, v = { class: "bg-white w-full rounded-xl border p-[20px] overflow-auto [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar:horizontal]:h-[8px] [&::-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" };
|
59
61
|
function V(t, e, o, s, r, l) {
|
@@ -68,25 +70,25 @@ function V(t, e, o, s, r, l) {
|
|
68
70
|
}, " Скасувати "),
|
69
71
|
a("button", {
|
70
72
|
onClick: e[1] || (e[1] = (...n) => l.createObject && l.createObject(...n)),
|
71
|
-
class: "py-2 px-3
|
73
|
+
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"
|
72
74
|
}, " Зберегти ")
|
73
75
|
])
|
74
76
|
]),
|
75
77
|
a("div", k, [
|
76
78
|
a("div", v, [
|
77
|
-
r.scheme ? (i(),
|
79
|
+
r.scheme ? (i(), f(u, {
|
78
80
|
key: 0,
|
79
81
|
ref: "form",
|
80
82
|
scheme: r.scheme,
|
81
83
|
modelValue: r.formValues,
|
82
84
|
"onUpdate:modelValue": e[2] || (e[2] = (n) => r.formValues = n),
|
83
85
|
class: "p-0 mt-[20px]"
|
84
|
-
}, null, 8, ["scheme", "modelValue"])) :
|
86
|
+
}, null, 8, ["scheme", "modelValue"])) : p("", !0)
|
85
87
|
])
|
86
88
|
])
|
87
89
|
]);
|
88
90
|
}
|
89
|
-
const
|
91
|
+
const C = /* @__PURE__ */ b(g, [["render", V]]);
|
90
92
|
export {
|
91
|
-
|
93
|
+
C as default
|
92
94
|
};
|