import content from "$lib/data/content/competitive.html?raw" import {getCompetitiveExams} from "$lib/data/info" import type { PageServerLoad } from './$types' import type {CalendarEvent} from '$lib/components/CalendarEvent' export const load: PageServerLoad = async () => { const exams = await getCompetitiveExams() const events:CalendarEvent[]=[] exams.forEach(({id,title,start})=>{ const backgroundColor ="#1111EE" const url = "/competitive/"+id events.push({id,title,start,url,backgroundColor}) }) return {content,exams,events} }