From 43911059d9b6a73542c76328cc55dbfd288df0db Mon Sep 17 00:00:00 2001 From: Hyeona01 Date: Mon, 9 Dec 2024 19:17:37 +0900 Subject: [PATCH] =?UTF-8?q?FE:=20[fix]=20=EB=94=94=EB=B2=84=EA=B9=85=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=82=AD=EC=A0=9C=20=EB=B0=8F=20UI=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/dashboard/[examId]/[userId]/page.tsx | 8 ++++--- .../components/dashBoard/DashBoardSection.tsx | 11 +++++++--- .../src/components/dashBoard/UserSection.tsx | 2 +- .../src/components/report/ReportSection.tsx | 4 ++-- .../src/components/userDetail/TimeLine.tsx | 4 ++-- .../eyesee-user/src/app/exam-room/page.tsx | 22 +++++++++++-------- 6 files changed, 31 insertions(+), 20 deletions(-) diff --git a/src/frontend/eyesee-admin/src/app/dashboard/[examId]/[userId]/page.tsx b/src/frontend/eyesee-admin/src/app/dashboard/[examId]/[userId]/page.tsx index 4b393eb..e36c566 100644 --- a/src/frontend/eyesee-admin/src/app/dashboard/[examId]/[userId]/page.tsx +++ b/src/frontend/eyesee-admin/src/app/dashboard/[examId]/[userId]/page.tsx @@ -25,7 +25,9 @@ const UserDetailPage = () => { <> {userDetailData ? (
- +
+ +
{ : 0 } /> -
+
{userDetailData.cheatingVideos.map((video, index) => (
setVideoNum(index)} - className="h-28 max-w-48 rounded-sm overflow-hidden" + className="h-28 w-48 rounded-sm overflow-hidden shrink-0" >
diff --git a/src/frontend/eyesee-admin/src/components/dashBoard/DashBoardSection.tsx b/src/frontend/eyesee-admin/src/components/dashBoard/DashBoardSection.tsx index dac7912..7709169 100644 --- a/src/frontend/eyesee-admin/src/components/dashBoard/DashBoardSection.tsx +++ b/src/frontend/eyesee-admin/src/components/dashBoard/DashBoardSection.tsx @@ -50,8 +50,14 @@ const DashBoardSection = ({ {children}
- setTableModalOpen(true)} /> - setCodeModalOpen(true)} /> + setTableModalOpen(true)} + /> + setCodeModalOpen(true)} + />
(
{ return (
- + {sessionData.examName} diff --git a/src/frontend/eyesee-admin/src/components/report/ReportSection.tsx b/src/frontend/eyesee-admin/src/components/report/ReportSection.tsx index cf45c19..14dd40e 100644 --- a/src/frontend/eyesee-admin/src/components/report/ReportSection.tsx +++ b/src/frontend/eyesee-admin/src/components/report/ReportSection.tsx @@ -63,8 +63,8 @@ const ReportSection = ({ reportData }: ReportSectionType) => {
부정행위 유형별 통계
{Object.entries(reportData.cheatingTypeStatistics).map( - ([type, count]) => ( - + ([type, count], index) => ( + {type}: {count}건 ) diff --git a/src/frontend/eyesee-admin/src/components/userDetail/TimeLine.tsx b/src/frontend/eyesee-admin/src/components/userDetail/TimeLine.tsx index f27431e..fbb95ba 100644 --- a/src/frontend/eyesee-admin/src/components/userDetail/TimeLine.tsx +++ b/src/frontend/eyesee-admin/src/components/userDetail/TimeLine.tsx @@ -19,7 +19,7 @@ const TimeLine = ({ timeLineData, setVideoNum }: TimeLineProps) => { return (
- + {timeLineData.userName}님 Time Line @@ -27,7 +27,7 @@ const TimeLine = ({ timeLineData, setVideoNum }: TimeLineProps) => {
{timeLineData.cheatingStatistics.map((cheating, index) => (
setVideoNum(index)} className="relative flex items-center gap-10 cursor-pointer" style={{ left: -9 }} diff --git a/src/frontend/eyesee-user/src/app/exam-room/page.tsx b/src/frontend/eyesee-user/src/app/exam-room/page.tsx index 83c1e1a..688d64a 100644 --- a/src/frontend/eyesee-user/src/app/exam-room/page.tsx +++ b/src/frontend/eyesee-user/src/app/exam-room/page.tsx @@ -105,8 +105,12 @@ const RealTimeVideoPage = () => { console.error("부정행위 시작 시간이 없습니다."); return; } + // const endTime = new Date().toISOString(); + const now = new Date(); + const offset = 9 * 60 * 60 * 1000; // 한국 시간은 UTC+9 + const kstTime = new Date(now.getTime() + offset); + const endTime = kstTime.toISOString().replace("Z", "+09:00"); - const endTime = new Date().toISOString(); const result = await videoPost( Number(userId), cheatingStartTimeRef.current, @@ -157,14 +161,14 @@ const RealTimeVideoPage = () => { uploadVideo(file); // 로컬 다운로드 (테스트용) - const url = URL.createObjectURL(blob); - const a = document.createElement("a"); - a.href = url; - a.download = `cheating_${new Date().toISOString()}.mov`; - a.click(); - - console.log(`비디오 크기: ${blob.size / 1024} KB`); - console.log("부정행위 비디오 저장 완료"); + // const url = URL.createObjectURL(blob); + // const a = document.createElement("a"); + // a.href = url; + // a.download = `cheating_${new Date().toISOString()}.mov`; + // a.click(); + + // console.log(`비디오 크기: ${blob.size / 1024} KB`); + // console.log("부정행위 비디오 저장 완료"); } };