-
Notifications
You must be signed in to change notification settings - Fork 168
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
[2단계 - 행운의 로또 미션] 호프(김문희) 미션 제출합니다. #154
[2단계 - 행운의 로또 미션] 호프(김문희) 미션 제출합니다. #154
Conversation
commit 8734269 Author: moonheekim0118 <hellomooneekim@gmail.com> Date: Sun Feb 27 20:48:31 2022 +0900 refactor: Model 네이밍 수정 commit 5dc8c6e Author: moonheekim0118 <hellomooneekim@gmail.com> Date: Sun Feb 27 20:45:15 2022 +0900 test: 로또 번호 테스트 코드 추가 commit 318d7ca Author: moonheekim0118 <hellomooneekim@gmail.com> Date: Sun Feb 27 13:05:09 2022 +0900 refactor: View 컴포넌트 추상화 commit 717b0a9 Author: moonheekim0118 <hellomooneekim@gmail.com> Date: Sat Feb 26 23:35:39 2022 +0900 refactor: Model에서 불필요한 메서드 유틸로 이동 commit 48b01ea Author: moonheekim0118 <hellomooneekim@gmail.com> Date: Sat Feb 26 23:20:46 2022 +0900 refactor: 메서드 이름 수정 commit 343facd Author: moonheekim0118 <hellomooneekim@gmail.com> Date: Sat Feb 26 23:18:12 2022 +0900 refactor: 상수 및 선택자 함수 변경 - CLASS_SELECTOR -> CLASS_NAME 으로 변경 - ID_SELECTOR 에 # 추가 - querySelector 유틸 함수에 # 제거 commit 2a36fcf Author: moonheekim0118 <hellomooneekim@gmail.com> Date: Wed Feb 23 18:35:37 2022 +0900 docs: 코드 구조도 추가 commit 4334860 Author: moonheekim0118 <hellomooneekim@gmail.com> Date: Wed Feb 23 16:20:41 2022 +0900 docs: 기능목록 수정 commit 478cd75 Author: gytks4 <gytks4@naver.com> Date: Wed Feb 23 15:39:13 2022 +0900 docs: 기능 구현 완료 체크 Co-authored-by: moonheekim0118 <hellomooneekim@gmail.com> commit 5c416fa Author: gytks4 <gytks4@naver.com> Date: Wed Feb 23 15:37:25 2022 +0900 feat: 버튼에 포인터 추가 Co-authored-by: moonheekim0118 <hellomooneekim@gmail.com> commit 0380381 Author: gytks4 <gytks4@naver.com> Date: Wed Feb 23 15:36:44 2022 +0900 test: beforeEach 삭제 Co-authored-by: moonheekim0118 <hellomooneekim@gmail.com> commit db08655 Author: gytks4 <gytks4@naver.com> Date: Wed Feb 23 15:30:43 2022 +0900 refactor: 접근자 변경 Co-authored-by: moonheekim0118 <hellomooneekim@gmail.com> commit f7e69dd Author: gytks4 <gytks4@naver.com> Date: Wed Feb 23 15:17:48 2022 +0900 refactor: showLottoListSection 추상화 Co-authored-by: moonheekim0118 <hellomooneekim@gmail.com> commit d73a064 Author: gytks4 <gytks4@naver.com> Date: Wed Feb 23 15:06:44 2022 +0900 refactor: 웹 접근성 향상 Co-authored-by: moonheekim0118 <hellomooneekim@gmail.com> commit 6338ccd Author: gytks4 <gytks4@naver.com> Date: Wed Feb 23 14:57:05 2022 +0900 feat: 금액이 1000원으로 나누어떨어지지 않으면 에러 생성 Co-authored-by: moonheekim0118 <hellomooneekim@gmail.com> commit 0af2f16 Author: gytks4 <gytks4@naver.com> Date: Wed Feb 23 14:30:22 2022 +0900 fix: 로또 리스트가 쌓이는 문제 해결 Co-authored-by: moonheekim0118 <hellomooneekim@gmail.com> commit ea70e0e Author: gytks4 <gytks4@naver.com> Date: Wed Feb 23 14:25:20 2022 +0900 feat: 금액 입력 전, lotto-list-section 숨기기 Co-authored-by: moonheekim0118 <hellomooneekim@gmail.com> commit d549f26 Author: gytks4 <gytks4@naver.com> Date: Wed Feb 23 14:13:17 2022 +0900 chore: 티켓 이미지를 이모지로 대체 Co-authored-by: moonheekim0118 <hellomooneekim@gmail.com> commit aea694e Author: gytks4 <gytks4@naver.com> Date: Tue Feb 22 23:23:26 2022 +0900 feat: 토글 버튼 구현 Co-authored-by: moonheekim0118 <hellomooneekim@gmail.com> commit 98445e9 Author: gytks4 <gytks4@naver.com> Date: Tue Feb 22 22:52:21 2022 +0900 feat: 금액 입력 시, 로또 리스트 보여주기 Co-authored-by: moonheekim0118 <hellomooneekim@gmail.com> commit 4519e56 Author: gytks4 <gytks4@naver.com> Date: Tue Feb 22 22:32:09 2022 +0900 feat: 금액 입력 시, 총 로또 개수 보여주기 Co-authored-by: moonheekim0118 <hellomooneekim@gmail.com> commit 428deba Author: gytks4 <gytks4@naver.com> Date: Tue Feb 22 22:01:14 2022 +0900 feat: 로또 구입 금액 입력 시, 로또 발급 Co-authored-by: moonheekim0118 <hellomooneekim@gmail.com> commit 5308e8c Author: gytks4 <gytks4@naver.com> Date: Tue Feb 22 20:58:46 2022 +0900 chore: MVC 패턴 세팅 Co-authored-by: moonheekim0118 <hellomooneekim@gmail.com> commit 9d38759 Author: gytks4 <gytks4@naver.com> Date: Tue Feb 22 20:31:21 2022 +0900 chore: 이미지 로드를 위한 웹팩 설정 Co-authored-by: moonheekim0118 hellomooneekim@gmail.com commit 277e881 Author: gytks4 <gytks4@naver.com> Date: Tue Feb 22 20:30:56 2022 +0900 feat: 마크업 CSS 스타일링 Co-authored-by: moonheekim0118 hellomooneekim@gmail.com commit 730a2dc Author: gytks4 <gytks4@naver.com> Date: Tue Feb 22 20:30:22 2022 +0900 feat: HTML 마크업 Co-authored-by: moonheekim0118 hellomooneekim@gmail.com commit 33ed15b Author: gytks4 <gytks4@naver.com> Date: Tue Feb 22 15:03:00 2022 +0900 chore: 초기 환경 세팅 Co-authored-by: moonheekim0118 hellomooneekim@gmail.com commit ebe5495 Author: gytks4 <gytks4@naver.com> Date: Tue Feb 22 14:51:47 2022 +0900 docs: README.md 기능 목록 작성 Co-authored-by: moonheekim0118 hellomooneekim@gmail.com commit fd736d0 Author: gytks4 <gytks4@naver.com> Date: Tue Feb 22 14:51:16 2022 +0900 docs: TODO.md 작성 Co-authored-by: moonheekim0118 hellomooneekim@gmail.com
- 생성자로부터 container 엘리먼트 받아오도록 구현 - hide/show 메서드 구현
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.
안녕하세요 호프님, 역할이 잘 분리돼있고, 공통 기능도 적절하게 모은 거 같습니다.
테스트도 분리하니까 더 보기 좋네요 👍
hide() { | ||
this.container.classList.add(CLASS_NAME.HIDE); | ||
} | ||
|
||
show() { | ||
this.container.classList.remove(CLASS_NAME.HIDE); | ||
} |
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.
공통 기능이군요 👍
export const replaceHTML = (element, template) => { | ||
removeChildren(element); | ||
element.replaceChildren(); |
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.
👍
export const $ = (selector, target = document) => target.querySelector(selector); | ||
|
||
const removeChildren = parent => { | ||
while (parent.firstChild) { | ||
parent.firstChild.remove(); | ||
} | ||
}; | ||
export const $$ = (selector, target = document) => target.querySelectorAll(selector); |
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.
특정 element부터 탐색 좋네요 👍
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.
호프님, 이번 미션도 수고 많으셨습니다. Approve 하겠습니다 :)
데모페이지
안녕하세요 리뷰어님! 먼저 늦게 PR 올린 점 죄송합니다 ..😢 이것저것 해보려고 욕심내다보니까 시간이 늦어졌네요.
구현사항과 피드백 반영 사항 및 추가 사항은 아래와 같습니다.
Step 2 기능 구현
테스트 코드 추가
유의미한 클래스 이름
그럼 좋은 피드백 미리 감사합니다 ! 좋은 주말 보내세요 👍 👍