mktcms 0.2.5 → 0.2.6
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/module.json +1 -1
- package/dist/module.mjs +5 -0
- package/dist/runtime/app/components/content/breadcrumb.vue +42 -25
- package/dist/runtime/app/components/content/delete.vue +2 -2
- package/dist/runtime/app/components/content/editor/csv.vue +20 -1
- package/dist/runtime/app/components/content/editor/image.vue +1 -1
- package/dist/runtime/app/components/content/editor/markdown.vue +20 -1
- package/dist/runtime/app/components/content/editor/pdf.vue +54 -1
- package/dist/runtime/app/components/content/upload.vue +1 -1
- package/dist/runtime/app/components/header.vue +9 -24
- package/dist/runtime/app/composables/useAdminUpload.js +3 -1
- package/dist/runtime/app/composables/usePdfUpload.d.ts +6 -0
- package/dist/runtime/app/composables/usePdfUpload.js +40 -0
- package/dist/runtime/app/pages/admin/delete/[path].vue +0 -2
- package/dist/runtime/app/pages/admin/edit/file/[path].vue +0 -2
- package/dist/runtime/app/pages/admin/edit/markdown/[path].vue +0 -2
- package/dist/runtime/app/pages/admin/index.vue +1 -5
- package/dist/runtime/app/styles/admin.min.css +1 -1
- package/dist/runtime/server/api/admin/csv.post.js +9 -2
- package/dist/runtime/server/api/admin/image.post.js +6 -0
- package/dist/runtime/server/api/admin/md.post.js +4 -13
- package/dist/runtime/server/api/admin/pdf.post.d.ts +5 -0
- package/dist/runtime/server/api/admin/pdf.post.js +52 -0
- package/dist/runtime/server/utils/syncGitContent.d.ts +1 -0
- package/dist/runtime/server/utils/syncGitContent.js +24 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -133,6 +133,11 @@ const module$1 = defineNuxtModule({
|
|
|
133
133
|
method: "post",
|
|
134
134
|
handler: resolver.resolve("./runtime/server/api/admin/image.post")
|
|
135
135
|
});
|
|
136
|
+
addServerHandler({
|
|
137
|
+
route: "/api/admin/pdf",
|
|
138
|
+
method: "post",
|
|
139
|
+
handler: resolver.resolve("./runtime/server/api/admin/pdf.post")
|
|
140
|
+
});
|
|
136
141
|
addServerHandler({
|
|
137
142
|
route: "/api/admin/blob",
|
|
138
143
|
handler: resolver.resolve("./runtime/server/api/admin/blob")
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { useRoute } from "#app";
|
|
3
|
+
const fullPath = useRoute().fullPath;
|
|
3
4
|
const path = useRoute().params.path || "";
|
|
4
5
|
const parts = path.split(":").filter((part) => part.length > 0);
|
|
5
6
|
parts.unshift("home");
|
|
@@ -10,13 +11,49 @@ parts.unshift("home");
|
|
|
10
11
|
class="text-gray-500 text-base flex items-center gap-1"
|
|
11
12
|
:class="{ 'mb-4': parts.length > 1 }"
|
|
12
13
|
>
|
|
14
|
+
<div v-if="fullPath === '/admin'">
|
|
15
|
+
<svg
|
|
16
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
17
|
+
fill="none"
|
|
18
|
+
viewBox="0 0 24 24"
|
|
19
|
+
stroke-width="1.5"
|
|
20
|
+
stroke="currentColor"
|
|
21
|
+
class="size-5 opacity-30"
|
|
22
|
+
>
|
|
23
|
+
<path
|
|
24
|
+
stroke-linecap="round"
|
|
25
|
+
stroke-linejoin="round"
|
|
26
|
+
d="m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"
|
|
27
|
+
/>
|
|
28
|
+
</svg>
|
|
29
|
+
</div>
|
|
30
|
+
<div v-else>
|
|
31
|
+
<NuxtLink
|
|
32
|
+
to="/admin"
|
|
33
|
+
class="button secondary small"
|
|
34
|
+
>
|
|
35
|
+
<svg
|
|
36
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
37
|
+
fill="none"
|
|
38
|
+
viewBox="0 0 24 24"
|
|
39
|
+
stroke-width="1.5"
|
|
40
|
+
stroke="currentColor"
|
|
41
|
+
class="size-5"
|
|
42
|
+
>
|
|
43
|
+
<path
|
|
44
|
+
stroke-linecap="round"
|
|
45
|
+
stroke-linejoin="round"
|
|
46
|
+
d="m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"
|
|
47
|
+
/>
|
|
48
|
+
</svg>
|
|
49
|
+
</NuxtLink>
|
|
50
|
+
</div>
|
|
13
51
|
<div
|
|
14
|
-
v-for="(part, index) in parts"
|
|
52
|
+
v-for="(part, index) in parts.slice(1)"
|
|
15
53
|
:key="index"
|
|
16
54
|
class="flex items-center gap-1"
|
|
17
55
|
>
|
|
18
56
|
<svg
|
|
19
|
-
v-if="index > 0"
|
|
20
57
|
xmlns="http://www.w3.org/2000/svg"
|
|
21
58
|
fill="none"
|
|
22
59
|
viewBox="0 0 24 24"
|
|
@@ -30,31 +67,11 @@ parts.unshift("home");
|
|
|
30
67
|
d="m8.25 4.5 7.5 7.5-7.5 7.5"
|
|
31
68
|
/>
|
|
32
69
|
</svg>
|
|
33
|
-
<
|
|
70
|
+
<div
|
|
34
71
|
v-if="index < parts.length - 1"
|
|
35
|
-
:to="`/admin/${index > 0 ? parts.slice(1, index + 1).join(':') : ''}`"
|
|
36
|
-
class="button secondary small"
|
|
37
72
|
>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
41
|
-
fill="none"
|
|
42
|
-
viewBox="0 0 24 24"
|
|
43
|
-
stroke-width="1.5"
|
|
44
|
-
stroke="currentColor"
|
|
45
|
-
class="size-5"
|
|
46
|
-
>
|
|
47
|
-
<path
|
|
48
|
-
stroke-linecap="round"
|
|
49
|
-
stroke-linejoin="round"
|
|
50
|
-
d="m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25"
|
|
51
|
-
/>
|
|
52
|
-
</svg>
|
|
53
|
-
</template>
|
|
54
|
-
<template v-else>
|
|
55
|
-
{{ part }}
|
|
56
|
-
</template>
|
|
57
|
-
</NuxtLink>
|
|
73
|
+
{{ part }}
|
|
74
|
+
</div>
|
|
58
75
|
<span
|
|
59
76
|
v-else-if="index != 0"
|
|
60
77
|
style="font-weight: bold;"
|
|
@@ -7,7 +7,7 @@ async function deleteContent() {
|
|
|
7
7
|
await fetch(`/api/admin/delete?path=${path}`, {
|
|
8
8
|
method: "DELETE"
|
|
9
9
|
});
|
|
10
|
-
await navigateTo(`/admin
|
|
10
|
+
await navigateTo(`/admin`);
|
|
11
11
|
}
|
|
12
12
|
</script>
|
|
13
13
|
|
|
@@ -25,7 +25,7 @@ async function deleteContent() {
|
|
|
25
25
|
</p>
|
|
26
26
|
<div class="flex gap-2">
|
|
27
27
|
<NuxtLink
|
|
28
|
-
:to="`/admin
|
|
28
|
+
:to="`/admin`"
|
|
29
29
|
class="button secondary flex-1"
|
|
30
30
|
>
|
|
31
31
|
<svg
|
|
@@ -7,6 +7,7 @@ const { path } = usePathParam();
|
|
|
7
7
|
const { data: table } = await useFetch(`/api/admin/csv?path=${path}`);
|
|
8
8
|
const isSaving = ref(false);
|
|
9
9
|
const savingSuccessful = ref(false);
|
|
10
|
+
const commitMessage = ref("Inhaltliche \xC4nderungen");
|
|
10
11
|
async function saveCsv() {
|
|
11
12
|
if (!table.value) return;
|
|
12
13
|
isSaving.value = true;
|
|
@@ -15,7 +16,8 @@ async function saveCsv() {
|
|
|
15
16
|
await useFetch(`/api/admin/csv?path=${path}`, {
|
|
16
17
|
method: "POST",
|
|
17
18
|
body: {
|
|
18
|
-
table: table.value
|
|
19
|
+
table: table.value,
|
|
20
|
+
commitMessage: commitMessage.value
|
|
19
21
|
}
|
|
20
22
|
});
|
|
21
23
|
savingSuccessful.value = true;
|
|
@@ -253,9 +255,26 @@ function cancelEdit() {
|
|
|
253
255
|
</div>
|
|
254
256
|
</div>
|
|
255
257
|
|
|
258
|
+
<div class="mt-3">
|
|
259
|
+
<label
|
|
260
|
+
for="commit-message"
|
|
261
|
+
class="block mb-1"
|
|
262
|
+
>
|
|
263
|
+
Kommentar / Änderungsgrund
|
|
264
|
+
</label>
|
|
265
|
+
<input
|
|
266
|
+
id="commit-message"
|
|
267
|
+
v-model="commitMessage"
|
|
268
|
+
type="text"
|
|
269
|
+
required
|
|
270
|
+
class="w-full border border-gray-200 rounded-sm px-3 py-2"
|
|
271
|
+
placeholder="Inhaltliche Änderungen"
|
|
272
|
+
>
|
|
273
|
+
</div>
|
|
256
274
|
<button
|
|
257
275
|
type="button"
|
|
258
276
|
class="button w-full mt-3 justify-center"
|
|
277
|
+
:disabled="!commitMessage.trim() || isSaving"
|
|
259
278
|
@click="saveCsv"
|
|
260
279
|
>
|
|
261
280
|
<span v-if="isSaving">Speichern...</span>
|
|
@@ -10,6 +10,7 @@ const { path } = usePathParam();
|
|
|
10
10
|
const { data: content } = await useFetch(`/api/admin/md?path=${path}`);
|
|
11
11
|
const frontmatter = ref(content.value?.frontmatter ?? {});
|
|
12
12
|
const markdown = ref(content.value?.markdown ?? "");
|
|
13
|
+
const commitMessage = ref("Inhaltliche \xC4nderungen");
|
|
13
14
|
const debouncedMarkdown = refDebounced(markdown, 250);
|
|
14
15
|
const isSaving = ref(false);
|
|
15
16
|
const savingSuccessful = ref(false);
|
|
@@ -21,7 +22,8 @@ async function saveMarkdown() {
|
|
|
21
22
|
method: "POST",
|
|
22
23
|
body: {
|
|
23
24
|
frontmatter: frontmatter.value,
|
|
24
|
-
markdown: markdown.value
|
|
25
|
+
markdown: markdown.value,
|
|
26
|
+
commitMessage: commitMessage.value
|
|
25
27
|
}
|
|
26
28
|
});
|
|
27
29
|
isSaving.value = false;
|
|
@@ -86,9 +88,26 @@ const mode = ref("preview");
|
|
|
86
88
|
</div>
|
|
87
89
|
|
|
88
90
|
<div class="flex-none">
|
|
91
|
+
<div class="mt-3">
|
|
92
|
+
<label
|
|
93
|
+
for="commit-message"
|
|
94
|
+
class="block mb-1"
|
|
95
|
+
>
|
|
96
|
+
Kommentar / Änderungsgrund
|
|
97
|
+
</label>
|
|
98
|
+
<input
|
|
99
|
+
id="commit-message"
|
|
100
|
+
v-model="commitMessage"
|
|
101
|
+
type="text"
|
|
102
|
+
required
|
|
103
|
+
class="w-full border border-gray-200 rounded-sm px-3 py-2"
|
|
104
|
+
placeholder="Inhaltliche Änderungen"
|
|
105
|
+
>
|
|
106
|
+
</div>
|
|
89
107
|
<button
|
|
90
108
|
type="button"
|
|
91
109
|
class="button w-full justify-center mt-3"
|
|
110
|
+
:disabled="!commitMessage.trim() || isSaving"
|
|
92
111
|
@click="saveMarkdown"
|
|
93
112
|
>
|
|
94
113
|
<span v-if="isSaving">Speichern...</span>
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { useClipboard } from "@vueuse/core";
|
|
2
3
|
import usePathParam from "../../../composables/usePathParam";
|
|
4
|
+
import { ref, useSiteUrl } from "#imports";
|
|
5
|
+
import usePdfUpload from "../../../composables/usePdfUpload";
|
|
3
6
|
const { path } = usePathParam();
|
|
7
|
+
const refreshTimestamp = ref(0);
|
|
8
|
+
const siteUrl = useSiteUrl();
|
|
9
|
+
const { copy, copied } = useClipboard();
|
|
10
|
+
const { isUploading, fileInput, uploadFiles } = usePdfUpload();
|
|
11
|
+
async function uploadAndReloadPage(event) {
|
|
12
|
+
await uploadFiles(event, path);
|
|
13
|
+
refreshTimestamp.value = Date.now();
|
|
14
|
+
}
|
|
4
15
|
</script>
|
|
5
16
|
|
|
6
17
|
<template>
|
|
@@ -8,17 +19,59 @@ const { path } = usePathParam();
|
|
|
8
19
|
<button
|
|
9
20
|
class="button secondary w-full justify-center mb-2"
|
|
10
21
|
type="button"
|
|
22
|
+
@click.prevent="copy(siteUrl + '/api/content/' + path)"
|
|
11
23
|
>
|
|
24
|
+
<svg
|
|
25
|
+
v-if="copied"
|
|
26
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
27
|
+
fill="none"
|
|
28
|
+
viewBox="0 0 24 24"
|
|
29
|
+
stroke-width="1.5"
|
|
30
|
+
stroke="currentColor"
|
|
31
|
+
class="size-4"
|
|
32
|
+
>
|
|
33
|
+
<path
|
|
34
|
+
stroke-linecap="round"
|
|
35
|
+
stroke-linejoin="round"
|
|
36
|
+
d="m4.5 12.75 6 6 9-13.5"
|
|
37
|
+
/>
|
|
38
|
+
</svg>
|
|
39
|
+
<svg
|
|
40
|
+
v-else
|
|
41
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
42
|
+
fill="none"
|
|
43
|
+
viewBox="0 0 24 24"
|
|
44
|
+
stroke-width="1.5"
|
|
45
|
+
stroke="currentColor"
|
|
46
|
+
class="size-4"
|
|
47
|
+
>
|
|
48
|
+
<path
|
|
49
|
+
stroke-linecap="round"
|
|
50
|
+
stroke-linejoin="round"
|
|
51
|
+
d="M13.19 8.688a4.5 4.5 0 0 1 1.242 7.244l-4.5 4.5a4.5 4.5 0 0 1-6.364-6.364l1.757-1.757m13.35-.622 1.757-1.757a4.5 4.5 0 0 0-6.364-6.364l-4.5 4.5a4.5 4.5 0 0 0 1.242 7.244"
|
|
52
|
+
/>
|
|
53
|
+
</svg>
|
|
12
54
|
Link kopieren
|
|
13
55
|
</button>
|
|
14
56
|
<button
|
|
15
57
|
class="button w-full justify-center mb-4"
|
|
16
58
|
type="button"
|
|
59
|
+
:disabled="isUploading"
|
|
60
|
+
@click="fileInput?.click()"
|
|
17
61
|
>
|
|
18
62
|
PDF austauschen
|
|
19
63
|
</button>
|
|
64
|
+
|
|
65
|
+
<input
|
|
66
|
+
ref="fileInput"
|
|
67
|
+
class="hidden"
|
|
68
|
+
type="file"
|
|
69
|
+
accept=".pdf"
|
|
70
|
+
@change="uploadAndReloadPage"
|
|
71
|
+
>
|
|
72
|
+
|
|
20
73
|
<embed
|
|
21
|
-
:src="`/api/admin/blob?path=${path}`"
|
|
74
|
+
:src="`/api/admin/blob?path=${path}&t=${refreshTimestamp}`"
|
|
22
75
|
type="application/pdf"
|
|
23
76
|
class="w-full h-auto aspect-[5.5/7] border border-gray-200 rounded-sm"
|
|
24
77
|
>
|
|
@@ -1,38 +1,23 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { useRuntimeConfig } from "#imports";
|
|
3
|
+
import Breadcrumb from "./content/breadcrumb.vue";
|
|
4
4
|
const { public: { mktcms: { siteUrl } } } = useRuntimeConfig();
|
|
5
5
|
</script>
|
|
6
6
|
|
|
7
7
|
<template>
|
|
8
8
|
<div class="flex items-start justify-between gap-2">
|
|
9
|
-
<
|
|
10
|
-
to="/admin"
|
|
11
|
-
class="text-xl text-gray-950! bg-transparent! mr-auto flex items-center gap-3"
|
|
12
|
-
>
|
|
13
|
-
<svg
|
|
14
|
-
v-if="route.path.replace(/^\//, '') !== 'admin'"
|
|
15
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
16
|
-
fill="none"
|
|
17
|
-
viewBox="0 0 24 24"
|
|
18
|
-
stroke-width="1.5"
|
|
19
|
-
stroke="currentColor"
|
|
20
|
-
class="size-5"
|
|
21
|
-
>
|
|
22
|
-
<path
|
|
23
|
-
stroke-linecap="round"
|
|
24
|
-
stroke-linejoin="round"
|
|
25
|
-
d="M15.75 19.5 8.25 12l7.5-7.5"
|
|
26
|
-
/>
|
|
27
|
-
</svg>
|
|
28
|
-
{{ siteUrl.replace(/https?:\/\//, "") }}
|
|
29
|
-
</NuxtLink>
|
|
9
|
+
<Breadcrumb />
|
|
30
10
|
<NuxtLink
|
|
31
11
|
:to="siteUrl"
|
|
32
|
-
class="button small secondary justify-between"
|
|
12
|
+
class="button small secondary justify-between ml-auto"
|
|
33
13
|
external
|
|
34
14
|
target="_blank"
|
|
35
15
|
>
|
|
16
|
+
<img
|
|
17
|
+
src="/favicon.png"
|
|
18
|
+
alt=""
|
|
19
|
+
class="size-4 mr-1 rounded-sm"
|
|
20
|
+
>
|
|
36
21
|
zur Website
|
|
37
22
|
<svg
|
|
38
23
|
xmlns="http://www.w3.org/2000/svg"
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { navigateTo } from "#imports";
|
|
2
2
|
import { computed, ref } from "vue";
|
|
3
|
+
import useFileType from "./useFileType.js";
|
|
3
4
|
export default function useAdminUpload() {
|
|
4
5
|
const uploadError = ref(null);
|
|
5
6
|
const files = ref([]);
|
|
@@ -33,8 +34,9 @@ export default function useAdminUpload() {
|
|
|
33
34
|
});
|
|
34
35
|
if (res?.success && res.path) {
|
|
35
36
|
files.value.push(res.path);
|
|
37
|
+
const { isMarkdown } = useFileType(res.path);
|
|
38
|
+
await navigateTo(`/admin/edit/${isMarkdown ? "markdown/" : "file/"}${res.path}`);
|
|
36
39
|
}
|
|
37
|
-
await navigateTo(`/admin/${sanePath.value ? sanePath.value : ""}`);
|
|
38
40
|
} catch (error) {
|
|
39
41
|
uploadError.value = error.data?.statusMessage || "Fehler beim Hochladen der Datei";
|
|
40
42
|
input.value = "";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export default function usePdfUpload(): {
|
|
2
|
+
uploadError: import("vue").Ref<string | null, string | null>;
|
|
3
|
+
isUploading: import("vue").Ref<boolean, boolean>;
|
|
4
|
+
fileInput: import("vue").Ref<HTMLInputElement | null, HTMLInputElement | null>;
|
|
5
|
+
uploadFiles: (event: Event, path: string) => Promise<void>;
|
|
6
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ref } from "vue";
|
|
2
|
+
export default function usePdfUpload() {
|
|
3
|
+
const uploadError = ref(null);
|
|
4
|
+
const fileInput = ref(null);
|
|
5
|
+
const isUploading = ref(false);
|
|
6
|
+
async function uploadFiles(event, path) {
|
|
7
|
+
if (isUploading.value) return;
|
|
8
|
+
isUploading.value = true;
|
|
9
|
+
uploadError.value = null;
|
|
10
|
+
const input = event.target;
|
|
11
|
+
if (!input.files) {
|
|
12
|
+
isUploading.value = false;
|
|
13
|
+
return;
|
|
14
|
+
}
|
|
15
|
+
const file = input.files[0];
|
|
16
|
+
if (!file) {
|
|
17
|
+
isUploading.value = false;
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
const formData = new FormData();
|
|
21
|
+
formData.append("file", file);
|
|
22
|
+
try {
|
|
23
|
+
await $fetch("/api/admin/pdf", {
|
|
24
|
+
method: "POST",
|
|
25
|
+
body: formData,
|
|
26
|
+
query: { path }
|
|
27
|
+
});
|
|
28
|
+
} catch (error) {
|
|
29
|
+
uploadError.value = error.data?.statusMessage || "Fehler beim Hochladen der PDF-Datei";
|
|
30
|
+
input.value = "";
|
|
31
|
+
}
|
|
32
|
+
isUploading.value = false;
|
|
33
|
+
}
|
|
34
|
+
return {
|
|
35
|
+
uploadError,
|
|
36
|
+
isUploading,
|
|
37
|
+
fileInput,
|
|
38
|
+
uploadFiles
|
|
39
|
+
};
|
|
40
|
+
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import Admin from "../../../components/admin.vue";
|
|
3
3
|
import Header from "../../../components/header.vue";
|
|
4
|
-
import Breadcrumb from "../../../components/content/breadcrumb.vue";
|
|
5
4
|
import Delete from "../../../components/content/delete.vue";
|
|
6
5
|
</script>
|
|
7
6
|
|
|
8
7
|
<template>
|
|
9
8
|
<Admin>
|
|
10
9
|
<Header />
|
|
11
|
-
<Breadcrumb />
|
|
12
10
|
<Delete />
|
|
13
11
|
</Admin>
|
|
14
12
|
</template>
|
|
@@ -5,7 +5,6 @@ import Image from "../../../../components/content/editor/image.vue";
|
|
|
5
5
|
import Pdf from "../../../../components/content/editor/pdf.vue";
|
|
6
6
|
import Csv from "../../../../components/content/editor/csv.vue";
|
|
7
7
|
import Txt from "../../../../components/content/editor/txt.vue";
|
|
8
|
-
import Breadcrumb from "../../../../components/content/breadcrumb.vue";
|
|
9
8
|
import usePathParam from "../../../../composables/usePathParam";
|
|
10
9
|
const { isImage, isPdf, isCsv, isText } = usePathParam();
|
|
11
10
|
</script>
|
|
@@ -13,7 +12,6 @@ const { isImage, isPdf, isCsv, isText } = usePathParam();
|
|
|
13
12
|
<template>
|
|
14
13
|
<Admin>
|
|
15
14
|
<Header />
|
|
16
|
-
<Breadcrumb />
|
|
17
15
|
<Image v-if="isImage" />
|
|
18
16
|
<Pdf v-else-if="isPdf" />
|
|
19
17
|
<Csv v-else-if="isCsv" />
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import Admin from "../../../../components/admin.vue";
|
|
3
3
|
import Header from "../../../../components/header.vue";
|
|
4
4
|
import Markdown from "../../../../components/content/editor/markdown.vue";
|
|
5
|
-
import Breadcrumb from "../../../../components/content/breadcrumb.vue";
|
|
6
5
|
import usePathParam from "../../../../composables/usePathParam";
|
|
7
6
|
const { isMarkdown } = usePathParam();
|
|
8
7
|
</script>
|
|
@@ -10,7 +9,6 @@ const { isMarkdown } = usePathParam();
|
|
|
10
9
|
<template>
|
|
11
10
|
<Admin class="fullscreen">
|
|
12
11
|
<Header />
|
|
13
|
-
<Breadcrumb />
|
|
14
12
|
<Markdown v-if="isMarkdown" />
|
|
15
13
|
<div v-else>
|
|
16
14
|
Unbekannter Dateityp.
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import Admin from "../../components/admin.vue";
|
|
3
3
|
import Header from "../../components/header.vue";
|
|
4
|
-
import Breadcrumb from "../../components/content/breadcrumb.vue";
|
|
5
4
|
import Content from "../../components/content/index.vue";
|
|
6
5
|
import Usage from "../../components/content/usage.vue";
|
|
7
6
|
</script>
|
|
8
7
|
|
|
9
8
|
<template>
|
|
10
|
-
<Admin class="bg-transparent! shadow-none! p-0! mb-12">
|
|
11
|
-
<Header />
|
|
12
|
-
</Admin>
|
|
13
9
|
<Admin>
|
|
14
|
-
<
|
|
10
|
+
<Header class="mb-4" />
|
|
15
11
|
<Content />
|
|
16
12
|
</Admin>
|
|
17
13
|
<div class="mt-6 max-w-3xl mx-auto">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:host,:root{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-800:oklch(47.6% .114 61.907);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-3xl:48rem;--text-xs:.75rem;--text-xs--line-height:1.33333;--text-sm:.875rem;--text-sm--line-height:1.42857;--text-base:1rem;--text-base--line-height:1.5;--text-xl:1.25rem;--text-xl--line-height:1.4;--text-2xl:1.5rem;--text-2xl--line-height:1.33333;--text-3xl:1.875rem;--text-3xl--line-height:1.2;--font-weight-semibold:600;--font-weight-bold:700;--leading-tight:1.25;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}::file-selector-button{border:0 solid;box-sizing:border-box;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}::file-selector-button{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-1\/2{top:50%}.right-2{right:calc(var(--spacing)*2)}.z-9999{z-index:9999}.mx-auto{margin-inline:auto}.my-2{margin-block:calc(var(--spacing)*2)}.my-3{margin-block:calc(var(--spacing)*3)}.my-4{margin-block:calc(var(--spacing)*4)}.my-6{margin-block:calc(var(--spacing)*6)}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em;margin-top:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-bottom:1.2em;margin-top:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-bottom:1.25em;margin-top:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-bottom:1.25em;margin-top:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-bottom:3em;margin-top:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){border-inline-start-color:var(--tw-prose-quote-borders);border-inline-start-width:.25rem;color:var(--tw-prose-quotes);font-style:italic;font-weight:500;margin-bottom:1.6em;margin-top:1.6em;padding-inline-start:1em;quotes:"“""”""‘""’"}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-size:2.25em;font-weight:800;line-height:1.11111;margin-bottom:.888889em;margin-top:0}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-size:1.5em;font-weight:700;line-height:1.33333;margin-bottom:1em;margin-top:2em}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-size:1.25em;font-weight:600;line-height:1.6;margin-bottom:.6em;margin-top:1.6em}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;line-height:1.5;margin-bottom:.5em;margin-top:1.5em}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-bottom:2em;margin-top:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:.3125rem;box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);color:var(--tw-prose-kbd);font-family:inherit;font-size:.875em;font-weight:500;padding-inline-end:.375em;padding-bottom:.1875em;padding-top:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:var(--tw-prose-pre-bg);border-radius:.375rem;color:var(--tw-prose-pre-code);font-size:.875em;font-weight:400;line-height:1.71429;margin-bottom:1.71429em;margin-top:1.71429em;overflow-x:auto;padding-inline-end:1.14286em;padding-bottom:.857143em;padding-top:.857143em;padding-inline-start:1.14286em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:#0000;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em;line-height:1.71429;margin-bottom:2em;margin-top:2em;table-layout:auto;width:100%}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-color:var(--tw-prose-th-borders);border-bottom-width:1px}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;vertical-align:bottom}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-color:var(--tw-prose-td-borders);border-bottom-width:1px}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-color:var(--tw-prose-th-borders);border-top-width:1px}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0;margin-top:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.42857;margin-top:.857143em}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0;margin-top:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.5em;margin-top:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.75em;margin-top:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.75em;margin-top:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em;margin-top:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.571429em;padding-bottom:.571429em;padding-top:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.71429}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em;margin-top:1.14286em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.28571em;line-height:1.55556;margin-bottom:.888889em;margin-top:.888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.33333em;margin-top:1.33333em;padding-inline-start:1.11111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.14286em;line-height:1.2;margin-bottom:.8em;margin-top:0}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.42857em;line-height:1.4;margin-bottom:.8em;margin-top:1.6em}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.28571em;line-height:1.55556;margin-bottom:.444444em;margin-top:1.55556em}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){line-height:1.42857;margin-bottom:.571429em;margin-top:1.42857em}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.71429em;margin-top:1.71429em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0;margin-top:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.71429em;margin-top:1.71429em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:.3125rem;font-size:.857143em;padding-inline-end:.357143em;padding-bottom:.142857em;padding-top:.142857em;padding-inline-start:.357143em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:.25rem;font-size:.857143em;line-height:1.66667;margin-bottom:1.66667em;margin-top:1.66667em;padding-inline-end:1em;padding-bottom:.666667em;padding-top:.666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em;margin-top:1.14286em;padding-inline-start:1.57143em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.285714em;margin-top:.285714em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.571429em;margin-top:.571429em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.571429em;margin-top:.571429em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em;margin-top:1.14286em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2.85714em;margin-top:2.85714em}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-top:.666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.71429em;margin-top:1.71429em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0;margin-top:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.33333;margin-top:.666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-2\.5{margin-top:calc(var(--spacing)*2.5)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-6{margin-top:calc(var(--spacing)*6)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mr-auto{margin-right:auto}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-1\.5{margin-bottom:calc(var(--spacing)*1.5)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.mb-12{margin-bottom:calc(var(--spacing)*12)}.ml-auto{margin-left:auto}.box-border{box-sizing:border-box}.line-clamp-4{-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.aspect-\[5\.5\/7\]{aspect-ratio:5.5/7}.size-4{height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.size-5{height:calc(var(--spacing)*5);width:calc(var(--spacing)*5)}.size-6{height:calc(var(--spacing)*6);width:calc(var(--spacing)*6)}.size-10{height:calc(var(--spacing)*10);width:calc(var(--spacing)*10)}.h-0{height:calc(var(--spacing)*0)}.h-2{height:calc(var(--spacing)*2)}.h-10{height:calc(var(--spacing)*10)}.h-24{height:calc(var(--spacing)*24)}.h-\[calc\(4\*1\.35\*1em\+12px\)\]{height:calc(5.4em + 12px)}.h-auto{height:auto}.h-full{height:100%}.max-h-96{max-height:calc(var(--spacing)*96)}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-9\.5{min-height:calc(var(--spacing)*9.5)}.min-h-40{min-height:calc(var(--spacing)*40)}.w-full{width:100%}.max-w-3xl{max-width:var(--container-3xl)}.max-w-180{max-width:calc(var(--spacing)*180)}.max-w-none{max-width:none}.min-w-0{min-width:calc(var(--spacing)*0)}.flex-1{flex:1}.flex-none{flex:none}.-translate-y-1\/2{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.rotate-90{rotate:90deg}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-y{resize:vertical}.auto-cols-\[minmax\(160px\,1fr\)\]{grid-auto-columns:minmax(160px,1fr)}.grid-flow-col{grid-auto-flow:column}.grid-rows-\[0fr\]{grid-template-rows:0fr}.grid-rows-\[1fr\]{grid-template-rows:1fr}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-2\.5{gap:calc(var(--spacing)*2.5)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-end:calc(var(--spacing)*2*(1 - var(--tw-space-y-reverse)));margin-block-start:calc(var(--spacing)*2*var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.rounded{border-radius:.25rem}.rounded-\[10px\]{border-radius:10px}.rounded-full{border-radius:3.40282e+38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed\!{--tw-border-style:dashed!important;border-style:dashed!important}.border-black\/10{border-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.border-black\/10{border-color:color-mix(in oklab,var(--color-black)10%,transparent)}}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-300\/70{border-color:#d1d5dcb3}@supports (color:color-mix(in lab,red,red)){.border-gray-300\/70{border-color:color-mix(in oklab,var(--color-gray-300)70%,transparent)}}.bg-black\/45{background-color:#00000073}@supports (color:color-mix(in lab,red,red)){.bg-black\/45{background-color:color-mix(in oklab,var(--color-black)45%,transparent)}}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-transparent\!{background-color:#0000!important}.bg-white{background-color:var(--color-white)}.bg-white\!{background-color:var(--color-white)!important}.bg-yellow-50{background-color:var(--color-yellow-50)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\!{padding:calc(var(--spacing)*0)!important}.p-1{padding:calc(var(--spacing)*1)}.p-1\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-2\.5{padding:calc(var(--spacing)*2.5)}.p-3\.5{padding:calc(var(--spacing)*3.5)}.p-4{padding:calc(var(--spacing)*4)}.py-2{padding-block:calc(var(--spacing)*2)}.text-center{text-align:center}.text-left{text-align:left}.font-\[inherit\]{font-family:inherit}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl{font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-\[1\.35\]{--tw-leading:1.35;line-height:1.35}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.wrap-break-word{overflow-wrap:break-word}.whitespace-pre-line{white-space:pre-line}.text-emerald-700{color:var(--color-emerald-700)}.text-gray-400{color:var(--color-gray-400)}.text-gray-400\!{color:var(--color-gray-400)!important}.text-gray-500{color:var(--color-gray-500)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-gray-950\!{color:var(--color-gray-950)!important}.text-red-600{color:var(--color-red-600)}.text-yellow-800{color:var(--color-yellow-800)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.opacity-20{opacity:.2}.opacity-50{opacity:.5}.shadow-\[0_10px_40px_rgba\(0\,0\,0\,0\.28\)\]{--tw-shadow:0 10px 40px var(--tw-shadow-color,#00000047);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-none\!{--tw-shadow:0 0 #0000!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}.transition-\[grid-template-rows\]{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-\[width\]{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-transform{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.last\:border-r-0:last-child{border-right-style:var(--tw-border-style);border-right-width:0}@media (hover:hover){.hover\:bg-gray-50\!:hover{background-color:var(--color-gray-50)!important}.hover\:text-gray-600\!:hover{color:var(--color-gray-600)!important}}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-emerald-500\/30:focus{--tw-ring-color:#00bb7f4d}@supports (color:color-mix(in lab,red,red)){.focus\:ring-emerald-500\/30:focus{--tw-ring-color:color-mix(in oklab,var(--color-emerald-500)30%,transparent)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}@media not all and (min-width:640px){.max-\[640px\]\:line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.max-\[640px\]\:h-\[calc\(3\*1\.35\*1em\+12px\)\]{height:calc(4.05em + 12px)}.max-\[640px\]\:auto-cols-\[minmax\(220px\,1fr\)\]{grid-auto-columns:minmax(220px,1fr)}.max-\[640px\]\:gap-0\.5{gap:calc(var(--spacing)*.5)}.max-\[640px\]\:px-1{padding-inline:calc(var(--spacing)*1)}}@media (min-width:40rem){.sm\:inline{display:inline}}@media (min-width:64rem){.lg\:block{display:block}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:h-full{height:100%}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gap-3{gap:calc(var(--spacing)*3)}}}body:has(#mktcms-admin){background-color:var(--color-gray-100)}body:has(#mktcms-admin:not(.fullscreen)){padding:calc(var(--spacing)*4)}@media (min-width:48rem){body:has(#mktcms-admin:not(.fullscreen)){padding:calc(var(--spacing)*12)}}#mktcms-admin{background-color:var(--color-white);max-width:var(--container-3xl);padding:calc(var(--spacing)*4);--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);display:flex;flex-direction:column;margin-inline:auto}@media (min-width:48rem){#mktcms-admin{border-radius:var(--radius-lg)}}#mktcms-admin.fullscreen{border-radius:0;height:100vh;max-height:100vh;max-width:none;overflow:hidden}#mktcms-admin h1{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height));--tw-font-weight:var(--font-weight-semibold);color:var(--color-gray-800);font-weight:var(--font-weight-semibold)}#mktcms-admin input[type=email],#mktcms-admin input[type=password],#mktcms-admin input[type=text],#mktcms-admin select,#mktcms-admin textarea{background-color:var(--color-white);border-color:var(--color-gray-300);border-radius:.25rem;border-style:var(--tw-border-style);border-width:1px;font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height));padding:calc(var(--spacing)*2.5);width:100%}#mktcms-admin .button{align-items:center;background-color:var(--color-emerald-600);border-radius:.25rem;color:var(--color-white);cursor:pointer;display:inline-flex;gap:calc(var(--spacing)*2);padding-block:calc(var(--spacing)*2.5);padding-inline:calc(var(--spacing)*4)}@media (hover:hover){#mktcms-admin .button:hover{background-color:var(--color-emerald-700)}}#mktcms-admin .button:disabled{cursor:not-allowed;opacity:.5}#mktcms-admin .button.secondary{background-color:var(--color-gray-50);border-color:var(--color-gray-300);border-style:var(--tw-border-style);border-width:1px;color:var(--color-gray-700)}@media (hover:hover){#mktcms-admin .button.secondary:hover{background-color:var(--color-gray-100)}}#mktcms-admin .button.directory{background-color:var(--color-gray-700);border-color:var(--color-gray-600);border-style:var(--tw-border-style);border-width:1px;color:var(--color-white)}@media (hover:hover){#mktcms-admin .button.directory:hover{background-color:var(--color-gray-600)}}#mktcms-admin .button.danger{background-color:var(--color-red-600)}@media (hover:hover){#mktcms-admin .button.danger:hover{background-color:var(--color-red-700)}}#mktcms-admin .button.small{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));padding-block:calc(var(--spacing)*1.5);padding-inline:calc(var(--spacing)*2.5)}#mktcms-admin .button :disabled{cursor:not-allowed;opacity:.5}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
|
|
1
|
+
/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:host,:root{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-red-600:oklch(57.7% .245 27.325);--color-red-700:oklch(50.5% .213 27.518);--color-yellow-50:oklch(98.7% .026 102.212);--color-yellow-800:oklch(47.6% .114 61.907);--color-emerald-500:oklch(69.6% .17 162.48);--color-emerald-600:oklch(59.6% .145 163.225);--color-emerald-700:oklch(50.8% .118 165.612);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-gray-800:oklch(27.8% .033 256.848);--color-gray-900:oklch(21% .034 264.665);--color-gray-950:oklch(13% .028 261.692);--color-black:#000;--color-white:#fff;--spacing:.25rem;--container-3xl:48rem;--text-xs:.75rem;--text-xs--line-height:1.33333;--text-sm:.875rem;--text-sm--line-height:1.42857;--text-base:1rem;--text-base--line-height:1.5;--text-xl:1.25rem;--text-xl--line-height:1.4;--text-2xl:1.5rem;--text-2xl--line-height:1.33333;--text-3xl:1.875rem;--text-3xl--line-height:1.2;--font-weight-semibold:600;--font-weight-bold:700;--leading-tight:1.25;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-in-out:cubic-bezier(.4,0,.2,1);--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}::file-selector-button{border:0 solid;box-sizing:border-box;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}::file-selector-button{background-color:#0000;border-radius:0;color:inherit;font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-1\/2{top:50%}.right-2{right:calc(var(--spacing)*2)}.z-9999{z-index:9999}.mx-auto{margin-inline:auto}.my-2{margin-block:calc(var(--spacing)*2)}.my-3{margin-block:calc(var(--spacing)*3)}.my-4{margin-block:calc(var(--spacing)*4)}.my-6{margin-block:calc(var(--spacing)*6)}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em;margin-top:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-bottom:1.2em;margin-top:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);font-weight:500;text-decoration:underline}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-bottom:1.25em;margin-top:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-bottom:1.25em;margin-top:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-counters);font-weight:400}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-bottom:3em;margin-top:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){border-inline-start-color:var(--tw-prose-quote-borders);border-inline-start-width:.25rem;color:var(--tw-prose-quotes);font-style:italic;font-weight:500;margin-bottom:1.6em;margin-top:1.6em;padding-inline-start:1em;quotes:"“""”""‘""’"}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-size:2.25em;font-weight:800;line-height:1.11111;margin-bottom:.888889em;margin-top:0}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:900}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-size:1.5em;font-weight:700;line-height:1.33333;margin-bottom:1em;margin-top:2em}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:800}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-size:1.25em;font-weight:600;line-height:1.6;margin-bottom:.6em;margin-top:1.6em}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;line-height:1.5;margin-bottom:.5em;margin-top:1.5em}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-weight:700}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-bottom:2em;margin-top:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:.3125rem;box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);color:var(--tw-prose-kbd);font-family:inherit;font-size:.875em;font-weight:500;padding-inline-end:.375em;padding-bottom:.1875em;padding-top:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-size:.875em;font-weight:600}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after,.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:var(--tw-prose-pre-bg);border-radius:.375rem;color:var(--tw-prose-pre-code);font-size:.875em;font-weight:400;line-height:1.71429;margin-bottom:1.71429em;margin-top:1.71429em;overflow-x:auto;padding-inline-end:1.14286em;padding-bottom:.857143em;padding-top:.857143em;padding-inline-start:1.14286em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:#0000;border-radius:0;border-width:0;color:inherit;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;padding:0}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after,.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.875em;line-height:1.71429;margin-bottom:2em;margin-top:2em;table-layout:auto;width:100%}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-color:var(--tw-prose-th-borders);border-bottom-width:1px}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;padding-inline-end:.571429em;padding-bottom:.571429em;padding-inline-start:.571429em;vertical-align:bottom}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-color:var(--tw-prose-td-borders);border-bottom-width:1px}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-color:var(--tw-prose-th-borders);border-top-width:1px}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0;margin-top:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.42857;margin-top:.857143em}.prose{--tw-prose-body:oklch(37.3% .034 259.733);--tw-prose-headings:oklch(21% .034 264.665);--tw-prose-lead:oklch(44.6% .03 256.802);--tw-prose-links:oklch(21% .034 264.665);--tw-prose-bold:oklch(21% .034 264.665);--tw-prose-counters:oklch(55.1% .027 264.364);--tw-prose-bullets:oklch(87.2% .01 258.338);--tw-prose-hr:oklch(92.8% .006 264.531);--tw-prose-quotes:oklch(21% .034 264.665);--tw-prose-quote-borders:oklch(92.8% .006 264.531);--tw-prose-captions:oklch(55.1% .027 264.364);--tw-prose-kbd:oklch(21% .034 264.665);--tw-prose-kbd-shadows:oklab(21% -.00316127 -.0338527/.1);--tw-prose-code:oklch(21% .034 264.665);--tw-prose-pre-code:oklch(92.8% .006 264.531);--tw-prose-pre-bg:oklch(27.8% .033 256.848);--tw-prose-th-borders:oklch(87.2% .01 258.338);--tw-prose-td-borders:oklch(92.8% .006 264.531);--tw-prose-invert-body:oklch(87.2% .01 258.338);--tw-prose-invert-headings:#fff;--tw-prose-invert-lead:oklch(70.7% .022 261.325);--tw-prose-invert-links:#fff;--tw-prose-invert-bold:#fff;--tw-prose-invert-counters:oklch(70.7% .022 261.325);--tw-prose-invert-bullets:oklch(44.6% .03 256.802);--tw-prose-invert-hr:oklch(37.3% .034 259.733);--tw-prose-invert-quotes:oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders:oklch(37.3% .034 259.733);--tw-prose-invert-captions:oklch(70.7% .022 261.325);--tw-prose-invert-kbd:#fff;--tw-prose-invert-kbd-shadows:#ffffff1a;--tw-prose-invert-code:#fff;--tw-prose-invert-pre-code:oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg:#00000080;--tw-prose-invert-th-borders:oklch(44.6% .03 256.802);--tw-prose-invert-td-borders:oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0;margin-top:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.5em;margin-top:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.75em;margin-top:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.75em;margin-top:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em;margin-top:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:.571429em;padding-bottom:.571429em;padding-top:.571429em;padding-inline-start:.571429em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2em;margin-top:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.71429}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em;margin-top:1.14286em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.28571em;line-height:1.55556;margin-bottom:.888889em;margin-top:.888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.33333em;margin-top:1.33333em;padding-inline-start:1.11111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.14286em;line-height:1.2;margin-bottom:.8em;margin-top:0}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.42857em;line-height:1.4;margin-bottom:.8em;margin-top:1.6em}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.28571em;line-height:1.55556;margin-bottom:.444444em;margin-top:1.55556em}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){line-height:1.42857;margin-bottom:.571429em;margin-top:1.42857em}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.71429em;margin-top:1.71429em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0;margin-top:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.71429em;margin-top:1.71429em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:.3125rem;font-size:.857143em;padding-inline-end:.357143em;padding-bottom:.142857em;padding-top:.142857em;padding-inline-start:.357143em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){border-radius:.25rem;font-size:.857143em;line-height:1.66667;margin-bottom:1.66667em;margin-top:1.66667em;padding-inline-end:1em;padding-bottom:.666667em;padding-top:.666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em;margin-top:1.14286em;padding-inline-start:1.57143em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.285714em;margin-top:.285714em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.428571em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.571429em;margin-top:.571429em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:.571429em;margin-top:.571429em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.14286em;margin-top:1.14286em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.14286em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.285714em;padding-inline-start:1.57143em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:2.85714em;margin-top:2.85714em}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)),.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.666667em;padding-top:.666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.71429em;margin-top:1.71429em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0;margin-top:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.857143em;line-height:1.33333;margin-top:.666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.mt-1{margin-top:calc(var(--spacing)*1)}.mt-2{margin-top:calc(var(--spacing)*2)}.mt-2\.5{margin-top:calc(var(--spacing)*2.5)}.mt-3{margin-top:calc(var(--spacing)*3)}.mt-6{margin-top:calc(var(--spacing)*6)}.mr-1{margin-right:calc(var(--spacing)*1)}.mr-2{margin-right:calc(var(--spacing)*2)}.mb-1{margin-bottom:calc(var(--spacing)*1)}.mb-1\.5{margin-bottom:calc(var(--spacing)*1.5)}.mb-2{margin-bottom:calc(var(--spacing)*2)}.mb-4{margin-bottom:calc(var(--spacing)*4)}.mb-6{margin-bottom:calc(var(--spacing)*6)}.ml-auto{margin-left:auto}.box-border{box-sizing:border-box}.line-clamp-4{-webkit-line-clamp:4;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.block{display:block}.contents{display:contents}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.table{display:table}.aspect-\[5\.5\/7\]{aspect-ratio:5.5/7}.size-4{height:calc(var(--spacing)*4);width:calc(var(--spacing)*4)}.size-5{height:calc(var(--spacing)*5);width:calc(var(--spacing)*5)}.size-6{height:calc(var(--spacing)*6);width:calc(var(--spacing)*6)}.size-10{height:calc(var(--spacing)*10);width:calc(var(--spacing)*10)}.h-0{height:calc(var(--spacing)*0)}.h-2{height:calc(var(--spacing)*2)}.h-10{height:calc(var(--spacing)*10)}.h-24{height:calc(var(--spacing)*24)}.h-\[calc\(4\*1\.35\*1em\+12px\)\]{height:calc(5.4em + 12px)}.h-auto{height:auto}.h-full{height:100%}.max-h-96{max-height:calc(var(--spacing)*96)}.min-h-0{min-height:calc(var(--spacing)*0)}.min-h-9\.5{min-height:calc(var(--spacing)*9.5)}.min-h-40{min-height:calc(var(--spacing)*40)}.w-full{width:100%}.max-w-3xl{max-width:var(--container-3xl)}.max-w-180{max-width:calc(var(--spacing)*180)}.max-w-none{max-width:none}.min-w-0{min-width:calc(var(--spacing)*0)}.flex-1{flex:1}.flex-none{flex:none}.-translate-y-1\/2{--tw-translate-y:-50%;translate:var(--tw-translate-x)var(--tw-translate-y)}.rotate-90{rotate:90deg}.cursor-pointer{cursor:pointer}.resize{resize:both}.resize-y{resize:vertical}.auto-cols-\[minmax\(160px\,1fr\)\]{grid-auto-columns:minmax(160px,1fr)}.grid-flow-col{grid-auto-flow:column}.grid-rows-\[0fr\]{grid-template-rows:0fr}.grid-rows-\[1fr\]{grid-template-rows:1fr}.flex-col{flex-direction:column}.items-center{align-items:center}.items-end{align-items:flex-end}.items-start{align-items:flex-start}.items-stretch{align-items:stretch}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.gap-0\.5{gap:calc(var(--spacing)*.5)}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-2\.5{gap:calc(var(--spacing)*2.5)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-end:calc(var(--spacing)*2*(1 - var(--tw-space-y-reverse)));margin-block-start:calc(var(--spacing)*2*var(--tw-space-y-reverse))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-y-hidden{overflow-y:hidden}.rounded{border-radius:.25rem}.rounded-\[10px\]{border-radius:10px}.rounded-full{border-radius:3.40282e+38px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.border{border-style:var(--tw-border-style);border-width:1px}.border-r{border-right-style:var(--tw-border-style);border-right-width:1px}.border-l{border-left-style:var(--tw-border-style);border-left-width:1px}.border-dashed\!{--tw-border-style:dashed!important;border-style:dashed!important}.border-black\/10{border-color:#0000001a}@supports (color:color-mix(in lab,red,red)){.border-black\/10{border-color:color-mix(in oklab,var(--color-black)10%,transparent)}}.border-gray-100{border-color:var(--color-gray-100)}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-gray-300\/70{border-color:#d1d5dcb3}@supports (color:color-mix(in lab,red,red)){.border-gray-300\/70{border-color:color-mix(in oklab,var(--color-gray-300)70%,transparent)}}.bg-black\/45{background-color:#00000073}@supports (color:color-mix(in lab,red,red)){.bg-black\/45{background-color:color-mix(in oklab,var(--color-black)45%,transparent)}}.bg-emerald-600{background-color:var(--color-emerald-600)}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-200{background-color:var(--color-gray-200)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-white{background-color:var(--color-white)}.bg-white\!{background-color:var(--color-white)!important}.bg-yellow-50{background-color:var(--color-yellow-50)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-1{padding:calc(var(--spacing)*1)}.p-1\.5{padding:calc(var(--spacing)*1.5)}.p-2{padding:calc(var(--spacing)*2)}.p-2\.5{padding:calc(var(--spacing)*2.5)}.p-3\.5{padding:calc(var(--spacing)*3.5)}.p-4{padding:calc(var(--spacing)*4)}.px-3{padding-inline:calc(var(--spacing)*3)}.py-2{padding-block:calc(var(--spacing)*2)}.text-center{text-align:center}.text-left{text-align:left}.font-\[inherit\]{font-family:inherit}.font-mono{font-family:var(--font-mono)}.text-2xl{font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-base{font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.leading-\[1\.35\]{--tw-leading:1.35;line-height:1.35}.leading-tight{--tw-leading:var(--leading-tight);line-height:var(--leading-tight)}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.wrap-break-word{overflow-wrap:break-word}.whitespace-pre-line{white-space:pre-line}.text-emerald-700{color:var(--color-emerald-700)}.text-gray-400{color:var(--color-gray-400)}.text-gray-400\!{color:var(--color-gray-400)!important}.text-gray-500{color:var(--color-gray-500)}.text-gray-700{color:var(--color-gray-700)}.text-gray-900{color:var(--color-gray-900)}.text-red-600{color:var(--color-red-600)}.text-yellow-800{color:var(--color-yellow-800)}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal,)var(--tw-slashed-zero,)var(--tw-numeric-figure,)var(--tw-numeric-spacing,)var(--tw-numeric-fraction,)}.opacity-20{opacity:.2}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.shadow-\[0_10px_40px_rgba\(0\,0\,0\,0\.28\)\]{--tw-shadow:0 10px 40px var(--tw-shadow-color,#00000047);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.transition-\[grid-template-rows\]{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:grid-template-rows;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-\[width\]{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:width;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-transform{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.duration-300{--tw-duration:.3s;transition-duration:.3s}.ease-in-out{--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.last\:border-r-0:last-child{border-right-style:var(--tw-border-style);border-right-width:0}@media (hover:hover){.hover\:bg-gray-50\!:hover{background-color:var(--color-gray-50)!important}.hover\:text-gray-600\!:hover{color:var(--color-gray-600)!important}}.focus\:ring-2:focus{--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\:ring-emerald-500\/30:focus{--tw-ring-color:#00bb7f4d}@supports (color:color-mix(in lab,red,red)){.focus\:ring-emerald-500\/30:focus{--tw-ring-color:color-mix(in oklab,var(--color-emerald-500)30%,transparent)}}.focus\:outline-none:focus{--tw-outline-style:none;outline-style:none}@media not all and (min-width:640px){.max-\[640px\]\:line-clamp-3{-webkit-line-clamp:3;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.max-\[640px\]\:h-\[calc\(3\*1\.35\*1em\+12px\)\]{height:calc(4.05em + 12px)}.max-\[640px\]\:auto-cols-\[minmax\(220px\,1fr\)\]{grid-auto-columns:minmax(220px,1fr)}.max-\[640px\]\:gap-0\.5{gap:calc(var(--spacing)*.5)}.max-\[640px\]\:px-1{padding-inline:calc(var(--spacing)*1)}}@media (min-width:40rem){.sm\:inline{display:inline}}@media (min-width:64rem){.lg\:block{display:block}.lg\:grid{display:grid}.lg\:hidden{display:none}.lg\:h-full{height:100%}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:gap-3{gap:calc(var(--spacing)*3)}}}body:has(#mktcms-admin){background-color:var(--color-gray-100)}body:has(#mktcms-admin:not(.fullscreen)){padding:calc(var(--spacing)*4)}@media (min-width:48rem){body:has(#mktcms-admin:not(.fullscreen)){padding:calc(var(--spacing)*12)}}#mktcms-admin{background-color:var(--color-white);max-width:var(--container-3xl);padding:calc(var(--spacing)*4);--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow);display:flex;flex-direction:column;margin-inline:auto}@media (min-width:48rem){#mktcms-admin{border-radius:var(--radius-lg)}}#mktcms-admin.fullscreen{border-radius:0;height:100vh;max-height:100vh;max-width:none;overflow:hidden}#mktcms-admin h1{font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height));--tw-font-weight:var(--font-weight-semibold);color:var(--color-gray-800);font-weight:var(--font-weight-semibold)}#mktcms-admin input[type=email],#mktcms-admin input[type=password],#mktcms-admin input[type=text],#mktcms-admin select,#mktcms-admin textarea{background-color:var(--color-white);border-color:var(--color-gray-300);border-radius:.25rem;border-style:var(--tw-border-style);border-width:1px;font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height));padding:calc(var(--spacing)*2.5);width:100%}#mktcms-admin .button{align-items:center;background-color:var(--color-emerald-600);border-radius:.25rem;color:var(--color-white);cursor:pointer;display:inline-flex;gap:calc(var(--spacing)*2);padding-block:calc(var(--spacing)*2.5);padding-inline:calc(var(--spacing)*4)}@media (hover:hover){#mktcms-admin .button:hover{background-color:var(--color-emerald-700)}}#mktcms-admin .button:disabled{cursor:not-allowed;opacity:.5}#mktcms-admin .button.secondary{background-color:var(--color-gray-50);border-color:var(--color-gray-300);border-style:var(--tw-border-style);border-width:1px;color:var(--color-gray-700)}@media (hover:hover){#mktcms-admin .button.secondary:hover{background-color:var(--color-gray-100)}}#mktcms-admin .button.directory{background-color:var(--color-gray-700);border-color:var(--color-gray-600);border-style:var(--tw-border-style);border-width:1px;color:var(--color-white)}@media (hover:hover){#mktcms-admin .button.directory:hover{background-color:var(--color-gray-600)}}#mktcms-admin .button.danger{background-color:var(--color-red-600)}@media (hover:hover){#mktcms-admin .button.danger:hover{background-color:var(--color-red-700)}}#mktcms-admin .button.small{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height));padding-block:calc(var(--spacing)*1.5);padding-inline:calc(var(--spacing)*2.5)}#mktcms-admin .button :disabled{cursor:not-allowed;opacity:.5}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}
|
|
@@ -2,6 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
import { defineEventHandler, getValidatedQuery, readValidatedBody } from "h3";
|
|
3
3
|
import { useStorage } from "nitropack/runtime";
|
|
4
4
|
import { stringify } from "csv-stringify/sync";
|
|
5
|
+
import syncGitContent from "../../utils/syncGitContent.js";
|
|
5
6
|
const querySchema = z.object({
|
|
6
7
|
path: z.string().min(1)
|
|
7
8
|
});
|
|
@@ -9,11 +10,12 @@ const bodySchema = z.object({
|
|
|
9
10
|
table: z.object({
|
|
10
11
|
headers: z.array(z.string()),
|
|
11
12
|
rows: z.array(z.array(z.string()))
|
|
12
|
-
})
|
|
13
|
+
}),
|
|
14
|
+
commitMessage: z.string().trim().min(1)
|
|
13
15
|
});
|
|
14
16
|
export default defineEventHandler(async (event) => {
|
|
15
17
|
const { path } = await getValidatedQuery(event, (query) => querySchema.parse(query));
|
|
16
|
-
const { table } = await readValidatedBody(event, (body) => bodySchema.parse(body));
|
|
18
|
+
const { table, commitMessage } = await readValidatedBody(event, (body) => bodySchema.parse(body));
|
|
17
19
|
const decodedPath = decodeURIComponent(path);
|
|
18
20
|
const content = stringify(table.rows, {
|
|
19
21
|
header: true,
|
|
@@ -22,5 +24,10 @@ export default defineEventHandler(async (event) => {
|
|
|
22
24
|
});
|
|
23
25
|
const storage = useStorage("content");
|
|
24
26
|
await storage.setItem(decodedPath, content);
|
|
27
|
+
try {
|
|
28
|
+
await syncGitContent(commitMessage, [decodedPath]);
|
|
29
|
+
} catch (error) {
|
|
30
|
+
console.error("Git-Fehler:", error);
|
|
31
|
+
}
|
|
25
32
|
return { success: true };
|
|
26
33
|
});
|
|
@@ -2,6 +2,7 @@ import z from "zod";
|
|
|
2
2
|
import { createError, defineEventHandler, getValidatedQuery, readMultipartFormData } from "h3";
|
|
3
3
|
import { useStorage } from "nitropack/runtime";
|
|
4
4
|
import sharp from "sharp";
|
|
5
|
+
import syncGitContent from "../../utils/syncGitContent.js";
|
|
5
6
|
const querySchema = z.object({
|
|
6
7
|
path: z.string().min(1)
|
|
7
8
|
});
|
|
@@ -84,5 +85,10 @@ export default defineEventHandler(async (event) => {
|
|
|
84
85
|
}
|
|
85
86
|
const outputBuffer = await image.toBuffer();
|
|
86
87
|
await useStorage("content").setItemRaw(decodedPath, outputBuffer);
|
|
88
|
+
try {
|
|
89
|
+
await syncGitContent("Bild ersetzt", [decodedPath]);
|
|
90
|
+
} catch (error) {
|
|
91
|
+
console.error("Git-Fehler:", error);
|
|
92
|
+
}
|
|
87
93
|
return { success: true, path: decodedPath };
|
|
88
94
|
});
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { defineEventHandler, getValidatedQuery, readValidatedBody } from "h3";
|
|
3
|
-
import { useStorage
|
|
3
|
+
import { useStorage } from "nitropack/runtime";
|
|
4
4
|
import { stringify } from "yaml";
|
|
5
|
-
import
|
|
5
|
+
import syncGitContent from "../../utils/syncGitContent.js";
|
|
6
6
|
const querySchema = z.object({
|
|
7
7
|
path: z.string().min(1)
|
|
8
8
|
});
|
|
9
9
|
const bodySchema = z.object({
|
|
10
10
|
frontmatter: z.record(z.string(), z.any()),
|
|
11
11
|
markdown: z.string(),
|
|
12
|
-
commitMessage: z.string().
|
|
12
|
+
commitMessage: z.string().trim().min(1)
|
|
13
13
|
});
|
|
14
14
|
function buildContent(frontmatter, markdown) {
|
|
15
15
|
if (Object.keys(frontmatter).length === 0) {
|
|
@@ -27,17 +27,8 @@ export default defineEventHandler(async (event) => {
|
|
|
27
27
|
const content = buildContent(frontmatter, markdown);
|
|
28
28
|
const storage = useStorage("content");
|
|
29
29
|
await storage.setItem(decodedPath, content);
|
|
30
|
-
const { mktcms: { gitToken, gitUser, gitRepo } } = useRuntimeConfig();
|
|
31
|
-
if (!gitToken || !gitUser || !gitRepo) {
|
|
32
|
-
throw new Error("Missing Git auth config: NUXT_MKTCMS_GIT_USER, NUXT_MKTCMS_GIT_REPO, NUXT_MKTCMS_GIT_TOKEN");
|
|
33
|
-
}
|
|
34
|
-
const git = simpleGit();
|
|
35
|
-
git.addConfig("user.name", "Kunde").addConfig("user.email", "admin@mktcode.de");
|
|
36
30
|
try {
|
|
37
|
-
await
|
|
38
|
-
await git.commit(commitMessage || `\xC4nderung durch Kunden`);
|
|
39
|
-
const authUrl = `https://${encodeURIComponent(gitUser)}:${encodeURIComponent(gitToken)}@github.com/${gitRepo}`;
|
|
40
|
-
await git.push([authUrl]);
|
|
31
|
+
await syncGitContent(commitMessage, [decodedPath]);
|
|
41
32
|
} catch (error) {
|
|
42
33
|
console.error("Git-Fehler:", error);
|
|
43
34
|
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import z from "zod";
|
|
2
|
+
import { createError, defineEventHandler, getValidatedQuery, readMultipartFormData } from "h3";
|
|
3
|
+
import { useStorage } from "nitropack/runtime";
|
|
4
|
+
import syncGitContent from "../../utils/syncGitContent.js";
|
|
5
|
+
const querySchema = z.object({
|
|
6
|
+
path: z.string().min(1)
|
|
7
|
+
});
|
|
8
|
+
export default defineEventHandler(async (event) => {
|
|
9
|
+
const form = await readMultipartFormData(event);
|
|
10
|
+
const { path } = await getValidatedQuery(event, (query) => querySchema.parse(query));
|
|
11
|
+
const decodedPath = decodeURIComponent(path);
|
|
12
|
+
if (!form) {
|
|
13
|
+
throw createError({
|
|
14
|
+
statusCode: 400,
|
|
15
|
+
statusMessage: "No form data received"
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
const file = form.find((item) => item.name === "file");
|
|
19
|
+
if (!file) {
|
|
20
|
+
throw createError({
|
|
21
|
+
statusCode: 400,
|
|
22
|
+
statusMessage: "Missing file"
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
if (!file.filename || !file.data) {
|
|
26
|
+
throw createError({
|
|
27
|
+
statusCode: 400,
|
|
28
|
+
statusMessage: "Invalid file upload"
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
const fileExtension = file.filename.toLowerCase().slice(file.filename.lastIndexOf("."));
|
|
32
|
+
const targetExtension = decodedPath.toLowerCase().slice(decodedPath.lastIndexOf("."));
|
|
33
|
+
if (targetExtension !== ".pdf") {
|
|
34
|
+
throw createError({
|
|
35
|
+
statusCode: 400,
|
|
36
|
+
statusMessage: "Invalid target file type. Only PDF files are allowed."
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
if (fileExtension !== ".pdf") {
|
|
40
|
+
throw createError({
|
|
41
|
+
statusCode: 400,
|
|
42
|
+
statusMessage: "Invalid file type. Only PDF files are allowed."
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
await useStorage("content").setItemRaw(decodedPath, Buffer.from(file.data));
|
|
46
|
+
try {
|
|
47
|
+
await syncGitContent("PDF ersetzt", [decodedPath]);
|
|
48
|
+
} catch (error) {
|
|
49
|
+
console.error("Git-Fehler:", error);
|
|
50
|
+
}
|
|
51
|
+
return { success: true, path: decodedPath };
|
|
52
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function syncGitContent(commitMessage: string, files: string[]): Promise<void>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useRuntimeConfig } from "nitropack/runtime";
|
|
2
|
+
import { simpleGit } from "simple-git";
|
|
3
|
+
function toStorageFilePath(file) {
|
|
4
|
+
const normalized = file.replace(/\\/g, "/").replace(/:/g, "/").replace(/^\/+/, "").replace(/^\.\/+/, "");
|
|
5
|
+
const withoutBase = normalized.startsWith(".storage/") ? normalized.slice(".storage/".length) : normalized;
|
|
6
|
+
const safePath = withoutBase.split("/").filter((segment) => segment && segment !== "." && segment !== "..").join("/");
|
|
7
|
+
if (!safePath) {
|
|
8
|
+
throw new Error("Invalid file path for Git sync");
|
|
9
|
+
}
|
|
10
|
+
return `.storage/${safePath}`;
|
|
11
|
+
}
|
|
12
|
+
export default async function syncGitContent(commitMessage, files) {
|
|
13
|
+
const { mktcms: { gitToken, gitUser, gitRepo } } = useRuntimeConfig();
|
|
14
|
+
if (!gitToken || !gitUser || !gitRepo) {
|
|
15
|
+
throw new Error("Missing Git auth config: NUXT_MKTCMS_GIT_USER, NUXT_MKTCMS_GIT_REPO, NUXT_MKTCMS_GIT_TOKEN");
|
|
16
|
+
}
|
|
17
|
+
const git = simpleGit();
|
|
18
|
+
git.addConfig("user.name", "Kunde").addConfig("user.email", "admin@mktcode.de");
|
|
19
|
+
const filesToAdd = [...new Set(files.map(toStorageFilePath))];
|
|
20
|
+
await git.add(filesToAdd);
|
|
21
|
+
await git.commit(commitMessage);
|
|
22
|
+
const authUrl = `https://${encodeURIComponent(gitUser)}:${encodeURIComponent(gitToken)}@github.com/${gitRepo}`;
|
|
23
|
+
await git.push([authUrl]);
|
|
24
|
+
}
|