more docs

This commit is contained in:
Christian Beutel
2024-06-10 21:15:15 +02:00
parent f23eb03eb9
commit 56d5e96069
34 changed files with 3403 additions and 24 deletions

View File

@@ -8,7 +8,7 @@ export const comments: Writable<Comment[]> = writable([])
export async function comments_index(trail: Trail) {
let r = await fetch('/api/v1/comment?' + new URLSearchParams({
filter: `trail = ${trail.id}`,
filter: `trail="${trail.id}"`,
}), {
method: 'GET',
})

View File

@@ -8,6 +8,7 @@ export async function GET(event: RequestEvent) {
try {
const r: Comment[] = await pb.collection('comments').getFullList<Comment>({
expand: "author",
filter: filter,
sort: "-created",
})

View File

@@ -254,7 +254,7 @@
{/each}
</ul>
<div id="map" class="rounded-xl z-0" class:hidden={!showMap}></div>
<div class:hidden={showMap}>
<div class="min-w-0" class:hidden={showMap}>
<TrailList
bind:filter
trails={$list.expand?.trails ?? []}