This commit is contained in:
Austen Adler 2023-02-28 06:31:42 -05:00
parent 8a6b8fe950
commit 2811900bab
2 changed files with 12 additions and 4 deletions

View File

@ -24,3 +24,4 @@ fmt:
init:
yarn --cwd ./web-frontend/
cargo fetch
cargo install wasm-pack

View File

@ -10,10 +10,6 @@
let lon = '';
let addr = '';
init().then(() => {
console.log('Initialized');
});
onMount(async () => {
if (browser) {
const leaflet = await import('leaflet');
@ -53,6 +49,17 @@
<h1>Welcome to SvelteKit</h1>
<p>
Status:
{#await init()}
Setting up wasm...
{:then}
Ready
{:catch e}
{e}
{/await}
</p>
<p>Current cursor: {addr} => ({lat}, {lon})</p>
<main>