From 3a9fdfde9009e3dd05907d2b470026bab5cb0631 Mon Sep 17 00:00:00 2001 From: "nageuna922@gmail.com" Date: Sat, 21 Dec 2024 17:02:40 +0900 Subject: [PATCH] chore: directory --- .../document/components/create-with-file/index.tsx | 2 +- .../{bomb-quiz-view.tsx => bomb-quiz-view/index.tsx} | 12 ++++++------ .../index.tsx | 0 .../index.tsx} | 6 ++++-- src/features/write/pages/write-document-page.tsx | 2 +- tsconfig.json | 8 +++++++- 6 files changed, 19 insertions(+), 11 deletions(-) rename src/features/quiz/screen/{bomb-quiz-view.tsx => bomb-quiz-view/index.tsx} (89%) rename src/features/quiz/screen/{create-quiz-error.tsx => create-quiz-error}/index.tsx (100%) rename src/features/quiz/screen/{intro-and-quiz-view.tsx => intro-and-quiz-view/index.tsx} (88%) diff --git a/src/features/document/components/create-with-file/index.tsx b/src/features/document/components/create-with-file/index.tsx index 1ac76ec2..ef5d40c4 100644 --- a/src/features/document/components/create-with-file/index.tsx +++ b/src/features/document/components/create-with-file/index.tsx @@ -18,7 +18,7 @@ import { useCreateDocument } from '@/requests/document/hooks' import TitleInput from '@/features/write/components/title-input' import { useRouter } from 'next/navigation' import AiCreatingQuiz from '@/features/quiz/screen/ai-creating-quiz' -import CreateQuizError from '@/features/quiz/screen/create-quiz-error.tsx' +import CreateQuizError from '@/features/quiz/screen/create-quiz-error' const CreateWithFile = () => { const router = useRouter() diff --git a/src/features/quiz/screen/bomb-quiz-view.tsx b/src/features/quiz/screen/bomb-quiz-view/index.tsx similarity index 89% rename from src/features/quiz/screen/bomb-quiz-view.tsx rename to src/features/quiz/screen/bomb-quiz-view/index.tsx index 4cdc1bce..a8a96539 100644 --- a/src/features/quiz/screen/bomb-quiz-view.tsx +++ b/src/features/quiz/screen/bomb-quiz-view/index.tsx @@ -1,15 +1,15 @@ 'use client' import Icon from '@/shared/components/custom/icon' -import EmptyBombList from '../components/empty-bomb-list' -import BombQuiz from '../components/bomb-quiz' -import BombAnimation from '../components/bomb-animation' import { useState } from 'react' -import WrongAnswerDialog from '../components/wrong-answer-dialog' -import { getAnswerText } from '../utils' import { cn } from '@/shared/lib/utils' import Loading from '@/shared/components/custom/loading' -import { useBombQuiz } from './quiz-view/hooks/use-bomb-quiz' +import { useBombQuiz } from '../quiz-view/hooks/use-bomb-quiz' +import EmptyBombList from '../../components/empty-bomb-list' +import BombQuiz from '../../components/bomb-quiz' +import BombAnimation from '../../components/bomb-animation' +import WrongAnswerDialog from '../../components/wrong-answer-dialog' +import { getAnswerText } from '../../utils' const BombQuizView = () => { const [key] = useState(new Date()) diff --git a/src/features/quiz/screen/create-quiz-error.tsx/index.tsx b/src/features/quiz/screen/create-quiz-error/index.tsx similarity index 100% rename from src/features/quiz/screen/create-quiz-error.tsx/index.tsx rename to src/features/quiz/screen/create-quiz-error/index.tsx diff --git a/src/features/quiz/screen/intro-and-quiz-view.tsx b/src/features/quiz/screen/intro-and-quiz-view/index.tsx similarity index 88% rename from src/features/quiz/screen/intro-and-quiz-view.tsx rename to src/features/quiz/screen/intro-and-quiz-view/index.tsx index ff966549..79521442 100644 --- a/src/features/quiz/screen/intro-and-quiz-view.tsx +++ b/src/features/quiz/screen/intro-and-quiz-view/index.tsx @@ -1,8 +1,10 @@ 'use client' import { useState } from 'react' -import QuizView from './quiz-view' -import QuizIntro from './intro' +import QuizIntro from '../intro' +import QuizView from '../quiz-view' +// import QuizView from './quiz-view' +// import QuizIntro from './intro' interface Props { quizSetType: Quiz.Set.Type diff --git a/src/features/write/pages/write-document-page.tsx b/src/features/write/pages/write-document-page.tsx index eb3fe3c6..6d238fe3 100644 --- a/src/features/write/pages/write-document-page.tsx +++ b/src/features/write/pages/write-document-page.tsx @@ -12,7 +12,7 @@ import { useDirectoryContext } from '@/features/directory/contexts/directory-con import CreateQuizDrawer from '../components/create-quiz-drawer' import AiCreatingQuiz from '@/features/quiz/screen/ai-creating-quiz' import { useRouter } from 'next/navigation' -import CreateQuizError from '@/features/quiz/screen/create-quiz-error.tsx' +import CreateQuizError from '@/features/quiz/screen/create-quiz-error' import { calculateAvailableQuizCount } from '@/features/document/utils' const Editor = dynamic(() => import('../components/editor'), { diff --git a/tsconfig.json b/tsconfig.json index 81b17d03..ccdb7cf7 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -22,6 +22,12 @@ "@/*": ["./src/*"] } }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], + "include": [ + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + ".next/types/**/*.ts", + "src/features/quiz/screen/create-quiz-error" + ], "exclude": ["node_modules"] }