Skip to content

Commit

Permalink
feat: use 2024 timetable as default
Browse files Browse the repository at this point in the history
  • Loading branch information
iceghost committed May 10, 2024
1 parent c061417 commit 90f1fdf
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
parseLecturer,
parsePostgrad,
parseStudent,
parseStudent2024,
resolve,
type Timetable
} from '@bkalendar/core';
Expand All @@ -19,7 +20,7 @@
import OkeeButton from '$lib/OkeeButton.svelte';
let raw: string;
let kind: 'sinh viên' | 'giảng viên' | 'sau đại học' = 'sinh viên';
let kind: 'sinh viên 2024' | 'sinh viên' | 'giảng viên' | 'sau đại học' = 'sinh viên 2024';
let output: 'ical' | 'gapi' = 'gapi';
let step: 'import' | 'export' = 'import';
let semester: number | undefined = undefined;
Expand All @@ -38,6 +39,9 @@
let parse;
switch (k) {
case 'sinh viên 2024':
parse = parseStudent2024;
break;
case 'sinh viên':
parse = parseStudent;
break;
Expand Down

0 comments on commit 90f1fdf

Please sign in to comment.