Skip to content
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

feat/chaeeun -> weekly9 branch merge (1차) #50

Merged
merged 109 commits into from
Nov 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
109 commits
Select commit Hold shift + click to select a range
06bb8a7
style: 통일성을 위한 styled component 분리
chaeni1105 Oct 22, 2023
ef0ada5
fix: 실행 오류 해결
H-sooyeon Oct 23, 2023
dc6edd6
fix: 프로필 경로 오류 해결
H-sooyeon Oct 23, 2023
a614e79
fix: 라우터 처리 코드 에러 수정
H-sooyeon Oct 23, 2023
b945ff1
fix: 프로필 라이브러리 중복 오류 해결
H-sooyeon Oct 23, 2023
34f5945
update: 폰트 ttf 파일 woff2 파일로 변경
H-sooyeon Oct 23, 2023
d532bc7
chore: 빌드 설정
H-sooyeon Oct 23, 2023
3b9d570
remove: 파일 확장자 변경으로 인한 ttf 삭제
H-sooyeon Oct 23, 2023
1c95f1f
Merge branch 'weekly7' of https://github.com/Step3-kakao-tech-campus/…
H-sooyeon Oct 23, 2023
58b3f80
Merge branch 'weekly7' of https://github.com/Step3-kakao-tech-campus/…
chaeni1105 Oct 23, 2023
aa564f1
chore: 강아지 프로필 이미지
H-sooyeon Oct 23, 2023
7bc5d75
fix: 강아지 이미시 사이즈 추가
H-sooyeon Oct 23, 2023
ccd251c
design: x, y 스크롤 제거
H-sooyeon Oct 23, 2023
fa2d107
update: 스타일 수정
H-sooyeon Oct 23, 2023
4a3d25f
Merge branch 'feat/sooyeon' into weekly7
H-sooyeon Oct 23, 2023
a2a2c41
merge: weekly7 merge
chaeni1105 Oct 29, 2023
19c10a8
Merge branch 'weekly7' of https://github.com/Step3-kakao-tech-campus/…
YANGSEOKWOO Oct 29, 2023
72e5d8b
chore: 멘토님 피드백 수정
YANGSEOKWOO Oct 29, 2023
6bea162
chore : 파일이름변경
YANGSEOKWOO Oct 29, 2023
fcc2737
design : 프로필화면 이미지 크기 고정
YANGSEOKWOO Oct 29, 2023
3288d3e
feat: Profile 업로드 CSS 조정 및 추가
YANGSEOKWOO Oct 29, 2023
e33cf2f
rename: ProfileBottomPost 의 CSS이름 통일
YANGSEOKWOO Oct 29, 2023
144e100
design: Notification Checkbox CSS 변경
YANGSEOKWOO Oct 29, 2023
ca187c1
design: move styled component
YANGSEOKWOO Oct 29, 2023
8d29f54
지원하기 페이지 UI 수정
chaeni1105 Oct 29, 2023
9a5677b
design: 지원하기 페이지 css 수정
chaeni1105 Oct 29, 2023
2731255
feat: 지원 완료 페이지 구현
chaeni1105 Oct 29, 2023
79d009c
feat: 지원 완료 페이지 경로 등록
chaeni1105 Oct 29, 2023
92e6780
feat: 매칭목록 페이지 템플릿 틀 수정
chaeni1105 Oct 29, 2023
1ec2d48
feat: 매칭 목록 출력 구현
chaeni1105 Oct 29, 2023
b21d069
design: 매칭목록 페이지 스타일 지정
chaeni1105 Oct 29, 2023
1cfbaac
feat: build file 추가됨
chaeni1105 Oct 29, 2023
faec334
style: 통일성을 위한 styled component 분리
chaeni1105 Oct 29, 2023
2208f9e
Merge pull request #40 from Step3-kakao-tech-campus/feat/chaeeun
chaeni1105 Oct 29, 2023
f1fa1be
feat: 로그인, 회원가입 api 연결
H-sooyeon Oct 29, 2023
c8d85a1
chore: error boundary 모듈 추가
H-sooyeon Oct 29, 2023
f1436e9
feat: 변경된 api 로직 적용
H-sooyeon Oct 29, 2023
07e061d
fix: msw 의존성 충돌로 인해 이전 코드로 변경
H-sooyeon Oct 29, 2023
2ee9d24
feat: 개발 모드에서만 msw 사용
H-sooyeon Oct 29, 2023
1cda418
design: 세부페이지 수정
YANGSEOKWOO Oct 29, 2023
74a8483
Merge branch 'weekly8' into feat/seokwoo
YANGSEOKWOO Oct 29, 2023
c7a5b1a
Merge pull request #41 from YANGSEOKWOO/feat/seokwoo
YANGSEOKWOO Oct 29, 2023
57bef07
Merge branch 'weekly8' of https://github.com/Step3-kakao-tech-campus/…
H-sooyeon Oct 29, 2023
156e57a
Merge pull request #42 from Step3-kakao-tech-campus/feat/sooyeon
chaeni1105 Oct 29, 2023
6bc92f5
Merge pull request #43 from Step3-kakao-tech-campus/weekly8
chaeni1105 Oct 29, 2023
860a192
feat: 홈 페이지 api 연동 및 무한 스크롤 적용
H-sooyeon Oct 31, 2023
49a9039
refactor: 사용하지 않는 코드 제거
H-sooyeon Oct 31, 2023
bd96516
feat: 공고글 상세 페이지로 이동
H-sooyeon Oct 31, 2023
d1bd571
feat: 회원가입 api 연동
H-sooyeon Oct 31, 2023
0667527
design: 잘못 작성된 스타일 코드 수정
H-sooyeon Oct 31, 2023
00bb92b
update: error boundary 제거
H-sooyeon Oct 31, 2023
1a88c65
feat: 결제하기 post api 연동
H-sooyeon Oct 31, 2023
c7bdf84
feat: submit 페이지 state 전달
H-sooyeon Oct 31, 2023
d2e6a46
design: 채팅방 title margin 줄이기
H-sooyeon Oct 31, 2023
4c68fca
feat: review api 연동
H-sooyeon Oct 31, 2023
0dce66a
chore: dist 파일 update
H-sooyeon Oct 31, 2023
7f02460
design: 채팅방 UI 디자인 오른쪽 쏠림 현상 수정
chaeni1105 Oct 31, 2023
f6260c4
design: ChatListItem.ts
chaeni1105 Oct 31, 2023
02a6491
feat: 매칭목록 UI 수락, 거절버튼 추가
chaeni1105 Oct 31, 2023
0b35270
design: 수락/거절버튼 스타일 지정
chaeni1105 Oct 31, 2023
73c705d
merge: weekly 8주차 머지
chaeni1105 Oct 31, 2023
072e32a
Merge pull request #45 from Step3-kakao-tech-campus/feat/sooyeon
YANGSEOKWOO Oct 31, 2023
2648385
feat: 홈 필터, 검색창 변경시 api 재호출
H-sooyeon Nov 1, 2023
7045131
update: 필터 모달창 닫기 함수 상위 컴포넌트로 이동
H-sooyeon Nov 1, 2023
976322c
feat: 페이지 전환 로딩 시 사용할 로딩 컴포넌트
H-sooyeon Nov 1, 2023
ad52b48
feat: 로딩 시 보여줄 스피너 컴포넌트 출력
H-sooyeon Nov 1, 2023
51dc1b0
comment: 이미지 alt 수정
H-sooyeon Nov 1, 2023
90c3615
feat: form 태그 기본 action 제거
H-sooyeon Nov 1, 2023
85bd41a
update: 로그인 상태 확인
H-sooyeon Nov 1, 2023
7ea6155
feat: 회원가입 후 온보딩 페이지로 이동
H-sooyeon Nov 1, 2023
06ea6dc
fix: 로그인 엔터 클릭 시 화면 전환 안됨 해결
H-sooyeon Nov 1, 2023
0109043
chore: build 파일 업데이트
H-sooyeon Nov 1, 2023
134f2e7
Merge pull request #46 from Step3-kakao-tech-campus/feat/sooyeon
YANGSEOKWOO Nov 1, 2023
2213210
feat: 지원서 조회 화면 경로 설정
chaeni1105 Nov 1, 2023
198fda5
feat: 지원서 조회 페이지 추가
chaeni1105 Nov 1, 2023
3b4edf4
feat: 지원서조회 페이지 컴포넌트 구현
chaeni1105 Nov 1, 2023
3b5c899
design: 지원서 조회 스타일 지정
chaeni1105 Nov 1, 2023
156b24c
채팅 목록 리스트 그림자 스타일 추가
chaeni1105 Nov 1, 2023
0c3279e
design: 채팅목록 페이지 아래쪽 쏠림 현상 수정
chaeni1105 Nov 1, 2023
3853936
feat: 매칭 목록 페이지 상단바 추가
chaeni1105 Nov 1, 2023
b7ece64
design: 채팅목록, 매칭목록 페이지 리스트 출력 위치 수정
chaeni1105 Nov 1, 2023
98dd9c4
feat: 지원서 조회 페이지 데이터 출력 구현
chaeni1105 Nov 1, 2023
c386766
design: 산책현황보기를 산책현황으로 수정 및 색 변경
chaeni1105 Nov 1, 2023
7d8eac4
feat: 채팅방 페이지 수정
chaeni1105 Nov 1, 2023
350f298
feat: 채팅방 페이지 템플릿 틀 수정
chaeni1105 Nov 1, 2023
f3a1b52
feat: 채팅방 상단바 구현
chaeni1105 Nov 1, 2023
ad8d2d9
design: 채팅방 상단바 스타일 지정
chaeni1105 Nov 1, 2023
ae8ec43
design: 채팅방 상단바 스타일 수정
chaeni1105 Nov 2, 2023
1cf4a72
feat: 지원서 작성하기 api 연동하기
chaeni1105 Nov 2, 2023
0115e0a
feat: 채팅방 하단바 구현하기
chaeni1105 Nov 2, 2023
69b8eb1
feat: 매칭리스트 api 연동하기
chaeni1105 Nov 2, 2023
3a2e789
Merge branch 'feat/seokwoo' of https://github.com/Step3-kakao-tech-ca…
chaeni1105 Nov 2, 2023
72f1fc2
feat: 매칭리스트 출력 API 연동 코드 수정
chaeni1105 Nov 2, 2023
e367f34
style: 필요없는 주석 제거
chaeni1105 Nov 2, 2023
90b252c
style: 필요없는 주석 제거
chaeni1105 Nov 2, 2023
58b94dd
comment: 주석 변경
chaeni1105 Nov 2, 2023
685b3fb
style: 스타일 변수명 변경
chaeni1105 Nov 2, 2023
77dad67
feat: 채팅목록 조회 api 연동 구현
chaeni1105 Nov 2, 2023
90f6ccb
feat: 지원서 상세 조회하기 API 연동 구현
chaeni1105 Nov 2, 2023
852022a
feat: 산책 허락하기 API 연동 구현
chaeni1105 Nov 2, 2023
8ce56bc
feat: 산책 허락하기 API 최종 구현 완료
chaeni1105 Nov 3, 2023
4bde079
feat: 정적인 데이터를 state값으로 입력하여 채팅 상단바 구현
chaeni1105 Nov 3, 2023
c269fb3
feat: 지원서 조회 API 수정
chaeni1105 Nov 3, 2023
8f5111b
feat: 채팅방 생성하기 API 연동
chaeni1105 Nov 3, 2023
840a162
comment: 필요없는 주석 제거
chaeni1105 Nov 3, 2023
e7b8b8c
feat: 채팅방 생성하기 API 연동2
chaeni1105 Nov 3, 2023
8d0ed0d
feat: socket연결 튜토리얼 구현
chaeni1105 Nov 3, 2023
5e8bedf
feat: 채팅-연결 API 연동
chaeni1105 Nov 3, 2023
d449316
style: 변경된 파일 수정본
chaeni1105 Nov 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dev-dist/sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ define(['./workbox-5357ef54'], (function (workbox) { 'use strict';
"revision": "3ca0b8505b4bec776b69afdba2768812"
}, {
"url": "index.html",
"revision": "0.7gf6qi9ralg"
"revision": "0.1qemr4h2fp"
}], {});
workbox.cleanupOutdatedCaches();
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
Expand Down
15 changes: 10 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@
"preview": "vite preview"
},
"dependencies": {
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"@mui/material": "^5.14.14",
"@mui/styled-engine-sc": "^6.0.0-alpha.2",
"@emotion/react": "11.11.1",
"@emotion/styled": "11.11.0",
"@mui/material": "5.14.14",
"@mui/styled-engine-sc": "6.0.0-alpha.2",
"@mui/x-date-pickers": "^6.16.3",
"@phosphor-icons/react": "^2.0.13",
"@reduxjs/toolkit": "^1.9.6",
"@stomp/stompjs": "^7.0.0",
"@tanstack/react-query": "^4.35.7",
"@types/sockjs-client": "^1.5.3",
"@types/stompjs": "^2.3.7",
"axios": "^1.5.1",
"dayjs": "^1.11.10",
"eslint-config-prettier": "^9.0.0",
Expand All @@ -26,6 +29,7 @@
"rc-slider": "^10.3.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-error-boundary": "^4.0.11",
"react-icons": "^4.11.0",
"react-intersection-observer": "^9.5.2",
"react-kakao-maps-sdk": "^1.1.21",
Expand All @@ -34,7 +38,8 @@
"react-router-dom": "^6.16.0",
"react-select": "^5.7.7",
"react-window": "^1.8.9",
"swiper": "^10.3.1"
"sockjs-client": "^1.6.1",
"stompjs": "^2.3.3",
"styled-components": "^6.0.8",
"swiper": "^10.3.1",
"vite-plugin-pwa": "^0.16.5"
Expand Down
Binary file added public/images/dog_profile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 22 additions & 21 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,37 +8,38 @@ import ChatList from './pages/ChatList';
import ChatRoom from './pages/ChatRoom';
import MatchList from './pages/MatchList';
import Apply from './pages/Apply';
import ApplyInquiry from './pages/ApplyInquiry';
import Payment from './pages/Payment';
import Review from './pages/Review';
import Submit from './pages/Submit';
import ApplySubmit from './pages/ApplySubmit';
import AuthRoute from './pages/AuthRoute';
import CurrentWalkingMap from './components/organisms/CurrentWalkingMap';
import DetailNotification from './pages/DetailNotificationPage';
import { Map } from './pages/TestPage';

const App = () => {
return (
<Router>
<Routes>
<Route path="/signin" element={<Login />} />
<Route path="/signup" element={<Register />} />
<Route path="/onboard" element={<OnBoarding />} />
<Route path="/" element={<Main />} />
<Route element={<AuthRoute />}>
<Route path="/profile" element={<ProfilePage />} />
<Route path="/chatlist" element={<ChatList />} />
<Route path="/chatroom" element={<ChatRoom />} />
<Route path="/walking" element={<CurrentWalkingMap />} />
<Route path="/matchlist" element={<MatchList />} />
<Route path="/apply" element={<Apply />} />
<Route path="/payments" element={<Payment />} />
<Route path='/review' element={<Review />} />
<Route path="/submit" element={<Submit />} />
<Route path="/test" element={<Map />} />
<Route path="/notification" element={<DetailNotification />} />
</Routes>
</Router>
</>
<Routes>
<Route path="/signin" element={<Login />} />
<Route path="/signup" element={<Register />} />
<Route path="/onboard" element={<OnBoarding />} />
<Route path="/" element={<Main />} />
<Route element={<AuthRoute />} />
<Route path="/profile" element={<ProfilePage />} />
<Route path="/chatlist" element={<ChatList />} />
<Route path="/chatroom" element={<ChatRoom />} />
<Route path="/walking" element={<CurrentWalkingMap />} />
<Route path="/matchlist" element={<MatchList />} />
<Route path="/apply" element={<Apply />} />
<Route path="/applyinquiry" element={<ApplyInquiry />} />
<Route path="/payments" element={<Payment />} />
<Route path="/review" element={<Review />} />
<Route path="/submit" element={<Submit />} />
<Route path="/applysubmit" element={<ApplySubmit />} />
<Route path="/test" element={<Map />} />
<Route path="/notification" element={<DetailNotification />} />
</Routes>
);
};

Expand Down
26 changes: 26 additions & 0 deletions src/apis/apply.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
import { instance } from './index';

export const PostApply = (
memberId: number,
notificationId: number,
aboutMe: string,
certificate: string,
experience: string,
) => {
console.log('api 요청');
return instance.post(`api/application`, {
memberId: memberId,
notificationId: notificationId,
aboutMe: aboutMe,
certificate: certificate,
experience: experience,
});
};

export const GetApply = (memberId: number, applicationId: number) => {
return instance.get(`api/application/${memberId}`);
};

export const GetMatch = (notificationId: number) => {
return instance.get(`api/notification/${notificationId}/match`);
};
22 changes: 22 additions & 0 deletions src/apis/chat.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { instance } from './index';

export const GetChatList = (userId: number) => {
console.log('api 요청 되고 있니?');
return instance.get(`api/chat/list`);
};

export const PostWalk = (userId: number, matchingId: number) => {
console.log('api 요청');
return instance.post(`api/walk/${userId}/${matchingId}`, {
userId: userId,
matchingId: matchingId,
});
};

export const PostChatRoom = (notiMemberId: number, appMemberId: number) => {
console.log('api 요청');
return instance.post(`api/chatroom/create`, {
notiMemberId: notiMemberId,
appMemberId: appMemberId,
});
};
6 changes: 3 additions & 3 deletions src/apis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { getCookie } from '../utils/cookie';
// };

export const instance = axios.create({
baseURL: process.env.VITE_APP_BASE_URL,
baseURL: import.meta.env.VITE_APP_BASE_URL,
timeout: 1000,
headers: {
'Content-Type': 'application/json',
Expand All @@ -32,8 +32,8 @@ export const instance = axios.create({
instance.interceptors.request.use((config) => {
const token = getCookie('user');
if (token) {
const parsedToken = JSON.parse(token).value;
config.headers['Authorization'] = `${parsedToken}`;
// const parsedToken = JSON.parse(token).value;
config.headers['Authorization'] = `${token}`;
}
return config;
});
Expand Down
51 changes: 16 additions & 35 deletions src/apis/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,45 +18,26 @@ type FiltersProps = {
* @returns notification list data
*/
export const fetchNotifications = (
search: string,
debouncedSearch: string,
filters: FiltersProps,
pageParam?: number,
pageParam: number = 0,
lat: number,
lng: number,
) => {
// 필터 처리된 데이터를 불러온다.
const filterUrlTerm = filters.size
.map((size, idx) => {
if (idx === filters.size.length - 1) {
return `size=${size}`;
} else {
return `size=${size}&`;
}
})
.concat(
filters.breed.map((breed, idx) => {
if (idx === filters.breed.length - 1) {
return `breed=${breed}`;
} else {
return `breed=${breed}&`;
}
}),
);
const big = filters.size.join(',');
const breed = filters.breed.join(',');

if (search) {
filterUrlTerm.push(`&word=${search}`);

return instance.get(`/search?${filterUrlTerm}`, {
params: {
nextCursorRequest: pageParam,
word: search,
},
});
} else {
return instance.get(`/home?${filterUrlTerm}`, {
params: {
nextCursorRequest: pageParam,
},
});
}
return instance.get('api/home', {
params: {
key: pageParam || null,
big: big || null,
breed: breed || null,
search: debouncedSearch || null,
latitude: lat,
longitude: lng,
},
});
};

/**
Expand Down
12 changes: 5 additions & 7 deletions src/apis/payment.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { instance } from './index';

const BASE_URL = import.meta.env.VITE_APP_BASE_URL;

export const getPayment = (matchingId: number) => {
return instance.get(`${BASE_URL}/api/payment`, {
params: {
matchingId: matchingId,
},
});
return instance.get(`api/payment/${matchingId}`);
};

export const postPayment = (notificationId: number, walkId: any) => {
return instance.post(`api/payment/${notificationId}/${walkId}`);
};
4 changes: 1 addition & 3 deletions src/apis/review.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ type ReviewProps = {
dogBowl: number;
};

const BASE_URL = import.meta.env.VITE_APP_BASE_URL;

export const PostReview = (info: ReviewProps) => {
return instance.post(`${BASE_URL}api/review`, info);
return instance.post(`api/review`, info);
};
6 changes: 2 additions & 4 deletions src/apis/user.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import { instance } from './index';

const BASE_URL = import.meta.env.VITE_APP_BASE_URL;

export const register = (data: {
email: string;
password: string;
nickname: string;
}) => {
const { email, password, nickname } = data;
return instance.post(`${BASE_URL}/api/member/signup`, {
return instance.post('api/member/signup', {
email: email,
password: password,
nickname: nickname,
Expand All @@ -17,7 +15,7 @@ export const register = (data: {

export const login = (data: { email: string; password: string }) => {
const { email, password } = data;
return instance.post(`${BASE_URL}/api/login`, {
return instance.post('api/member/login', {
email: email,
password: password,
});
Expand Down
13 changes: 13 additions & 0 deletions src/components/atoms/PageLoading.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import * as S from '../../styles/atoms/PageLoading';

const PageLoading = () => {
return (
<S.Container>
<S.ModalWrapper>
<S.Spinner />
</S.ModalWrapper>
</S.Container>
);
};

export default PageLoading;
Loading