some cleanup and gqlgen setup

This commit is contained in:
2024-11-01 19:55:30 +05:30
parent e41d27cf97
commit 1fb2d7d154
39 changed files with 5619 additions and 144 deletions

5
web/lib/gqlClient.ts Normal file
View File

@@ -0,0 +1,5 @@
import { HoudiniClient } from '$houdini';
export default new HoudiniClient({
url: process.env.GRAPH_HOST
});

12
web/lib/ui/Btn.svelte Normal file
View File

@@ -0,0 +1,12 @@
<script lang="ts">
import { type Snippet } from "svelte";
interface Props {
children: Snippet
}
const { children }:Props = $props();
</script>
<button>
{@render children()}
</button>