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