adds docs folder
Former-commit-id: b8f174c66402b64a5a61ce96ad01911c0aeebd20
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,5 +3,6 @@
|
|||||||
|
|
||||||
search/meilisearch
|
search/meilisearch
|
||||||
search/data.ms
|
search/data.ms
|
||||||
|
search/dumps
|
||||||
|
|
||||||
run.sh
|
run.sh
|
||||||
@@ -8,7 +8,7 @@ wanderer is a self-hosted trail database. You can upload your recorded tracks an
|
|||||||
|
|
||||||
## Core Features
|
## Core Features
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
- Manage your trails
|
- Manage your trails
|
||||||
- Extensive map integration and visualization
|
- Extensive map integration and visualization
|
||||||
|
|||||||
@@ -11,7 +11,6 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
<<: *cenv
|
<<: *cenv
|
||||||
MEILI_NO_ANALYTICS: true
|
MEILI_NO_ANALYTICS: true
|
||||||
MEILI_HTTP_PAYLOAD_SIZE_LIMIT: 150 Mb
|
|
||||||
ports:
|
ports:
|
||||||
- 7700:7700
|
- 7700:7700
|
||||||
networks:
|
networks:
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 837 KiB After Width: | Height: | Size: 837 KiB |
BIN
docs/imgs/pocketbase.png
Normal file
BIN
docs/imgs/pocketbase.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 435 KiB |
@@ -55,7 +55,7 @@
|
|||||||
await import("leaflet.awesome-markers");
|
await import("leaflet.awesome-markers");
|
||||||
|
|
||||||
map = L.map("map").setView([0, 0], 4);
|
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", {
|
L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", {
|
||||||
attribution: "© OpenStreetMap contributors",
|
attribution: "© OpenStreetMap contributors",
|
||||||
@@ -186,6 +186,10 @@
|
|||||||
if (!trail.expand.gpx_data) {
|
if (!trail.expand.gpx_data) {
|
||||||
reject();
|
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!, {
|
const gpxLayer = new L.GPX(trail.expand.gpx_data!, {
|
||||||
async: true,
|
async: true,
|
||||||
polyline_options: {
|
polyline_options: {
|
||||||
@@ -214,10 +218,7 @@
|
|||||||
marker.bindPopup(
|
marker.bindPopup(
|
||||||
`<a href="map/trail/${trail.id}">
|
`<a href="map/trail/${trail.id}">
|
||||||
<li class="flex items-center gap-4 cursor-pointer text-black">
|
<li class="flex items-center gap-4 cursor-pointer text-black">
|
||||||
<div class="shrink-0"><img class="h-14 w-14 object-cover rounded-xl" src="${getFileURL(
|
<div class="shrink-0"><img class="h-14 w-14 object-cover rounded-xl" src="${thumbnail}" alt="">
|
||||||
trail,
|
|
||||||
trail.photos[trail.thumbnail],
|
|
||||||
)}" alt="">
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<h4 class="font-semibold text-lg">${trail.name}</h4>
|
<h4 class="font-semibold text-lg">${trail.name}</h4>
|
||||||
|
|||||||
Reference in New Issue
Block a user