mirror of
https://git.witchcraft.systems/scientific-witchery/pds-dash.git
synced 2025-06-08 07:54:05 +10:00
19 lines
393 B
Svelte
19 lines
393 B
Svelte
<script lang="ts">
|
|
import PostComponent from "./lib/PostComponent.svelte";
|
|
import { fetchAllPosts, Post } from "./lib/pdsfetch";
|
|
const postsPromise = fetchAllPosts();
|
|
</script>
|
|
|
|
<main>
|
|
{#await postsPromise}
|
|
<p>Loading...</p>
|
|
{:then postsData}
|
|
{#each postsData as postObject}
|
|
<PostComponent post={postObject as Post} />
|
|
{/each}
|
|
{/await}
|
|
</main>
|
|
|
|
<style>
|
|
|
|
</style>
|