-
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
16 changed files
with
218 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { testType } from "@/types/test"; | ||
import { api } from "."; | ||
import { testSesstion } from "@/types/user"; | ||
import { RESTYPE } from "@/types/common"; | ||
|
||
export const getDashboardData = async ( | ||
examId: number | ||
): Promise<testSesstion> => { | ||
): Promise<RESTYPE<testSesstion>> => { | ||
const response = await api.get(`/exams/${examId}/sessions`); | ||
return response.data; | ||
}; |
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,7 +1,18 @@ | ||
import { testType } from "@/types/test"; | ||
import { api } from "."; | ||
import { RESTYPE } from "@/types/common"; | ||
|
||
export const getBeforeExamList = async (): Promise<testType> => { | ||
export const getBeforeExamList = async (): Promise<RESTYPE<testType[]>> => { | ||
const response = await api.get("/exams/before"); | ||
return response.data; | ||
}; | ||
|
||
export const getInProgressExamList = async (): Promise<RESTYPE<testType[]>> => { | ||
const response = await api.get("/exams/in-progress"); | ||
return response.data; | ||
}; | ||
|
||
export const getDoneExamList = async (): Promise<RESTYPE<testType[]>> => { | ||
const response = await api.get("/exams/done"); | ||
return response.data; | ||
}; |
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,12 +1,11 @@ | ||
import { testType } from "@/types/test"; | ||
import { api } from "."; | ||
import { testSesstion } from "@/types/user"; | ||
import { timeLineType } from "@/types/timeLine"; | ||
import { RESTYPE } from "@/types/common"; | ||
|
||
export const getUserDetail = async ( | ||
examId: number, | ||
userId: number | ||
): Promise<timeLineType> => { | ||
examId: string, | ||
userId: string | ||
): Promise<RESTYPE<timeLineType>> => { | ||
const response = await api.get(`/exams/${examId}/sessions/${userId}`); | ||
return response.data; | ||
}; |
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
52 changes: 38 additions & 14 deletions
52
src/frontend/eyesee-admin/src/components/mypage/BeforeSection.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
47 changes: 33 additions & 14 deletions
47
src/frontend/eyesee-admin/src/components/mypage/DoneSection.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
53 changes: 39 additions & 14 deletions
53
src/frontend/eyesee-admin/src/components/mypage/InProgressSection.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
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
Oops, something went wrong.