Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 12 additions & 1 deletion apps/university-web/src/constants/university.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export const REGIONS_KO = ["유럽권", "미주권", "아시아권", "중국권"
export const HOME_UNIVERSITY_SLUG_MAP: Record<HomeUniversitySlug, HomeUniversity> = {
inha: HomeUniversity.INHA,
kyunghee: HomeUniversity.KYUNGHEE,
chungang: HomeUniversity.CHUNGANG,
};

/**
Expand All @@ -25,6 +26,7 @@ export const HOME_UNIVERSITY_SLUG_MAP: Record<HomeUniversitySlug, HomeUniversity
export const HOME_UNIVERSITY_TO_SLUG_MAP: Record<HomeUniversity, HomeUniversitySlug> = {
[HomeUniversity.INHA]: "inha",
[HomeUniversity.KYUNGHEE]: "kyunghee",
[HomeUniversity.CHUNGANG]: "chungang",
};

/**
Expand Down Expand Up @@ -59,6 +61,15 @@ export const HOME_UNIVERSITY_LIST: HomeUniversityInfo[] = [
description: "경희대학교 교환학생 프로그램",
color: "#8C1515",
},
{
homeUniversityId: 3,
name: HomeUniversity.CHUNGANG,
slug: "chungang",
shortName: "중앙대",
logoUrl: "/images/univs/chungang.png",
description: "중앙대학교 교환학생 프로그램",
color: "#006DB4",
},
];

/**
Expand Down Expand Up @@ -104,7 +115,7 @@ export const getHomeUniversitySlugByName = (value: string | null | undefined): H
/**
* 유효한 홈 대학교 슬러그 목록
*/
export const HOME_UNIVERSITY_SLUGS: HomeUniversitySlug[] = ["inha", "kyunghee"];
export const HOME_UNIVERSITY_SLUGS: HomeUniversitySlug[] = ["inha", "kyunghee", "chungang"];

export const COUNTRIES_KO = [
// 2024-2 기준
Expand Down
3 changes: 2 additions & 1 deletion apps/university-web/src/types/university.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ export type RegionKo = "유럽권" | "미주권" | "아시아권";
export enum HomeUniversityName {
INHA = "인하대학교",
KYUNGHEE = "경희대학교",
CHUNGANG = "중앙대학교",
}

export { HomeUniversityName as HomeUniversity };

export type HomeUniversitySlug = "inha" | "kyunghee";
export type HomeUniversitySlug = "inha" | "kyunghee" | "chungang";

export interface RegionOption {
value: string;
Expand Down
Loading