-
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.
* fix: favicon href url 변경 * fix: font 에러를 절대 경로로 수정하여 해결 * fix: 초기값을 빈 객체로 수정 * feat: 초를 분, 시간으로 변환하는 formatelapsedTime 유틸 함수 추가 * feat: 보이는 시간을 formatElapsedTime 유틸 함수로 사용하여 분, 시간을 보이도록 수정 * refactor: 이모지 그래프 숫자 소수점을 보이지 않도록 수정 * feat: AnswerChart에서 퀴즈에 알맞는 선지를 보이도록 수정 - tooltip, legend x축 값을 count에서 참여자 수로 변경 * style: 마스터 페이지 그래프 height 수정 * feat: tickcount를 약수에 맞게 설정 및 에러 수정 * fix: 띄어쓰기 삭제 * style: 그리드아이템 캐릭터 input 크기 수정 * fix: answer 번호 변수 추가
- Loading branch information
Showing
10 changed files
with
82 additions
and
23 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
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
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
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 @@ | ||
export function formatElapsedTime(elapsedTime: number) { | ||
const rtf = new Intl.RelativeTimeFormat('ko', { numeric: 'auto' }); | ||
|
||
if (elapsedTime >= 3600) { | ||
const hours = Math.floor(elapsedTime / 3600); | ||
return rtf.format(-hours, 'hour'); | ||
} else if (elapsedTime >= 60) { | ||
const minutes = Math.floor(elapsedTime / 60); | ||
return rtf.format(-minutes, 'minute'); | ||
} else { | ||
return rtf.format(-elapsedTime, 'second'); | ||
} | ||
} |