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

[김주동] sprint11 #131

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
93a0e93
chore: 머지 후 브랜치 삭제 github action 추가
withyj-codeit Sep 3, 2023
17be37c
Initial commit from Create Next App
withyj-codeit Sep 8, 2023
7df9c2b
fix: 머지 후 브랜치 삭제 github action 수정
hanseulhee Oct 10, 2023
66f3ba6
env: workflows 폴더로 이동
hanseulhee Oct 10, 2023
3c68d4e
First commit Sprint Mission5 on React
joodongkim Sep 7, 2024
d48b01a
First commit Sprint Mission5 on React (#78)
joodongkim Sep 9, 2024
675f9b0
Sprint mission 6 commit.
joodongkim Sep 12, 2024
20fd6da
Sprint Mission 6 Update 1
joodongkim Sep 12, 2024
6ebe241
update sprint mission 6
joodongkim Sep 14, 2024
e111b83
Merge pull request #1 from joodongkim/React-김주동-sprint6
joodongkim Sep 14, 2024
4bfa053
Sprint mission 6 update commit.
joodongkim Sep 20, 2024
3164f59
Merge branch 'React-김주동' into React-김주동-sprint6
joodongkim Sep 20, 2024
2fdcae3
Apply using Sprint mission 6 update commit.
joodongkim Sep 21, 2024
10b590a
delete .bak files
joodongkim Sep 21, 2024
2032cc0
Update Comments
joodongkim Sep 21, 2024
1437689
modify ItemComment
joodongkim Sep 21, 2024
4f9c678
React 김주동 sprint7 (#97)
joodongkim Sep 23, 2024
0b131e7
Update pull conflict
joodongkim Sep 24, 2024
0c5bb5c
refactoring to typescript
joodongkim Oct 18, 2024
1fe9f12
refactoring to typescript
joodongkim Oct 18, 2024
a5ac8a6
add LoginPage
joodongkim Oct 18, 2024
85b532b
Change to Next-김주동
joodongkim Oct 25, 2024
b7bd99e
First build using upstrem Next-김주동
joodongkim Oct 25, 2024
bee7f20
First commit
joodongkim Oct 25, 2024
a9f37e5
First commit using Next-김주동-sprint9
joodongkim Oct 25, 2024
41f70e7
REFACTOR: styled-components
joodongkim Oct 26, 2024
e4208c1
Merge branch 'Next-김주동' of https://github.com/joodongkim/10-Sprint-Mi…
joodongkim Oct 28, 2024
3312289
change from React.FC<type> to ({}:type)
joodongkim Oct 28, 2024
11218fa
feat: replace interface to type
joodongkim Oct 29, 2024
531f8ea
refactoring for nextjs
joodongkim Oct 29, 2024
35eb2cf
refactor: for nextjs
joodongkim Oct 29, 2024
06d2176
Merge branch 'Next-김주동' into Next-김주동-sprint9
joodongkim Oct 29, 2024
c708ff7
Merge branch 'Next-김주동-sprint9' of https://github.com/joodongkim/10-S…
joodongkim Oct 29, 2024
fe773d5
feat: sprint#10 first commit
joodongkim Nov 2, 2024
fb2af31
review: sprint#10
joodongkim Nov 2, 2024
39bc0b1
prepare for sprint#11
joodongkim Nov 8, 2024
2c3c88d
Merge branch 'Next-김주동' of https://github.com/codeit-bootcamp-fronten…
joodongkim Nov 8, 2024
d048b92
prepare for sprint#11-01
joodongkim Nov 8, 2024
2bedc4b
prepare for sprint#11-02
joodongkim Nov 9, 2024
ac33aef
prepare for sprint#11-03
joodongkim Nov 11, 2024
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
39 changes: 39 additions & 0 deletions api/authApi.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import { LoginFormValues, SignupFormValues } from "../types/authTypes";

export const requestSignup = async (data: SignupFormValues): Promise<any> => {
const response = await fetch(
"https://panda-market-api.vercel.app/auth/signUp",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
Comment on lines +8 to +10
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P3:
header content-type 에 대한 mdn 문서입니다~
전송되는 데이터 타입에 대해 명시해주는 값입니다.

https://developer.mozilla.org/ko/docs/Web/HTTP/Headers/Content-Type

body: JSON.stringify(data),
}
);

if (!response.ok) {
throw new Error("Network response was not ok");
}

return response.json();
};

export const requestLogin = async (data: LoginFormValues): Promise<any> => {
const response = await fetch(
"https://panda-market-api.vercel.app/auth/signIn",
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(data),
}
);

if (!response.ok) {
throw new Error("Network response was not ok");
}

return response.json();
};
157 changes: 0 additions & 157 deletions components/board/BestArticlesSection.tsx.bak

This file was deleted.

2 changes: 1 addition & 1 deletion components/layout/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ const Header: React.FC = () => {
</nav>
</HeaderLeft>

<LoginLink href="/login">로그인</LoginLink>
<LoginLink href="/auth/login">로그인</LoginLink>
</GlobalHeader>
);
};
Expand Down
92 changes: 0 additions & 92 deletions components/layout/Header.tsx.bak

This file was deleted.

79 changes: 0 additions & 79 deletions components/ui/DropdownMenu.tsx.bak

This file was deleted.

Loading
Loading