some cleanup and gqlgen setup
This commit is contained in:
5
web/lib/gqlClient.ts
Normal file
5
web/lib/gqlClient.ts
Normal 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
12
web/lib/ui/Btn.svelte
Normal 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>
|
Reference in New Issue
Block a user