-
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
nestedCourse.tsx
nestedLecture.tsx
professor.tsx
- Loading branch information
Showing
3 changed files
with
67 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,19 @@ | ||
import department from './department'; | ||
|
||
interface nestedCourse { | ||
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; | ||
} | ||
|
||
export default nestedCourse; |
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,34 @@ | ||
import nestedProfessor from './nestedProfessor'; | ||
|
||
interface nestedLecture { | ||
id: number; | ||
title: string; | ||
title_en: string; | ||
course: number; | ||
old_code: string; | ||
class_no: string; | ||
year: number; | ||
semester: 1 | 2 | 3 | 4; | ||
code: string; | ||
department: number; | ||
department_code: string; | ||
department_name: string; | ||
department_name_en: string; | ||
type: string; | ||
type_en: string; | ||
limit: number; | ||
num_people: number; | ||
is_english: boolean; | ||
num_classes: number; | ||
num_labs: number; | ||
credit: number; | ||
credit_au: number; | ||
common_title: string; | ||
common_title_en: string; | ||
class_title: string; | ||
class_title_en: string; | ||
review_total_weight: number; | ||
professors: nestedProfessor[]; | ||
} | ||
|
||
export default nestedLecture; |
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,14 @@ | ||
import nestedCourse from './nestedCourse'; | ||
|
||
interface professor { | ||
name: string; | ||
name_en: string; | ||
professor_id: number; | ||
review_total_weight: number; | ||
courses: nestedCourse[]; | ||
grade: number; | ||
load: number; | ||
speech: number; | ||
} | ||
|
||
export default professor; |