-
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 #44 from sparcs-kaist/migration@shapes
Migrate remaining shapes, Complete shapes migration
- Loading branch information
Showing
68 changed files
with
471 additions
and
233 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
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
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
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
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
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,10 @@ | ||
interface DetailedLink { | ||
pathname?: string; | ||
search?: string; | ||
hash?: string; | ||
state?: object; | ||
} | ||
|
||
type BlockLink = string | DetailedLink; | ||
|
||
export default BlockLink; |
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,45 @@ | ||
export enum AdditionalTrackType { | ||
DOUBLE, | ||
MINOR, | ||
ADVANCED, | ||
INTERDISCIPLINARY, | ||
} | ||
|
||
export const enum SemesterType { | ||
SPRING = 1, | ||
SUMMER = 2, | ||
FALL = 3, | ||
WINTER = 4, | ||
} | ||
|
||
export const enum ItemFocusFrom { | ||
NONE = 'NONE', | ||
LIST = 'LIST', | ||
ADDING = 'ADDING', | ||
TABLE_TAKEN = 'TABLE_TAKEN', | ||
TABLE_FUTURE = 'TABLE_FUTURE', | ||
TABLE_ARBITRARY = 'TABLE_ARBITRARY', | ||
CATEGORY = 'CATEGORY', | ||
} | ||
|
||
export const enum LectureFocusFrom { | ||
NONE = 'NONE', | ||
LIST = 'LIST', | ||
TABLE = 'TABLE', | ||
MULTIPLE = 'MULTIPLE', | ||
} | ||
|
||
export const enum ReviewsFocusFrom { | ||
NONE = 'NONE', | ||
LECTURE = 'LECTURE', | ||
REVIEWS_LATEST = 'LATEST', | ||
REVIEWS_MY = 'MY', | ||
REVIEWS_LIKED = 'LIKED', | ||
REVIEWS_RANKED = 'RANKED', | ||
} | ||
|
||
export const enum PlannerItemType { | ||
TAKEN = 'TAKEN', | ||
FUTURE = 'FUTURE', | ||
ARBITRARY = 'ARBITRARY', | ||
} |
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,12 @@ | ||
import type Department from '../subject/Department'; | ||
import type { AdditionalTrackType } from '@/shapes/enum'; | ||
|
||
export default interface AdditionalTrack { | ||
id: number; | ||
start_year: number; | ||
end_year: number; | ||
type: AdditionalTrackType; | ||
department?: Department; | ||
major_required: number; | ||
major_elective: number; | ||
} |
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
8 changes: 3 additions & 5 deletions
8
src/shapes/model/graduation/majorTrack.tsx → src/shapes/model/graduation/MajorTrack.ts
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 |
---|---|---|
@@ -1,13 +1,11 @@ | ||
import department from '../subject/department'; | ||
import type Department from '../subject/Department'; | ||
|
||
interface majorTrack { | ||
export default interface MajorTrack { | ||
id: number; | ||
start_year: number; | ||
end_year: number; | ||
department: department; | ||
department: Department; | ||
basic_elective_doublemajor: number; | ||
major_required: number; | ||
major_elective: number; | ||
} | ||
|
||
export default majorTrack; |
This file was deleted.
Oops, something went wrong.
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,15 @@ | ||
import type Department from '../subject/Department'; | ||
import type { SemesterType, PlannerItemType } from '@/shapes/enum'; | ||
|
||
export default interface ArbitraryPlannerItem { | ||
id: number; | ||
item_type: PlannerItemType.ARBITRARY; | ||
is_excluded: boolean; | ||
year: number; | ||
semester: SemesterType; | ||
department?: Department; | ||
type: string; | ||
type_en: string; | ||
credit: number; | ||
credit_au: number; | ||
} |
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,11 @@ | ||
import type Course from '../subject/Course'; | ||
import type { SemesterType, PlannerItemType } from '@/shapes/enum'; | ||
|
||
export default interface FuturePlannerItem { | ||
id: number; | ||
item_type: PlannerItemType.FUTURE; | ||
is_excluded: boolean; | ||
year: number; | ||
semester: SemesterType; | ||
course: Course; | ||
} |
Oops, something went wrong.