pds-dash/web/src/App.svelte
ari 3f03c12152
whoa svelte is here
Co-authored-by: Astra <Astrrra@users.noreply.github.com>
2025-04-20 00:18:33 -04:00

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>