Compare commits

..

No commits in common. "ac97696c6aabbcb1ee6d4263019b5ea2b2bd946d" and "c9faabc9454ac618b8f28bbf03332f0611d37f78" have entirely different histories.

8 changed files with 118 additions and 1030 deletions

File diff suppressed because it is too large Load diff

View file

@ -32,7 +32,6 @@
}, },
"type": "module", "type": "module",
"dependencies": { "dependencies": {
"@sentry/sveltekit": "^7.90.0",
"leaflet": "^1.9.4", "leaflet": "^1.9.4",
"leaflet-gpx": "^1.7.0", "leaflet-gpx": "^1.7.0",
"svelte-preprocess": "^5.1.3" "svelte-preprocess": "^5.1.3"

View file

@ -1,41 +0,0 @@
<html>
<head>
<style>
* {
box-sizing: border-box;
}
body {
background-image: url(/splash.webp);
background-size: cover;
display: grid;
place-content: center;
height: 100%;
font-size: 24px;
font-family: monospace;
}
.wrapper {
display: flex;
backdrop-filter: blur(5px);
border-radius: 10px;
border: 1px solid black;
}
#status {
border-right: 1px solid black;
}
p {
padding: 20px;
}
</style>
</head>
<body>
<div class="wrapper">
<p id="status">Code %sveltekit.status%</p>
<p id="message">%sveltekit.error.message%</p>
</div>
</body>
</html>

View file

@ -1,5 +0,0 @@
export async function handleError({ error, event, status, message }) {
return {
message
};
}

View file

@ -2,9 +2,3 @@ export async function handle({ event, resolve }) {
const response = await resolve(event); const response = await resolve(event);
return response; return response;
} }
export async function handleError({ error, event, status, message }) {
return {
message
};
}

View file

@ -5,12 +5,12 @@
<div id="grid"> <div id="grid">
<div> <div>
<p>Distanza</p> <p>Distanza</p>
<p>{route?.route_sport_details[1]?.distance} m</p> <p>{route.route_sport_details[1].distance} m</p>
</div> </div>
<div> <div>
<p>Dislivello Positivo</p> <p>Dislivello Positivo</p>
<p>{route?.route_sport_details[1]?.elevation_gain}</p> <p>{route.route_sport_details[1].elevation_gain}</p>
</div> </div>
<div> <div>
@ -20,32 +20,32 @@
<div> <div>
<p>Difficolta</p> <p>Difficolta</p>
<p>{route?.route_sport_details[1]?.difficulty_it}</p> <p>{route.route_sport_details[1].difficulty_it}</p>
</div> </div>
<div> <div>
<p>Dislivello Negativo</p> <p>Dislivello Negativo</p>
<p>{route?.route_sport_details[1]?.elevation_loss}</p> <p>{route.route_sport_details[1].elevation_loss}</p>
</div> </div>
<div> <div>
<p>Durata</p> <p>Durata</p>
<p>{route?.route_sport_details[1]?.duration}'</p> <p>{route.route_sport_details[1].duration}'</p>
</div> </div>
<div> <div>
<p>Altitudine max</p> <p>Altitudine max</p>
<p>{route?.route_sport_details[1]?.altitude_max}</p> <p>{route.route_sport_details[1].altitude_max}</p>
</div> </div>
<div> <div>
<p>Altitudine min</p> <p>Altitudine min</p>
<p>{route?.route_sport_details[1]?.altitude_min}</p> <p>{route.route_sport_details[1].altitude_min}</p>
</div> </div>
<div> <div>
<p>Tipo Percorso</p> <p>Tipo Percorso</p>
<p>{route?.route_sport_details[1]?.route_type_it}</p> <p>{route.route_sport_details[1].route_type_it}</p>
</div> </div>
</div> </div>

View file

@ -5,12 +5,12 @@
<div id="grid"> <div id="grid">
<div> <div>
<p>Distanza</p> <p>Distanza</p>
<p>{route?.route_sport_details[0]?.distance} m</p> <p>{route.route_sport_details[0].distance} m</p>
</div> </div>
<div> <div>
<p>Dislivello Positivo</p> <p>Dislivello Positivo</p>
<p>{route?.route_sport_details[0]?.elevation_gain}</p> <p>{route.route_sport_details[0].elevation_gain}</p>
</div> </div>
<div> <div>
@ -20,32 +20,32 @@
<div> <div>
<p>Difficolta</p> <p>Difficolta</p>
<p>{route?.route_sport_details[0]?.difficulty_it}</p> <p>{route.route_sport_details[0].difficulty_it}</p>
</div> </div>
<div> <div>
<p>Dislivello Negativo</p> <p>Dislivello Negativo</p>
<p>{route?.route_sport_details[0]?.elevation_loss}</p> <p>{route.route_sport_details[0].elevation_loss}</p>
</div> </div>
<div> <div>
<p>Durata</p> <p>Durata</p>
<p>{route?.route_sport_details[0]?.duration}'</p> <p>{route.route_sport_details[0].duration}'</p>
</div> </div>
<div> <div>
<p>Altitudine max</p> <p>Altitudine max</p>
<p>{route?.route_sport_details[0]?.altitude_max}</p> <p>{route.route_sport_details[0].altitude_max}</p>
</div> </div>
<div> <div>
<p>Altitudine min</p> <p>Altitudine min</p>
<p>{route?.route_sport_details[0]?.altitude_min}</p> <p>{route.route_sport_details[0].altitude_min}</p>
</div> </div>
<div> <div>
<p>Tipo Percorso</p> <p>Tipo Percorso</p>
<p>{route?.route_sport_details[0]?.route_type_it}</p> <p>{route.route_sport_details[0].route_type_it}</p>
</div> </div>
</div> </div>

View file

@ -1,11 +1,3 @@
export const prerender = false; export const prerender = false;
export const ssr = true; export const ssr = true;
export const csr = true; export const csr = true;
/**
* This is a global configuration for using sveltekit
* custom 'fetch' function that enables a lot of things
*/
export async function load({ fetch }) {
window.fetch = fetch;
}