Skip to content

Commit 7536332

Browse files
committed
feat: 배포를 위한 tsignore 설정:
1 parent 4b45b2d commit 7536332

21 files changed

+4746
-4856
lines changed

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"@reduxjs/toolkit": "^1.9.6",
2020
"@tanstack/react-query": "^4.35.7",
2121
"@types/react-window": "^1.8.8",
22-
"@types/sockjs-client": "^1.5.4",
2322
"@types/ws": "^8.5.9",
2423
"axios": "^1.5.1",
2524
"dayjs": "^1.11.10",

src/App.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ import { AnimatePresence } from 'framer-motion';
2121
import './styles/templates/animation.css';
2222
import RouteTransition from './components/templates/RouteTransition';
2323
import NotFound from './pages/NotFound';
24-
import { Suspense } from 'react';
25-
import PageLoading from './components/atoms/PageLoading';
26-
import SkeletonList from './components/organisms/SkeletonList';
27-
import { Spinner } from './styles/atoms/PageLoading';
2824

2925
const App = () => {
3026
const location = useLocation();

src/components/molecules/ApplyItem.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ type ListItemProps = {
1010
notificationId: number;
1111
memberImage: string;
1212
aboutMe: string;
13-
certificate: string;
13+
certification: string;
1414
experience: string;
1515
};
1616
};
@@ -23,7 +23,7 @@ const ApplyItem = ({ apply }: ListItemProps) => {
2323
notificationId,
2424
memberImage,
2525
aboutMe,
26-
certificate,
26+
certification,
2727
experience,
2828
} = apply;
2929

