Cleanup
This commit is contained in:
parent
8a6b8fe950
commit
2811900bab
1
justfile
1
justfile
@ -24,3 +24,4 @@ fmt:
|
||||
init:
|
||||
yarn --cwd ./web-frontend/
|
||||
cargo fetch
|
||||
cargo install wasm-pack
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user