implemented display of wiki pages

Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
2025-09-09 21:08:51 +02:00
parent 4c441b1e46
commit 4f6f969041
10 changed files with 131 additions and 9 deletions

View File

@@ -20,9 +20,17 @@
}
}
async function onSet(newVal){
console.log('TODO: implement patch',newVal);
return true;
}
onMount(loadPage);
</script>
<h2>{id}</h2>
{#if error}
<span class="error">{error}</span>
{/if}
{#if page}
<Editor editable={true} value={page.content} {onSet}></Editor>
{/if}