-
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.
Merge pull request #24 from sparcs-kaist/chore@migration-lectureGroup…
…Block Migrate LectureGroupBlock to typescript
- Loading branch information
Showing
8 changed files
with
139 additions
and
60 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
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
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
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
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,13 @@ | ||
interface classtime { | ||
building_code: string; | ||
classroom: string; | ||
classroom_en: string; | ||
classroom_short: string; | ||
classroom_short_en: string; | ||
room_name: string; | ||
day: number; | ||
begin: number; | ||
end: number; | ||
} | ||
|
||
export default classtime; |
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 examtime { | ||
day: number; | ||
str: string; | ||
str_en: string; | ||
begin: number; | ||
end: number; | ||
} | ||
export default examtime; |
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,40 @@ | ||
import classtime from './classtime'; | ||
import examtime from './examtime'; | ||
import nestedProfessor from './nestedProfessor'; | ||
|
||
interface lecture { | ||
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; | ||
grade: number; | ||
load: number; | ||
speech: number; | ||
classtimes: classtime[]; | ||
examtimes: examtime[]; | ||
} | ||
export default lecture; |
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,7 @@ | ||
interface nestedProfessor { | ||
name: string; | ||
name_en: string; | ||
professor_id: number; | ||
review_total_weight: number; | ||
} | ||
export default nestedProfessor; |