Data/Seasonpickresults: Add page to enter seasonpickresults
All checks were successful
Build Formula11 Docker Image / pocketbase-docker (push) Successful in 1m19s

This commit is contained in:
2025-12-26 18:52:04 +01:00
parent aa14ca6782
commit 9755d06220
3 changed files with 638 additions and 0 deletions

View File

@ -0,0 +1,20 @@
import {
fetch_drivers,
fetch_seasonpickresults,
fetch_teams,
fetch_users,
fetch_visibleseasonpicks,
} from "$lib/fetch";
import type { PageLoad } from "../../$types";
export const load: PageLoad = async ({ fetch, depends }) => {
depends("data:drivers", "data:seasonpickresults", "data:users", "data:seasonpicks", "data:teams");
return {
users: fetch_users(fetch),
drivers: fetch_drivers(fetch),
teams: fetch_teams(fetch),
seasonpicks: fetch_visibleseasonpicks(fetch),
seasonpickresults: fetch_seasonpickresults(fetch),
};
};