-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate: to department.tsx semester.tsx course.tsx
- Loading branch information
Showing
3 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import department from './department'; | ||
import nestedCourse from './nestedCourse'; | ||
import nestedProfessor from './nestedProfessor'; | ||
|
||
interface course { | ||
id: number; | ||
old_code: string; | ||
department?: department; | ||
type: string; | ||
type_en: string; | ||
title: string; | ||
title_en: string; | ||
summary: string; | ||
review_total_weight: number; | ||
credit: number; | ||
credit_au: number; | ||
num_classes: number; | ||
num_labs: number; | ||
related_courses_prior: nestedCourse[]; | ||
related_courses_posterior: nestedCourse[]; | ||
professors: nestedProfessor[]; | ||
grade: number; | ||
load: number; | ||
speech: number; | ||
userspecific_is_read: boolean; | ||
} | ||
|
||
export default course; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
interface department { | ||
id: number; | ||
name: string; | ||
name_en: string; | ||
code: string; | ||
} | ||
|
||
export default department; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
interface semester { | ||
year: number; | ||
semester: 1 | 2 | 3 | 4; | ||
beginning: string; | ||
end: string; | ||
|
||
courseDesciptionSubmission: string; | ||
courseRegistrationPeriodStart: string; | ||
courseRegistrationPeriodEnd: string; | ||
courseAddDropPeriodEnd: string; | ||
courseDropDeadline: string; | ||
courseEvaluationDeadline: string; | ||
gradePosting: string; | ||
} | ||
|
||
export default semester; |