-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quiz기능 완성 #59
Merged
Merged
quiz기능 완성 #59
Changes from 23 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
4aad668
✨ Feature(#46): 정답 상태관리 완성
rhehfl 2f80ad1
✨ Feature(#46): 조합형 빼고 보여주기 완성
rhehfl ac72165
✨ Feature(#46): 정답 맞추기 기능 완성
rhehfl 727e7e8
Merge branch 'develop' of https://github.com/modern-agile-team/8term-…
rhehfl b0ad200
✨ Feature(#46): 퀴즈 결과 기능
rhehfl e70366a
✨ Feature(#46): develop 충돌해결
rhehfl 68fc39c
✨ Feature(#46): 문제풀이 기능 구현 완료
rhehfl 348b847
✨ Feature(#46): 가독성 향상을 위한 코드 정리
rhehfl 750ac3e
✨ Feature(#46):함수 주석 추가
rhehfl 7c5320b
✨ Feature(#46):조합형 칸넣기, dnd 구현
rhehfl 3819884
✨ Feature(#46):dopurify로 xss공격 방어, 폴더이름 소문자로 수정, package.json 안쓰는 라이브…
rhehfl dbcb565
Merge branch 'develop' of https://github.com/modern-agile-team/8term-…
rhehfl aae87bb
✨ Feature(#46): 미사용 컴포넌트 제거
rhehfl ff23610
✨ Feature(#46): Quiz 타입 수정
rhehfl e65d20e
Merge branch 'develop' of https://github.com/modern-agile-team/8term-…
rhehfl 1b30b58
✨ Feature(#46): interface로 props 타입 통일
rhehfl 3de7f3a
✨ Feature(#46): 진행도 추가, api, query폴더 분리
rhehfl a1b0955
✨ Feature(#46): store 타입분리,조합형 id수정
rhehfl fa1c0ac
✨ Feature(#46): 모달 hooks로 분리
rhehfl bc8f74d
✨ Feature(#46): 미사용 util함수 제거 useModal 주석추가
rhehfl 3645489
✨ Feature(#46): 폴더명 오타 수정
rhehfl 9ab243f
✨ Feature(#46): PR 수정사항 적용
rhehfl cd77c94
✨ Feature(#46): 유틸 함수, 훅 로직 수정
rhehfl 358dd0a
✨ Feature(#46): 배열 비교 함수 수정
rhehfl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,6 @@ | ||
import { PropsWithChildren } from 'react'; | ||
import ReactDom from 'react-dom'; | ||
export default function ModalPortal({ children }: PropsWithChildren) { | ||
const modalRoot = document.getElementById('modal-root') as HTMLElement; | ||
return ReactDom.createPortal(children, modalRoot); | ||
} |
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,6 +1,14 @@ | ||
import axios from 'axios'; | ||
import queryString from 'query-string'; | ||
|
||
const api = axios.create({ | ||
baseURL: import.meta.env.VITE_BASE_URL, | ||
timeout: 5000, | ||
paramsSerializer: params => { | ||
return queryString.stringify(params, { | ||
skipEmptyString: true, | ||
skipNull: true, | ||
}); | ||
}, | ||
}); | ||
export default api; |
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 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,13 @@ | ||
import Quiz from '../types/Quiz'; | ||
import api from './axios/instance'; | ||
|
||
const quizzesApis = { | ||
getquizzes: async (params?: { | ||
sectionId?: number; | ||
partId: number; | ||
}): Promise<Quiz[]> => { | ||
const response = await api.get('/quizzes', { params }); | ||
return response.data; | ||
}, | ||
}; | ||
export default quizzesApis; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
quiz 기능과는 조금 엇나가는 부분이지만 저희 페이지 특정상 항상 최신화된 데이터가 필요하다고는 생각되지 않아서
항상 캐시된 데이터를 가져올 수 있도록
Provider
의 기본 설정을 변경해봤습니다.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bluetree7878 혹시 이부분에 대해서 어떻게 생각하시나요?