From d30337e092d7b67ce14d8b7db8601c3d84f81064 Mon Sep 17 00:00:00 2001 From: kasterra Date: Tue, 28 May 2024 20:24:36 +0900 Subject: [PATCH] refactor : remove debugging purpose console.log --- app/routes/_procted+/lectures+/_index/index.tsx | 2 -- app/routes/_procted+/lectures+/quiz+/new/index.tsx | 2 -- app/routes/admin+/_layout.tsx | 1 - app/util/codeHole.ts | 1 - app/util/file.ts | 1 - app/util/getMyAllCodes.ts | 3 --- 6 files changed, 10 deletions(-) diff --git a/app/routes/_procted+/lectures+/_index/index.tsx b/app/routes/_procted+/lectures+/_index/index.tsx index 750d3a9..8888f63 100644 --- a/app/routes/_procted+/lectures+/_index/index.tsx +++ b/app/routes/_procted+/lectures+/_index/index.tsx @@ -255,9 +255,7 @@ const Lectures = () => { alt="edit icon" className={styles.icon} onClick={(e) => { - console.log(lecture); setEditingLectureInfo(lecture); - console.log(editingLectureInfo); setIsLectureEditModalOpen(true); }} /> diff --git a/app/routes/_procted+/lectures+/quiz+/new/index.tsx b/app/routes/_procted+/lectures+/quiz+/new/index.tsx index 4d86c28..a65d640 100644 --- a/app/routes/_procted+/lectures+/quiz+/new/index.tsx +++ b/app/routes/_procted+/lectures+/quiz+/new/index.tsx @@ -100,8 +100,6 @@ const QuizRegister = () => { } data[studentId][questionId] = value as string; } - - console.log(data); }} >
diff --git a/app/routes/admin+/_layout.tsx b/app/routes/admin+/_layout.tsx index 96956be..a15d409 100644 --- a/app/routes/admin+/_layout.tsx +++ b/app/routes/admin+/_layout.tsx @@ -24,7 +24,6 @@ const ProctedRoute = () => { } getUserInfo(userId, token) .then(({ data }) => { - console.log(token, userId); if (data.is_admin === false) { setIsNotAdmin(true); return; diff --git a/app/util/codeHole.ts b/app/util/codeHole.ts index c295ae9..f99cc5e 100644 --- a/app/util/codeHole.ts +++ b/app/util/codeHole.ts @@ -352,7 +352,6 @@ export function generateFullCode( parsedCodes: parsedCodeElement[][], blanks: string[] ) { - console.log(blanks); let blankIdx = 0; return parsedCodes .map((parsedCode) => diff --git a/app/util/file.ts b/app/util/file.ts index f041725..6167788 100644 --- a/app/util/file.ts +++ b/app/util/file.ts @@ -13,7 +13,6 @@ export async function cp949ToUTF8(file: File): Promise { resolve(file); } const decoded = iconv.decode(buf, "cp949"); - console.log(decoded); resolve(new File([decoded], file.name, { type: file.type })); }; diff --git a/app/util/getMyAllCodes.ts b/app/util/getMyAllCodes.ts index 00ddb36..73e3d16 100644 --- a/app/util/getMyAllCodes.ts +++ b/app/util/getMyAllCodes.ts @@ -25,8 +25,6 @@ export async function getCodesWithZipFile( ); if (!recentCorrectData) continue; - console.log(recentCorrectData); - const correctSubmissionResponse = await getSubmissionWithSubmissionId( recentCorrectData.id, token @@ -36,7 +34,6 @@ export async function getCodesWithZipFile( correctSubmissionResponse.data.codes.map((file) => { zip.file(`${practiceName}/${problemName}/${file.name}`, file.content); - console.log(file.content); }); } return zip.generateAsync({ type: "blob", compression: "DEFLATE" });