Compare commits
No commits in common. "ac97696c6aabbcb1ee6d4263019b5ea2b2bd946d" and "c9faabc9454ac618b8f28bbf03332f0611d37f78" have entirely different histories.
ac97696c6a
...
c9faabc945
8 changed files with 118 additions and 1030 deletions
1055
frontend/package-lock.json
generated
1055
frontend/package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
@ -32,7 +32,6 @@
|
|||
},
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"@sentry/sveltekit": "^7.90.0",
|
||||
"leaflet": "^1.9.4",
|
||||
"leaflet-gpx": "^1.7.0",
|
||||
"svelte-preprocess": "^5.1.3"
|
||||
|
|
|
@ -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>
|
|
@ -1,5 +0,0 @@
|
|||
export async function handleError({ error, event, status, message }) {
|
||||
return {
|
||||
message
|
||||
};
|
||||
}
|
|
@ -2,9 +2,3 @@ export async function handle({ event, resolve }) {
|
|||
const response = await resolve(event);
|
||||
return response;
|
||||
}
|
||||
|
||||
export async function handleError({ error, event, status, message }) {
|
||||
return {
|
||||
message
|
||||
};
|
||||
}
|
|
@ -5,12 +5,12 @@
|
|||
<div id="grid">
|
||||
<div>
|
||||
<p>Distanza</p>
|
||||
<p>{route?.route_sport_details[1]?.distance} m</p>
|
||||
<p>{route.route_sport_details[1].distance} m</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>Dislivello Positivo</p>
|
||||
<p>{route?.route_sport_details[1]?.elevation_gain}</p>
|
||||
<p>{route.route_sport_details[1].elevation_gain}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
@ -20,32 +20,32 @@
|
|||
|
||||
<div>
|
||||
<p>Difficolta</p>
|
||||
<p>{route?.route_sport_details[1]?.difficulty_it}</p>
|
||||
<p>{route.route_sport_details[1].difficulty_it}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>Dislivello Negativo</p>
|
||||
<p>{route?.route_sport_details[1]?.elevation_loss}</p>
|
||||
<p>{route.route_sport_details[1].elevation_loss}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>Durata</p>
|
||||
<p>{route?.route_sport_details[1]?.duration}'</p>
|
||||
<p>{route.route_sport_details[1].duration}'</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>Altitudine max</p>
|
||||
<p>{route?.route_sport_details[1]?.altitude_max}</p>
|
||||
<p>{route.route_sport_details[1].altitude_max}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>Altitudine min</p>
|
||||
<p>{route?.route_sport_details[1]?.altitude_min}</p>
|
||||
<p>{route.route_sport_details[1].altitude_min}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<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>
|
||||
|
||||
|
|
|
@ -5,12 +5,12 @@
|
|||
<div id="grid">
|
||||
<div>
|
||||
<p>Distanza</p>
|
||||
<p>{route?.route_sport_details[0]?.distance} m</p>
|
||||
<p>{route.route_sport_details[0].distance} m</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>Dislivello Positivo</p>
|
||||
<p>{route?.route_sport_details[0]?.elevation_gain}</p>
|
||||
<p>{route.route_sport_details[0].elevation_gain}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
|
@ -20,32 +20,32 @@
|
|||
|
||||
<div>
|
||||
<p>Difficolta</p>
|
||||
<p>{route?.route_sport_details[0]?.difficulty_it}</p>
|
||||
<p>{route.route_sport_details[0].difficulty_it}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>Dislivello Negativo</p>
|
||||
<p>{route?.route_sport_details[0]?.elevation_loss}</p>
|
||||
<p>{route.route_sport_details[0].elevation_loss}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>Durata</p>
|
||||
<p>{route?.route_sport_details[0]?.duration}'</p>
|
||||
<p>{route.route_sport_details[0].duration}'</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>Altitudine max</p>
|
||||
<p>{route?.route_sport_details[0]?.altitude_max}</p>
|
||||
<p>{route.route_sport_details[0].altitude_max}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<p>Altitudine min</p>
|
||||
<p>{route?.route_sport_details[0]?.altitude_min}</p>
|
||||
<p>{route.route_sport_details[0].altitude_min}</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<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>
|
||||
|
||||
|
|
|
@ -1,11 +1,3 @@
|
|||
export const prerender = false;
|
||||
export const ssr = 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;
|
||||
}
|
Loading…
Reference in a new issue