-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
98 additions
and
58 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,7 @@ | ||
import { getRequest } from '@/apis'; | ||
import { WithLanguage } from '@/types/language'; | ||
|
||
export const getGraduateRegularAdmission = () => | ||
getRequest('/v2/admissions/graduate/regular-admission') as Promise< | ||
WithLanguage<{ description: string }> | ||
>; |
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 @@ | ||
import { getRequest } from '@/apis'; | ||
import { WithLanguage } from '@/types/language'; | ||
|
||
export const getInternationalExchangeVisiting = () => | ||
getRequest('/v2/admissions/international/exchange-visiting') as Promise< | ||
WithLanguage<{ description: string }> | ||
>; |
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 @@ | ||
import { getRequest } from '@/apis'; | ||
import { WithLanguage } from '@/types/language'; | ||
|
||
export const getInternationalgraduate = () => | ||
getRequest('/v2/admissions/international/graduate') as Promise< | ||
WithLanguage<{ description: string }> | ||
>; |
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 @@ | ||
import { getRequest } from '@/apis'; | ||
import { WithLanguage } from '@/types/language'; | ||
|
||
export const getInternationalScholarships = () => | ||
getRequest('/v2/admissions/international/scholarships') as Promise< | ||
WithLanguage<{ description: string }> | ||
>; |
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 @@ | ||
import { getRequest } from '@/apis'; | ||
import { WithLanguage } from '@/types/language'; | ||
|
||
export const getInternationalUndergraduate = () => | ||
getRequest('/v2/admissions/international/undergraduate') as Promise< | ||
WithLanguage<{ description: string }> | ||
>; |
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,7 @@ | ||
import { getRequest } from '@/apis'; | ||
import { WithLanguage } from '@/types/language'; | ||
|
||
export const getUndergraduateEarlyAdmission = () => | ||
getRequest('/v2/admissions/undergraduate/early-admission') as Promise< | ||
WithLanguage<{ description: string }> | ||
>; |
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 @@ | ||
import { getRequest } from '@/apis'; | ||
import { WithLanguage } from '@/types/language'; | ||
|
||
export const getUndergraduateRegularAdmission = () => | ||
getRequest('/v2/admissions/undergraduate/regular-admission') as Promise< | ||
WithLanguage<{ description: string }> | ||
>; |
12 changes: 6 additions & 6 deletions
12
app/[locale]/admissions/graduate/regular-admission/page.tsx
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,27 +1,27 @@ | ||
import { Metadata } from 'next'; | ||
|
||
import { getGraduateRegularAdmission } from '@/apis/v1/admissions/graduate/regular-admission'; | ||
import { getGraduateRegularAdmission } from '@/apis/v2/admissions/graduate/regular-admission'; | ||
import { AdmissionPageProps } from '@/app/[locale]/admissions/type'; | ||
import HTMLViewer from '@/components/form/html/HTMLViewer'; | ||
import PageLayout from '@/components/layout/pageLayout/PageLayout'; | ||
import { graduateAdmission } from '@/constants/segmentNode'; | ||
import { getMetadata } from '@/utils/metadata'; | ||
|
||
export async function generateMetadata(props: { | ||
params: Promise<{ locale: string }>; | ||
}): Promise<Metadata> { | ||
export async function generateMetadata(props: AdmissionPageProps): Promise<Metadata> { | ||
const params = await props.params; | ||
|
||
const { locale } = params; | ||
|
||
return await getMetadata({ locale, node: graduateAdmission }); | ||
} | ||
|
||
export default async function GraduateRegularAdmission() { | ||
export default async function GraduateRegularAdmission({ params }: AdmissionPageProps) { | ||
const locale = (await params).locale; | ||
const data = await getGraduateRegularAdmission(); | ||
|
||
return ( | ||
<PageLayout titleType="big"> | ||
<HTMLViewer htmlContent={data.description} /> | ||
<HTMLViewer htmlContent={data[locale].description} /> | ||
</PageLayout> | ||
); | ||
} |
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,5 @@ | ||
import { Language } from '@/types/language'; | ||
|
||
export interface AdmissionPageProps { | ||
params: Promise<{ locale: Language }>; | ||
} |
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