release v0.5.0
This commit is contained in:
13
CHANGELOG.md
13
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
|
||||
|
||||
|
||||
4
web/package-lock.json
generated
4
web/package-lock.json
generated
@@ -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",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "wanderer",
|
||||
"version": "0.4.0",
|
||||
"version": "0.5.0",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
|
||||
@@ -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"
|
||||
/>
|
||||
<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>
|
||||
|
||||
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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": "英制",
|
||||
|
||||
@@ -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(",")}]`
|
||||
|
||||
@@ -493,7 +493,7 @@
|
||||
loading={printLoading}
|
||||
extraClasses="mt-2"
|
||||
primary={true}
|
||||
on:click={print}>Print!</Button
|
||||
on:click={print}>{$_("print")}!</Button
|
||||
>
|
||||
</div>
|
||||
|
||||
@@ -535,9 +535,7 @@
|
||||
>
|
||||
<span
|
||||
><i class="fa fa-left-right mr-2"
|
||||
></i>{formatDistance(
|
||||
$trail.distance,
|
||||
)}</span
|
||||
></i>{formatDistance($trail.distance)}</span
|
||||
>
|
||||
<span
|
||||
><i class="fa fa-up-down mr-2"
|
||||
|
||||
@@ -101,9 +101,9 @@
|
||||
});
|
||||
|
||||
const modesOfTransport = [
|
||||
{ text: "Hiking", value: "pedestrian" },
|
||||
{ text: "Cycling", value: "bicycle" },
|
||||
{ text: "Driving", value: "auto" },
|
||||
{ text: $_('hiking'), value: "pedestrian" },
|
||||
{ text: $_('cycling'), value: "bicycle" },
|
||||
{ text: $_('driving'), value: "auto" },
|
||||
];
|
||||
let selectedModeOfTransport = modesOfTransport[0].value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user