Spaces:
Sleeping
Sleeping
Update web/src/lib/courseDirectory.ts
Browse files
web/src/lib/courseDirectory.ts
CHANGED
|
@@ -1,8 +1,45 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
export type CourseDirectoryItem = {
|
| 4 |
id: string;
|
| 5 |
name: string;
|
| 6 |
-
instructor?: Person;
|
| 7 |
-
teachingAssistant?: Person;
|
| 8 |
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// web/src/lib/courseDirectory.ts
|
| 2 |
+
|
| 3 |
+
export type Person = {
|
| 4 |
+
name: string;
|
| 5 |
+
email?: string; // optional: can be empty for now
|
| 6 |
+
};
|
| 7 |
|
| 8 |
export type CourseDirectoryItem = {
|
| 9 |
id: string;
|
| 10 |
name: string;
|
| 11 |
+
instructor?: Person; // optional: some courses may not have info yet
|
| 12 |
+
teachingAssistant?: Person; // optional
|
| 13 |
};
|
| 14 |
+
|
| 15 |
+
/**
|
| 16 |
+
* NOTE:
|
| 17 |
+
* - Fill in missing names/emails here once confirmed.
|
| 18 |
+
* - Keep emails empty ("") or undefined if you don't have them yet.
|
| 19 |
+
*/
|
| 20 |
+
export const COURSE_DIRECTORY: CourseDirectoryItem[] = [
|
| 21 |
+
{
|
| 22 |
+
id: "intro_ai",
|
| 23 |
+
name: "Introduction to AI",
|
| 24 |
+
instructor: { name: "Dr. Sarah Johnson", email: "" },
|
| 25 |
+
teachingAssistant: { name: "Michael Chen", email: "" },
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
id: "ml",
|
| 29 |
+
name: "Machine Learning",
|
| 30 |
+
instructor: { name: "TBD", email: "" },
|
| 31 |
+
teachingAssistant: { name: "TBD", email: "" },
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
id: "ds",
|
| 35 |
+
name: "Data Structures",
|
| 36 |
+
instructor: { name: "TBD", email: "" },
|
| 37 |
+
teachingAssistant: { name: "TBD", email: "" },
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
id: "web_dev",
|
| 41 |
+
name: "Web Development",
|
| 42 |
+
instructor: { name: "TBD", email: "" },
|
| 43 |
+
teachingAssistant: { name: "TBD", email: "" },
|
| 44 |
+
},
|
| 45 |
+
];
|