[김태영] sprint10#179
Open
csbizz wants to merge 7 commits intocodeit-sprint-fullstack:next-김태영from
Hidden character warning
The head ref may contain hidden characters: "next-\uae40\ud0dc\uc601-sprint10"
Open
Conversation
MCprotein
reviewed
Nov 20, 2024
Comment on lines
+146
to
+148
| if (!value.trim()) return setTagObj(old => ({ ...old, errMsg: '빈 문자만 입력할 수 없습니다.' })); | ||
| if (tags.length >= 5) return setTagObj(old => ({ ...old, errMsg: '태그는 5개까지 입력 가능합니다.' })); | ||
| if (tags.includes(value)) return setTagObj(old => ({ ...old, errMsg: '같은 태그가 존재합니다' })); |
There was a problem hiding this comment.
@csbizz 여기 중복코드가 세개있는데, 조건에따라 errMsg만 다르게 하고 setTagObj는 조건문밖에서 하는게 더 깔끔할거같아요
MCprotein
approved these changes
Nov 20, 2024
|
@csbizz 앗 merge가 안되는데 충돌만한번 해결해주세요! |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
요구사항
기본 요구사항
공통
Github에 위클리 미션 PR을 만들어 주세요.
React.js 혹은 Next.js를 사용해 진행합니다.
RESTful를 설계하고 백엔드 코드를 변경하세요.
(풀스택) 설계한 백엔드 코드에 맞게 프론트엔드 코드를 변경해 주세요.
https://panda-market-api.vercel.app의 API를 사용한 코드를 본인의 백엔드 API 코드로 변경하세요.
(백엔드) 프론트엔드 코드에 맞게 백엔드 코드를 변경해 주세요.
백엔드 코드에 swagger를 추가해 API 명세 문서를 생성해 주세요.
프론트엔드 구현 요구사항
중고마켓 페이지
상품 등록하기 페이지
심화 요구사항
상태코드 (웹 API 관련)
인증
OAuth를 활용한 인증
###프로젝트 구조 변경
(생략 가능) 자유게시판 게시물 등록
프론트엔드를 Next.js로 Migration 했을 경우에만 진행해 주세요.
게시물 등록 시 이미지 등록 기능을 구현합니다. 파일을 선택해 이미지를 업로드하고, preview를 볼 수 있도록 구현합니다. 이미지는 최대 3개까지만 등록 가능하도록 구현해 주세요.
게시물 등록 시 필요한 필드(제목, 내용 등)의 유효성 검증하는 미들웨어를 구현합니다.
multer 미들웨어를 사용하여 이미지 업로드 API를 구현해 주세요.
업로드된 이미지는 서버에 저장하고, 해당 이미지의 경로를 response 객체에 포함해 반환합니다.
주요 변경사항
스크린샷
멘토에게