release v0.5.0

This commit is contained in:
Christian Beutel
2024-05-02 22:54:19 +02:00
parent dc63fb0d76
commit 844d5771e8
15 changed files with 49 additions and 14 deletions

View File

@@ -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 # v0.4.0
## Features ## Features

4
web/package-lock.json generated
View File

@@ -1,12 +1,12 @@
{ {
"name": "wanderer", "name": "wanderer",
"version": "0.4.0", "version": "0.5.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "wanderer", "name": "wanderer",
"version": "0.4.0", "version": "0.5.0",
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-free": "^6.5.1", "@fortawesome/fontawesome-free": "^6.5.1",
"@sveltejs/adapter-node": "^4.0.1", "@sveltejs/adapter-node": "^4.0.1",

View File

@@ -1,6 +1,6 @@
{ {
"name": "wanderer", "name": "wanderer",
"version": "0.4.0", "version": "0.5.0",
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite dev", "dev": "vite dev",

View File

@@ -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" 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" fill="#242734"
/> />
<text x="178" y="64" fill="white" font-size="0.75rem">v0.4.0</text> <text x="178" y="64" fill="white" font-size="0.75rem">v0.5.0</text>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -24,6 +24,7 @@
"contribute": "Mitwirken", "contribute": "Mitwirken",
"create-new-list": "Neue Liste erstellen", "create-new-list": "Neue Liste erstellen",
"creation-date": "Erstellungsdatum", "creation-date": "Erstellungsdatum",
"cycling": "Radfahren",
"danger-zone": "Gefahrenzone", "danger-zone": "Gefahrenzone",
"date": "Datum", "date": "Datum",
"default-location": "Standort", "default-location": "Standort",
@@ -41,6 +42,7 @@
"documentation": "Dokumentation", "documentation": "Dokumentation",
"download-gpx": "GPX herunterladen", "download-gpx": "GPX herunterladen",
"draw-a-route": "Route zeichnen", "draw-a-route": "Route zeichnen",
"driving": "Auto",
"dutch": "Niederländisch", "dutch": "Niederländisch",
"easy": "Einfach", "easy": "Einfach",
"edit": "Bearbeiten", "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": "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_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.", "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", "hungarian": "Ungarisch",
"icon": "Icon", "icon": "Icon",
"imperial": "Amerikanisch", "imperial": "Amerikanisch",

View File

@@ -24,6 +24,7 @@
"contribute": "Contribute", "contribute": "Contribute",
"create-new-list": "Create new list", "create-new-list": "Create new list",
"creation-date": "Creation date", "creation-date": "Creation date",
"cycling": "Cycling",
"danger-zone": "Danger zone", "danger-zone": "Danger zone",
"date": "Date", "date": "Date",
"default-location": "Default Location", "default-location": "Default Location",
@@ -41,6 +42,7 @@
"documentation": "Documentation", "documentation": "Documentation",
"download-gpx": "Download GPX", "download-gpx": "Download GPX",
"draw-a-route": "Draw a route", "draw-a-route": "Draw a route",
"driving": "Driving",
"dutch": "Dutch", "dutch": "Dutch",
"easy": "Easy", "easy": "Easy",
"edit": "Edit", "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": "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_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.", "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", "hungarian": "Hungarian",
"icon": "Icon", "icon": "Icon",
"imperial": "Imperial", "imperial": "Imperial",

View File

@@ -24,6 +24,7 @@
"contribute": "Contribuer", "contribute": "Contribuer",
"create-new-list": "Créer une nouvelle liste", "create-new-list": "Créer une nouvelle liste",
"creation-date": "Date de création", "creation-date": "Date de création",
"cycling": "",
"danger-zone": "Zone de danger", "danger-zone": "Zone de danger",
"date": "Date", "date": "Date",
"default-location": "Endroit pas défaut", "default-location": "Endroit pas défaut",
@@ -41,6 +42,7 @@
"documentation": "Documentation", "documentation": "Documentation",
"download-gpx": "Télécharger le GPX", "download-gpx": "Télécharger le GPX",
"draw-a-route": "", "draw-a-route": "",
"driving": "",
"dutch": "Néerlandais", "dutch": "Néerlandais",
"easy": "Facile", "easy": "Facile",
"edit": "Editer", "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": "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_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.", "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", "hungarian": "Hongrois",
"icon": "Icône", "icon": "Icône",
"imperial": "Impérial", "imperial": "Impérial",

View File

@@ -24,6 +24,7 @@
"contribute": "Hozzájárulás", "contribute": "Hozzájárulás",
"create-new-list": "Új lista létrehozása", "create-new-list": "Új lista létrehozása",
"creation-date": "létrehozás dátuma", "creation-date": "létrehozás dátuma",
"cycling": "",
"danger-zone": "Veszélyes zóna", "danger-zone": "Veszélyes zóna",
"date": "Dátum", "date": "Dátum",
"default-location": "Alapértelmezett hely", "default-location": "Alapértelmezett hely",
@@ -41,6 +42,7 @@
"documentation": "Dokumentáció", "documentation": "Dokumentáció",
"download-gpx": "GPX letöltése", "download-gpx": "GPX letöltése",
"draw-a-route": "", "draw-a-route": "",
"driving": "",
"dutch": "Holland", "dutch": "Holland",
"easy": "Könnyű", "easy": "Könnyű",
"edit": "Szerkesztés", "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": "Í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_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.", "hero_section_2_text": "Tudta? Nem csak a túraútvonalakat mentheti el. Számos kategória létezik minden kalandodhoz.",
"hiking": "",
"hungarian": "Magyar", "hungarian": "Magyar",
"icon": "Ikon", "icon": "Ikon",
"imperial": "Angolszász", "imperial": "Angolszász",

View File

@@ -24,6 +24,7 @@
"contribute": "Bijdragen", "contribute": "Bijdragen",
"create-new-list": "Nieuwe lijst", "create-new-list": "Nieuwe lijst",
"creation-date": "Aanmaakdatum", "creation-date": "Aanmaakdatum",
"cycling": "",
"danger-zone": "Gevarenzone", "danger-zone": "Gevarenzone",
"date": "Datum", "date": "Datum",
"default-location": "Standaardlocatie", "default-location": "Standaardlocatie",
@@ -41,6 +42,7 @@
"documentation": "Documentatie", "documentation": "Documentatie",
"download-gpx": "GPX-bestand downloaden", "download-gpx": "GPX-bestand downloaden",
"draw-a-route": "", "draw-a-route": "",
"driving": "",
"dutch": "Nederlands", "dutch": "Nederlands",
"easy": "Makkelijk", "easy": "Makkelijk",
"edit": "Bewerken", "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": "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_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.", "hero_section_2_text": "Wist je dat…? Je kunt niet alleen wandelroutes opslaan: er zijn ook categorieën voor andere avonturen.",
"hiking": "",
"hungarian": "Hongaars", "hungarian": "Hongaars",
"icon": "Pictogram", "icon": "Pictogram",
"imperial": "Imperiaal", "imperial": "Imperiaal",

View File

@@ -24,6 +24,7 @@
"contribute": "Kontrybuuj", "contribute": "Kontrybuuj",
"create-new-list": "Stwórz nową listę", "create-new-list": "Stwórz nową listę",
"creation-date": "Data dodania", "creation-date": "Data dodania",
"cycling": "",
"danger-zone": "Strefa niebezpieczna", "danger-zone": "Strefa niebezpieczna",
"date": "Data", "date": "Data",
"default-location": "Domyślna Lokalizacja", "default-location": "Domyślna Lokalizacja",
@@ -41,6 +42,7 @@
"documentation": "Dokumentacja", "documentation": "Dokumentacja",
"download-gpx": "Popierz GPX", "download-gpx": "Popierz GPX",
"draw-a-route": "", "draw-a-route": "",
"driving": "",
"dutch": "Niderlandzki", "dutch": "Niderlandzki",
"easy": "Łatwy", "easy": "Łatwy",
"edit": "Edytuj", "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": "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_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?", "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", "hungarian": "Język węgierski",
"icon": "Ikona", "icon": "Ikona",
"imperial": "Anglosaskie", "imperial": "Anglosaskie",

View File

@@ -24,6 +24,7 @@
"contribute": "Contribuir", "contribute": "Contribuir",
"create-new-list": "Criar nova lista", "create-new-list": "Criar nova lista",
"creation-date": "Data de criação", "creation-date": "Data de criação",
"cycling": "",
"danger-zone": "Zona de perigo", "danger-zone": "Zona de perigo",
"date": "Data", "date": "Data",
"default-location": "Localização padrão", "default-location": "Localização padrão",
@@ -41,6 +42,7 @@
"documentation": "Documentação", "documentation": "Documentação",
"download-gpx": "Baixar GPX", "download-gpx": "Baixar GPX",
"draw-a-route": "", "draw-a-route": "",
"driving": "",
"dutch": "Holandês", "dutch": "Holandês",
"easy": "Fácil", "easy": "Fácil",
"edit": "Editar", "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": "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_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.", "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", "hungarian": "Húngaro",
"icon": "Ícone", "icon": "Ícone",
"imperial": "Imperial", "imperial": "Imperial",

View File

@@ -24,6 +24,7 @@
"contribute": "贡献", "contribute": "贡献",
"create-new-list": "创建新列表", "create-new-list": "创建新列表",
"creation-date": "创建日期", "creation-date": "创建日期",
"cycling": "",
"danger-zone": "危险区域", "danger-zone": "危险区域",
"date": "日期", "date": "日期",
"default-location": "默认地点", "default-location": "默认地点",
@@ -41,6 +42,7 @@
"documentation": "文档", "documentation": "文档",
"download-gpx": "下载 GPX", "download-gpx": "下载 GPX",
"draw-a-route": "", "draw-a-route": "",
"driving": "",
"dutch": "荷兰语", "dutch": "荷兰语",
"easy": "简单", "easy": "简单",
"edit": "编辑", "edit": "编辑",
@@ -67,6 +69,7 @@
"hero_section_1_text": "以下有你可能喜欢的线路,或者立刻浏览全部列表。", "hero_section_1_text": "以下有你可能喜欢的线路,或者立刻浏览全部列表。",
"hero_section_1_text_alternative": "即刻开始规划您最新的冒险。", "hero_section_1_text_alternative": "即刻开始规划您最新的冒险。",
"hero_section_2_text": "你知道吗?这里不仅仅可以收藏你的登山路线,还能为您的所有冒险放到相应的类别里面。", "hero_section_2_text": "你知道吗?这里不仅仅可以收藏你的登山路线,还能为您的所有冒险放到相应的类别里面。",
"hiking": "",
"hungarian": "匈牙利语", "hungarian": "匈牙利语",
"icon": "图标", "icon": "图标",
"imperial": "英制", "imperial": "英制",

View File

@@ -357,14 +357,14 @@ export async function fetchGPX(trail: Trail, f: (url: RequestInfo | URL, config?
function buildFilterText(filter: TrailFilter, includeGeo: boolean): string { function buildFilterText(filter: TrailFilter, includeGeo: boolean): string {
let filterText: 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) { if (filter.distanceMax < filter.distanceLimit) {
filterText += ` AND distance <= ${filter.distanceMax}` filterText += ` AND distance <= ${Math.ceil(filter.distanceMax)}`
} }
if (filter.elevationGainMax < filter.elevationGainLimit) { 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(",")}]` filterText += ` AND difficulty IN [${filter.difficulty.join(",")}]`

View File

@@ -493,7 +493,7 @@
loading={printLoading} loading={printLoading}
extraClasses="mt-2" extraClasses="mt-2"
primary={true} primary={true}
on:click={print}>Print!</Button on:click={print}>{$_("print")}!</Button
> >
</div> </div>
@@ -535,9 +535,7 @@
> >
<span <span
><i class="fa fa-left-right mr-2" ><i class="fa fa-left-right mr-2"
></i>{formatDistance( ></i>{formatDistance($trail.distance)}</span
$trail.distance,
)}</span
> >
<span <span
><i class="fa fa-up-down mr-2" ><i class="fa fa-up-down mr-2"

View File

@@ -101,9 +101,9 @@
}); });
const modesOfTransport = [ const modesOfTransport = [
{ text: "Hiking", value: "pedestrian" }, { text: $_('hiking'), value: "pedestrian" },
{ text: "Cycling", value: "bicycle" }, { text: $_('cycling'), value: "bicycle" },
{ text: "Driving", value: "auto" }, { text: $_('driving'), value: "auto" },
]; ];
let selectedModeOfTransport = modesOfTransport[0].value; let selectedModeOfTransport = modesOfTransport[0].value;