The dashboard shows income (paid orders, by the month they were paid), hours worked and still booked this month, the next 7 days' bookings and a 12-month table. Booked time is counted with overlaps merged, so a group session is one hour of work however many people booked it. Login and the sidebar title now land on the dashboard. Site design: four cards in a three-column grid left Style alone under Header. Two columns on xl (Header|Footer, Colors|Style) and all four side by side from 2xl. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HA82gV9YDZk1XhjJ5LtyAt
7 lines
292 B
TypeScript
7 lines
292 B
TypeScript
import { env } from '$env/dynamic/private';
|
|
import { loadDashboard } from '$lib/server/dashboard';
|
|
import type { PageServerLoad } from './$types';
|
|
|
|
export const load: PageServerLoad = async ({ locals }) => ({
|
|
dashboard: await loadDashboard(locals.pb, env.SITE_TIMEZONE || 'Europe/Oslo')
|
|
});
|