misc: basic functionality

This commit is contained in:
Xyphyn committed 2023-06-24 14:27:20 -07:00
1 parent c9fc488ef2
commit 83608fdaa6
12 files changed
+147 -36

No files matched your search

+5 -9
View File
@@ -1,18 +1,14 @@
<script lang="ts">
import MultiSelect from '$lib/components/MultiSelect.svelte'
import type { PostResponse } from 'lemmy-js-client'
import Post from './Post.svelte'
import Post from '../../../post/[id]/Post.svelte'
export let data: any
export let data
</script>
<MultiSelect options={['Community', 'idk']} selected="Community" />
<div class="flex flex-col gap-4">
{#await data then data}
<pre>{JSON.stringify(data, undefined, 2)}</pre>
{#each data?.posts as post}
<Post {post} />
{/each}
{/await}
{#each data.posts as post}
<Post {post} />
{/each}
</div>