From e6728ca097d25826e394dfb9f73182991c1c59ad Mon Sep 17 00:00:00 2001 From: Christian Beutel <> Date: Thu, 14 Mar 2024 20:04:43 +0100 Subject: [PATCH] adds difficulty display --- README.md | 6 ++++- .../lib/components/trail/trail_card.svelte | 10 ++++++++- .../components/trail/trail_list_item.svelte | 13 ++++++++++- web/src/lib/stores/trail_store.ts | 3 +++ web/src/routes/map/trail/[id]/+page.svelte | 14 ++++++++---- web/src/routes/trail/edit/[id]/+page.svelte | 15 +++++-------- web/src/routes/trail/view/[id]/+page.svelte | 22 ++++++++++--------- web/src/routes/trail/view/[id]/+page.ts | 3 ++- 8 files changed, 59 insertions(+), 27 deletions(-) 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 @@