feat: add user page to profile page

This commit is contained in:
Xyphyn committed 2023-08-11 14:16:35 -07:00
1 parent a5c41a9c90
commit d193719475
8 files changed
+102 -5

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
<script lang="ts">
import UserPage from '../../u/[name]/+page.svelte'
export let data
</script>
{#if data.user && data.sort && data.type && data.page}
<UserPage
data={{
items: data.user.submissions,
page: data.page,
person_view: data.user.person_view,
sort: data.sort,
type: data.type,
}}
/>
{:else}
<pre>
{JSON.stringify(data)}
</pre>
{/if}
+3
View File
@@ -0,0 +1,3 @@
export async function load({ parent }) {
return await parent()
}