Overnap
Builds for 1 pipeline failed in 1 minute 18 seconds

Merge branch 'feature/polish' into develop

...@@ -5,6 +5,10 @@ ...@@ -5,6 +5,10 @@
5 <a href="http://khuhub.khu.ac.kr/2020105578/nodejs-game/commits/develop"><img alt="build status" src="http://khuhub.khu.ac.kr/2020105578/nodejs-game/badges/develop/build.svg" /></a> 5 <a href="http://khuhub.khu.ac.kr/2020105578/nodejs-game/commits/develop"><img alt="build status" src="http://khuhub.khu.ac.kr/2020105578/nodejs-game/badges/develop/build.svg" /></a>
6 <a href="http://khuhub.khu.ac.kr/2020105578/nodejs-game/commits/develop"><img alt="coverage report" src="http://khuhub.khu.ac.kr/2020105578/nodejs-game/badges/develop/coverage.svg" /></a> 6 <a href="http://khuhub.khu.ac.kr/2020105578/nodejs-game/commits/develop"><img alt="coverage report" src="http://khuhub.khu.ac.kr/2020105578/nodejs-game/badges/develop/coverage.svg" /></a>
7 </p> 7 </p>
8 +![logo](./web/public/logo.png)
9 +
10 +
11 +
8 Typescript로 작성된 오픈소스 그림퀴즈 웹 어플리케이션입니다. 12 Typescript로 작성된 오픈소스 그림퀴즈 웹 어플리케이션입니다.
9 13
10 캐치마인드와 skribbl.io로 대표되는 인기 게임 장르이나, 14 캐치마인드와 skribbl.io로 대표되는 인기 게임 장르이나,
......
...@@ -29,7 +29,7 @@ const Login: React.FC = () => { ...@@ -29,7 +29,7 @@ const Login: React.FC = () => {
29 return ( 29 return (
30 <Main> 30 <Main>
31 <div className="mt-auto flex flex-col items-center"> 31 <div className="mt-auto flex flex-col items-center">
32 - <img className="m-7" src="./logo192.png" alt='logo img' /> 32 + <img className="m-7" src="./logo.png" alt='logo img' />
33 <div> 33 <div>
34 <input type="text" 34 <input type="text"
35 placeholder="Username" 35 placeholder="Username"
......
...@@ -28,7 +28,12 @@ const Rooms: React.FC = () => { ...@@ -28,7 +28,12 @@ const Rooms: React.FC = () => {
28 }); 28 });
29 }, []); 29 }, []);
30 30
31 - useEffect(refreshRooms, []); 31 + useEffect(() => {
32 + // 뒤로가기 키로 빠져나오면 ping listener를 unsubscribe
33 + socket.off('ping');
34 +
35 + refreshRooms();
36 + }, []);
32 37
33 return ( 38 return (
34 <Main> 39 <Main>
...@@ -37,7 +42,11 @@ const Rooms: React.FC = () => { ...@@ -37,7 +42,11 @@ const Rooms: React.FC = () => {
37 <Create /> 42 <Create />
38 </div> 43 </div>
39 <div className='mt-auto w-screen flex flex-col items-center'> 44 <div className='mt-auto w-screen flex flex-col items-center'>
40 - {rooms.map((room) => (<RoomBlock key={room.uuid} room={room} />))} 45 + {
46 + rooms.length > 0 ?
47 + rooms.map((room) => (<RoomBlock key={room.uuid} room={room} />))
48 + : (<div className='text-lg'>There's no room at all.</div>)
49 + }
41 </div> 50 </div>
42 </Main> 51 </Main>
43 ) 52 )
......