Harden systemd services, restrict file permissions further, add username blocklist and prevent more vulnerabilities

This commit is contained in:
thiloho
2024-12-08 14:33:33 +01:00
parent 46b8cb033c
commit 18210d501b
8 changed files with 73 additions and 14 deletions

View File

@@ -26,6 +26,8 @@
});
const tabs = ["settings", "articles", "categories", "collaborators", "publish", "logs"];
let iframeLoaded = $state(false);
</script>
<input type="checkbox" id="toggle-mobile-preview" hidden />
@@ -55,7 +57,15 @@
<div class="preview" bind:this={previewElement}>
{#if fullPreview}
<iframe src={previewContent.value} title="Preview"></iframe>
{#if !iframeLoaded}
<p>Loading preview...</p>
{/if}
<iframe
src={previewContent.value}
title="Preview"
onload={() => (iframeLoaded = true)}
style:display={iframeLoaded ? "block" : "none"}
></iframe>
{:else}
{@html md(
previewContent.value || "Write some markdown content to see a live preview here",