From 844d5771e8c78aed6598cde050f77a5db32cd6ab Mon Sep 17 00:00:00 2001 From: Christian Beutel <> Date: Thu, 2 May 2024 22:54:19 +0200 Subject: [PATCH] release v0.5.0 --- CHANGELOG.md | 13 +++++++++++++ web/package-lock.json | 4 ++-- web/package.json | 2 +- .../logo/logo_text_light_with_version.svelte | 2 +- web/src/lib/i18n/locales/de.json | 3 +++ web/src/lib/i18n/locales/en.json | 3 +++ web/src/lib/i18n/locales/fr.json | 3 +++ web/src/lib/i18n/locales/hu.json | 3 +++ web/src/lib/i18n/locales/nl.json | 3 +++ web/src/lib/i18n/locales/pl.json | 3 +++ web/src/lib/i18n/locales/pt.json | 3 +++ web/src/lib/i18n/locales/zh.json | 3 +++ web/src/lib/stores/trail_store.ts | 6 +++--- web/src/routes/map/trail/[id]/print/+page.svelte | 6 ++---- web/src/routes/trail/edit/[id]/+page.svelte | 6 +++--- 15 files changed, 49 insertions(+), 14 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 719cb491..db8a68f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,16 @@ +# v0.5.0 + +## ⚠️ Breaking changes ⚠️ +- This version updates the index pattern of the meilisearch index. Please delete your `data.ms` folder before launching wanderer. The indices will be rebuilt on launch. Otherwise trail filtering will no longer work. + +## Features +- Trails can now be filtered by date +- Elevation, slope and speed graphs are now also visible when creating a new trail +- When creating a new trail you now have the option to create a new route from scratch without uploading a GPX file. Press the "Draw a route" button and plan your new route directly in wanderer. We use [valhalla](https://github.com/valhalla/valhalla) and their associated free [hosted service](https://gis-ops.com/global-open-valhalla-server-online/) to calculate the routes. To activate the feature make sure to set the PUBLIC_VALHALLA_URL environment variable on you wanderer-web service. See the current [docker-compose.yml](https://github.com/Flomp/wanderer/blob/main/docker-compose.yml) for a working configuration. + +## Bug fixes +- Uploaded trails will now have a date if it can be parsed from the file + # v0.4.0 ## Features diff --git a/web/package-lock.json b/web/package-lock.json index 55fd021a..3b191eff 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -1,12 +1,12 @@ { "name": "wanderer", - "version": "0.4.0", + "version": "0.5.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "wanderer", - "version": "0.4.0", + "version": "0.5.0", "dependencies": { "@fortawesome/fontawesome-free": "^6.5.1", "@sveltejs/adapter-node": "^4.0.1", diff --git a/web/package.json b/web/package.json index 04a5709c..c466eea5 100644 --- a/web/package.json +++ b/web/package.json @@ -1,6 +1,6 @@ { "name": "wanderer", - "version": "0.4.0", + "version": "0.5.0", "private": true, "scripts": { "dev": "vite dev", diff --git a/web/src/lib/components/logo/logo_text_light_with_version.svelte b/web/src/lib/components/logo/logo_text_light_with_version.svelte index b41d6afb..868b0a7b 100644 --- a/web/src/lib/components/logo/logo_text_light_with_version.svelte +++ b/web/src/lib/components/logo/logo_text_light_with_version.svelte @@ -95,5 +95,5 @@ d="M43.857 43.3045C44.0569 43.0652 44.4246 43.0652 44.6245 43.3045L46.6259 45.7008C46.8978 46.0263 46.6663 46.5213 46.2421 46.5213H42.2394C41.8152 46.5213 41.5837 46.0263 41.8556 45.7008L43.857 43.3045Z" fill="#242734" /> - v0.4.0 + v0.5.0 diff --git a/web/src/lib/i18n/locales/de.json b/web/src/lib/i18n/locales/de.json index 98251382..409b2d25 100644 --- a/web/src/lib/i18n/locales/de.json +++ b/web/src/lib/i18n/locales/de.json @@ -24,6 +24,7 @@ "contribute": "Mitwirken", "create-new-list": "Neue Liste erstellen", "creation-date": "Erstellungsdatum", + "cycling": "Radfahren", "danger-zone": "Gefahrenzone", "date": "Datum", "default-location": "Standort", @@ -41,6 +42,7 @@ "documentation": "Dokumentation", "download-gpx": "GPX herunterladen", "draw-a-route": "Route zeichnen", + "driving": "Auto", "dutch": "Niederländisch", "easy": "Einfach", "edit": "Bearbeiten", @@ -67,6 +69,7 @@ "hero_section_1_text": "Hier sind einige Routen, die dir gefallen könnten. Oder du wirfst einen Blick auf die vollständige Liste.", "hero_section_1_text_alternative": "Speichere dein letztes Abenteuer, um loszulegen.", "hero_section_2_text": "Wusstest du schon? Du kannst nicht nur deine Routen speichern. Es gibt viele Kategorien für alle deine Abenteuer.", + "hiking": "Wandern", "hungarian": "Ungarisch", "icon": "Icon", "imperial": "Amerikanisch", diff --git a/web/src/lib/i18n/locales/en.json b/web/src/lib/i18n/locales/en.json index 0c0ad379..65a833e6 100644 --- a/web/src/lib/i18n/locales/en.json +++ b/web/src/lib/i18n/locales/en.json @@ -24,6 +24,7 @@ "contribute": "Contribute", "create-new-list": "Create new list", "creation-date": "Creation date", + "cycling": "Cycling", "danger-zone": "Danger zone", "date": "Date", "default-location": "Default Location", @@ -41,6 +42,7 @@ "documentation": "Documentation", "download-gpx": "Download GPX", "draw-a-route": "Draw a route", + "driving": "Driving", "dutch": "Dutch", "easy": "Easy", "edit": "Edit", @@ -67,6 +69,7 @@ "hero_section_1_text": "Here are some trails you might like. Or you can just go to the full list right now.", "hero_section_1_text_alternative": "Get started by saving your latest adventure.", "hero_section_2_text": "Did you know? You cannot only save you hiking trails. There are many categories for all your adventures.", + "hiking": "Hiking", "hungarian": "Hungarian", "icon": "Icon", "imperial": "Imperial", diff --git a/web/src/lib/i18n/locales/fr.json b/web/src/lib/i18n/locales/fr.json index 2575e1df..30ef1fb9 100644 --- a/web/src/lib/i18n/locales/fr.json +++ b/web/src/lib/i18n/locales/fr.json @@ -24,6 +24,7 @@ "contribute": "Contribuer", "create-new-list": "Créer une nouvelle liste", "creation-date": "Date de création", + "cycling": "", "danger-zone": "Zone de danger", "date": "Date", "default-location": "Endroit pas défaut", @@ -41,6 +42,7 @@ "documentation": "Documentation", "download-gpx": "Télécharger le GPX", "draw-a-route": "", + "driving": "", "dutch": "Néerlandais", "easy": "Facile", "edit": "Editer", @@ -67,6 +69,7 @@ "hero_section_1_text": "Voici quelques itinéraires qui pourraient vous plaire. Vous pouvez également consulter la liste complète dès maintenant.", "hero_section_1_text_alternative": "Commencez par enregistrer votre dernière aventure.", "hero_section_2_text": "Le saviez-vous ? Vous ne pouvez pas vous contenter que de sauver vos itinéraires de randonnée. Il existe de nombreuses catégories pour toutes vos aventures.", + "hiking": "", "hungarian": "Hongrois", "icon": "Icône", "imperial": "Impérial", diff --git a/web/src/lib/i18n/locales/hu.json b/web/src/lib/i18n/locales/hu.json index fd8060d4..79199c52 100644 --- a/web/src/lib/i18n/locales/hu.json +++ b/web/src/lib/i18n/locales/hu.json @@ -24,6 +24,7 @@ "contribute": "Hozzájárulás", "create-new-list": "Új lista létrehozása", "creation-date": "létrehozás dátuma", + "cycling": "", "danger-zone": "Veszélyes zóna", "date": "Dátum", "default-location": "Alapértelmezett hely", @@ -41,6 +42,7 @@ "documentation": "Dokumentáció", "download-gpx": "GPX letöltése", "draw-a-route": "", + "driving": "", "dutch": "Holland", "easy": "Könnyű", "edit": "Szerkesztés", @@ -67,6 +69,7 @@ "hero_section_1_text": "Íme néhány nyomvonal, amely tetszeni fog. Vagy csak menj a teljes listára most rögtön.", "hero_section_1_text_alternative": "Kezdje a legújabb kaland elmentésével.", "hero_section_2_text": "Tudta? Nem csak a túraútvonalakat mentheti el. Számos kategória létezik minden kalandodhoz.", + "hiking": "", "hungarian": "Magyar", "icon": "Ikon", "imperial": "Angolszász", diff --git a/web/src/lib/i18n/locales/nl.json b/web/src/lib/i18n/locales/nl.json index 524417ed..df4e7787 100644 --- a/web/src/lib/i18n/locales/nl.json +++ b/web/src/lib/i18n/locales/nl.json @@ -24,6 +24,7 @@ "contribute": "Bijdragen", "create-new-list": "Nieuwe lijst", "creation-date": "Aanmaakdatum", + "cycling": "", "danger-zone": "Gevarenzone", "date": "Datum", "default-location": "Standaardlocatie", @@ -41,6 +42,7 @@ "documentation": "Documentatie", "download-gpx": "GPX-bestand downloaden", "draw-a-route": "", + "driving": "", "dutch": "Nederlands", "easy": "Makkelijk", "edit": "Bewerken", @@ -67,6 +69,7 @@ "hero_section_1_text": "Wellicht vind je deze routes interessant. Ook kun je de volledige lijst bekijken.", "hero_section_1_text_alternative": "Bewaar je recentste avontuur om aan de slag te gaan.", "hero_section_2_text": "Wist je dat…? Je kunt niet alleen wandelroutes opslaan: er zijn ook categorieën voor andere avonturen.", + "hiking": "", "hungarian": "Hongaars", "icon": "Pictogram", "imperial": "Imperiaal", diff --git a/web/src/lib/i18n/locales/pl.json b/web/src/lib/i18n/locales/pl.json index 4a4f8343..09496406 100644 --- a/web/src/lib/i18n/locales/pl.json +++ b/web/src/lib/i18n/locales/pl.json @@ -24,6 +24,7 @@ "contribute": "Kontrybuuj", "create-new-list": "Stwórz nową listę", "creation-date": "Data dodania", + "cycling": "", "danger-zone": "Strefa niebezpieczna", "date": "Data", "default-location": "Domyślna Lokalizacja", @@ -41,6 +42,7 @@ "documentation": "Dokumentacja", "download-gpx": "Popierz GPX", "draw-a-route": "", + "driving": "", "dutch": "Niderlandzki", "easy": "Łatwy", "edit": "Edytuj", @@ -67,6 +69,7 @@ "hero_section_1_text": "Oto kila ścieżek które możesz zobaczyć lub możesz przejść do pełnej listy.", "hero_section_1_text_alternative": "Zacznij poprzez zapisanie swojej ostatniej wyprawy.", "hero_section_2_text": "Czy wiesz że, możesz zapisywać nie tylko piesze wycieczki ale także inne kategorie wypraw?", + "hiking": "", "hungarian": "Język węgierski", "icon": "Ikona", "imperial": "Anglosaskie", diff --git a/web/src/lib/i18n/locales/pt.json b/web/src/lib/i18n/locales/pt.json index 82a74fed..6f0e3db5 100644 --- a/web/src/lib/i18n/locales/pt.json +++ b/web/src/lib/i18n/locales/pt.json @@ -24,6 +24,7 @@ "contribute": "Contribuir", "create-new-list": "Criar nova lista", "creation-date": "Data de criação", + "cycling": "", "danger-zone": "Zona de perigo", "date": "Data", "default-location": "Localização padrão", @@ -41,6 +42,7 @@ "documentation": "Documentação", "download-gpx": "Baixar GPX", "draw-a-route": "", + "driving": "", "dutch": "Holandês", "easy": "Fácil", "edit": "Editar", @@ -67,6 +69,7 @@ "hero_section_1_text": "Aqui estão algumas trilhas que você pode gostar. Ou podes ir à lista completa agora.", "hero_section_1_text_alternative": "Comece salvando sua última aventura.", "hero_section_2_text": "Sabias? Você não pode apenas salvá-lo trilhas de caminhada. Há muitas categorias para todas as suas aventuras.", + "hiking": "", "hungarian": "Húngaro", "icon": "Ícone", "imperial": "Imperial", diff --git a/web/src/lib/i18n/locales/zh.json b/web/src/lib/i18n/locales/zh.json index ba80675e..720f0b15 100644 --- a/web/src/lib/i18n/locales/zh.json +++ b/web/src/lib/i18n/locales/zh.json @@ -24,6 +24,7 @@ "contribute": "贡献", "create-new-list": "创建新列表", "creation-date": "创建日期", + "cycling": "", "danger-zone": "危险区域", "date": "日期", "default-location": "默认地点", @@ -41,6 +42,7 @@ "documentation": "文档", "download-gpx": "下载 GPX", "draw-a-route": "", + "driving": "", "dutch": "荷兰语", "easy": "简单", "edit": "编辑", @@ -67,6 +69,7 @@ "hero_section_1_text": "以下有你可能喜欢的线路,或者立刻浏览全部列表。", "hero_section_1_text_alternative": "即刻开始规划您最新的冒险。", "hero_section_2_text": "你知道吗?这里不仅仅可以收藏你的登山路线,还能为您的所有冒险放到相应的类别里面。", + "hiking": "", "hungarian": "匈牙利语", "icon": "图标", "imperial": "英制", diff --git a/web/src/lib/stores/trail_store.ts b/web/src/lib/stores/trail_store.ts index 2318086c..a0c739c9 100644 --- a/web/src/lib/stores/trail_store.ts +++ b/web/src/lib/stores/trail_store.ts @@ -357,14 +357,14 @@ export async function fetchGPX(trail: Trail, f: (url: RequestInfo | URL, config? function buildFilterText(filter: TrailFilter, includeGeo: boolean): string { let filterText: string = ""; - filterText += `distance >= ${filter.distanceMin} AND elevation_gain >= ${filter.elevationGainMin}` + filterText += `distance >= ${Math.floor(filter.distanceMin)} AND elevation_gain >= ${Math.floor(filter.elevationGainMin)}` if (filter.distanceMax < filter.distanceLimit) { - filterText += ` AND distance <= ${filter.distanceMax}` + filterText += ` AND distance <= ${Math.ceil(filter.distanceMax)}` } if (filter.elevationGainMax < filter.elevationGainLimit) { - filterText += ` AND elevation_gain <= ${filter.elevationGainMax}` + filterText += ` AND elevation_gain <= ${Math.ceil(filter.elevationGainMax)}` } filterText += ` AND difficulty IN [${filter.difficulty.join(",")}]` diff --git a/web/src/routes/map/trail/[id]/print/+page.svelte b/web/src/routes/map/trail/[id]/print/+page.svelte index af0844cf..221b9ada 100644 --- a/web/src/routes/map/trail/[id]/print/+page.svelte +++ b/web/src/routes/map/trail/[id]/print/+page.svelte @@ -493,7 +493,7 @@ loading={printLoading} extraClasses="mt-2" primary={true} - on:click={print}>Print!{$_("print")}! @@ -535,9 +535,7 @@ > {formatDistance( - $trail.distance, - )}{formatDistance($trail.distance)}