Files
revision-ui/src/data/periods.ts
T
joshuacoles f350018eb2
Build and Publish Docker Container / build (push) Successful in 3m44s
Add support for penalising overtime to the heatmap
2024-02-28 16:43:40 +00:00

62 lines
1.3 KiB
TypeScript

import {OverviewConfig} from "@/data/fetchData";
export const semester1Revision: OverviewConfig = {
title: 'Semester 1 Revision',
periodKey: 'y5-s1-revision',
goalHours: 4,
subjects: [
{
projectId: 195482340,
},
{
title: 'Measure Theory',
projectId: 195519024,
},
{
title: 'Quantum Mechanics',
projectId: 195518593,
},
{
projectId: 195754611,
}
],
timePeriod: {
start: "2023-12-15T00:00:00.000Z",
end: "2024-01-25T00:00:00.000Z"
}
}
export const semester2: OverviewConfig = {
title: 'Semester 2',
periodKey: 'y5-s2',
goalHours: 6,
penaliseOvertime: true,
subjects: [
{
projectId: 195754611,
},
{
projectId: 199383703,
},
{
projectId: 199383691,
},
{
projectId: 198859760,
},
{
projectId: 199383698,
},
],
timePeriod: {
start: "2024-02-03T00:00:00.000Z",
end: "2024-05-10T00:00:00.000Z"
}
}
export type PeriodKey = keyof typeof periodMap;
export const periodMap = {
'y5-s1-revision': semester1Revision,
'y5-s2': semester2,
}