From 6e22ce9f419d370998bc4639f3582eb8a0f1881a Mon Sep 17 00:00:00 2001 From: Abdo Date: Mon, 28 Apr 2025 15:53:10 +0300 Subject: [PATCH] Add ts/routes/editor --- ts/routes/editor/[noteId]/+page.svelte | 12 ++++++++++++ ts/routes/editor/[noteId]/+page.ts | 10 ++++++++++ 2 files changed, 22 insertions(+) create mode 100644 ts/routes/editor/[noteId]/+page.svelte create mode 100644 ts/routes/editor/[noteId]/+page.ts diff --git a/ts/routes/editor/[noteId]/+page.svelte b/ts/routes/editor/[noteId]/+page.svelte new file mode 100644 index 000000000..995cede15 --- /dev/null +++ b/ts/routes/editor/[noteId]/+page.svelte @@ -0,0 +1,12 @@ + + + +
{data.noteId}
diff --git a/ts/routes/editor/[noteId]/+page.ts b/ts/routes/editor/[noteId]/+page.ts new file mode 100644 index 000000000..66e82b2cd --- /dev/null +++ b/ts/routes/editor/[noteId]/+page.ts @@ -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;