-
Notifications
You must be signed in to change notification settings - Fork 0
셔틀버스, 등하교버스, 생협 업데이트 페이지 추가 #113
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
Merged
Merged
Changes from all commits
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
84de53b
chore: 버스와 생협에서 사용하는 svg 추가
kang-s-h 8dcf0f7
chore: assets 경로 규칙 설정
kang-s-h 6a4a830
feat: 셔틀버스, 등하교버스, 생협 Route 추가
kang-s-h b455653
feat: 사이드바에 셔틀버스,등하교버스,생협 추가
kang-s-h d4b890d
feat: 공통 버스 드롭다운 컴포넌트 추가
kang-s-h 389cb98
feat: 엑셀 다운로드 공통 컴포넌트 추가
kang-s-h 3c18af5
feat: 엑셀 파일 선택 공통 컴포넌트 추가
kang-s-h 4c3d20a
feat: 엑셀 업로드 공통 컴포넌트 추가
kang-s-h f2cab70
feat: bus model 추가
kang-s-h 1eceb27
feat: coopshop model 추가
kang-s-h 2732f8b
feat: 등하교버스 업데이트 컴포넌트 추가
kang-s-h 25a81ac
feat: 등하교 버스 mutation 추가
kang-s-h 3d76945
feat: 등하교 버스 preview 컴포넌트 추가
kang-s-h 8101897
feat: 생협 업데이트 컴포넌트 추가
kang-s-h 0b24c60
feat: 생협 mutation 추가
kang-s-h 114f3d3
feat: 생협 업데이트 preview 컴포넌트 추가
kang-s-h cf76f8a
feat: 생협 업데이트 드롭다운 컴포넌트 추가
kang-s-h f88c52b
feat: 셔틀버스 업데이트 컴포넌트 추가
kang-s-h b3c78ec
feat: 셔틀버스 mutation 추가
kang-s-h a8e5675
feat: 셔틀버스 업데이트 preview 컴포넌트 추가
kang-s-h f037d28
feat: 업데이트 페이지 스타일 추가
kang-s-h 4fa56d3
feat: 생협 Queries 추가
kang-s-h bef5886
feat: 등하교버스 api 추가
kang-s-h d98dff4
feat: 생협 api 추가
kang-s-h 7b8f3c4
feat: 셔틀버스 api 추가
kang-s-h b800e79
refactor: coopShop으로 케이스 수정
kang-s-h 2adbd7a
refactor: 버스 svg 이름 수정
kang-s-h 814385e
fix: 오타 수정
kang-s-h 0049407
refactor: dropdown 수정
kang-s-h 864412c
refactor: 불필요한 파일 삭제
kang-s-h 19e0d6c
feat: excel 파일 제한 추가
kang-s-h 46615b1
refactor: 엑셀 관련 파일 위치 변경
kang-s-h fba49f2
fix: console 제거
kang-s-h 9ffaee1
refactor: mutation error 수정
kang-s-h ba3da67
style: 타입 순서 수정
kang-s-h 16bb9c9
style: 타입 순서 수정
kang-s-h ff13bd2
refactor: height 수정
kang-s-h 7fb6eb4
style: css 파일 공백 정리
kang-s-h 95f3e80
refactor: css 기본값 제거
kang-s-h 9af13dc
refactor: 파일 이름 수정
kang-s-h edafb17
refactor: excel URL 상수화
kang-s-h 9dc070c
refactor: css 파일 정리
kang-s-h 34c9dc3
refactor: semester 타입 수정 및 Update css 파일 수정
kang-s-h 5b589a7
refactor: useBooleanState으로 수정
kang-s-h 0efe95c
fix: lint 에러 수정
kang-s-h 68b49fc
fix: lint 에러 수정
kang-s-h dc094f1
fix: lint 에러 수정
kang-s-h 8bc8614
fix: lint 에러 수정
kang-s-h 310f670
refactor: Route 수정
kang-s-h 3da6ac3
refactor: AxiosError 추가
kang-s-h 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 hidden or 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 hidden or 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,23 @@ | ||
| import accessClient from 'api'; | ||
| import type { CommutingBusRouteInfoResponse, Semester } from 'model/bus.model'; | ||
|
|
||
| export const postCommutingBusTimetable = async (body : FormData) => { | ||
| const response = await accessClient.post<CommutingBusRouteInfoResponse>( | ||
| 'admin/bus/commuting/timetable/excel', | ||
| body, | ||
| { | ||
| headers: { | ||
| 'Content-Type': 'multipart/form-data', | ||
| }, | ||
| }, | ||
| ); | ||
| return response.data; | ||
| }; | ||
|
|
||
| export const putCommutingBusTimetable = async ( | ||
| body: CommutingBusRouteInfoResponse, | ||
| semesterType: Semester, | ||
| ) => { | ||
| const response = await accessClient.put(`admin/bus/commuting/timetable?semester_type=${semesterType}`, body); | ||
| return response.data; | ||
| }; |
This file contains hidden or 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,32 @@ | ||
| import accessClient from 'api'; | ||
| import type { | ||
| CoopShopSemesterListResponse, CoopShopSemesterData, CoopShopResponse, | ||
| } from 'model/coopShop.model'; | ||
|
|
||
| export const getCoopShopSemesterList = async () => { | ||
| const response = await accessClient.get<CoopShopSemesterListResponse[]>('admin/coopshop/semesters'); | ||
| return response.data; | ||
| }; | ||
|
|
||
| export const postCoopShopSemesterList = async (body:CoopShopSemesterData) => { | ||
| const response = await accessClient.post('admin/coopshop/semesters', body); | ||
| return response.data; | ||
| }; | ||
|
|
||
| export const postCoopShopTimetable = async (body: FormData) => { | ||
| const response = await accessClient.post<CoopShopResponse>( | ||
| 'admin/coopshop/timetable/excel', | ||
| body, | ||
| { | ||
| headers: { | ||
| 'Content-Type': 'multipart/form-data', | ||
| }, | ||
| }, | ||
| ); | ||
| return response.data; | ||
| }; | ||
|
|
||
| export const putCoopShopTimetable = async (body : CoopShopResponse, id: number) => { | ||
| const response = await accessClient.put(`admin/coopshop/timetable/${id}`, body); | ||
| return response.data; | ||
| }; |
This file contains hidden or 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 hidden or 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,23 @@ | ||
| import accessClient from 'api'; | ||
| import type { Semester, ShuttleBusRouteInfoResponse } from 'model/bus.model'; | ||
|
|
||
| export const postShuttleBusTimetable = async (body : FormData) => { | ||
| const response = await accessClient.post<ShuttleBusRouteInfoResponse>( | ||
| 'admin/bus/shuttle/timetable/excel', | ||
| body, | ||
| { | ||
| headers: { | ||
| 'Content-Type': 'multipart/form-data', | ||
| }, | ||
| }, | ||
| ); | ||
| return response.data; | ||
| }; | ||
|
|
||
| export const putShuttleBusTimetable = async ( | ||
| semesterType: Semester, | ||
| body: ShuttleBusRouteInfoResponse, | ||
| ) => { | ||
| const response = await accessClient.put(`admin/bus/shuttle/timetable?semester_type=${semesterType}`, body); | ||
| return response.data; | ||
| }; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.
Uh oh!
There was an error while loading. Please reload this page.