@@ -60,7 +60,7 @@ const ApplyItem = ({ apply }: ListItemProps) => {
6060

6161
<S.ApplyWrapper>
6262
<S.ApplyTitle>자격증</S.ApplyTitle>
63-
{certificatie}
63+
{certification}
6464
</S.ApplyWrapper>
6565
<S.border></S.border>
6666
<S.ApplyWrapper>

src/components/molecules/ChatRoomBannerItem.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { PostWalk } from '../../apis/chat';
22
import * as S from '../../styles/molecules/ChatRoomBannerItem';
33
import Image from '../atoms/Image';
4-
import { useLocation, useNavigate } from 'react-router-dom';
4+
import { useNavigate } from 'react-router-dom';
55
import { useEffect, useState } from 'react';
6-
import { Dog } from '@phosphor-icons/react';
6+
77
import BackBar from './BackBar';
88
import { walkingStatus } from '../../apis/walking';
99

@@ -74,7 +74,7 @@ const ChatRoomBannerItem = ({ userinfo }: ChatRoomBannerProps) => {
7474
};
7575
const walkAck = () => {
7676
PostWalk(userinfo.userId, userinfo.matchingId)
77-
.then((response) => {
77+
.then((_response) => {
7878
// console.log('응답', response);
7979
setStatus('READY');
8080
// setStatus(response.response.status);

src/components/molecules/KakaoMap.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const KakaoMap = ({ user, matchingId }: Props) => {
8282
};
8383
// 사용자의 이동 위치가 변할 때마다 서버에 post 요청
8484
locationSave(locate, {
85-
onSuccess: (res) => {},
85+
onSuccess: (_res) => {},
8686
onError: (error: any) => {
8787
alert(error.data.error.message);
8888
navigate(-1);

src/components/molecules/MatchListItem.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const MatchListItem = ({ apply }: ListItemProps) => {
3636
// console.log('matchId', matchId);
3737
// 채팅방을 생성한다.
3838
PostChatRoom(notiMemberId, member.appMemberId, matchId) //나중에 고치기
39-
.then((response) => {
39+
.then((_response) => {
4040
// console.log('채팅방 생성 완료!', response);
4141
navigate('/chatlist');
4242
})

src/components/molecules/ProfileBanner.tsx

+2-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ import Image from '../atoms/Image';
33
import { useNavigate } from 'react-router-dom';
44
import { useCallback, useState } from 'react';
55
import LogoutModal from './LogoutModal';
6-
type OwnerProp = {
7-
isOwner?: boolean;
8-
};
9-
const ProfileBanner = ({ isOwner }: OwnerProp) => {
6+
7+
const ProfileBanner = () => {
108
const navigate = useNavigate();
119
const [isOpenModal, setOpenModal] = useState<boolean>(false);
1210

src/components/organisms/ApplyBox.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as S from '../../styles/organisms/ApplyBox';
2-
import React, { useCallback, useEffect, useState } from 'react';
2+
import React, { useEffect, useState } from 'react';
33
import { useNavigate } from 'react-router-dom';
44
import { GetApplyUser, PostApply } from '../../apis/apply';
55
import * as T from '../../styles/organisms/WriteNotification';

src/components/organisms/Chat.tsx

+86-86
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,96 @@
1-
import { useEffect, useState } from 'react';
2-
import SockJS from 'sockjs-client/dist/sockjs';
3-
import '../../../public/chat.css';
1+
// import { useEffect, useState } from 'react';
2+
// import SockJS from 'sockjs-client/dist/sockjs';
3+
// import '../../../public/chat.css';
44

5-
const ChatComponent = () => {
6-
const [username, _setUsername] = useState('');
7-
const [stompClient, setStompClient] = useState(null);
8-
const [messages, setMessages] = useState<ChatMessage[]>([]);
9-
const [messageInput, setMessageInput] = useState('');
5+
// const ChatComponent = () => {
6+
// const [username, _setUsername] = useState('');
7+
// const [stompClient, setStompClient] = useState(null);
8+
// const [messages, setMessages] = useState<ChatMessage[]>([]);
9+
// const [messageInput, setMessageInput] = useState('');
1010

11-
interface ChatMessage {
12-
chatContent: string;
13-
memberId: number;
14-
messageType: string;
15-
}
11+
// interface ChatMessage {
12+
// chatContent: string;
13+
// memberId: number;
14+
// messageType: string;
15+
// }
1616

17-
useEffect(() => {
18-
// WebSocket connection
19-
const socket = new SockJS(
20-
'http://port-0-team17-be-12fhqa2llo9i5lfp.sel5.cloudtype.app/api/connect',
21-
);
22-
const stomp = Stomp.over(socket);
17+
// useEffect(() => {
18+
// // WebSocket connection
19+
// const socket = new SockJS(
20+
// 'http://port-0-team17-be-12fhqa2llo9i5lfp.sel5.cloudtype.app/api/connect',
21+
// );
22+
// const stomp = Stomp.over(socket);
2323

24-
stomp.connect({}, () => {
25-
setStompClient(stomp);
26-
stomp.subscribe('/api/topic/chat-sub/1', () => onMessageReceived);
27-
});
28-
}, []);
24+
// stomp.connect({}, () => {
25+
// setStompClient(stomp);
26+
// stomp.subscribe('/api/topic/chat-sub/1', () => onMessageReceived);
27+
// });
28+
// }, []);
2929

30-
const _onConnected = () => {
31-
// Your code for handling connection
32-
};
30+
// // const _onConnected = () => {
31+
// // // Your code for handling connection
32+
// // };
3333

34-
const _onError = (error: any) => {
35-
// Your error handling code
36-
};
34+
// // const _onError = (error: any) => {
35+
// // // Your error handling code
36+
// // };
3737

38-
const onMessageReceived = (payload: any) => {
39-
// console.log('3. stomp 구독 완료');
40-
const message: ChatMessage = JSON.parse(payload.body);
41-
// console.log('messagee', message);
42-
setMessages((prevMessages) => [...prevMessages, message]);
43-
};
38+
// const onMessageReceived = (payload: any) => {
39+
// // console.log('3. stomp 구독 완료');
40+
// const message: ChatMessage = JSON.parse(payload.body);
41+
// // console.log('messagee', message);
42+
// setMessages((prevMessages) => [...prevMessages, message]);
43+
// };
4444

45-
const sendMessage = (event: any) => {
46-
event.preventDefault();
47-
const messageContent = messageInput.trim();
48-
if (messageContent && stompClient) {
49-
const chatMessage = {
50-
chatContent: messageContent,
51-
memberId: 1,
52-
messageType: 'CHAT',
53-
};
54-
stompClient.send('/api/app/1', {}, JSON.stringify(chatMessage));
55-
setMessageInput('');
56-
}
57-
};
45+
// const sendMessage = (event: any) => {
46+
// event.preventDefault();
47+
// const messageContent = messageInput.trim();
48+
// if (messageContent && stompClient) {
49+
// const chatMessage = {
50+
// chatContent: messageContent,
51+
// memberId: 1,
52+
// messageType: 'CHAT',
53+
// };
54+
// stompClient.send('/api/app/1', {}, JSON.stringify(chatMessage));
55+
// setMessageInput('');
56+
// }
57+
// };
5858

59-
return (
60-
<div id="chat-page">
61-
<div className="chat-container">
62-
<div className="chat-header">
63-
<h2>채팅 기능 통합 테스트</h2>
64-
</div>
65-
<div className="connecting">연결중...</div>
66-
<ul id="messageArea">
67-
{messages?.map((message, index) => (
68-
<li key={index} className="chat-message">
69-
{message.chatContent}
70-
</li>
71-
))}
72-
</ul>
73-
<form id="messageForm" name="messageForm" onSubmit={sendMessage}>
74-
<div className="form-group">
75-
<div className="input-group clearfix">
76-
<input
77-
type="text"
78-
id="message"
79-
placeholder="Type a message..."
80-
autoComplete="off"
81-
className="form-control"
82-
value={messageInput}
83-
onChange={(e) => setMessageInput(e.target.value)}
84-
/>
85-
<button type="submit" className="primary">
86-
전송
87-
</button>
88-
</div>
89-
</div>
90-
</form>
91-
</div>
92-
</div>
93-
);
94-
};
59+
// return (
60+
// <div id="chat-page">
61+
// <div className="chat-container">
62+
// <div className="chat-header">
63+
// <h2>채팅 기능 통합 테스트</h2>
64+
// </div>
65+
// <div className="connecting">연결중...</div>
66+
// <ul id="messageArea">
67+
// {messages?.map((message, index) => (
68+
// <li key={index} className="chat-message">
69+
// {message.chatContent}
70+
// </li>
71+
// ))}
72+
// </ul>
73+
// <form id="messageForm" name="messageForm" onSubmit={sendMessage}>
74+
// <div className="form-group">
75+
// <div className="input-group clearfix">
76+
// <input
77+
// type="text"
78+
// id="message"
79+
// placeholder="Type a message..."
80+
// autoComplete="off"
81+
// className="form-control"
82+
// value={messageInput}
83+
// onChange={(e) => setMessageInput(e.target.value)}
84+
// />
85+
// <button type="submit" className="primary">
86+
// 전송
87+
// </button>
88+
// </div>
89+
// </div>
90+
// </form>
91+
// </div>
92+
// </div>
93+
// );
94+
// };
9595

96-
export default ChatComponent;
96+
// export default ChatComponent;

src/components/organisms/ChatContentList.tsx

+4-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import ChatContentListItem from '../molecules/ChatContentListItem';
2-
import { useLocation } from 'react-router-dom';
32
import { useEffect, useState } from 'react';
43
import Spinner from '../atoms/Spinner';
54
import { GetChatContent } from '../../apis/chat';
@@ -12,7 +11,6 @@ interface ChatContent {
1211
}
1312

1413
const ChatContentList = (roomId: number) => {
15-
const { state } = useLocation();
1614
// 현재 채팅방 룸아이디 출력
1715
// console.log('state', state.userinfo.chatRoomId);
1816
const [ChatContentlist, setChatContentList] = useState([]);
@@ -29,14 +27,14 @@ const ChatContentList = (roomId: number) => {
2927
if (error.message === 'refresh') {
3028
GetChatContent(roomId)
3129
.then((response) => {
32-
console.log('ChatContent Get요청 api 연동 확인용 log', response);
30+
// console.log('ChatContent Get요청 api 연동 확인용 log', response);
3331
setChatContentList(response.data.response);
3432
})
35-
.catch((error) => {
36-
console.log('에러', error);
33+
.catch((_error) => {
34+
// console.log('에러', error);
3735
});
3836
} else {
39-
console.log('에러', error);
37+
// console.log('에러', error);
4038
}
4139
});
4240
}, []);

src/components/organisms/ChatList.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,18 @@ const ChatList = () => {
1818
useEffect(() => {
1919
GetChatList()
2020
.then((response) => {
21-
console.log('chatlist', response);
21+
// console.log('chatlist', response);
2222
setChatList(response.data.response);
2323
})
2424
.catch((error) => {
2525
if (error.message === 'refresh') {
2626
GetChatList()
2727
.then((response) => {
28-
console.log('chatlist', response);
28+
// console.log('chatlist', response);
2929
setChatList(response.data.response);
3030
})
3131
.catch((error) => {
32-
console.log('에러', error);
32+
// console.log('에러', error);
3333
});
3434
} else {
3535
}

src/components/organisms/ChatRoomBanner.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useLocation } from 'react-router-dom';
44

55
const ChatRoomBanner = () => {
66
const { state } = useLocation();
7-
console.log('state', state);
7+
// console.log('state', state);
88

99
return (
1010
<S.Container>

src/components/organisms/CurrentWalkingMap.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ const CurrentWalkingMap = () => {
194194
onError: (error: any) => {
195195
if (error.message === 'refresh') {
196196
mutateWalkingStart(matchingId, {
197-
onSuccess: (res) => {
197+
onSuccess: (_res) => {
198198
alert('산책을 시작합니다!');
199199
setWalkStatus(WalkStatus.ACTIVATE);
200200
// 알바생이 산책 시작 버튼을 클릭하면 알바생 위치를 웹 워커를 통해 실시간 업데이트

src/components/organisms/WriteNotification.tsx

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
import * as S from '../../styles/organisms/WriteNotification';
22
import DogProfile from './DogProfile';
3-
import {
4-
MapPin,
5-
CaretCircleRight,
6-
Plus,
7-
CaretLeft,
8-
} from '@phosphor-icons/react';
3+
import { MapPin, CaretCircleRight, Plus } from '@phosphor-icons/react';
94
import { useState, useCallback, useEffect } from 'react';
105
import DogSelectModal from '../molecules/DogSelectModal';
116
import DateModal from '../molecules/DateModal';

0 commit comments

Comments
 (0)