-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
변경 사항 - 도서 상세 페이지에서 보여지는 정보를 확장했습니다. - 도서 카테고리, 출간일, 가격 등의 정보를 추가했습니다. - dayjs 라이브러리를 추가하여 날짜 포맷팅 기능을 구현했습니다. - 서버 도메인 모델에서 Book 클래스에 categoryName 속성을 추가했습니다. - findWithCategory 함수를 수정하여 카테고리 이름 정보를 함께 조회하도록 했습니다. 관련 변경 사항 - client/package.json 파일 수정 - client/package-lock.json 파일 수정 - client/src/api/http.ts 파일 수정 - client/src/pages/BookDetail.tsx 파일 수정 - client/src/utils/format.ts 파일 수정 - server/src/books/domain/book.ts 파일 수정 - server/src/books/domain/books.repository.ts 파일 수정
- Loading branch information
Showing
7 changed files
with
134 additions
and
6 deletions.
There are no files selected for viewing
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
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,3 +1,9 @@ | ||
import dayjs from 'dayjs'; | ||
|
||
export const formatNumber = (number: number) => { | ||
return number.toLocaleString(); | ||
} | ||
} | ||
|
||
export const formatDate = (date: string, format?: string) => { | ||
return dayjs(date).format(format ? format : "YYYY년 MM월 DD일") | ||
} |
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