feat: add user page to profile page
This commit is contained in:
1 parent
a5c41a9c90
commit
d193719475
8 files changed
+102
-5
No files matched your search
@@ -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}
|
||||
@@ -0,0 +1,3 @@
|
||||
export async function load({ parent }) {
|
||||
return await parent()
|
||||
}
|
||||
Reference in new issue
Block a user