-
Notifications
You must be signed in to change notification settings - Fork 4
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]: 관리자 페이지, 관리자 상세 페이지, 공고 작성 페이지 #63
Merged
rktdnjs
merged 18 commits into
Step3-kakao-tech-campus:weekly-8
from
baegyeong:feature/admin-page
Oct 29, 2023
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
26a5423
[fix]: staticServerUri 추가
baegyeong 7654529
[conf]: 배포 준비
baegyeong 439f5a2
Merge branch 'master' of https://github.com/baegyeong/Team12_FE into …
baegyeong af052d1
Merge branch 'develop' of https://github.com/Step3-kakao-tech-campus/…
baegyeong e590164
[fix]: switch문을 IIFE로 변경
baegyeong 095408f
[fix]: alert 관련 함수 utils로 이동
baegyeong fb79718
[style]: margin-left 변경
baegyeong c12c3c1
[feat]: admin 라우터 및 페이지 설정
baegyeong 0abcc4e
[conf]: eslint 조건 수정
baegyeong c342c9c
[feat]: msw 라이브러리 설치 및 세팅
baegyeong 60195f2
[conf]: 서버 환경에 따라 동적 import 지정
baegyeong 5bc5573
[conf]: mock data 파일 생성
baegyeong b420b0d
[feat]: handlers 역할에 따라 분리
baegyeong c59c074
[feat]: 학생증 인증 상세 페이지 라우터 지정
baegyeong 174ba59
[feat]: 관리자 페이지 구현
baegyeong db8412b
[feat]: 관리자 학생증 인증 상세 페이지 구현
baegyeong 7da8dbe
[conf]: 배포 관련 파일 제외
baegyeong fdacf5d
Merge branch 'weekly-8' into feature/admin-page
rktdnjs 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 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { http, HttpResponse } from 'msw'; | ||
import REQUEST_LIST from './mockData'; | ||
|
||
const handlers = [ | ||
http.get('/admin', () => { | ||
return HttpResponse.json(REQUEST_LIST); | ||
}), | ||
]; | ||
|
||
export default handlers; |
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,26 @@ | ||
const REQUEST_LIST = { | ||
success: true, | ||
response: { | ||
user: [ | ||
{ | ||
user_id: 1, | ||
nickname: '홍길동', | ||
}, | ||
{ | ||
user_id: 2, | ||
nickname: '홍길동', | ||
}, | ||
{ | ||
user_id: 3, | ||
nickname: '홍길동', | ||
}, | ||
{ | ||
user_id: 4, | ||
nickname: '홍길동', | ||
}, | ||
], | ||
}, | ||
error: null, | ||
}; | ||
|
||
export default REQUEST_LIST; |
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,5 @@ | ||
import { setupWorker } from 'msw/browser'; | ||
import handlers from './handlers'; | ||
|
||
const worker = setupWorker(...handlers); | ||
export default worker; |
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.
MSW를 사용하기 위한 구문인가 보네요! 제가 사용하게 된다면 아마 별도로
.env
파일에REACT_APP__NODE_ENV = "development"
를 넣어줘야 하겠네요!!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.
저 이거 할 때
.env
파일 따로 안건드렸어요! 별도로 효원님께서 설정해주셔야 되는 건 설치말고는 없을 거에요!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.
아하!!! 알겠습니다😄😄👍