-
Notifications
You must be signed in to change notification settings - Fork 44
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
[김은재] Week14 #459
Merged
choinashil
merged 7 commits into
codeit-bootcamp-frontend:part3-김은재
from
rladmswo1715:part3-김은재-week14
May 22, 2024
The head ref may contain hidden characters: "part3-\uAE40\uC740\uC7AC-week14"
Merged
[김은재] Week14 #459
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
a76a857
13주차 피드백 반영
rladmswo1715 fd665c6
feat: Layout 적용/미적용 분리
rladmswo1715 812d2c0
feat: signin/signup 퍼블리싱
rladmswo1715 627cfbb
feat: signIn 페이지 구현
rladmswo1715 52fa5cf
feat: signUp 페이지 구현 / token검증 리다이렉트
rladmswo1715 7317cf8
feat: 헤더 User정보 가져오기 / fix: run build 에러 수정
rladmswo1715 7234158
배포 테스트를 위한 커밋
rladmswo1715 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import { BASE_URL } from "@/constants/url"; | ||
|
||
const POST_HEADER = { | ||
"Content-Type": "application/json", | ||
}; | ||
|
||
interface SignUserData { | ||
email: string; | ||
password: string; | ||
} | ||
|
||
export const getSignInProfile = async (userToken: string) => { | ||
let result = null; | ||
|
||
try { | ||
const response = await fetch(`${BASE_URL}/api/users`, { | ||
headers: { | ||
Authorization: `Bearer ${userToken}`, | ||
}, | ||
}); | ||
if (!response.ok) { | ||
throw new Error(`${response.status}`); | ||
} | ||
|
||
result = await response.json(); | ||
} catch (error) { | ||
if (error instanceof Error) alert(`${error.message}에러 발생!`); | ||
} | ||
|
||
return result; | ||
}; | ||
|
||
export const postSign = async (apiUrl: string, userData: SignUserData) => { | ||
let result = null; | ||
|
||
try { | ||
const response = await fetch(`${BASE_URL}/api/${apiUrl}`, { | ||
method: "POST", | ||
headers: POST_HEADER, | ||
body: JSON.stringify(userData), | ||
}); | ||
if (!response.ok && response.status !== 400) { | ||
throw new Error(`${response.status}`); | ||
} | ||
|
||
result = await response.json(); | ||
} catch (error) { | ||
if (error instanceof Error) alert(`${error.message}에러 발생!`); | ||
} | ||
|
||
return result; | ||
}; | ||
|
||
export const postCheckEmail = async (email: string) => { | ||
let result = null; | ||
|
||
try { | ||
const response = await fetch(`${BASE_URL}/api/check-email`, { | ||
method: "POST", | ||
headers: POST_HEADER, | ||
body: JSON.stringify({ email: email }), | ||
}); | ||
if (!response.ok && response.status !== 409) { | ||
throw new Error(`${response.status}`); | ||
} | ||
|
||
result = await response.json(); | ||
} catch (error) { | ||
if (error instanceof Error) alert(`${error.message}에러 발생!`); | ||
} | ||
|
||
return result; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
import styled from 'styled-components'; | ||
import styled from "styled-components"; | ||
|
||
export const KebabList = styled.ul` | ||
position: absolute; | ||
top: 16px; | ||
right: 16px; | ||
box-shadow: 0px 2px 8px 0px #3332361A; | ||
background-color: #FFFFFF; | ||
` | ||
position: absolute; | ||
top: 16px; | ||
right: 16px; | ||
box-shadow: 0px 2px 8px 0px #3332361a; | ||
background-color: #ffffff; | ||
`; | ||
|
||
export const KebabListItem = styled.li` | ||
padding: 7px 12px; | ||
text-align: center; | ||
font-size: 14px; | ||
font-weight: 400; | ||
line-height: 16.71px; | ||
&:hover { | ||
color: #6D6AFE; | ||
background-color: #E7EFFB; | ||
} | ||
` | ||
padding: 7px 12px; | ||
text-align: center; | ||
font-size: 14px; | ||
font-weight: 400; | ||
line-height: 16.71px; | ||
&:hover { | ||
color: #6d6afe; | ||
background-color: #e7effb; | ||
} | ||
`; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,11 @@ | ||
import Button from "@/components/common/Button"; | ||
|
||
const FolderDeleteContent = () => { | ||
return <Button type="folderDelete_modal">삭제하기</Button>; | ||
return ( | ||
<Button btnType="button" type="folderDelete_modal"> | ||
삭제하기 | ||
</Button> | ||
); | ||
}; | ||
|
||
export default FolderDeleteContent; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ref 를 여기서 전달하는건 어떤 목적이에요??