Compare commits
No commits in common. "825a2e2f6a05737c29619dff0fb6841eb4256d66" and "ed0d21020e14605afb4355ccd31b21208154e8de" have entirely different histories.
825a2e2f6a
...
ed0d21020e
7 changed files with 2237 additions and 38 deletions
|
@ -16,7 +16,6 @@
|
||||||
"@sveltejs/kit": "^1.22.3",
|
"@sveltejs/kit": "^1.22.3",
|
||||||
"@typescript-eslint/eslint-plugin": "^6.1.0",
|
"@typescript-eslint/eslint-plugin": "^6.1.0",
|
||||||
"@typescript-eslint/parser": "^6.1.0",
|
"@typescript-eslint/parser": "^6.1.0",
|
||||||
"@vite-pwa/sveltekit": "^0.2.5",
|
|
||||||
"eslint": "^8.45.0",
|
"eslint": "^8.45.0",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
"eslint-config-prettier": "^8.5.0",
|
||||||
"eslint-plugin-svelte": "^2.30.0",
|
"eslint-plugin-svelte": "^2.30.0",
|
||||||
|
@ -26,7 +25,8 @@
|
||||||
"svelte-check": "^3.4.6",
|
"svelte-check": "^3.4.6",
|
||||||
"tslib": "^2.4.1",
|
"tslib": "^2.4.1",
|
||||||
"typescript": "^5.0.0",
|
"typescript": "^5.0.0",
|
||||||
"vite": "^4.4.4"
|
"vite": "^4.4.4",
|
||||||
|
"vite-plugin-pwa": "^0.16.4"
|
||||||
},
|
},
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
string += `Latitude : ${crd.latitude}`;
|
string += `Latitude : ${crd.latitude}`;
|
||||||
string += `Longitude: ${crd.longitude}`;
|
string += `Longitude: ${crd.longitude}`;
|
||||||
string += `More or less ${crd.accuracy} meters.`;
|
string += `More or less ${crd.accuracy} meters.`;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function error(err) {
|
function error(err) {
|
||||||
|
|
|
@ -1,19 +1,11 @@
|
||||||
<script>
|
<script>
|
||||||
// import { pwaInfo } from 'virtual:pwa-info';
|
|
||||||
import BottomAppBar from '$lib/components/BottomAppBar.svelte';
|
import BottomAppBar from '$lib/components/BottomAppBar.svelte';
|
||||||
// $: webManifestLink = pwaInfo ? pwaInfo.webManifest.linkTag : ''
|
</script>
|
||||||
</script>
|
|
||||||
|
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
<footer>
|
<footer>
|
||||||
<BottomAppBar />
|
<BottomAppBar />
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
<!--
|
|
||||||
<svelte:head>
|
|
||||||
{@html webManifestLink}
|
|
||||||
</svelte:head>
|
|
||||||
-->
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
footer {
|
footer {
|
||||||
|
|
|
@ -7,12 +7,6 @@ const config = {
|
||||||
// for more information about preprocessors
|
// for more information about preprocessors
|
||||||
preprocess: vitePreprocess(),
|
preprocess: vitePreprocess(),
|
||||||
kit: {
|
kit: {
|
||||||
files: {
|
|
||||||
serviceWorker: 'src/sw.ts',
|
|
||||||
},
|
|
||||||
serviceWorker: {
|
|
||||||
register: false
|
|
||||||
},
|
|
||||||
adapter: adapter({
|
adapter: adapter({
|
||||||
precompress: false,
|
precompress: false,
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -1,10 +1,9 @@
|
||||||
import { sveltekit } from "@sveltejs/kit/vite";
|
import { sveltekit } from "@sveltejs/kit/vite";
|
||||||
import adapter from "@sveltejs/adapter-node";
|
import adapter from "@sveltejs/adapter-node";
|
||||||
|
import { VitePWA } from 'vite-plugin-pwa';
|
||||||
|
|
||||||
const config = {
|
const config = {
|
||||||
plugins: [
|
plugins: [sveltekit(), VitePWA({ registerType: 'autoUpdate' })],
|
||||||
sveltekit(),
|
|
||||||
],
|
|
||||||
test: {
|
test: {
|
||||||
include: ["src/**/*.{test,spec}.{js,ts}"],
|
include: ["src/**/*.{test,spec}.{js,ts}"],
|
||||||
},
|
},
|
||||||
|
@ -19,4 +18,4 @@ const config = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export default config;
|
export default config;
|
||||||
|
|
2247
frontend/yarn.lock
2247
frontend/yarn.lock
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue