Compare commits
No commits in common. "0dfca0de17ddb6d89e64e2b92da6d7d06f32683f" and "a572d710b3e3ab36dcadc7f8766ceddf77c9d389" have entirely different histories.
0dfca0de17
...
a572d710b3
2 changed files with 8 additions and 2 deletions
|
@ -40,7 +40,7 @@ const getRouteByCategory = async (categoryId: number) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const getRoute = async (routeId: number) => {
|
const getRoute = async (routeId: number) => {
|
||||||
let data = {};
|
let data = [];
|
||||||
if (import.meta.env.PROD) {
|
if (import.meta.env.PROD) {
|
||||||
const response = await fetch(`${API_URL}/route/${routeId}`);
|
const response = await fetch(`${API_URL}/route/${routeId}`);
|
||||||
const json = await response.json();
|
const json = await response.json();
|
||||||
|
|
|
@ -6,6 +6,12 @@
|
||||||
export let data: App.Route;
|
export let data: App.Route;
|
||||||
|
|
||||||
let divider;
|
let divider;
|
||||||
|
|
||||||
|
onMount(async () => {
|
||||||
|
console.log(data);
|
||||||
|
});
|
||||||
|
|
||||||
|
const mapClick = (evt) => {};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Header></Header>
|
<Header></Header>
|
||||||
|
@ -16,7 +22,7 @@
|
||||||
<p>Percorso <b>{data.name_it}</b></p>
|
<p>Percorso <b>{data.name_it}</b></p>
|
||||||
<p id="duration">Dislivello {data.elevation_gain}</p>
|
<p id="duration">Dislivello {data.elevation_gain}</p>
|
||||||
</div>
|
</div>
|
||||||
<Tabs route={data}></Tabs>
|
<Tabs on:map-click={mapClick} route={data}></Tabs>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
Loading…
Reference in a new issue