mirror of
https://github.com/thiloho/archtika.git
synced 2025-11-22 19:01:35 +01:00
Add legal information operation site
This commit is contained in:
@@ -49,6 +49,9 @@
|
||||
<li>
|
||||
<a href="/website/{id}/collaborators">Collaborators</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/website/{id}/legal-information">Legal information</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/website/{id}/publish">Publish</a>
|
||||
</li>
|
||||
|
||||
@@ -50,4 +50,4 @@
|
||||
</main>
|
||||
{/if}
|
||||
|
||||
<Footer text={footerAdditionalText} />
|
||||
<Footer text={footerAdditionalText} isIndexPage={false} />
|
||||
|
||||
@@ -1,11 +1,14 @@
|
||||
<script lang="ts">
|
||||
const { text }: { text: string } = $props();
|
||||
const { text, isIndexPage = true }: { text: string; isIndexPage?: boolean } = $props();
|
||||
</script>
|
||||
|
||||
<footer>
|
||||
<div class="container">
|
||||
<small>
|
||||
{@html text}
|
||||
{@html text.replace(
|
||||
"!!legal",
|
||||
`<a href="${isIndexPage ? "./legal-information" : "../legal-information"}">Legal information</a>`
|
||||
)}
|
||||
</small>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
@@ -42,4 +42,4 @@
|
||||
</main>
|
||||
{/if}
|
||||
|
||||
<Footer text={footerAdditionalText} />
|
||||
<Footer text={footerAdditionalText} isIndexPage={false} />
|
||||
|
||||
@@ -150,7 +150,7 @@ export const md = (markdownContent: string, showToc = true) => {
|
||||
};
|
||||
|
||||
export const handleImagePaste = async (event: ClipboardEvent, API_BASE_PREFIX: string) => {
|
||||
const clipboardItems = Array.from(event.clipboardData?.items || []);
|
||||
const clipboardItems = Array.from(event.clipboardData?.items ?? []);
|
||||
const file = clipboardItems.find((item) => item.type.startsWith("image/"));
|
||||
|
||||
if (!file) return null;
|
||||
|
||||
Reference in New Issue
Block a user