diff --git a/README.md b/README.md index 94678e8a..a312e346 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,11 @@ You can now access the frontend at localhost:3000. > Note: if you are using wanderer in a production environment make sure to change the MEILI_MASTER_KEY. -You can also run wanderer on bare-metal. Check out the documentation for a detailed how-to guide. +You can also run wanderer on bare-metal. Check out the [documentation](https://github.com/Flomp/wanderer/wiki/Installation#from-source) for a detailed how-to guide. + +## Documentation + +Please check the [wiki](https://](https://github.com/Flomp/wanderer/wiki)) for the complete documentation. ## License This project is licensed under the AGPLv3 License. See the [LICENSE](LICENSE) file for the full license text. diff --git a/web/src/lib/components/trail/trail_card.svelte b/web/src/lib/components/trail/trail_card.svelte index fd61b334..152c4abe 100644 --- a/web/src/lib/components/trail/trail_card.svelte +++ b/web/src/lib/components/trail/trail_card.svelte @@ -6,6 +6,7 @@ formatElevation, formatTimeHHMM, } from "$lib/util/format_util"; + import { _ } from "svelte-i18n"; export let trail: Trail; @@ -26,7 +27,14 @@

{trail.name}

-
{trail.location}
+ {#if trail.location} +
{trail.location}
+ {/if} +
+ {$_( + trail.difficulty ?? "?", + )} +

{trail.name}

-
{trail.location}
+
+ {#if trail.location} +
{trail.location}
+ {/if} +
+ {$_( + trail.difficulty ?? "?", + )} +
+
+
{formatDistance( diff --git a/web/src/lib/stores/trail_store.ts b/web/src/lib/stores/trail_store.ts index 5c287789..6a257e81 100644 --- a/web/src/lib/stores/trail_store.ts +++ b/web/src/lib/stores/trail_store.ts @@ -162,6 +162,9 @@ export async function trails_show(id: string, loadGPX?: boolean, f: (url: Reques } if (loadGPX) { + if(!response.expand) { + response.expand = {} + } const gpxData: string = await fetchGPX(response, f); response.expand.gpx_data = gpxData; } diff --git a/web/src/routes/map/trail/[id]/+page.svelte b/web/src/routes/map/trail/[id]/+page.svelte index 65b8b098..39fa3a74 100644 --- a/web/src/routes/map/trail/[id]/+page.svelte +++ b/web/src/routes/map/trail/[id]/+page.svelte @@ -100,10 +100,16 @@

{$trail.name}

-

- - {$trail.location} -

+
+

+ + {$trail.location} +

+

+ + {$_($trail.difficulty ?? "?")} +

+
{#if $currentUser && $currentUser.id == $trail.author} diff --git a/web/src/routes/trail/edit/[id]/+page.svelte b/web/src/routes/trail/edit/[id]/+page.svelte index 7032e4a6..a5ac8ee2 100644 --- a/web/src/routes/trail/edit/[id]/+page.svelte +++ b/web/src/routes/trail/edit/[id]/+page.svelte @@ -345,7 +345,6 @@ function handlePhotoDelete(index: number) { if ($form.thumbnail == index) { $form.thumbnail = 0; - console.log("huere"); } if (index >= $form.photos.length) { @@ -479,14 +478,12 @@ { text: $_("difficult"), value: "difficult" }, ]} > - {#if $form.expand.category} - - {/if} +
diff --git a/web/src/routes/trail/view/[id]/+page.svelte b/web/src/routes/trail/view/[id]/+page.svelte index 62b2bb15..855127a3 100644 --- a/web/src/routes/trail/view/[id]/+page.svelte +++ b/web/src/routes/trail/view/[id]/+page.svelte @@ -136,25 +136,27 @@ class="trail-panel max-w-5xl mx-auto border border-input-border rounded-3xl overflow-hidden" >
- +

{$trail.name}

-

- - {$trail.location} -

+
+

+ + {$trail.location} +

+

+ + {$_($trail.difficulty ?? "?")} +

+
{#if $currentUser && $currentUser.id == $trail.author} diff --git a/web/src/routes/trail/view/[id]/+page.ts b/web/src/routes/trail/view/[id]/+page.ts index 5bcce1ec..b7aa33b1 100644 --- a/web/src/routes/trail/view/[id]/+page.ts +++ b/web/src/routes/trail/view/[id]/+page.ts @@ -12,7 +12,8 @@ export const load: Load = async ({ params, fetch }) => { message: 'Not found' }); } - + console.log(e); + } await lists_index(undefined, fetch); }; \ No newline at end of file