-
Notifications
You must be signed in to change notification settings - Fork 8
[5주차] 이효린 미션 제출합니다. #19
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
Open
hyorish03
wants to merge
57
commits into
URECA-ReCoder:main
Choose a base branch
from
hyorish03:hyorin
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
57 commits
Select commit
Hold shift + click to select a range
73f5ca1
Chore: 기본 환경설정
hyorish03 a7a686a
Chore: 프로젝트에 데이터 파일 및 필요한 PNG 에셋 추가
hyorish03 72db263
Chore: chat.json에 name 속성 추가
hyorish03 32e400e
Chore: styled-components 설치
hyorish03 8c53950
Chore: 절대경로 설정
hyorish03 f076c07
Chore: chat.json에 image 속성 추가
hyorish03 37ec1b1
Feat: 이미지 파일 모듈화
hyorish03 d72bdb9
Style: index.css box-sizing 추가
hyorish03 7f61915
Fix: 절대경로 설정파일 수정
hyorish03 8a24105
Feat: 상수파일 생성
hyorish03 8b7a93e
Feat: Header 컴포넌트 구현
hyorish03 0938404
Fix: 절대경로를 위한 jsconfig.json 설정 추가
hyorish03 3e32deb
Feat: 상대방 정보를 찾는 함수 구현
hyorish03 b8d3b5e
Feat: png 모듈화 파일 추가
hyorish03 b39e3c5
Feat: 메시지 보내기 창 구현
hyorish03 d465bdd
Feat: eslint 설정 추가
hyorish03 c0aaabf
Feat: chat.json에 timestamp 추가
hyorish03 2180ebf
Feat: 메시지 컴포넌트 구현
hyorish03 96d95a7
Feat: 채팅 스타일링 구현
hyorish03 4933321
Feat: useChat 훅 구현
hyorish03 ea17acf
Chore: eslint 설정 변경
hyorish03 6e3386b
Fix: const 내의 userId 값을 userInfo 객체로 변경
hyorish03 81c0420
Feat: util 함수 수정
hyorish03 64044e3
Feat: 메시지 전송 기능 구현
hyorish03 5c66533
Feat: 메시지 렌더링 기능 구현
hyorish03 c88ba8a
Fix: useChat 호출방식 변경
hyorish03 743df0a
Feat: 스타일링 수정
hyorish03 317aefc
Feat: 스타일링 수정
hyorish03 650f0d1
Feat: 빈 메시지일 경우 못 보내도록 수정
hyorish03 9c38280
Feat: body에서 scroll 안 되도록 수정
hyorish03 604e636
Feat: 방해금지모드 구현
hyorish03 35c2699
Fix: body 스타일링 수정
hyorish03 01002d8
Chore: typescript 환경설정
hyorish03 7e2e358
Fix: 확장자 변경 js -> ts, jsx -> tsx
hyorish03 8526848
Fix: tsconfig.json 수정
hyorish03 cf878ac
Feat: 타입 추가
hyorish03 6adb9a9
Feat: globalStyle 추가
hyorish03 e11e670
feat: react-router-dom 적용 및 라우팅 처리
hyorish03 024fbc5
feat: 404 페이지 추가
hyorish03 be74036
fix: 채팅 정보 및 사용자 정보 업데이트
hyorish03 09349d8
feat: route path 상수화
hyorish03 a6af55a
fix: 채팅 정보 업데이트
hyorish03 ed9cbc8
fix: 채팅 상대방 정보 가져오는 방법 수정
hyorish03 62b9527
feat: 전역상태관리 라이브러리 추가
hyorish03 5654ad4
feat: 채팅 리스트 필터링을 위한 store 구현
hyorish03 5fa8f11
feat: App.jsx를 채팅리스트 컴포넌트로 변경
hyorish03 22937e4
feat: 채팅 리스트 페이지 구현
hyorish03 bcd34d9
feat: 채팅방 컴포넌트 구현
hyorish03 4958df0
feat: SVGR 적용 및 bottomTab에 사용하는는 svg 추가
hyorish03 e527577
feat: bottomTab 구현
hyorish03 d006b60
fix: 불필요한 주석 삭제
hyorish03 c0de54d
feat: 채팅 리스트 스타일링 수정
hyorish03 232e576
fix: 폴더구조 변경
hyorish03 903f33d
fix: 폴더구조 변경
hyorish03 33bdde4
fix: alarm 전역상태로 변경
hyorish03 5e576b1
fix: 채팅 추가 기능 전역상태로 변경
hyorish03 d861007
fix: 라우팅 path 수정
hyorish03 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| import * as React from 'react'; | ||
| import type { SVGProps } from 'react'; | ||
| const SvgHome = (props: SVGProps<SVGSVGElement>) => ( | ||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| xmlnsXlink="http://www.w3.org/1999/xlink" | ||
| fill="none" | ||
| viewBox="0 0 90 90" | ||
| {...props} | ||
| > | ||
| <path fill="url(#Home_svg__a)" d="M0 0h90v90H0z" /> | ||
| <defs> | ||
| <pattern | ||
| id="Home_svg__a" | ||
| width={1} | ||
| height={1} | ||
| patternContentUnits="objectBoundingBox" | ||
| > | ||
|
Comment on lines
+13
to
+18
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 오 svgr을 사용하신건가요?!? 정말 간편하고 좋네요..🥹👍 |
||
| <use xlinkHref="#Home_svg__b" transform="scale(.01111)" /> | ||
| </pattern> | ||
| <image | ||
| xlinkHref="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAYAAAA4qEECAAAACXBIWXMAAAsTAAALEwEAmpwYAAACjElEQVR4nO2csWoUURSGP1FimsDWKlZaxC42PoLaaKudlZWa0tbO5BGshOgLaOUTqGmMlY2VYmKpMRACikcGZkAHd7PZnJlz5u7/wd/ssCz349+7c7jLgBBCCCGE+JdFYB3YAb4Ca/VrwpEzwFvAWnkHnJdpH1aAT/+R3GQbuCLZx+MWsD9BcpMD4I5kH52T9R5sR8wT4NQMnzeXLAEvZpDc5BUwil5Edi4AH44huclHYDl6MVm5CnxzkNzkB3AjelHZuAv8dJTc5BfwMHpxGVgENjoQ3M7GFMPNwl8DUfv2ca2+PtghZLMHyU02688cx2F3OdX14oYQ6yg7E4abdpPbqcb+QXF7yiGkq4wbbqZ5b9FDiHWU9nBThOgl4GUCuZOGm8GLvug0hHSVZrgZtOjrwPcEMg/LtINSSlbrgcEKSipOA08TSLGSRY87CbFCkoLLwOcEMqxk0dFDiJUuOtsQYiWKHtU3/DZHGfUtOfsQYh0ON5f6knzN+STEBpbq5OZm15JLHEJshvwGHgEnvAVXpwvPEyzQkuWZ98nL4wSLsqSp3LixnWBBljTVyYxE073oL56i52koscitY6GWrS2EmL8h2JwljOiFm0THSzE1mnBh2jrIHe3RSPRg2qdGI9Hhe6ap0RLtSnRrTY2WaFeiW2tqtES7Et1aU6Ml2pXo1poaLdGuRLfW1GiJdiW6taZGS7Qr0a01NVqiXYluranREu1KdGtNjZZoV6Jba2q0RLsS3VpL/i2RaCSa6NambPRegsVbT9mNFN3nAwItOG8iRT9IIMB6yr3ox/q8TyDBOs5WhmeTnitc9hZwliRUzb5f72Ml/EDuAa/r7SK8yUIIIYQQQgghhBAk4w9m9qGhd3r3SQAAAABJRU5ErkJggg==" | ||
| id="Home_svg__b" | ||
| width={90} | ||
| height={90} | ||
| /> | ||
| </defs> | ||
| </svg> | ||
| ); | ||
| export default SvgHome; | ||
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| import * as React from 'react'; | ||
| import type { SVGProps } from 'react'; | ||
| const SvgPlus = (props: SVGProps<SVGSVGElement>) => ( | ||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| xmlnsXlink="http://www.w3.org/1999/xlink" | ||
| fill="none" | ||
| viewBox="0 0 90 90" | ||
| {...props} | ||
| > | ||
| <path fill="url(#Plus_svg__a)" d="M0 0h90v90H0z" /> | ||
| <defs> | ||
| <pattern | ||
| id="Plus_svg__a" | ||
| width={1} | ||
| height={1} | ||
| patternContentUnits="objectBoundingBox" | ||
| > | ||
| <use xlinkHref="#Plus_svg__b" transform="scale(.01111)" /> | ||
| </pattern> | ||
| <image | ||
| xlinkHref="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAYAAAA4qEECAAAACXBIWXMAAAsTAAALEwEAmpwYAAAB1UlEQVR4nO3byUoDURSE4do5D+/g9HgOIILDQvDpVNxonBLwEYygy1DScHUhIumm23v75P/gbMzm3KIWEU4kAAAAALNgQdJ87iWiWpd0IelFktOMJJ1LWsu9XBQ7PwL+OVXg27mX7LtlScM/Qv6aJ0lLuZfts6MpQv6aw9zL9tlNjaCvcy/bZx81gn7PvWyfueagIYL+J6bRBB2KaTRBh2IaTdChmEYTdCim0QQdimk0QYdiGk3QoZhGE3QoptEEHYppNEGHYhpN0J2q7tsO0lXQW4PGueczTm/f7/LWr7rYvC/gsS5kBpI2u7jqJGT9esXa6n32WQENcqFz2mbQowIe5EKnut9uxZykSQEPcqEzSRkRtHoStKb8ecOszlAtOi3gQS50jtv+ejco4FEubB4lrapl1ZdzwtZ3yLeSNtSRRUl7kq7Sv6OesRlLupS0m7IIwzUHDRH0PzGNJuhQTKMJOhTTaIIOxTSaoEMxjSboUEyjCToU02iCDsU0mqBDMY0m6FBMowk6FNNogg5lXKPRr7mX7bPrGkFXF0Ro6KBG0NWZFhpamvKw8i7aLVwOW5Ie/gj5vsurzlmzIukkXddP0jynv1WfoQNzbf5mBAAAAICK9QkSkO5NnQjE8wAAAABJRU5ErkJggg==" | ||
| id="Plus_svg__b" | ||
| width={90} | ||
| height={90} | ||
| /> | ||
| </defs> | ||
| </svg> | ||
| ); | ||
| export default SvgPlus; |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| import * as React from 'react'; | ||
| import type { SVGProps } from 'react'; | ||
| const SvgSearch = (props: SVGProps<SVGSVGElement>) => ( | ||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| fill="none" | ||
| viewBox="0 0 25 25" | ||
| {...props} | ||
| > | ||
| <path | ||
| fill="#000" | ||
| d="m20.417 21.875-6.563-6.563a6.35 6.35 0 0 1-3.958 1.354c-1.893 0-3.494-.655-4.805-1.966-1.31-1.31-1.966-2.912-1.966-4.804 0-1.893.655-3.494 1.966-4.805 1.31-1.31 2.912-1.966 4.805-1.966 1.892 0 3.494.655 4.804 1.966 1.311 1.31 1.967 2.912 1.967 4.805a6.35 6.35 0 0 1-1.355 3.958l6.563 6.563-1.458 1.458ZM9.896 14.583c1.302 0 2.409-.455 3.32-1.367.912-.911 1.367-2.018 1.367-3.32s-.455-2.409-1.367-3.32c-.911-.912-2.018-1.368-3.32-1.368s-2.409.456-3.32 1.368c-.912.911-1.368 2.018-1.368 3.32s.456 2.409 1.368 3.32c.911.912 2.018 1.367 3.32 1.367Z" | ||
| /> | ||
| </svg> | ||
| ); | ||
| export default SvgSearch; |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| import * as React from 'react'; | ||
| import type { SVGProps } from 'react'; | ||
| const SvgVideo = (props: SVGProps<SVGSVGElement>) => ( | ||
| <svg | ||
| xmlns="http://www.w3.org/2000/svg" | ||
| xmlnsXlink="http://www.w3.org/1999/xlink" | ||
| fill="none" | ||
| viewBox="0 0 90 90" | ||
| {...props} | ||
| > | ||
| <path fill="url(#Video_svg__a)" d="M0 0h90v90H0z" /> | ||
| <defs> | ||
| <pattern | ||
| id="Video_svg__a" | ||
| width={1} | ||
| height={1} | ||
| patternContentUnits="objectBoundingBox" | ||
| > | ||
| <use xlinkHref="#Video_svg__b" transform="scale(.01111)" /> | ||
| </pattern> | ||
| <image | ||
| xlinkHref="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFoAAABaCAYAAAA4qEECAAAACXBIWXMAAAsTAAALEwEAmpwYAAAEBUlEQVR4nO2dSWyNURTHf7S0hphWqARBYm3aGCNlJ1ggMcW8KapEbO0MCaGJha0NK2OCsEeE1BBigViYdSAS2mh75SbnJS+NJ1V3ON/33V/y37y893LPPy/fvefcc++DRCKRSCQSiUQikUj0mypgLrAdOA5cBp4Ar4B2oEvULq89kfcck8/Mke9I/IFJwD7gGvANMP+pr8BVoBGoo+AMAzYBt4EeB+ZWUjdwC9gI1FIgRsov7Z1HcyvpM3AYGE2OGQIcBNoiGNxXdgwHZEy5YiHwVIHBffUCqCcH2GfiGaBXgamVZMfWDNSQUaYA9xQYafqph8B0Mka9o2WaCSy7LFxKRlgN/FRgmhmgbDK0DuXs8rwmNoFkY9iJUlZJchDbJOPQ7LUowz7XOhWYYzw8RpajhBkZnfjMP0yQ02KbXCPLIpNzPYi9zj6jwAQTSDapiZZWa874jGPZWBeHNrkaeKwgeBNYT0MXog4qCNpEUlPIenKrgoBNJLWKB945pCBYE1m2lu19++mj5yDOA3uBZwoMraT3vrfFNgUIYmzZhLtHyY7Mn7TBp9G3AwTQF2v8aeCXAnPLdQNP1AUqGlViJnBdgcHlRScvrQz7AgXQnyrhSwVGW+3GA9eUGI0kDY0KilkXcYxtsepQZHSJCcDZiHXwDtftZ3MDDn6g47sTyezZOGSHcqNLrADeBDZ6Kw45nhGjLcMle/0eaLxHcMiVDBld3qF6LkAp1+mEGLIk6ppFQIvH8drvdkbI554PBgObPdVpXrscaMiyqE9su+4Jx8vBLy4H2JUTo0s0ORyvbbNwRt6M3q/V6Lw8OsYAJx23rTl9dKTJkDCTYZaXd4uztLxLCQthEpaspeCHgR9ZTMG3Z8DoQcCaCEWlLUUqk84D7gY2uKRZRSr89+Sl8I+crdZi9NC8bmUhgWkwerXcamAUqMGH0RMVtBvcUGBuSdaL8XjiVgSjxxWtgQa5iiFkS9heuQDFKNR6302OHzwHcEGadZ4rMLOS3oW4+6PITehGZMus3hkhpUFTULWGakRHGrFNQdVIQOxE9UhB0Cbvh4UsC9Lxt3A0K/iVmUA6RURq5PiuybnuS30lKtPkYLrJqTqAqShhScZvnTEVZNsslqGMlTm8GGUNStmZk6t+uqUnXDWrMv4Y6dR4xc/frv75mtGJbwkZY3LEDVMzAD3QcKXP/6yzm5VnkL2SjERfJ7tK1x8rMLWv7JjmkzOqpS9ZQ4n1i1Th7JhyywgJ8m0Egz9Ju9goCkStXMVw03Oi0y0bqeuLdvV8pY4je4D9kqPN2Hb5rgafLQFZp0r62bYBR6UbqEWaZtrK/h6kTV5rkfcclVOs9rPp70ESiUQikUgkEolEgn7yG1n2Mpqx9z2YAAAAAElFTkSuQmCC" | ||
| id="Video_svg__b" | ||
| width={90} | ||
| height={90} | ||
| /> | ||
| </defs> | ||
| </svg> | ||
| ); | ||
| export default SvgVideo; |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| export { default as Home } from './Home'; | ||
| export { default as Plus } from './Plus'; | ||
| export { default as Search } from './Search'; | ||
| export { default as Video } from './Video'; |
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
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
Oops, something went wrong.
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.
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.
저도 다음 리팩토링때는 icon을 직접 불러오기보다는 svg를 더 활용해봐야겠습니다.
SVG는 웹 디자인 및 개발에서 유연성, 성능, 확장성 면에서 매우 유리한 이미지 이라고 하니 직접 png나 jpg를 사용하는 것 보다 좋겠네요!