@opengis/cms 0.0.54 → 0.0.56
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 +57 -24
- package/dist/{ArticlesPage-Cuit_90w.js → ArticlesPage-BcR1hbds.js} +3 -3
- package/dist/{BuilderPage-B79YHrmr.js → BuilderPage-CK_osM89.js} +51 -51
- package/dist/{CollectionsBreadcrumb.vue_vue_type_script_setup_true_lang-B6irHMzL.js → CollectionsBreadcrumb.vue_vue_type_script_setup_true_lang-CnOe9ORD.js} +19 -19
- package/dist/{EditCollectionPage-CAVLcvLg.js → EditCollectionPage-Cw3GQYRe.js} +2 -2
- package/dist/{MenuAddPage-CmU4kAUM.js → MenuAddPage-Bf48Z-ah.js} +1 -1
- package/dist/{MenuItemPage-UV8JlJvT.js → MenuItemPage-CXn5HC8j.js} +113 -112
- package/dist/{MenuPage-c4TPJgIN.js → MenuPage-tJZtK46W.js} +1 -1
- package/dist/MonacoEditor.vue_vue_type_script_setup_true_lang-B1DrxmQX.js +84 -0
- package/dist/{UniversalTable.vue_vue_type_script_setup_true_lang-DR4PQwqR.js → UniversalTable.vue_vue_type_script_setup_true_lang-CJGTsd1V.js} +80 -80
- package/dist/{UniversalTablePagination.vue_vue_type_script_setup_true_lang-C8P9DCeX.js → UniversalTablePagination.vue_vue_type_script_setup_true_lang-GYZd_gkA.js} +46 -46
- package/dist/{contentForm-BQdeYVFh.js → contentForm-B6gHgGkz.js} +1 -1
- package/dist/index.js +5 -5
- package/dist/style.css +1 -1
- package/package.json +68 -68
- package/server/functions/getContent.js +3 -3
- package/server/functions/getSearchData.js +1 -1
- package/server/migrations/site.sql +2 -2
- package/server/routes/cms/controllers/getContent.js +6 -4
- package/server/routes/cms/controllers/getPermissions.js +15 -15
- package/server/routes/cms/controllers/setPermissions.js +49 -49
- package/server/routes/cms/controllers/updateContent.js +27 -1
- package/server/routes/cms/functions/getSettings.js +1 -1
- package/server/routes/cms/utils/getSingle.js +6 -10
- package/server/routes/contentType/controllers/editContentType.js +29 -9
- package/server/routes/contentType/controllers/getContentType.js +13 -0
- package/server/routes/contentType/utils/updateContents.js +16 -0
- package/server/routes/menu/controllers/getMenu.js +2 -2
- package/server/routes/menu/functions/getMenu.js +3 -3
- package/server/templates/select/core.user_mentioned.sql +1 -1
- package/dist/MonacoEditor.vue_vue_type_script_setup_true_lang-C8cip9Ci.js +0 -84
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { openBlock as w, createElementBlock as F, createStaticVNode as Re, defineComponent as D, ref as k, normalizeClass as B, createTextVNode as
|
|
1
|
+
import { openBlock as w, createElementBlock as F, createStaticVNode as Re, defineComponent as D, ref as k, normalizeClass as B, createTextVNode as X, toDisplayString as _, createCommentVNode as $, createBlock as O, unref as y, withModifiers as Y, createVNode as A, createElementVNode as v, withDirectives as Le, withKeys as te, vModelText as Me, watch as Ue, resolveComponent as De, withCtx as j, nextTick as ne, mergeModels as Ye, useModel as pe, onBeforeMount as Be, Fragment as $e, computed as Pe, onMounted as Ve } from "vue";
|
|
2
2
|
import { d as He } from "./vuedraggable-CoAPPFYd.js";
|
|
3
3
|
import { _ as qe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
import { Pencil as je, Trash2 as Ke, Check as Ge, X as Qe, Plus as We, ArrowLeft as ze, HelpCircle as Ze, Save as Xe } from "lucide-vue-next";
|
|
5
5
|
import { confirm as Je, VsModal as er, notify as I } from "@opengis/core";
|
|
6
6
|
import { useI18n as H } from "vue-i18n";
|
|
7
|
-
import rr, { inputs as
|
|
8
|
-
import { _ as he } from "./MonacoEditor.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import rr, { inputs as K, VForm as ve } from "@opengis/form";
|
|
8
|
+
import { _ as he } from "./MonacoEditor.vue_vue_type_script_setup_true_lang-B1DrxmQX.js";
|
|
9
9
|
import { useRouter as tr, useRoute as nr } from "vue-router";
|
|
10
10
|
const ir = {}, lr = {
|
|
11
11
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -48,15 +48,15 @@ const ur = /* @__PURE__ */ qe(ir, [["render", ar]]), or = {
|
|
|
48
48
|
n.value = !1, a.value = "";
|
|
49
49
|
};
|
|
50
50
|
return (s, m) => (w(), F("div", {
|
|
51
|
-
class: B([{ "space-y-1": typeof
|
|
51
|
+
class: B([{ "space-y-1": typeof e.value != "string" }, "dark:bg-transparent"])
|
|
52
52
|
}, [
|
|
53
53
|
n.value ? (w(), F("div", cr, [
|
|
54
|
-
v("span", fr,
|
|
54
|
+
v("span", fr, _(e.title) + ":", 1),
|
|
55
55
|
Le(v("input", {
|
|
56
56
|
"onUpdate:modelValue": m[1] || (m[1] = (p) => a.value = p),
|
|
57
57
|
onKeyup: [
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
te(u, ["enter"]),
|
|
59
|
+
te(o, ["esc"])
|
|
60
60
|
],
|
|
61
61
|
onBlur: u,
|
|
62
62
|
class: "flex-1 px-2 py-1 text-sm border border-gray-300 rounded dark:bg-neutral-800 dark:border-neutral-600 dark:text-neutral-200 focus:outline-none focus:ring-2 focus:ring-blue-500",
|
|
@@ -70,28 +70,28 @@ const ur = /* @__PURE__ */ qe(ir, [["render", ar]]), or = {
|
|
|
70
70
|
class: "shrink-0 p-1 text-green-600 dark:text-green-400 hover:bg-green-50 dark:hover:bg-green-900/20 rounded",
|
|
71
71
|
title: "Save"
|
|
72
72
|
}, [
|
|
73
|
-
|
|
73
|
+
A(y(Ge), { class: "size-4" })
|
|
74
74
|
]),
|
|
75
75
|
v("button", {
|
|
76
76
|
onClick: Y(o, ["stop"]),
|
|
77
77
|
class: "shrink-0 p-1 text-red-600 dark:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 rounded",
|
|
78
78
|
title: "Cancel"
|
|
79
79
|
}, [
|
|
80
|
-
|
|
80
|
+
A(y(Qe), { class: "size-4" })
|
|
81
81
|
])
|
|
82
82
|
])) : (w(), F("div", or, [
|
|
83
|
-
|
|
84
|
-
typeof
|
|
85
|
-
typeof
|
|
83
|
+
X(_(e.title) + " ", 1),
|
|
84
|
+
typeof e.value == "string" ? (w(), F("span", sr, _(e.value), 1)) : $("", !0),
|
|
85
|
+
typeof e.value == "string" ? (w(), O(y(je), {
|
|
86
86
|
key: 1,
|
|
87
87
|
class: "shrink-0 size-4 ml-auto text-gray-500 dark:text-neutral-500 cursor-pointer hover:text-blue-600 dark:hover:text-blue-400",
|
|
88
88
|
onClick: Y(l, ["stop"])
|
|
89
89
|
})) : $("", !0),
|
|
90
|
-
|
|
90
|
+
A(y(Ke), {
|
|
91
91
|
class: "shrink-0 size-4 text-gray-500 dark:text-neutral-500 cursor-pointer hover:text-red-600 dark:hover:text-red-400",
|
|
92
92
|
onClick: m[0] || (m[0] = Y((p) => i("delete"), ["stop"]))
|
|
93
93
|
}),
|
|
94
|
-
|
|
94
|
+
A(ur, { class: "shrink-0 size-4 cursor-pointer text-gray-500 dark:text-neutral-500" })
|
|
95
95
|
]))
|
|
96
96
|
], 2));
|
|
97
97
|
}
|
|
@@ -129,11 +129,11 @@ const ur = /* @__PURE__ */ qe(ir, [["render", ar]]), or = {
|
|
|
129
129
|
}
|
|
130
130
|
});
|
|
131
131
|
}, o = (m, p) => {
|
|
132
|
-
m.value = p,
|
|
132
|
+
m.value = p, ne(() => {
|
|
133
133
|
a.value = [...a.value], n("update:list", a.value);
|
|
134
134
|
});
|
|
135
135
|
}, s = (m, p) => {
|
|
136
|
-
m.children = p,
|
|
136
|
+
m.children = p, ne(() => {
|
|
137
137
|
a.value = [...a.value], n("update:list", a.value);
|
|
138
138
|
});
|
|
139
139
|
};
|
|
@@ -150,7 +150,7 @@ const ur = /* @__PURE__ */ qe(ir, [["render", ar]]), or = {
|
|
|
150
150
|
}, {
|
|
151
151
|
item: j(({ element: d }) => [
|
|
152
152
|
v("div", dr, [
|
|
153
|
-
|
|
153
|
+
A(mr, {
|
|
154
154
|
title: d.title,
|
|
155
155
|
value: d.value,
|
|
156
156
|
onDelete: (f) => u(d),
|
|
@@ -177,7 +177,7 @@ const ur = /* @__PURE__ */ qe(ir, [["render", ar]]), or = {
|
|
|
177
177
|
},
|
|
178
178
|
emits: /* @__PURE__ */ Ye(["addNewItem"], ["update:isOpen"]),
|
|
179
179
|
setup(e, { emit: r }) {
|
|
180
|
-
const { t } = H(), i =
|
|
180
|
+
const { t } = H(), i = pe(e, "isOpen"), n = k({}), a = r, l = k({}), u = {
|
|
181
181
|
title: {
|
|
182
182
|
type: "text",
|
|
183
183
|
label: t("cms.menu.form.name"),
|
|
@@ -218,15 +218,15 @@ const ur = /* @__PURE__ */ qe(ir, [["render", ar]]), or = {
|
|
|
218
218
|
onClick: m[2] || (m[2] = (p) => {
|
|
219
219
|
i.value = !1, l.value = {};
|
|
220
220
|
})
|
|
221
|
-
},
|
|
221
|
+
}, _(s.$t("cms.common.actions.cancel")), 1),
|
|
222
222
|
v("button", {
|
|
223
223
|
onClick: o,
|
|
224
224
|
class: "py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"
|
|
225
|
-
},
|
|
225
|
+
}, _(s.$t("cms.common.actions.save")), 1)
|
|
226
226
|
])
|
|
227
227
|
]),
|
|
228
228
|
default: j(() => [
|
|
229
|
-
|
|
229
|
+
A(y(rr), {
|
|
230
230
|
form: n.value,
|
|
231
231
|
"onUpdate:form": m[0] || (m[0] = (p) => n.value = p),
|
|
232
232
|
modelValue: l.value,
|
|
@@ -245,8 +245,8 @@ const ur = /* @__PURE__ */ qe(ir, [["render", ar]]), or = {
|
|
|
245
245
|
},
|
|
246
246
|
emits: ["update:modelValue"],
|
|
247
247
|
setup(e) {
|
|
248
|
-
|
|
249
|
-
const { t: r } = H(), t = k(!1), i = k(null), n =
|
|
248
|
+
K["vs-input-monaco-editor"] = he;
|
|
249
|
+
const { t: r } = H(), t = k(!1), i = k(null), n = pe(e, "modelValue"), a = k({}), l = async (c) => {
|
|
250
250
|
try {
|
|
251
251
|
if (await a.value.validate()) {
|
|
252
252
|
I({
|
|
@@ -321,7 +321,7 @@ const ur = /* @__PURE__ */ qe(ir, [["render", ar]]), or = {
|
|
|
321
321
|
return Be(() => {
|
|
322
322
|
Array.isArray(n.value.items) || (n.value.items = o(n.value.items));
|
|
323
323
|
}), (c, d) => (w(), F($e, null, [
|
|
324
|
-
|
|
324
|
+
A(y(ve), {
|
|
325
325
|
schema: u.value,
|
|
326
326
|
modelValue: n.value,
|
|
327
327
|
"onUpdate:modelValue": d[0] || (d[0] = (f) => n.value = f),
|
|
@@ -332,17 +332,17 @@ const ur = /* @__PURE__ */ qe(ir, [["render", ar]]), or = {
|
|
|
332
332
|
onClick: d[2] || (d[2] = (f) => t.value = !0),
|
|
333
333
|
class: "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium w-min ml-auto my-6 h-9 px-4 py-2 bg-blue-600 text-white shadow-md transition-all duration-200 transform hover:bg-blue-700 hover:shadow-lg hover:scale-105 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"
|
|
334
334
|
}, [
|
|
335
|
-
|
|
336
|
-
|
|
335
|
+
A(y(We), { class: "w-4 h-4 mr-2" }),
|
|
336
|
+
X(" " + _(c.$t("cms.menu.createMenu")), 1)
|
|
337
337
|
]),
|
|
338
|
-
|
|
338
|
+
A(hr, {
|
|
339
339
|
isOpen: t.value,
|
|
340
340
|
"onUpdate:isOpen": d[3] || (d[3] = (f) => t.value = f),
|
|
341
341
|
form: i.value,
|
|
342
342
|
"onUpdate:form": d[4] || (d[4] = (f) => i.value = f),
|
|
343
343
|
onAddNewItem: l
|
|
344
344
|
}, null, 8, ["isOpen", "form"]),
|
|
345
|
-
|
|
345
|
+
A(pr, {
|
|
346
346
|
class: "px-2",
|
|
347
347
|
list: n.value.items,
|
|
348
348
|
"onUpdate:list": s,
|
|
@@ -351,7 +351,7 @@ const ur = /* @__PURE__ */ qe(ir, [["render", ar]]), or = {
|
|
|
351
351
|
], 64));
|
|
352
352
|
}
|
|
353
353
|
});
|
|
354
|
-
/*! js-yaml 4.1.
|
|
354
|
+
/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */
|
|
355
355
|
function xe(e) {
|
|
356
356
|
return typeof e > "u" || e === null;
|
|
357
357
|
}
|
|
@@ -374,12 +374,12 @@ function kr(e, r) {
|
|
|
374
374
|
t += e;
|
|
375
375
|
return t;
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function Ar(e) {
|
|
378
378
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
379
379
|
}
|
|
380
|
-
var
|
|
381
|
-
isNothing:
|
|
382
|
-
isObject:
|
|
380
|
+
var br = xe, _r = gr, Er = yr, Fr = kr, Cr = Ar, Sr = wr, C = {
|
|
381
|
+
isNothing: br,
|
|
382
|
+
isObject: _r,
|
|
383
383
|
toArray: Er,
|
|
384
384
|
repeat: Fr,
|
|
385
385
|
isNegativeZero: Cr,
|
|
@@ -399,7 +399,7 @@ R.prototype.constructor = R;
|
|
|
399
399
|
R.prototype.toString = function(r) {
|
|
400
400
|
return this.name + ": " + ge(this, r);
|
|
401
401
|
};
|
|
402
|
-
var
|
|
402
|
+
var b = R, Nr = [
|
|
403
403
|
"kind",
|
|
404
404
|
"multi",
|
|
405
405
|
"resolve",
|
|
@@ -426,16 +426,16 @@ function Tr(e) {
|
|
|
426
426
|
function Ir(e, r) {
|
|
427
427
|
if (r = r || {}, Object.keys(r).forEach(function(t) {
|
|
428
428
|
if (Nr.indexOf(t) === -1)
|
|
429
|
-
throw new
|
|
429
|
+
throw new b('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
430
430
|
}), this.options = r, this.tag = e, this.kind = r.kind || null, this.resolve = r.resolve || function() {
|
|
431
431
|
return !0;
|
|
432
432
|
}, this.construct = r.construct || function(t) {
|
|
433
433
|
return t;
|
|
434
434
|
}, this.instanceOf = r.instanceOf || null, this.predicate = r.predicate || null, this.represent = r.represent || null, this.representName = r.representName || null, this.defaultStyle = r.defaultStyle || null, this.multi = r.multi || !1, this.styleAliases = Tr(r.styleAliases || null), Or.indexOf(this.kind) === -1)
|
|
435
|
-
throw new
|
|
435
|
+
throw new b('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
436
436
|
}
|
|
437
437
|
var x = Ir;
|
|
438
|
-
function
|
|
438
|
+
function ie(e, r) {
|
|
439
439
|
var t = [];
|
|
440
440
|
return e[r].forEach(function(i) {
|
|
441
441
|
var n = t.length;
|
|
@@ -464,10 +464,10 @@ function Rr() {
|
|
|
464
464
|
arguments[r].forEach(i);
|
|
465
465
|
return e;
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function G(e) {
|
|
468
468
|
return this.extend(e);
|
|
469
469
|
}
|
|
470
|
-
|
|
470
|
+
G.prototype.extend = function(r) {
|
|
471
471
|
var t = [], i = [];
|
|
472
472
|
if (r instanceof x)
|
|
473
473
|
i.push(r);
|
|
@@ -476,22 +476,22 @@ K.prototype.extend = function(r) {
|
|
|
476
476
|
else if (r && (Array.isArray(r.implicit) || Array.isArray(r.explicit)))
|
|
477
477
|
r.implicit && (t = t.concat(r.implicit)), r.explicit && (i = i.concat(r.explicit));
|
|
478
478
|
else
|
|
479
|
-
throw new
|
|
479
|
+
throw new b("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
480
480
|
t.forEach(function(a) {
|
|
481
481
|
if (!(a instanceof x))
|
|
482
|
-
throw new
|
|
482
|
+
throw new b("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
483
483
|
if (a.loadKind && a.loadKind !== "scalar")
|
|
484
|
-
throw new
|
|
484
|
+
throw new b("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
485
485
|
if (a.multi)
|
|
486
|
-
throw new
|
|
486
|
+
throw new b("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
487
487
|
}), i.forEach(function(a) {
|
|
488
488
|
if (!(a instanceof x))
|
|
489
|
-
throw new
|
|
489
|
+
throw new b("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
490
490
|
});
|
|
491
|
-
var n = Object.create(
|
|
492
|
-
return n.implicit = (this.implicit || []).concat(t), n.explicit = (this.explicit || []).concat(i), n.compiledImplicit =
|
|
491
|
+
var n = Object.create(G.prototype);
|
|
492
|
+
return n.implicit = (this.implicit || []).concat(t), n.explicit = (this.explicit || []).concat(i), n.compiledImplicit = ie(n, "implicit"), n.compiledExplicit = ie(n, "explicit"), n.compiledTypeMap = Rr(n.compiledImplicit, n.compiledExplicit), n;
|
|
493
493
|
};
|
|
494
|
-
var Lr =
|
|
494
|
+
var Lr = G, Mr = new x("tag:yaml.org,2002:str", {
|
|
495
495
|
kind: "scalar",
|
|
496
496
|
construct: function(e) {
|
|
497
497
|
return e !== null ? e : "";
|
|
@@ -780,12 +780,12 @@ function dt(e) {
|
|
|
780
780
|
var pt = new x("tag:yaml.org,2002:merge", {
|
|
781
781
|
kind: "scalar",
|
|
782
782
|
resolve: dt
|
|
783
|
-
}),
|
|
783
|
+
}), J = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
784
784
|
\r`;
|
|
785
785
|
function vt(e) {
|
|
786
786
|
if (e === null)
|
|
787
787
|
return !1;
|
|
788
|
-
var r, t, i = 0, n = e.length, a =
|
|
788
|
+
var r, t, i = 0, n = e.length, a = J;
|
|
789
789
|
for (t = 0; t < n; t++)
|
|
790
790
|
if (r = a.indexOf(e.charAt(t)), !(r > 64)) {
|
|
791
791
|
if (r < 0)
|
|
@@ -795,13 +795,13 @@ function vt(e) {
|
|
|
795
795
|
return i % 8 === 0;
|
|
796
796
|
}
|
|
797
797
|
function ht(e) {
|
|
798
|
-
var r, t, i = e.replace(/[\r\n=]/g, ""), n = i.length, a =
|
|
798
|
+
var r, t, i = e.replace(/[\r\n=]/g, ""), n = i.length, a = J, l = 0, u = [];
|
|
799
799
|
for (r = 0; r < n; r++)
|
|
800
800
|
r % 4 === 0 && r && (u.push(l >> 16 & 255), u.push(l >> 8 & 255), u.push(l & 255)), l = l << 6 | a.indexOf(i.charAt(r));
|
|
801
801
|
return t = n % 4 * 6, t === 0 ? (u.push(l >> 16 & 255), u.push(l >> 8 & 255), u.push(l & 255)) : t === 18 ? (u.push(l >> 10 & 255), u.push(l >> 2 & 255)) : t === 12 && u.push(l >> 4 & 255), new Uint8Array(u);
|
|
802
802
|
}
|
|
803
803
|
function xt(e) {
|
|
804
|
-
var r = "", t = 0, i, n, a = e.length, l =
|
|
804
|
+
var r = "", t = 0, i, n, a = e.length, l = J;
|
|
805
805
|
for (i = 0; i < a; i++)
|
|
806
806
|
i % 3 === 0 && i && (r += l[t >> 18 & 63], r += l[t >> 12 & 63], r += l[t >> 6 & 63], r += l[t & 63]), t = (t << 8) + e[i];
|
|
807
807
|
return n = a % 3, n === 0 ? (r += l[t >> 18 & 63], r += l[t >> 12 & 63], r += l[t >> 6 & 63], r += l[t & 63]) : n === 2 ? (r += l[t >> 10 & 63], r += l[t >> 4 & 63], r += l[t << 2 & 63], r += l[64]) : n === 1 && (r += l[t >> 2 & 63], r += l[t << 4 & 63], r += l[64], r += l[64]), r;
|
|
@@ -816,7 +816,7 @@ var yt = new x("tag:yaml.org,2002:binary", {
|
|
|
816
816
|
predicate: gt,
|
|
817
817
|
represent: xt
|
|
818
818
|
}), wt = Object.prototype.hasOwnProperty, kt = Object.prototype.toString;
|
|
819
|
-
function
|
|
819
|
+
function At(e) {
|
|
820
820
|
if (e === null)
|
|
821
821
|
return !0;
|
|
822
822
|
var r = [], t, i, n, a, l, u = e;
|
|
@@ -838,13 +838,13 @@ function _t(e) {
|
|
|
838
838
|
}
|
|
839
839
|
return !0;
|
|
840
840
|
}
|
|
841
|
-
function
|
|
841
|
+
function bt(e) {
|
|
842
842
|
return e !== null ? e : [];
|
|
843
843
|
}
|
|
844
|
-
var
|
|
844
|
+
var _t = new x("tag:yaml.org,2002:omap", {
|
|
845
845
|
kind: "sequence",
|
|
846
|
-
resolve:
|
|
847
|
-
construct:
|
|
846
|
+
resolve: At,
|
|
847
|
+
construct: bt
|
|
848
848
|
}), Et = Object.prototype.toString;
|
|
849
849
|
function Ft(e) {
|
|
850
850
|
if (e === null)
|
|
@@ -893,19 +893,19 @@ var It = new x("tag:yaml.org,2002:set", {
|
|
|
893
893
|
],
|
|
894
894
|
explicit: [
|
|
895
895
|
yt,
|
|
896
|
-
|
|
896
|
+
_t,
|
|
897
897
|
St,
|
|
898
898
|
It
|
|
899
899
|
]
|
|
900
900
|
});
|
|
901
|
-
function
|
|
901
|
+
function le(e) {
|
|
902
902
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
903
903
|
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
904
904
|
}
|
|
905
905
|
var Lt = new Array(256), Mt = new Array(256);
|
|
906
906
|
for (var S = 0; S < 256; S++)
|
|
907
|
-
Lt[S] =
|
|
908
|
-
var ke = Object.prototype.toString,
|
|
907
|
+
Lt[S] = le(S) ? 1 : 0, Mt[S] = le(S);
|
|
908
|
+
var ke = Object.prototype.toString, Ae = Object.prototype.hasOwnProperty, ee = 65279, Ut = 9, L = 10, Dt = 13, Yt = 32, Bt = 33, $t = 34, Q = 35, Pt = 37, Vt = 38, Ht = 39, qt = 42, be = 44, jt = 45, P = 58, Kt = 61, Gt = 62, Qt = 63, Wt = 64, _e = 91, Ee = 93, zt = 96, Fe = 123, Zt = 124, Ce = 125, g = {};
|
|
909
909
|
g[0] = "\\0";
|
|
910
910
|
g[7] = "\\a";
|
|
911
911
|
g[8] = "\\b";
|
|
@@ -944,7 +944,7 @@ function en(e, r) {
|
|
|
944
944
|
if (r === null)
|
|
945
945
|
return {};
|
|
946
946
|
for (t = {}, i = Object.keys(r), n = 0, a = i.length; n < a; n += 1)
|
|
947
|
-
l = i[n], u = String(r[l]), l.slice(0, 2) === "!!" && (l = "tag:yaml.org,2002:" + l.slice(2)), o = e.compiledTypeMap.fallback[l], o &&
|
|
947
|
+
l = i[n], u = String(r[l]), l.slice(0, 2) === "!!" && (l = "tag:yaml.org,2002:" + l.slice(2)), o = e.compiledTypeMap.fallback[l], o && Ae.call(o.styleAliases, u) && (u = o.styleAliases[u]), t[l] = u;
|
|
948
948
|
return t;
|
|
949
949
|
}
|
|
950
950
|
function rn(e) {
|
|
@@ -956,21 +956,21 @@ function rn(e) {
|
|
|
956
956
|
else if (e <= 4294967295)
|
|
957
957
|
t = "U", i = 8;
|
|
958
958
|
else
|
|
959
|
-
throw new
|
|
959
|
+
throw new b("code point within a string may not be greater than 0xFFFFFFFF");
|
|
960
960
|
return "\\" + t + C.repeat("0", i - r.length) + r;
|
|
961
961
|
}
|
|
962
962
|
var tn = 1, M = 2;
|
|
963
963
|
function nn(e) {
|
|
964
964
|
this.schema = e.schema || Rt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = C.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = en(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? M : tn, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
965
965
|
}
|
|
966
|
-
function
|
|
966
|
+
function ae(e, r) {
|
|
967
967
|
for (var t = C.repeat(" ", r), i = 0, n = -1, a = "", l, u = e.length; i < u; )
|
|
968
968
|
n = e.indexOf(`
|
|
969
969
|
`, i), n === -1 ? (l = e.slice(i), i = u) : (l = e.slice(i, n + 1), i = n + 1), l.length && l !== `
|
|
970
970
|
` && (a += t), a += l;
|
|
971
971
|
return a;
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function W(e, r) {
|
|
974
974
|
return `
|
|
975
975
|
` + C.repeat(" ", e.indent * r);
|
|
976
976
|
}
|
|
@@ -985,23 +985,23 @@ function V(e) {
|
|
|
985
985
|
return e === Yt || e === Ut;
|
|
986
986
|
}
|
|
987
987
|
function U(e) {
|
|
988
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
988
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== ee || 65536 <= e && e <= 1114111;
|
|
989
989
|
}
|
|
990
|
-
function
|
|
991
|
-
return U(e) && e !==
|
|
990
|
+
function ue(e) {
|
|
991
|
+
return U(e) && e !== ee && e !== Dt && e !== L;
|
|
992
992
|
}
|
|
993
|
-
function
|
|
994
|
-
var i =
|
|
993
|
+
function oe(e, r, t) {
|
|
994
|
+
var i = ue(e), n = i && !V(e);
|
|
995
995
|
return (
|
|
996
996
|
// ns-plain-safe
|
|
997
997
|
(t ? (
|
|
998
998
|
// c = flow-in
|
|
999
999
|
i
|
|
1000
|
-
) : i && e !==
|
|
1000
|
+
) : i && e !== be && e !== _e && e !== Ee && e !== Fe && e !== Ce) && e !== Q && !(r === P && !n) || ue(r) && !V(r) && e === Q || r === P && n
|
|
1001
1001
|
);
|
|
1002
1002
|
}
|
|
1003
1003
|
function an(e) {
|
|
1004
|
-
return U(e) && e !==
|
|
1004
|
+
return U(e) && e !== ee && !V(e) && e !== jt && e !== Qt && e !== P && e !== be && e !== _e && e !== Ee && e !== Fe && e !== Ce && e !== Q && e !== Vt && e !== qt && e !== Bt && e !== Zt && e !== Kt && e !== Gt && e !== Ht && e !== $t && e !== Pt && e !== Wt && e !== zt;
|
|
1005
1005
|
}
|
|
1006
1006
|
function un(e) {
|
|
1007
1007
|
return !V(e) && e !== P;
|
|
@@ -1014,14 +1014,14 @@ function Se(e) {
|
|
|
1014
1014
|
var r = /^\n* /;
|
|
1015
1015
|
return r.test(e);
|
|
1016
1016
|
}
|
|
1017
|
-
var Ne = 1,
|
|
1017
|
+
var Ne = 1, z = 2, Oe = 3, Te = 4, N = 5;
|
|
1018
1018
|
function on(e, r, t, i, n, a, l, u) {
|
|
1019
1019
|
var o, s = 0, m = null, p = !1, c = !1, d = i !== -1, f = -1, h = an(T(e, 0)) && un(T(e, e.length - 1));
|
|
1020
1020
|
if (r || l)
|
|
1021
1021
|
for (o = 0; o < e.length; s >= 65536 ? o += 2 : o++) {
|
|
1022
1022
|
if (s = T(e, o), !U(s))
|
|
1023
1023
|
return N;
|
|
1024
|
-
h = h &&
|
|
1024
|
+
h = h && oe(s, m, u), m = s;
|
|
1025
1025
|
}
|
|
1026
1026
|
else {
|
|
1027
1027
|
for (o = 0; o < e.length; s >= 65536 ? o += 2 : o++) {
|
|
@@ -1030,11 +1030,11 @@ function on(e, r, t, i, n, a, l, u) {
|
|
|
1030
1030
|
o - f - 1 > i && e[f + 1] !== " ", f = o);
|
|
1031
1031
|
else if (!U(s))
|
|
1032
1032
|
return N;
|
|
1033
|
-
h = h &&
|
|
1033
|
+
h = h && oe(s, m, u), m = s;
|
|
1034
1034
|
}
|
|
1035
1035
|
c = c || d && o - f - 1 > i && e[f + 1] !== " ";
|
|
1036
1036
|
}
|
|
1037
|
-
return !p && !c ? h && !l && !n(e) ? Ne : a === M ? N :
|
|
1037
|
+
return !p && !c ? h && !l && !n(e) ? Ne : a === M ? N : z : t > 9 && Se(e) ? N : l ? a === M ? N : z : c ? Te : Oe;
|
|
1038
1038
|
}
|
|
1039
1039
|
function sn(e, r, t, i, n) {
|
|
1040
1040
|
e.dump = function() {
|
|
@@ -1058,20 +1058,20 @@ function sn(e, r, t, i, n) {
|
|
|
1058
1058
|
)) {
|
|
1059
1059
|
case Ne:
|
|
1060
1060
|
return r;
|
|
1061
|
-
case
|
|
1061
|
+
case z:
|
|
1062
1062
|
return "'" + r.replace(/'/g, "''") + "'";
|
|
1063
1063
|
case Oe:
|
|
1064
|
-
return "|" +
|
|
1064
|
+
return "|" + se(r, e.indent) + ce(ae(r, a));
|
|
1065
1065
|
case Te:
|
|
1066
|
-
return ">" +
|
|
1066
|
+
return ">" + se(r, e.indent) + ce(ae(cn(r, l), a));
|
|
1067
1067
|
case N:
|
|
1068
1068
|
return '"' + fn(r) + '"';
|
|
1069
1069
|
default:
|
|
1070
|
-
throw new
|
|
1070
|
+
throw new b("impossible error: invalid scalar style");
|
|
1071
1071
|
}
|
|
1072
1072
|
}();
|
|
1073
1073
|
}
|
|
1074
|
-
function
|
|
1074
|
+
function se(e, r) {
|
|
1075
1075
|
var t = Se(e) ? String(r) : "", i = e[e.length - 1] === `
|
|
1076
1076
|
`, n = i && (e[e.length - 2] === `
|
|
1077
1077
|
` || e === `
|
|
@@ -1079,7 +1079,7 @@ function oe(e, r) {
|
|
|
1079
1079
|
return t + a + `
|
|
1080
1080
|
`;
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function ce(e) {
|
|
1083
1083
|
return e[e.length - 1] === `
|
|
1084
1084
|
` ? e.slice(0, -1) : e;
|
|
1085
1085
|
}
|
|
@@ -1087,16 +1087,16 @@ function cn(e, r) {
|
|
|
1087
1087
|
for (var t = /(\n+)([^\n]*)/g, i = function() {
|
|
1088
1088
|
var s = e.indexOf(`
|
|
1089
1089
|
`);
|
|
1090
|
-
return s = s !== -1 ? s : e.length, t.lastIndex = s,
|
|
1090
|
+
return s = s !== -1 ? s : e.length, t.lastIndex = s, fe(e.slice(0, s), r);
|
|
1091
1091
|
}(), n = e[0] === `
|
|
1092
1092
|
` || e[0] === " ", a, l; l = t.exec(e); ) {
|
|
1093
1093
|
var u = l[1], o = l[2];
|
|
1094
1094
|
a = o[0] === " ", i += u + (!n && !a && o !== "" ? `
|
|
1095
|
-
` : "") +
|
|
1095
|
+
` : "") + fe(o, r), n = a;
|
|
1096
1096
|
}
|
|
1097
1097
|
return i;
|
|
1098
1098
|
}
|
|
1099
|
-
function
|
|
1099
|
+
function fe(e, r) {
|
|
1100
1100
|
if (e === "" || e[0] === " ")
|
|
1101
1101
|
return e;
|
|
1102
1102
|
for (var t = / [^ ]/g, i, n = 0, a, l = 0, u = 0, o = ""; i = t.exec(e); )
|
|
@@ -1117,10 +1117,10 @@ function mn(e, r, t) {
|
|
|
1117
1117
|
u = t[a], e.replacer && (u = e.replacer.call(t, String(a), u)), (E(e, r, u, !1, !1) || typeof u > "u" && E(e, r, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
|
|
1118
1118
|
e.tag = n, e.dump = "[" + i + "]";
|
|
1119
1119
|
}
|
|
1120
|
-
function
|
|
1120
|
+
function me(e, r, t, i) {
|
|
1121
1121
|
var n = "", a = e.tag, l, u, o;
|
|
1122
1122
|
for (l = 0, u = t.length; l < u; l += 1)
|
|
1123
|
-
o = t[l], e.replacer && (o = e.replacer.call(t, String(l), o)), (E(e, r + 1, o, !0, !0, !1, !0) || typeof o > "u" && E(e, r + 1, null, !0, !0, !1, !0)) && ((!i || n !== "") && (n +=
|
|
1123
|
+
o = t[l], e.replacer && (o = e.replacer.call(t, String(l), o)), (E(e, r + 1, o, !0, !0, !1, !0) || typeof o > "u" && E(e, r + 1, null, !0, !0, !1, !0)) && ((!i || n !== "") && (n += W(e, r)), e.dump && L === e.dump.charCodeAt(0) ? n += "-" : n += "- ", n += e.dump);
|
|
1124
1124
|
e.tag = a, e.dump = n || "[]";
|
|
1125
1125
|
}
|
|
1126
1126
|
function dn(e, r, t) {
|
|
@@ -1136,22 +1136,22 @@ function pn(e, r, t, i) {
|
|
|
1136
1136
|
else if (typeof e.sortKeys == "function")
|
|
1137
1137
|
l.sort(e.sortKeys);
|
|
1138
1138
|
else if (e.sortKeys)
|
|
1139
|
-
throw new
|
|
1139
|
+
throw new b("sortKeys must be a boolean or a function");
|
|
1140
1140
|
for (u = 0, o = l.length; u < o; u += 1)
|
|
1141
|
-
c = "", (!i || n !== "") && (c +=
|
|
1141
|
+
c = "", (!i || n !== "") && (c += W(e, r)), s = l[u], m = t[s], e.replacer && (m = e.replacer.call(t, s, m)), E(e, r + 1, s, !0, !0, !0) && (p = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, p && (e.dump && L === e.dump.charCodeAt(0) ? c += "?" : c += "? "), c += e.dump, p && (c += W(e, r)), E(e, r + 1, m, !0, p) && (e.dump && L === e.dump.charCodeAt(0) ? c += ":" : c += ": ", c += e.dump, n += c));
|
|
1142
1142
|
e.tag = a, e.dump = n || "{}";
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1144
|
+
function de(e, r, t) {
|
|
1145
1145
|
var i, n, a, l, u, o;
|
|
1146
1146
|
for (n = t ? e.explicitTypes : e.implicitTypes, a = 0, l = n.length; a < l; a += 1)
|
|
1147
1147
|
if (u = n[a], (u.instanceOf || u.predicate) && (!u.instanceOf || typeof r == "object" && r instanceof u.instanceOf) && (!u.predicate || u.predicate(r))) {
|
|
1148
1148
|
if (t ? u.multi && u.representName ? e.tag = u.representName(r) : e.tag = u.tag : e.tag = "?", u.represent) {
|
|
1149
1149
|
if (o = e.styleMap[u.tag] || u.defaultStyle, ke.call(u.represent) === "[object Function]")
|
|
1150
1150
|
i = u.represent(r, o);
|
|
1151
|
-
else if (
|
|
1151
|
+
else if (Ae.call(u.represent, o))
|
|
1152
1152
|
i = u.represent[o](r, o);
|
|
1153
1153
|
else
|
|
1154
|
-
throw new
|
|
1154
|
+
throw new b("!<" + u.tag + '> tag resolver accepts not "' + o + '" style');
|
|
1155
1155
|
e.dump = i;
|
|
1156
1156
|
}
|
|
1157
1157
|
return !0;
|
|
@@ -1159,7 +1159,7 @@ function me(e, r, t) {
|
|
|
1159
1159
|
return !1;
|
|
1160
1160
|
}
|
|
1161
1161
|
function E(e, r, t, i, n, a, l) {
|
|
1162
|
-
e.tag = null, e.dump = t,
|
|
1162
|
+
e.tag = null, e.dump = t, de(e, t, !1) || de(e, t, !0);
|
|
1163
1163
|
var u = ke.call(e.dump), o = i, s;
|
|
1164
1164
|
i && (i = e.flowLevel < 0 || e.flowLevel > r);
|
|
1165
1165
|
var m = u === "[object Object]" || u === "[object Array]", p, c;
|
|
@@ -1169,7 +1169,7 @@ function E(e, r, t, i, n, a, l) {
|
|
|
1169
1169
|
if (m && c && !e.usedDuplicates[p] && (e.usedDuplicates[p] = !0), u === "[object Object]")
|
|
1170
1170
|
i && Object.keys(e.dump).length !== 0 ? (pn(e, r, e.dump, n), c && (e.dump = "&ref_" + p + e.dump)) : (dn(e, r, e.dump), c && (e.dump = "&ref_" + p + " " + e.dump));
|
|
1171
1171
|
else if (u === "[object Array]")
|
|
1172
|
-
i && e.dump.length !== 0 ? (e.noArrayIndent && !l && r > 0 ?
|
|
1172
|
+
i && e.dump.length !== 0 ? (e.noArrayIndent && !l && r > 0 ? me(e, r - 1, e.dump, n) : me(e, r, e.dump, n), c && (e.dump = "&ref_" + p + e.dump)) : (mn(e, r, e.dump), c && (e.dump = "&ref_" + p + " " + e.dump));
|
|
1173
1173
|
else if (u === "[object String]")
|
|
1174
1174
|
e.tag !== "?" && sn(e, e.dump, r, a, o);
|
|
1175
1175
|
else {
|
|
@@ -1177,7 +1177,7 @@ function E(e, r, t, i, n, a, l) {
|
|
|
1177
1177
|
return !1;
|
|
1178
1178
|
if (e.skipInvalid)
|
|
1179
1179
|
return !1;
|
|
1180
|
-
throw new
|
|
1180
|
+
throw new b("unacceptable kind of an object to dump " + u);
|
|
1181
1181
|
}
|
|
1182
1182
|
e.tag !== null && e.tag !== "?" && (s = encodeURI(
|
|
1183
1183
|
e.tag[0] === "!" ? e.tag.slice(1) : e.tag
|
|
@@ -1187,21 +1187,21 @@ function E(e, r, t, i, n, a, l) {
|
|
|
1187
1187
|
}
|
|
1188
1188
|
function vn(e, r) {
|
|
1189
1189
|
var t = [], i = [], n, a;
|
|
1190
|
-
for (
|
|
1190
|
+
for (Z(e, t, i), n = 0, a = i.length; n < a; n += 1)
|
|
1191
1191
|
r.duplicates.push(t[i[n]]);
|
|
1192
1192
|
r.usedDuplicates = new Array(a);
|
|
1193
1193
|
}
|
|
1194
|
-
function
|
|
1194
|
+
function Z(e, r, t) {
|
|
1195
1195
|
var i, n, a;
|
|
1196
1196
|
if (e !== null && typeof e == "object")
|
|
1197
1197
|
if (n = r.indexOf(e), n !== -1)
|
|
1198
1198
|
t.indexOf(n) === -1 && t.push(n);
|
|
1199
1199
|
else if (r.push(e), Array.isArray(e))
|
|
1200
1200
|
for (n = 0, a = e.length; n < a; n += 1)
|
|
1201
|
-
|
|
1201
|
+
Z(e[n], r, t);
|
|
1202
1202
|
else
|
|
1203
1203
|
for (i = Object.keys(e), n = 0, a = i.length; n < a; n += 1)
|
|
1204
|
-
|
|
1204
|
+
Z(e[i[n]], r, t);
|
|
1205
1205
|
}
|
|
1206
1206
|
function hn(e, r) {
|
|
1207
1207
|
r = r || {};
|
|
@@ -1214,13 +1214,13 @@ function hn(e, r) {
|
|
|
1214
1214
|
var xn = hn, gn = {
|
|
1215
1215
|
dump: xn
|
|
1216
1216
|
}, yn = gn.dump;
|
|
1217
|
-
const wn = { class: "space-y-6 max-w-7xl mx-auto" }, kn = { class: "flex items-center justify-between" },
|
|
1217
|
+
const wn = { class: "space-y-6 max-w-7xl mx-auto" }, kn = { class: "flex items-center justify-between" }, An = { class: "flex items-center gap-4" }, bn = { class: "flex items-center gap-2" }, _n = { class: "text-2xl font-semibold text-gray-900 dark:text-white" }, En = ["href", "title"], Fn = { class: "flex items-center space-x-3" }, Cn = {
|
|
1218
1218
|
key: 0,
|
|
1219
1219
|
class: "max-w-[1000px] flex flex-col"
|
|
1220
1220
|
}, Sn = { class: "flex ml-2 mb-6 w-min border border-gray-200 dark:border-gray-700 rounded-full overflow-hidden" }, Yn = /* @__PURE__ */ D({
|
|
1221
1221
|
__name: "MenuItemPage",
|
|
1222
1222
|
setup(e) {
|
|
1223
|
-
|
|
1223
|
+
K["vs-input-monaco-editor"] = he, console.log("[MenuItemPage] vs-input-monaco-editor registered:", !!K["vs-input-monaco-editor"]);
|
|
1224
1224
|
const { t: r, locale: t } = H(), i = tr(), n = nr(), a = Pe(() => [
|
|
1225
1225
|
{
|
|
1226
1226
|
key: "name",
|
|
@@ -1261,11 +1261,12 @@ const wn = { class: "space-y-6 max-w-7xl mx-auto" }, kn = { class: "flex items-c
|
|
|
1261
1261
|
]), l = k(null), u = k({}), o = k(!1), s = k(!1), m = (d) => {
|
|
1262
1262
|
const f = {};
|
|
1263
1263
|
for (const h of d) {
|
|
1264
|
-
const { title:
|
|
1265
|
-
q && q.length > 0 ? f[
|
|
1264
|
+
const { title: re, value: Ie, children: q } = h;
|
|
1265
|
+
q && q.length > 0 ? f[re] = m(q) : f[re] = Ie;
|
|
1266
1266
|
}
|
|
1267
1267
|
return f;
|
|
1268
1268
|
}, p = async () => {
|
|
1269
|
+
l.value;
|
|
1269
1270
|
let d = { ...l.value || {} };
|
|
1270
1271
|
if (await u.value.validate()) {
|
|
1271
1272
|
I({
|
|
@@ -1275,7 +1276,7 @@ const wn = { class: "space-y-6 max-w-7xl mx-auto" }, kn = { class: "flex items-c
|
|
|
1275
1276
|
});
|
|
1276
1277
|
return;
|
|
1277
1278
|
}
|
|
1278
|
-
Array.isArray(d.items) && (d.items = m(d.items), d.content = yn(d.items));
|
|
1279
|
+
s.value && Array.isArray(d.items) && (d.items = m(d.items), d.content = yn(d.items));
|
|
1279
1280
|
try {
|
|
1280
1281
|
await fetch(`/api/cms-menu/${n.params.id}`, {
|
|
1281
1282
|
method: "PUT",
|
|
@@ -1305,21 +1306,21 @@ const wn = { class: "space-y-6 max-w-7xl mx-auto" }, kn = { class: "flex items-c
|
|
|
1305
1306
|
}
|
|
1306
1307
|
}), (d, f) => (w(), F("div", wn, [
|
|
1307
1308
|
v("div", kn, [
|
|
1308
|
-
v("div",
|
|
1309
|
+
v("div", An, [
|
|
1309
1310
|
v("button", {
|
|
1310
1311
|
onClick: f[0] || (f[0] = (h) => y(i).back()),
|
|
1311
1312
|
class: "p-2 text-gray-500 rounded-full hover:text-gray-900 dark:text-gray-400 dark:hover:text-white hover:bg-gray-100 dark:hover:bg-gray-700"
|
|
1312
1313
|
}, [
|
|
1313
|
-
|
|
1314
|
+
A(y(ze), { class: "w-5 h-5" })
|
|
1314
1315
|
]),
|
|
1315
|
-
v("div",
|
|
1316
|
-
v("h1",
|
|
1316
|
+
v("div", bn, [
|
|
1317
|
+
v("h1", _n, _(d.$t("cms.menu.editMenu")), 1),
|
|
1317
1318
|
v("a", {
|
|
1318
1319
|
href: `https://cms.opengis.info/${y(t)}/guides/menu/`,
|
|
1319
1320
|
target: "_blank",
|
|
1320
1321
|
title: d.$t("cms.guide.menu")
|
|
1321
1322
|
}, [
|
|
1322
|
-
|
|
1323
|
+
A(y(Ze), { class: "w-5 h-5" })
|
|
1323
1324
|
], 8, En)
|
|
1324
1325
|
])
|
|
1325
1326
|
]),
|
|
@@ -1328,8 +1329,8 @@ const wn = { class: "space-y-6 max-w-7xl mx-auto" }, kn = { class: "flex items-c
|
|
|
1328
1329
|
onClick: p,
|
|
1329
1330
|
class: "inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium h-9 px-4 py-2 bg-blue-600 text-white shadow-md transition-all duration-200 transform hover:bg-blue-700 hover:shadow-lg hover:scale-105 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50"
|
|
1330
1331
|
}, [
|
|
1331
|
-
|
|
1332
|
-
|
|
1332
|
+
A(y(Xe), { class: "w-4 h-4 mr-2" }),
|
|
1333
|
+
X(" " + _(d.$t("cms.common.actions.save")), 1)
|
|
1333
1334
|
])
|
|
1334
1335
|
])
|
|
1335
1336
|
]),
|
|
@@ -1338,11 +1339,11 @@ const wn = { class: "space-y-6 max-w-7xl mx-auto" }, kn = { class: "flex items-c
|
|
|
1338
1339
|
v("button", {
|
|
1339
1340
|
onClick: f[1] || (f[1] = (h) => s.value = !1),
|
|
1340
1341
|
class: B([{ "bg-gray-200 text-gray-900 dark:bg-gray-700 dark:text-white": !s.value }, "text-gray-500 hover:text-gray-900 dark:hover:text-white hover:bg-gray-200 dark:hover:bg-gray-700 whitespace-nowrap px-5 py-2 w-[200px] text-sm font-medium"])
|
|
1341
|
-
},
|
|
1342
|
+
}, _(d.$t("cms.menu.textEditor")), 3),
|
|
1342
1343
|
v("button", {
|
|
1343
1344
|
onClick: f[2] || (f[2] = (h) => s.value = !0),
|
|
1344
1345
|
class: B([{ "bg-gray-200 text-gray-900 dark:bg-gray-700 dark:text-white": s.value }, "text-gray-500 hover:text-gray-900 dark:hover:text-white hover:bg-gray-200 dark:hover:bg-gray-700 whitespace-nowrap px-5 py-2 w-[200px] text-sm font-medium"])
|
|
1345
|
-
},
|
|
1346
|
+
}, _(d.$t("cms.menu.listTree")), 3)
|
|
1346
1347
|
]),
|
|
1347
1348
|
s.value ? (w(), O(xr, {
|
|
1348
1349
|
key: 0,
|