Add ts/routes/editor

This commit is contained in:
Abdo 2025-04-28 15:53:10 +03:00
parent 31d877f20d
commit 6e22ce9f41
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,12 @@
<!--
Copyright: Ankitects Pty Ltd and contributors
License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
-->
<script lang="ts">
import type { PageData } from "./$types";
export let data: PageData;
</script>
<div>{data.noteId}</div>

View file

@ -0,0 +1,10 @@
// Copyright: Ankitects Pty Ltd and contributors
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
import type { PageLoad } from "./$types";
export const load = (async ({ params }) => {
const noteId = BigInt(params.noteId);
return { noteId };
}) satisfies PageLoad;