Cleanup the file structure
This commit is contained in:
parent
57f7c5d6e5
commit
2a0228693b
24 changed files with 394 additions and 810 deletions
|
@ -1,19 +0,0 @@
|
|||
<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>
|
Loading…
Add table
Add a link
Reference in a new issue