mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
Add ts/routes/editor
This commit is contained in:
parent
31d877f20d
commit
6e22ce9f41
2 changed files with 22 additions and 0 deletions
12
ts/routes/editor/[noteId]/+page.svelte
Normal file
12
ts/routes/editor/[noteId]/+page.svelte
Normal 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>
|
10
ts/routes/editor/[noteId]/+page.ts
Normal file
10
ts/routes/editor/[noteId]/+page.ts
Normal 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;
|
Loading…
Reference in a new issue