-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge: [REFACTOR] Barrel Pattern 적용 (#446)
- Loading branch information
Showing
70 changed files
with
400 additions
and
238 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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,39 @@ | ||
import AngryDdangkong from './images/angryDdangkong.webp'; | ||
import ArrowDown from './images/arrowDown.svg'; | ||
import ArrowLeft from './images/arrowLeft.svg'; | ||
import ArrowUp from './images/arrowUp.svg'; | ||
import CloseIcon from './images/closeIcon.png'; | ||
import CopyIcon from './images/copyIcon.png'; | ||
import CrownIcon from './images/crownIcon.webp'; | ||
import Ddangkong from './images/ddangkong.webp'; | ||
import DdangkongTimer from './images/ddangkongTimer.webp'; | ||
import ErrorDdangkong from './images/errorDdangkong.webp'; | ||
import ExitIcon from './images/exitIcon.svg'; | ||
import HomeIcon from './images/homeIcon.svg'; | ||
import SadDdangkong from './images/sadDdangkong.webp'; | ||
import SettingIcon from './images/settingIcon.svg'; | ||
import SillyDdangkong from './images/sillyDdangkong.webp'; | ||
import SillyDdangkongMedium from './images/sillyDdangkongMedium.webp'; | ||
import SillyDdangkongSmall from './images/sillyDdangkongSmall.webp'; | ||
import SpinDdangkong from './images/spinDdangkong.webp'; | ||
|
||
export { | ||
AngryDdangkong, | ||
ArrowDown, | ||
ArrowLeft, | ||
ArrowUp, | ||
CloseIcon, | ||
CopyIcon, | ||
CrownIcon, | ||
Ddangkong, | ||
DdangkongTimer, | ||
ErrorDdangkong, | ||
ExitIcon, | ||
HomeIcon, | ||
SadDdangkong, | ||
SettingIcon, | ||
SillyDdangkong, | ||
SillyDdangkongMedium, | ||
SillyDdangkongSmall, | ||
SpinDdangkong, | ||
}; |
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
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
File renamed without changes.
File renamed without changes.
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,33 @@ | ||
import A11yOnly from './A11yOnly/A11yOnly'; | ||
import Button from './Button/Button'; | ||
import DeferredComponent from './DeferredComponent/DeferredComponent'; | ||
import Dropdown from './Dropdown/Dropdown'; | ||
import AsyncErrorBoundary from './ErrorBoundary/AsyncErrorBoundary'; | ||
import RootErrorBoundary from './ErrorBoundary/RootErrorBoundary'; | ||
import AsyncErrorFallback from './ErrorFallback/AsyncErrorFallback/AsyncErrorFallback'; | ||
import RootErrorFallback from './ErrorFallback/RootErrorFallback/RootErrorFallback'; | ||
import RouterErrorFallback from './ErrorFallback/RouterErrorFallback/RouterErrorFallback'; | ||
import SpinnerErrorFallback from './ErrorFallback/SpinnerErrorFallback/SpinnerErrorFallback'; | ||
import Modal from './Modal/Modal'; | ||
import GameSkeleton from './Skeleton/GameSkeleton/GameSkeleton'; | ||
import ReadySkeleton from './Skeleton/ReadySkeleton/ReadySkeleton'; | ||
import Spinner from './Spinner/Spinner'; | ||
import Toast from './Toast/Toast'; | ||
|
||
export { | ||
A11yOnly, | ||
Button, | ||
DeferredComponent, | ||
Dropdown, | ||
AsyncErrorBoundary, | ||
RootErrorBoundary, | ||
RouterErrorFallback, | ||
AsyncErrorFallback, | ||
RootErrorFallback, | ||
SpinnerErrorFallback, | ||
Modal, | ||
GameSkeleton, | ||
ReadySkeleton, | ||
Spinner, | ||
Toast, | ||
}; |
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 AlertModal from './AlertModal/AlertModal'; | ||
import InviteModal from './InviteModal/InviteModal'; | ||
import RoomSettingModal from './RoomSettingModal/RoomSettingModal'; | ||
import TopicContainer from './TopicContainer/TopicContainer'; | ||
|
||
export { AlertModal, InviteModal, RoomSettingModal, TopicContainer }; |
34 changes: 34 additions & 0 deletions
34
frontend/src/components/layout/Header/GameHeader/GameHeader.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* eslint-disable jsx-a11y/no-noninteractive-tabindex */ | ||
import { useParams } from 'react-router-dom'; | ||
|
||
import { gameTitle, headerLayout, roundText } from '../Header.styled'; | ||
|
||
import A11yOnly from '@/components/common/A11yOnly/A11yOnly'; | ||
import { convertMsecToSecond } from '@/pages/GamePage/components/SelectContainer/Timer/Timer.util'; | ||
|
||
import { useBalanceContentQuery, useFocus } from '@/hooks'; | ||
|
||
// 게임 화면 | ||
const GameHeader = () => { | ||
const { roomId } = useParams(); | ||
const { balanceContent } = useBalanceContentQuery(Number(roomId)); | ||
|
||
const { totalRound, currentRound, timeLimit } = balanceContent; | ||
const screenReaderHeader = `${totalRound}라운드.중.${currentRound}라운드. 밸런스 게임 페이지. 제한 시간 ${convertMsecToSecond(timeLimit)}초.`; | ||
const focusRef = useFocus<HTMLElement>(); | ||
|
||
return ( | ||
<header css={headerLayout()} tabIndex={0} ref={focusRef}> | ||
<A11yOnly>{screenReaderHeader}</A11yOnly> | ||
<span css={roundText} aria-hidden> | ||
{currentRound}/{totalRound} | ||
</span> | ||
<h1 css={gameTitle} aria-hidden> | ||
밸런스 게임 | ||
</h1> | ||
<span css={roundText} aria-hidden></span> | ||
</header> | ||
); | ||
}; | ||
|
||
export default GameHeader; |
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.