add tauri-sqlite and guest module

This commit is contained in:
2024-12-09 23:16:29 +01:00
parent ce8c259d1b
commit da2f4c5e06
8 changed files with 779 additions and 7 deletions

View File

@@ -9,6 +9,12 @@
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
greetMsg = await invoke("greet", { name });
}
async function wave(event: Event) {
event.preventDefault();
// Learn more about Tauri commands at https://tauri.app/develop/calling-rust/
greetMsg = await invoke("wave", { name });
}
</script>
<main class="container">
@@ -31,6 +37,11 @@
<input id="greet-input" placeholder="Enter a name..." bind:value={name} />
<button type="submit">Greet</button>
</form>
<form class="row" onsubmit={wave}>
<input id="greet-input" placeholder="Enter a name..." bind:value={name} />
<button type="submit">Wave</button>
</form>
<p>{greetMsg}</p>
</main>