Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
19 changes: 6 additions & 13 deletions .github/workflows/sync-to-fork.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Sync Fork With Upstream
name: Sync Fork With forked repo
on:
push:
branches:
Expand All @@ -7,32 +7,25 @@ on:

jobs:
sync:
if: github.repository == 'BrainPix-front'
name: Sync forked repo
runs-on: ubuntu-latest

steps:
- name: Checkout develop
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{secrets.PAT_TOKEN}}
ref: develop
persition-credentials: false

- name: Set up Git
- name: Add remote-url
run: |
git remote add forked-repo https://minjeong9919:${{ secrets.PAT_TOKEN }}@github.com/minjeong9919/BrainPix-front
git config user.name minejeong9919
git config user.email "[email protected]"

- name: Add remote-url
run: |
git remote add forked-repo https://github.com/minjeong9919/BrainPix-front.git

- name: Push changes to Forked-reop
env:
GITHUB_USERNAME: minjeong9919
GITHUB_TOKEN: ${{secrets.PAT_TOKEN}}
run: |
git push -f http://$GITHUB_USERNAME:$GITHUB_TOKEN@https://github.com/minjeong9919/BrainPix-front.git develop
git push -f https://github.com/BrainPix/BrainPix-front develop

- name: Clean up
run: |
Expand Down
6 changes: 3 additions & 3 deletions src/utils/auth.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
export const parseJwt = (token: string) => {
try {
const base64Url = token.split('.')[1]; // JWT의 Payload
const base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/'); // Base64 URL Safe 복원
const base64Url = token.split('.')[1];
const base64 = base64Url.replace(/-/g, '+').replace(/_/g, '/');
const jsonPayload = decodeURIComponent(
atob(base64)
.split('')
.map((c) => `%${('00' + c.charCodeAt(0).toString(16)).slice(-2)}`)
.join(''),
);
return JSON.parse(jsonPayload); // JSON 객체로 변환
return JSON.parse(jsonPayload);
} catch {
throw Error();
}
Expand Down
Empty file removed src/utils/formatSpecialization.ts
Empty file.
Empty file removed src/utils/imageLoader.ts
Empty file.