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

release: v0.1.0 배포 #126

Merged
merged 50 commits into from
Nov 18, 2023
Merged
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
2ec921c
Feat/16 (#23)
kutta97 Nov 1, 2023
7da9943
feat: Label, LabelText 공통 컴포넌트 (#27)
DongjaJ Nov 2, 2023
03fb14b
feat: 공용 레이아웃 컴포넌트 추가 (#29)
kutta97 Nov 3, 2023
863f37e
feat(ui): profileInfo 컴포넌트 제작
Eosdia Nov 3, 2023
4b2f773
fix : vercel 배포 링크에서 라우팅 오류 해결 (#36)
DongjaJ Nov 3, 2023
d328a6b
fix(ui): props 변수명 변경, infoTexts 활용
Eosdia Nov 3, 2023
f9daaa6
chore: 이슈 템플릿 내용 주석처리
sukvvon Nov 3, 2023
d7a5f9a
chore: 이슈 템플릿에 설정된 레이블 제거
sukvvon Nov 3, 2023
8a3e621
feat: BottomNavBar 컴포넌트 개발 (#34)
kutta97 Nov 3, 2023
5f7dc89
design(ui): 이미지크기 변경
Eosdia Nov 3, 2023
b4eb204
feat: InfoTextList, InfoTextItem 컴포넌트 추가 및 DateText 컴포넌트 제거 (#38)
sukvvon Nov 3, 2023
a2da367
Merge pull request #31 from Anifriends/feat/22
Eosdia Nov 3, 2023
a699d61
chore: packages의 ui를 shared로 변경, library 버전 통일, router 타입 추가 (#39)
sukvvon Nov 5, 2023
13ce14e
feat(shared): axios Interceptor 추가 (#40)
DongjaJ Nov 5, 2023
3cd8b10
fix(shared): 단위를 %에서 rem, calc를 활용하여 변경 (#42)
sukvvon Nov 5, 2023
845c56d
feat: ApplicantStatus 컴포넌트 개발 (#44)
kutta97 Nov 7, 2023
482d1e0
fix: 공통 레이아웃 컴포넌트 margin 버그 수정 및 리팩토링 (#48)
kutta97 Nov 7, 2023
a4750df
feat(shared): ImageCarousel 컴포넌트 추가 (#55)
sukvvon Nov 7, 2023
7c8f658
feat : ReviewItem 컴포넌트 (#51)
DongjaJ Nov 8, 2023
6cc7128
feat: 공통 header 기능 개발 및 layout 컴포넌트 리팩토링 (#54)
kutta97 Nov 8, 2023
5e26275
feat: EditPhotoList, EditPhotoItem 컴포넌트 추가 (#52)
sukvvon Nov 8, 2023
4114d77
feat: api 함수 부분적으로 추가 (#46)
DongjaJ Nov 8, 2023
0cc6702
feat: SettingGroup & SettingItem 컴포넌트 개발 (#49)
Eosdia Nov 8, 2023
b2829d3
feat: InfoTextItem 컴포넌트 리팩토링 및 InfoItem 컴포넌트를 통한 확장성 개선 (#59)
kutta97 Nov 8, 2023
8fd157e
feat: Pretendard 폰트 추가, Provider 위치 통일 및 추가 (#68)
sukvvon Nov 10, 2023
d26d42f
feat: 보호소앱과 봉사자앱의 로그인 페이지의 UI, useToggle 훅 추가 (#66)
sukvvon Nov 10, 2023
8ffb93c
feat: 봉사자 어플 msw 연결 + 봉사자, 보호소 앱에 로그인, 이메일 중복체크 mock api 추가 (#77)
DongjaJ Nov 11, 2023
636f81b
feat: 보호소 앱 마이페이지 UI 개발 (#62)
kutta97 Nov 11, 2023
3d1a46c
feat: 봉사 리뷰 페이지 ui (#64)
DongjaJ Nov 11, 2023
9b1193c
feat: 봉사 모집글 리스트 페이지 ui (#74)
DongjaJ Nov 11, 2023
5b6e38d
refactor: Signin 페이지 svg 파일 컴포넌트로 변환, useToggle initialState false로 변…
sukvvon Nov 11, 2023
4d0ab97
feat(shared): api 수정 및 추가 (#60)
DongjaJ Nov 11, 2023
37adb87
chore: 이슈 템플릿에 존재하는 오타 제거 및 공백 추가
sukvvon Nov 12, 2023
4126324
hotfix: api 함수 에러 해결 (#83)
DongjaJ Nov 13, 2023
128a991
bug: 공통 레이아웃 컴포넌트 UI 깨짐 현상 수정 (#86)
kutta97 Nov 13, 2023
f906135
feat: 보호소앱과 봉사자앱의 회원가입 페이지의 UI, useRadioGroup 훅, RadioGroup 컴포넌트 추가 (…
sukvvon Nov 13, 2023
2521697
Refactor : shared에 있는 api들에서 공통 api들을 제외하고 각 apps의 api로 이동 (#87)
DongjaJ Nov 13, 2023
eb5088a
design(shared): 공통 레이아웃 컴포넌트의 margin bottom 제거 (#95)
kutta97 Nov 13, 2023
af2c666
feat(shelter): 봉사 모집 게시글 페이지 UI 및 Filter hook 개발 (#96)
kutta97 Nov 14, 2023
def3bc1
feat(shelter): 보호소 마이페이지 msw 연결 (#97)
kutta97 Nov 14, 2023
af65cb4
feat: 보호소앱과 봉사자앱의 로그인 페이지의 로직 추가 (#100)
sukvvon Nov 14, 2023
1eda42d
feat: 보호소앱과 봉사자앱의 회원가입 페이지의 로직 추가 (#99)
sukvvon Nov 14, 2023
b773892
feat(shelter): 무한 스크롤 훅 추가 (#91)
DongjaJ Nov 14, 2023
da36a7e
Feat : 봉사자 모집 리스트 페이지 로직 추가 및 msw 연결 (#104)
DongjaJ Nov 14, 2023
d4fa5a2
feat: 보호소 봉사모집 상세페에지 UI 및 버튼 로직 구현 (#105)
Eosdia Nov 14, 2023
579ec90
feat: 보호소 리뷰 페이지에 api 연결 및 로직 추가 (#108)
DongjaJ Nov 15, 2023
a8a4546
feat: 보호소앱, 봉사자앱의 auth(signin, signup) api, api 관련 type, msw handler …
sukvvon Nov 15, 2023
127dc57
feat: Pretendard에서 IBM Plex Sans으로 기본 폰트 변경 (#116)
sukvvon Nov 16, 2023
5122d13
refactor: auth 관련 타입 상수명 개선 및 tanstack react query 사용으로 인한 auth api 내…
sukvvon Nov 16, 2023
f5f123f
feat(shelter, volunteer): SigninPage 컴포넌트 msw 관련 로직 추가 (#119)
sukvvon Nov 16, 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
Prev Previous commit
Next Next commit
feat(shared): axios Interceptor 추가 (#40)
DongjaJ authored Nov 5, 2023
commit 13ce14e32e9db915beb678a605495302f37331fa
72 changes: 72 additions & 0 deletions packages/shared/api/axiosInstance.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import axios, {
AxiosInstance,
AxiosRequestConfig,
AxiosResponse,
InternalAxiosRequestConfig,
} from 'axios';

import { BASE_URL } from '@/constants/baseURL';

import {
onErrorRequest,
onErrorResponse,
onRequest,
onResponse,
} from './axiosInterceptor';

type interceptors = {
onRequest: (config: InternalAxiosRequestConfig) => InternalAxiosRequestConfig;
onErrorRequest: (error: Error) => void | Promise<never>;
onResponse: (response: AxiosResponse) => AxiosResponse;
onErrorResponse: (error: Error) => void | Promise<never>;
};

class AxiosService {
private static instance: AxiosService;

private constructor(private axiosInstance: AxiosInstance) {}

public static getInstance({
onRequest,
onErrorRequest,
onResponse,
onErrorResponse,
}: interceptors): AxiosService {
if (!AxiosService.instance) {
const axiosInstance = axios.create({ baseURL: BASE_URL });
axiosInstance.interceptors.request.use(onRequest, onErrorRequest);
axiosInstance.interceptors.response.use(onResponse, onErrorResponse);
this.instance = new AxiosService(axiosInstance);
}
return this.instance;
}

public get<Response, Request>(
url: string,
config: AxiosRequestConfig<Request>,
) {
return this.axiosInstance.get<Response>(url, config);
}

public post<Response, Request>(url: string, data: Request) {
return this.axiosInstance.post<Response>(url, data);
}

public delete<Response, Request>(
url: string,
config: AxiosRequestConfig<Request>,
) {
return this.axiosInstance.delete<Response>(url, config);
}

public patch<Response, Request>(url: string, data: Request) {
return this.axiosInstance.patch<Response>(url, data);
}
}

export default AxiosService.getInstance({
onRequest,
onErrorRequest,
onResponse,
onErrorResponse,
});
22 changes: 22 additions & 0 deletions packages/shared/api/axiosInterceptor.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { AxiosResponse, InternalAxiosRequestConfig } from 'axios';

export const onRequest = (config: InternalAxiosRequestConfig) => {
return config;
};

export const onErrorRequest = (error: Error) => {
return Promise.reject(error);
};
export const onResponse = (response: AxiosResponse) => {
return response.data;
};
export const onErrorResponse = (error: Error) => {
return Promise.reject(error);
};

export default {
onRequest,
onErrorRequest,
onResponse,
onErrorResponse,
};
1 change: 1 addition & 0 deletions packages/shared/constants/baseURL.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const BASE_URL = '/example';
1 change: 1 addition & 0 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -11,6 +11,7 @@
"@chakra-ui/react": "^2.8.1",
"@emotion/react": "^11.11.1",
"@emotion/styled": "^11.11.0",
"axios": "^1.6.0",
"framer-motion": "^10.16.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.