adds new trail page

This commit is contained in:
Christian Beutel
2024-01-29 00:41:54 +01:00
parent b302ccded0
commit 2d4c673060
28 changed files with 783 additions and 115 deletions

View File

@@ -1,6 +1,9 @@
import { pb } from "$lib/constants";
import type { FileOptions } from "pocketbase";
export function getFileURL(record: { [key: string]: any; }, filename: string, options?: FileOptions) {
export function getFileURL(record: { [key: string]: any; }, filename?: string, options?: FileOptions) {
if(!filename) {
return "";
}
return pb.files.getUrl(record, filename, options);
}