From e50ff329c32df147b2e0b0297024366576fc25fc Mon Sep 17 00:00:00 2001 From: Alessio Davoli Date: Tue, 18 Jul 2023 18:26:39 +0200 Subject: [PATCH] Update packages --- frontend/package.json | 4 +- .../src/lib/components/tabs/MapTab.svelte | 1 - frontend/src/routes/+layout.svelte | 8 +- frontend/src/sw.ts | 0 frontend/svelte.config.js | 6 + frontend/vite.config.ts | 13 +- frontend/yarn.lock | 2247 +---------------- 7 files changed, 42 insertions(+), 2237 deletions(-) create mode 100644 frontend/src/sw.ts diff --git a/frontend/package.json b/frontend/package.json index 67fed56..247a853 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -16,6 +16,7 @@ "@sveltejs/kit": "^1.22.3", "@typescript-eslint/eslint-plugin": "^6.1.0", "@typescript-eslint/parser": "^6.1.0", + "@vite-pwa/sveltekit": "^0.2.5", "eslint": "^8.45.0", "eslint-config-prettier": "^8.5.0", "eslint-plugin-svelte": "^2.30.0", @@ -25,8 +26,7 @@ "svelte-check": "^3.4.6", "tslib": "^2.4.1", "typescript": "^5.0.0", - "vite": "^4.4.4", - "vite-plugin-pwa": "^0.16.4" + "vite": "^4.4.4" }, "type": "module", "dependencies": { diff --git a/frontend/src/lib/components/tabs/MapTab.svelte b/frontend/src/lib/components/tabs/MapTab.svelte index fda50ed..4022e57 100644 --- a/frontend/src/lib/components/tabs/MapTab.svelte +++ b/frontend/src/lib/components/tabs/MapTab.svelte @@ -35,7 +35,6 @@ string += `Latitude : ${crd.latitude}`; string += `Longitude: ${crd.longitude}`; string += `More or less ${crd.accuracy} meters.`; - } function error(err) { diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index b49a193..90f6d26 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -1,11 +1,17 @@ + $: webManifestLink = pwaInfo ? pwaInfo.webManifest.linkTag : '' + + + + {@html webManifestLink} +