22 lines
493 B
Svelte
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>
|