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: init:
yarn --cwd ./web-frontend/ yarn --cwd ./web-frontend/
cargo fetch cargo fetch
cargo install wasm-pack

View File

@ -10,10 +10,6 @@
let lon = ''; let lon = '';
let addr = ''; let addr = '';
init().then(() => {
console.log('Initialized');
});
onMount(async () => { onMount(async () => {
if (browser) { if (browser) {
const leaflet = await import('leaflet'); const leaflet = await import('leaflet');
@ -53,6 +49,17 @@
<h1>Welcome to SvelteKit</h1> <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> <p>Current cursor: {addr} => ({lat}, {lon})</p>
<main> <main>