-
Notifications
You must be signed in to change notification settings - Fork 10
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
[4주차] 김승완 미션 제출합니다. #11
base: main
Are you sure you want to change the base?
[4주차] 김승완 미션 제출합니다. #11
Commits on Mar 24, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 965c1d1 - Browse repository at this point
Copy the full SHA 965c1d1View commit details
Commits on Mar 25, 2024
-
Feat : styled-components를 통해 figma의 디자인 시스템 구축
1. ThemeProvider 컴포넌트 이용
Configuration menu - View commit details
-
Copy full SHA for a2f0ef0 - Browse repository at this point
Copy the full SHA a2f0ef0View commit details -
1. styled-reset 모듈을 통해 컴포넌트 방식으로 적용
Configuration menu - View commit details
-
Copy full SHA for f2e5ee2 - Browse repository at this point
Copy the full SHA f2e5ee2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7e331b4 - Browse repository at this point
Copy the full SHA 7e331b4View commit details -
Fix : craco runner를 통한 ts 상대경로 webpack 문제 해결
1. 기존의 react-scripts 러너는 상대 경로를 설정해주더라도 알아서 이를 씹고 CRA의 기본 설정으로 경로를 인식하여 오류가 생김 2. tsconfig.paths.json 파일에 기존의 설정을 해주고 @craco/craco 모듈과 react-app-alias 모듈을 설치 3. craco.config.json 파일에 craco 관련 설정을 해줌 4. 애플리케이션 러너 환경 자체를 react-scripts가 아닌, craco 가 돌릴 수 있게 설정
Configuration menu - View commit details
-
Copy full SHA for ec86253 - Browse repository at this point
Copy the full SHA ec86253View commit details
Commits on Mar 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 513ca0f - Browse repository at this point
Copy the full SHA 513ca0fView commit details -
Configuration menu - View commit details
-
Copy full SHA for ce221fe - Browse repository at this point
Copy the full SHA ce221feView commit details
Commits on Mar 27, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2968ce7 - Browse repository at this point
Copy the full SHA 2968ce7View commit details -
Configuration menu - View commit details
-
Copy full SHA for e6ad123 - Browse repository at this point
Copy the full SHA e6ad123View commit details
Commits on Mar 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 93103e6 - Browse repository at this point
Copy the full SHA 93103e6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 72a15f1 - Browse repository at this point
Copy the full SHA 72a15f1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7d5af18 - Browse repository at this point
Copy the full SHA 7d5af18View commit details -
Feat : Add Recoil global state management library to project
1. context/state 디렉터리에서 원하는 js파일을 통해 상태들을 정의해주고 이를 export해준다. 2. 프로젝트의 최상위 컴포넌트(CRA에서는 App.tsx 컴포넌트)에서 RecoilRoot 컴포넌트로 wrapping 3. 원하는 파일에서 1에서 정의해준 상태를 import하여 useRecoilState() 훅으로 사용. 받는 것은 useState와 매우 흡사하다.
Configuration menu - View commit details
-
Copy full SHA for 8a9ead6 - Browse repository at this point
Copy the full SHA 8a9ead6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 654f930 - Browse repository at this point
Copy the full SHA 654f930View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f32de0 - Browse repository at this point
Copy the full SHA 3f32de0View commit details -
1. before와 after psuedo element를 이용하여 만듦. 주의할 점은 왼쪽으로 위치하려면 -8px, 오른쪽은 -8px 느낌으로 해야 겹치지 않고 보여줄 수 있음
Configuration menu - View commit details
-
Copy full SHA for 2d9645d - Browse repository at this point
Copy the full SHA 2d9645dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9cc166a - Browse repository at this point
Copy the full SHA 9cc166aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9453e49 - Browse repository at this point
Copy the full SHA 9453e49View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2926f21 - Browse repository at this point
Copy the full SHA 2926f21View commit details -
Feat : make toggle user change
1. 위의 디스코드 버튼이나 이름을 누르면 사용자가 전환되고 관련 UI도 함께 바뀜
Configuration menu - View commit details
-
Copy full SHA for 7215349 - Browse repository at this point
Copy the full SHA 7215349View commit details -
Fix : input 박스에 텍스트가 많아지면 이모지 아래로 내려가는 것을 padding-right 속성을 이용해 conte…
…nt-box의 크기를 제한해주었음
Configuration menu - View commit details
-
Copy full SHA for a5a2bb0 - Browse repository at this point
Copy the full SHA a5a2bb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for c9ea7da - Browse repository at this point
Copy the full SHA c9ea7daView commit details
Commits on Mar 29, 2024
-
Fix : clear send 버튼을 눌렀을 때 onSubmit 속성이 아니라 onBlur 핸들러함수가 발동되는 로직을 on…
…Blur 핸들러 함수 내부의 조건문 분기로 해결
Configuration menu - View commit details
-
Copy full SHA for 57eee59 - Browse repository at this point
Copy the full SHA 57eee59View commit details -
Configuration menu - View commit details
-
Copy full SHA for d14dc0d - Browse repository at this point
Copy the full SHA d14dc0dView commit details -
1. 사용자가 채팅을 입력하면 상태도 바꿔주고 로컬 스토리지도 동기화시켜줌
Configuration menu - View commit details
-
Copy full SHA for bce5f6f - Browse repository at this point
Copy the full SHA bce5f6fView commit details -
Fix : 이미 존재하는 날짜 데이터에 새로운 메시지 추가 기능
1. 기존의 chatMessageData의 특정 날짜에 해당하는 배열과 주소값이 달라야함 2. 따라서 prevDateArray라는 변수를 기존의 것을 배열 구조 분해하여 받고 그다음 새로운 데이터를 push함 3. 이렇게 바뀌었는데 메모리 주소값이 다른 데이터를 새로운 상태로 설
Configuration menu - View commit details
-
Copy full SHA for 4b1123a - Browse repository at this point
Copy the full SHA 4b1123aView commit details -
Feat : make useScrollToBottom custom hook
1. 스크롤을 아래로 내일 chatBody와 chatInput은 부모-자식 관계가 아니므로 prop으로 콜백을 전달할 수 없음 2. 따라서 전역 상태 관리로 이를 구현해야하는데 커스텀 훅을 통해서 진행
Configuration menu - View commit details
-
Copy full SHA for 665f563 - Browse repository at this point
Copy the full SHA 665f563View commit details -
Fix : dom이 업데이트된 이후에 스크롤을 끝까지 내리려면 messageData가 바뀌고 그 다음에 이를 의존성 배열로 …
…하는 useEffect() 훅에서, 커스텀 훅의 scrollToBottom을 해주어야함
Configuration menu - View commit details
-
Copy full SHA for b452080 - Browse repository at this point
Copy the full SHA b452080View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4382061 - Browse repository at this point
Copy the full SHA 4382061View commit details -
Configuration menu - View commit details
-
Copy full SHA for 30a4d4c - Browse repository at this point
Copy the full SHA 30a4d4cView commit details -
1. 기존의 상태값을 JSON.parse(JSON.stringify())를 통해서 깊은 복사를 한다. 다른 스프레드 연산자 방식은 중첩된 대상들까지는 안될 수도 있다
Configuration menu - View commit details
-
Copy full SHA for 7a6ecb4 - Browse repository at this point
Copy the full SHA 7a6ecb4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 205ea15 - Browse repository at this point
Copy the full SHA 205ea15View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a1df88 - Browse repository at this point
Copy the full SHA 0a1df88View commit details -
Configuration menu - View commit details
-
Copy full SHA for 78a2ab4 - Browse repository at this point
Copy the full SHA 78a2ab4View commit details -
Configuration menu - View commit details
-
Copy full SHA for dce5e0a - Browse repository at this point
Copy the full SHA dce5e0aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 913a86e - Browse repository at this point
Copy the full SHA 913a86eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 789e62f - Browse repository at this point
Copy the full SHA 789e62fView commit details -
Configuration menu - View commit details
-
Copy full SHA for d53e7d5 - Browse repository at this point
Copy the full SHA d53e7d5View commit details -
Fix : doubleClick trigger function 을 right container로 옮겨주고 해당 칸을 100%…
…로 늘려 어디를 더블 클릭하던 제대로 동작하게 만듦
Configuration menu - View commit details
-
Copy full SHA for 17cf03b - Browse repository at this point
Copy the full SHA 17cf03bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 770713a - Browse repository at this point
Copy the full SHA 770713aView commit details -
Configuration menu - View commit details
-
Copy full SHA for adb45b5 - Browse repository at this point
Copy the full SHA adb45b5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c375615 - Browse repository at this point
Copy the full SHA c375615View commit details -
1. 일단 폼이 제출되면 안에서 false로 바꿔버린다. 2. 제출을 엔터키로 하면 상관 없는데 제출 버튼으로 하면 isFocused가 풀릴 수도 있으니 false로 만드는 함수에서는 이미 isFocused가 true인지와 내용이 있는지를 검사한다
Configuration menu - View commit details
-
Copy full SHA for 2a1a007 - Browse repository at this point
Copy the full SHA 2a1a007View commit details -
Configuration menu - View commit details
-
Copy full SHA for 60bb765 - Browse repository at this point
Copy the full SHA 60bb765View commit details -
Configuration menu - View commit details
-
Copy full SHA for 222de2a - Browse repository at this point
Copy the full SHA 222de2aView commit details -
Fix : make clear send button activate when user typed at least one ch…
…aracter 1. 디자이너의 요청에 따라서 사용자가 포커스 뿐만 아니라 한 글자라도 입력했을 때 activate되고 다시 지우면 deactivate 되도록 만듦
Configuration menu - View commit details
-
Copy full SHA for 39205a2 - Browse repository at this point
Copy the full SHA 39205a2View commit details
Commits on Mar 31, 2024
-
Configuration menu - View commit details
-
Copy full SHA for e2f357d - Browse repository at this point
Copy the full SHA e2f357dView commit details -
Fix : 더블 클릭을 해서 하트 표시를 만들었을 때에도 messageData 상태가 바뀌는 현상을 해결
1. isMessageLikeButtonClicked 상태를 만들어서 useEffect() 훅 내에서 검사함
Configuration menu - View commit details
-
Copy full SHA for 38ded23 - Browse repository at this point
Copy the full SHA 38ded23View commit details -
Refactor : make ChatMain page component into module
1. react-router-dom을 이용하여 ChatMain 컴포넌트를 일단 / url에 해당할때 렌더링될 수 있도록 만들어줌 2. 나중에 랜딩 페이지(/) 바꿔줄 수도 있음
Configuration menu - View commit details
-
Copy full SHA for f22347e - Browse repository at this point
Copy the full SHA f22347eView commit details
Commits on Apr 4, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 91a6f83 - Browse repository at this point
Copy the full SHA 91a6f83View commit details
Commits on Apr 5, 2024
-
Feat : make default friends url path layout
1. outlet을 적용하여 IphoneStatus와 HomeIndicator 같이 고정적으로 박히는 레이아웃을 고정시켜놓고 그 나머지 UI만 구축하면 되도록 시스템화 2 대부분의 페이지별로 바뀌는 부분은 pages 디렉터리에 넣어놓음
Configuration menu - View commit details
-
Copy full SHA for 683a216 - Browse repository at this point
Copy the full SHA 683a216View commit details -
Configuration menu - View commit details
-
Copy full SHA for ccc0286 - Browse repository at this point
Copy the full SHA ccc0286View commit details -
Configuration menu - View commit details
-
Copy full SHA for e8f8d19 - Browse repository at this point
Copy the full SHA e8f8d19View commit details -
Fix & page routing : userPageMode 앞에 $를 붙여 html 속성이 아님을 명시 & 페이지가 라우팅…
… 되면 탭바의 해당 아닌 부분은 opacity를 낮게 적용
Configuration menu - View commit details
-
Copy full SHA for cbecabe - Browse repository at this point
Copy the full SHA cbecabeView commit details -
Fix : useEffect() 훅 내에서 setUserPageMode() 를 통해 상태를 변경시키기 보다는, 어차피 상태 …
…처리는 배치되기 때문에 핸들러 함수 내부에서 분기하여 작성해주었음
Configuration menu - View commit details
-
Copy full SHA for d97b001 - Browse repository at this point
Copy the full SHA d97b001View commit details -
Configuration menu - View commit details
-
Copy full SHA for 82956e1 - Browse repository at this point
Copy the full SHA 82956e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for b4c282d - Browse repository at this point
Copy the full SHA b4c282dView commit details -
Fix : 불필요한 useEffect() 훅의 사용 없앰
1. 그냥 TabIconConatiner에서 userPageMode는 url과 곧바로 연동되면 끝이므로 useLocation() 훅의 pathname 정도만을 확인하는 로직이면 충분하다.
Configuration menu - View commit details
-
Copy full SHA for a49a2f8 - Browse repository at this point
Copy the full SHA a49a2f8View commit details
Commits on Apr 7, 2024
-
Configuration menu - View commit details
-
Copy full SHA for aae29fa - Browse repository at this point
Copy the full SHA aae29faView commit details -
Configuration menu - View commit details
-
Copy full SHA for fcdef66 - Browse repository at this point
Copy the full SHA fcdef66View commit details -
Fix : fix state changing error
1. 렌더링 도중에 상태의 변경이 일어나면 안된다. 이를 useEffect() 훅 내부로 옮겨주었음
Configuration menu - View commit details
-
Copy full SHA for 01c3a35 - Browse repository at this point
Copy the full SHA 01c3a35View commit details
Commits on Apr 11, 2024
-
Feat : make /messages url path UI
1. 다양한 메시지 리스트들을 렌더링함 2. 추후에 특정 메시지 아이템을 클릭하면 채팅방으로 이동하게 만듬. 근데 일단 김정민을 누르면 내가 원래 구현했던 /chat으로 이동하게 할거고 나머지는 아무 것도 없는 채팅 페이지로 이동하게 할 것임
Configuration menu - View commit details
-
Copy full SHA for e3f3f91 - Browse repository at this point
Copy the full SHA e3f3f91View commit details -
Configuration menu - View commit details
-
Copy full SHA for f80c9d8 - Browse repository at this point
Copy the full SHA f80c9d8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 50e092d - Browse repository at this point
Copy the full SHA 50e092dView commit details -
Refactor: absolute import path refactoring
1. 절대경로로 import 하도록 자잘한 코드 수정
Configuration menu - View commit details
-
Copy full SHA for 18ef9e1 - Browse repository at this point
Copy the full SHA 18ef9e1View commit details
Commits on Apr 25, 2024
-
Chore : make router setting in chat page
1. 김정민 chat 말고도 다른 chat에서도 뒤로 가기 화살표를 누르면 /messages url로 갈 수 있도록 설정
Configuration menu - View commit details
-
Copy full SHA for 768da6f - Browse repository at this point
Copy the full SHA 768da6fView commit details -
Feat : make empty chat default UI
1. 기존의 메시지 데이터가 있는 상황에 대해서 상태관리 설정을 추후에 해줘야 함
Configuration menu - View commit details
-
Copy full SHA for 562c30c - Browse repository at this point
Copy the full SHA 562c30cView commit details -
Configuration menu - View commit details
-
Copy full SHA for fe81081 - Browse repository at this point
Copy the full SHA fe81081View commit details -
Configuration menu - View commit details
-
Copy full SHA for 375827e - Browse repository at this point
Copy the full SHA 375827eView commit details
Commits on Apr 26, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 53fa57a - Browse repository at this point
Copy the full SHA 53fa57aView commit details -
Feat: make chat 기능 in empty chat page
1. 사용자를 누르면 전환되는 것을 추가적으로 구현해야함
Configuration menu - View commit details
-
Copy full SHA for 028b77f - Browse repository at this point
Copy the full SHA 028b77fView commit details -
Configuration menu - View commit details
-
Copy full SHA for e400fb8 - Browse repository at this point
Copy the full SHA e400fb8View commit details -
Fix : html 속성명과 겹치는 ifBlueSignal 이름 변경
1. 앞에 $를 붙여주는 방식으로 해결
Configuration menu - View commit details
-
Copy full SHA for c3b331e - Browse repository at this point
Copy the full SHA c3b331eView commit details
Commits on Apr 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1637dbc - Browse repository at this point
Copy the full SHA 1637dbcView commit details
Commits on Apr 30, 2024
-
1. img를 담은 div를 img 보다 너비 높이를 높게 잡고 border radius를 원형으로 만든 뒤, background color를 적용함
Configuration menu - View commit details
-
Copy full SHA for 48e8f53 - Browse repository at this point
Copy the full SHA 48e8f53View commit details -
Fix : profile logo UI position 변경
1. 로고의 너비 높이는 80px 이지만 이를 위치시키는 컨테이너는 90px 이므로 이를 고려해야 레이아웃 배치
Configuration menu - View commit details
-
Copy full SHA for 9ad56de - Browse repository at this point
Copy the full SHA 9ad56deView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8341301 - Browse repository at this point
Copy the full SHA 8341301View commit details -
Configuration menu - View commit details
-
Copy full SHA for 079de11 - Browse repository at this point
Copy the full SHA 079de11View commit details
Commits on May 5, 2024
-
Fix : not found page for unexpected approach
1. 사용자가 예상치 못한 접근을 하면 not found page로 갈 수 있도록 라우팅 설정
Configuration menu - View commit details
-
Copy full SHA for 7487820 - Browse repository at this point
Copy the full SHA 7487820View commit details -
Configuration menu - View commit details
-
Copy full SHA for edcf599 - Browse repository at this point
Copy the full SHA edcf599View commit details -
Configuration menu - View commit details
-
Copy full SHA for bada0ea - Browse repository at this point
Copy the full SHA bada0eaView commit details