diff --git a/CHANGELOG.md b/CHANGELOG.md index 3136b8c8..d32fb2f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,21 @@ +# v0.2.0 +## Features + +- when creating/editing a trail you can now drag & drop photos into the photo section to upload them +- you can now attach photos to waypoints +- you can now edit the "Distance", "Elevation Gain" and "Est. Duration" fields +- waypoint markers can now be moved with drag & drop +- lists can now be displayed as a map showing all trails contained in the list +- you can now prevent users from signing up by setting the `DISABLE_SIGNUP` environment variable to `true` +- you can now upload GPX files via the API to create trails. Check the [documentation](https://github.com/Flomp/wanderer/wiki/API#upload-trails) for more info. +- the city index now includes states + +> Note: for city states to show up in your search you have to delete your data.ms folder if you already have a previous installation of wanderer. The indices will then be rebuilt on startup. + +## Docs + +- added complete API documentation + # v0.1.1 ## Bug fixes diff --git a/db/main.go b/db/main.go index 54b8631f..2460edfe 100644 --- a/db/main.go +++ b/db/main.go @@ -115,6 +115,22 @@ func main() { } } + // bootstrap meilisearch + query = app.Dao().RecordQuery("trails") + trails := []*models.Record{} + + if err := query.All(&trails); err != nil { + return err + } + + for _, trail := range trails { + log.Println(trail) + + if err := indexRecord(trail, client); err != nil { + return err + } + } + return nil }) diff --git a/search/Dockerfile b/search/Dockerfile index fec03b36..10e4ed0f 100644 --- a/search/Dockerfile +++ b/search/Dockerfile @@ -1,4 +1,4 @@ -FROM getmeili/meilisearch:v1.7 +FROM getmeili/meilisearch:v1.6.2 COPY ./migrations/migration.dump /meili_data/dumps/migration.dump COPY ./entrypoint.sh /entrypoint.sh diff --git a/web/src/lib/components/footer.svelte b/web/src/lib/components/footer.svelte index dce13ba0..04c58732 100644 --- a/web/src/lib/components/footer.svelte +++ b/web/src/lib/components/footer.svelte @@ -12,6 +12,11 @@
Resources