wallet.andert.me/src/routes/+page.svelte
2023-08-25 12:31:15 +02:00

22 lines
493 B
Svelte

<script lang="ts">
import { createQuery } from "../lib/wundergraph";
import Login from "$lib/Login.svelte";
const projectsQuery = createQuery({
operationName: "Projects",
});
</script>
<Login />
<br />
Projects
<div class="results">
{#if $projectsQuery.isLoading}
<p>Loading...</p>
{:else if $projectsQuery.error}
<pre>Error: {JSON.stringify($projectsQuery.error, null, 2)}</pre>
{:else}
<pre>{JSON.stringify($projectsQuery.data, null, 2)}</pre>
{/if}
</div>