]> git.r.bdr.sh - rbdr/forum/blobdiff - src/routes/a/[id].svelte
Update eslint
[rbdr/forum] / src / routes / a / [id].svelte
index 1b6c7054ee2a78ec7207f80e5b1b25b41b913d9f..aeca1421d8ef438c95660f88ccd47fa819adb8d2 100644 (file)
@@ -1,10 +1,13 @@
-<script>
-  export async function load(ctx) {
-    let id = ctx.page.params.id
-    return { props: { id }}
-  }
+<script lang="ts" context="module">
+       export const load = ({
+               page: {
+                       params: { id }
+               }
+       }) => ({ props: { id } });
+</script>
 
-  import Author from '$components/author/author.svelte';
+<script lang="ts">
+       import Author from '$lib/components/author/author.svelte';
 </script>
 
-<Author/>
+<Author />