diff --git a/.gitignore b/.gitignore index f6f8ee33..fa0761f3 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,6 @@ search/meilisearch search/data.ms +search/dumps run.sh \ No newline at end of file diff --git a/README.md b/README.md index a312e346..65ab887a 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ wanderer is a self-hosted trail database. You can upload your recorded tracks an ## Core Features -![Screenshot of wanderer](web/static/imgs/features.png) +![Screenshot of wanderer](docs/imgs/features.png) - Manage your trails - Extensive map integration and visualization diff --git a/docker-compose.yml b/docker-compose.yml index c070a76f..824492c9 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,7 +11,6 @@ services: environment: <<: *cenv MEILI_NO_ANALYTICS: true - MEILI_HTTP_PAYLOAD_SIZE_LIMIT: 150 Mb ports: - 7700:7700 networks: diff --git a/web/static/imgs/features.png b/docs/imgs/features.png similarity index 100% rename from web/static/imgs/features.png rename to docs/imgs/features.png diff --git a/docs/imgs/pocketbase.png b/docs/imgs/pocketbase.png new file mode 100644 index 00000000..b0a7a4fb Binary files /dev/null and b/docs/imgs/pocketbase.png differ diff --git a/web/src/routes/map/+page.svelte b/web/src/routes/map/+page.svelte index 3efbc412..da4a9fe2 100644 --- a/web/src/routes/map/+page.svelte +++ b/web/src/routes/map/+page.svelte @@ -55,7 +55,7 @@ await import("leaflet.awesome-markers"); map = L.map("map").setView([0, 0], 4); - map.attributionControl.setPrefix(false) + map.attributionControl.setPrefix(false); L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", { attribution: "© OpenStreetMap contributors", @@ -186,6 +186,10 @@ if (!trail.expand.gpx_data) { reject(); } + + const thumbnail = trail.photos.length + ? getFileURL(trail, trail.photos[trail.thumbnail]) + : "/imgs/default_thumbnail.webp"; const gpxLayer = new L.GPX(trail.expand.gpx_data!, { async: true, polyline_options: { @@ -214,10 +218,7 @@ marker.bindPopup( `
  • -
    +

    ${trail.name}