-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
187 changed files
with
6,621 additions
and
1,294 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
on: | ||
pull_request: | ||
types: closed | ||
|
||
jobs: | ||
check_pr_merged: | ||
if: github.event.pull_request.merged == true | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Check PR Merged | ||
id: check_pr_merged | ||
uses: actions/github-script@v7 | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
script: | | ||
const prUrl = context.payload.pull_request.html_url ?? context.payload.pull_request._links.html.href; | ||
core.setOutput('pullRequestLink', JSON.stringify(prUrl)); | ||
- name: Send Slack Trigger | ||
run: | | ||
curl -X POST https://api-slack.internal.bcsdlab.com/api/pr-merged/frontend \ | ||
-H 'Content-Type: application/json' \ | ||
-d '{ | ||
"pullRequestLink": ${{ steps.check_pr_merged.outputs.pullRequestLink }} | ||
}' |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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,9 +1,9 @@ | ||
import { accessClient } from 'api'; | ||
import { StoreCategory } from 'model/category/storeCategory'; | ||
import { ShopCategory } from 'model/category/shopCategory'; | ||
|
||
const getShopCategory = async () => { | ||
const { data } = await accessClient.get<StoreCategory>('/shops/categories'); | ||
return StoreCategory.parse(data); | ||
const { data } = await accessClient.get<ShopCategory>('/shops/categories'); | ||
return ShopCategory.parse(data); | ||
}; | ||
|
||
export default getShopCategory; |
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,20 @@ | ||
import { accessClient } from 'api'; | ||
import { CoopResponse, DiningImages, SoldOut } from 'model/Coop'; | ||
|
||
export const getDining = async (date: string) => { | ||
const { data } = await accessClient.get(`/dinings?date=${date}`); | ||
return data; | ||
}; | ||
|
||
export const uploadDiningImage = async (data: DiningImages) => { | ||
await accessClient.patch<DiningImages>('/coop/dining/image', data); | ||
}; | ||
|
||
export const updateSoldOut = async (data: SoldOut) => { | ||
await accessClient.patch<SoldOut>('/coop/dining/soldout', data); | ||
}; | ||
|
||
export const getCoopInfo = async () => { | ||
const { data } = await accessClient.get<CoopResponse>('/user/coop/me'); | ||
return CoopResponse.parse(data); | ||
}; |
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
14 changes: 14 additions & 0 deletions
14
src/api/uploadFile/Uploadfile.ts → src/api/uploadFile/index.ts
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,9 +1,23 @@ | ||
import { accessClient } from 'api'; | ||
|
||
interface File { | ||
content_length: number; | ||
content_type: string; | ||
file_name: string; | ||
} | ||
|
||
export interface FileResponse { | ||
pre_signed_url: string; | ||
file_url: string; | ||
expiration_date: string; | ||
} | ||
|
||
export const uploadFile = (formData: FormData) => accessClient.post('/OWNERS/upload/file', formData, { | ||
headers: { 'Content-Type': 'multipart/form-data' }, | ||
}).catch((error) => Promise.reject(error)); | ||
|
||
export const uploadFiles = (formData: FormData) => accessClient.post('/OWNERS/upload/files', formData, { | ||
headers: { 'Content-Type': 'multipart/form-data' }, | ||
}); | ||
|
||
export const getCoopUrl = (fileName: File) => accessClient.post<FileResponse>('/coop/upload/url', fileName); |
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.