@opengis/admin 0.1.4 → 0.1.5
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/dist/{add-page-D6D_vCdT.js → add-page-JI-blQM-.js} +1 -1
- package/dist/{admin-interface-BpAoXL6Y.js → admin-interface-DQ7GmGCx.js} +96 -95
- package/dist/{admin-view-Ctnb3YHc.js → admin-view-DNKXD1JW.js} +79 -74
- package/dist/admin.js +1 -1
- package/dist/admin.umd.cjs +20 -20
- package/dist/{card-page-CDUWky8v.js → card-page-BagSWQrm.js} +23 -23
- package/dist/{card-view-BdtKFM_Q.js → card-view-D1chzwJf.js} +1 -1
- package/dist/{edit-page-Bl7TSfk5.js → edit-page-CDw8N17U.js} +1 -1
- package/dist/{import-file-bAV0TNST.js → import-file-Clxr3e1P.js} +1385 -1388
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/server/routes/data/controllers/utils/assignTokens.js +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { u as T } from "./userMenu-CT1xO2Pt.js";
|
|
2
|
-
import { _ as H, a as N } from "./import-file-
|
|
2
|
+
import { _ as H, a as N } from "./import-file-Clxr3e1P.js";
|
|
3
3
|
import { resolveComponent as B, openBlock as a, createElementBlock as c, createElementVNode as n, toDisplayString as i, createVNode as E, withCtx as z, createTextVNode as G, normalizeClass as D, Fragment as j, renderList as $, createBlock as O, resolveDynamicComponent as R, createCommentVNode as p } from "vue";
|
|
4
4
|
const F = {
|
|
5
5
|
data() {
|
|
@@ -9,13 +9,13 @@ const F = {
|
|
|
9
9
|
},
|
|
10
10
|
computed: {
|
|
11
11
|
getRoute() {
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
const
|
|
12
|
+
const t = this.flattenMenu(T.value);
|
|
13
|
+
t != null && t.length || this.$router.replace("/404");
|
|
14
|
+
const e = t == null ? void 0 : t.find((r) => {
|
|
15
15
|
var d, l;
|
|
16
16
|
return (r == null ? void 0 : r.table) == ((l = (d = this.$route) == null ? void 0 : d.params) == null ? void 0 : l.table);
|
|
17
17
|
});
|
|
18
|
-
return
|
|
18
|
+
return e || this.$router.replace("/404"), e == null ? void 0 : e.path;
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
mounted() {
|
|
@@ -24,26 +24,26 @@ const F = {
|
|
|
24
24
|
methods: {
|
|
25
25
|
async getObjectData() {
|
|
26
26
|
var r;
|
|
27
|
-
const { table:
|
|
28
|
-
(!
|
|
27
|
+
const { table: t, id: e } = (r = this.$route) == null ? void 0 : r.params;
|
|
28
|
+
(!t || !e) && this.$router.replace("/404");
|
|
29
29
|
try {
|
|
30
|
-
const { data: d } = await N.get(`/api/table-data/${
|
|
30
|
+
const { data: d } = await N.get(`/api/table-data/${t}/${e}`);
|
|
31
31
|
this.objectData = d;
|
|
32
32
|
} catch (d) {
|
|
33
33
|
console.error(d);
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
getColClass(
|
|
37
|
-
return `col-span-${
|
|
36
|
+
getColClass(t) {
|
|
37
|
+
return `col-span-${t || 12}`;
|
|
38
38
|
},
|
|
39
39
|
getGridClass() {
|
|
40
40
|
return "grid-cols-12";
|
|
41
41
|
},
|
|
42
|
-
flattenMenu(
|
|
43
|
-
const
|
|
44
|
-
return
|
|
45
|
-
r.menu ?
|
|
46
|
-
}),
|
|
42
|
+
flattenMenu(t) {
|
|
43
|
+
const e = [];
|
|
44
|
+
return t.forEach((r) => {
|
|
45
|
+
r.menu ? e.push(...this.flattenMenu(r.menu)) : e.push(r);
|
|
46
|
+
}), e;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
}, I = {
|
|
@@ -59,25 +59,25 @@ const F = {
|
|
|
59
59
|
key: 1,
|
|
60
60
|
class: "p-[20px] border-t"
|
|
61
61
|
}, Z = ["innerHTML"];
|
|
62
|
-
function
|
|
62
|
+
function ee(t, e, r, d, l, u) {
|
|
63
63
|
var h, x, g, b, _, f;
|
|
64
64
|
const M = B("router-link");
|
|
65
65
|
return a(), c("div", I, [
|
|
66
66
|
n("div", P, [
|
|
67
67
|
n("div", S, [
|
|
68
68
|
n("button", {
|
|
69
|
-
onClick:
|
|
69
|
+
onClick: e[0] || (e[0] = (o) => t.$router.back()),
|
|
70
70
|
class: "text-xl font-medium text-gray-600 hover:text-black"
|
|
71
71
|
}, " До таблиці "),
|
|
72
|
-
|
|
72
|
+
e[1] || (e[1] = n("span", null, "/", -1)),
|
|
73
73
|
n("h2", q, i(((g = (x = (h = l.objectData) == null ? void 0 : h.rows) == null ? void 0 : x[0]) == null ? void 0 : g.name) || "Сторінка об'єкта"), 1)
|
|
74
74
|
]),
|
|
75
75
|
n("div", A, [
|
|
76
76
|
E(M, {
|
|
77
|
-
to: `/edit?table=${u.getRoute}&id=${(_ = (b =
|
|
77
|
+
to: `/edit?table=${u.getRoute}&id=${(_ = (b = t.$route) == null ? void 0 : b.params) == null ? void 0 : _.id}`,
|
|
78
78
|
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"
|
|
79
79
|
}, {
|
|
80
|
-
default: z(() =>
|
|
80
|
+
default: z(() => e[2] || (e[2] = [
|
|
81
81
|
G(" Редагувати ")
|
|
82
82
|
])),
|
|
83
83
|
_: 1
|
|
@@ -111,7 +111,7 @@ function tt(e, t, r, d, l, u) {
|
|
|
111
111
|
(a(), O(R(s.component), {
|
|
112
112
|
geometry: (y = (v = l.objectData) == null ? void 0 : v.rows[0]) == null ? void 0 : y.geom,
|
|
113
113
|
zoom: 16,
|
|
114
|
-
id: (w = (k =
|
|
114
|
+
id: (w = (k = t.$route) == null ? void 0 : k.params) == null ? void 0 : w.id
|
|
115
115
|
}, null, 8, ["geometry", "id"]))
|
|
116
116
|
])) : p("", !0),
|
|
117
117
|
s != null && s.name ? (a(), c("div", Y, [
|
|
@@ -127,7 +127,7 @@ function tt(e, t, r, d, l, u) {
|
|
|
127
127
|
], 2)
|
|
128
128
|
]);
|
|
129
129
|
}
|
|
130
|
-
const
|
|
130
|
+
const re = /* @__PURE__ */ H(F, [["render", ee], ["__scopeId", "data-v-86de1424"]]);
|
|
131
131
|
export {
|
|
132
|
-
|
|
132
|
+
re as default
|
|
133
133
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { u as m } from "./userMenu-CT1xO2Pt.js";
|
|
2
|
-
import { _ as h, a as c } from "./import-file-
|
|
2
|
+
import { _ as h, a as c } from "./import-file-Clxr3e1P.js";
|
|
3
3
|
import { resolveComponent as d, openBlock as u, createElementBlock as b, createElementVNode as n, createBlock as f, createCommentVNode as p } from "vue";
|
|
4
4
|
const g = {
|
|
5
5
|
data() {
|