Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
d77fb84
과제 제출을 위한 빈 커밋 날리기
kimfriendship Dec 2, 2025
fcd6fd5
feat: types 파일 만들기
kimfriendship Dec 2, 2025
1009b69
refactor: Header 분리
kimfriendship Dec 2, 2025
580778c
refactor: AdminPage 분리
kimfriendship Dec 2, 2025
1029b91
refactor: CartPage 분리
kimfriendship Dec 2, 2025
32486e2
refactor: 초기데이터 분리
kimfriendship Dec 2, 2025
c9dc994
refactor: Notification 분리
kimfriendship Dec 2, 2025
9a092d9
refactor: pages 디렉토리로 페이지 컴포넌트 이동
kimfriendship Dec 2, 2025
3be40a7
refactor: ProductCard 분리
kimfriendship Dec 2, 2025
a01b038
refactor: 공통 컴포넌트는 ui 폴더로 네이밍 수정
kimfriendship Dec 2, 2025
73c553f
refactor: cart icon 분리
kimfriendship Dec 2, 2025
4a4bb42
refactor: image icon 분리
kimfriendship Dec 2, 2025
87a96a3
refactor: ProductList 분리
kimfriendship Dec 2, 2025
4f6f12e
refactor: 파일명 및 디렉토리 구조 수정
kimfriendship Dec 2, 2025
fb652e2
refactor: CartItemRow 분리
kimfriendship Dec 2, 2025
43adca4
refactor: cart, coupon, payment section 분리
kimfriendship Dec 2, 2025
f340483
refactor: ProductCreateForm, ProductTable 분리
kimfriendship Dec 2, 2025
2ad3ef9
refactor: ProductDashboard 분리
kimfriendship Dec 2, 2025
ffd462d
refactor: coupon 컴포넌트들 분리
kimfriendship Dec 2, 2025
8f7aaaa
refactor: trash, plus 아이콘 분리
kimfriendship Dec 2, 2025
9d41e30
refactor: widgets 디렉토리로 정리
kimfriendship Dec 2, 2025
ba7ea03
refactor: useCart 훅으로 분리
kimfriendship Dec 3, 2025
f7091b4
refactor: useProduct 훅으로 분리
kimfriendship Dec 3, 2025
26d0ab6
refactor: coupon form 관련 로직 분리
kimfriendship Dec 3, 2025
4bd142c
refactor: product form 관련 로직 분리
kimfriendship Dec 3, 2025
f6e80a4
refactor: useCoupon 훅으로 분리
kimfriendship Dec 3, 2025
bd45037
refactor: header 분리 및 아이콘 정리
kimfriendship Dec 3, 2025
14c069d
refactor: search 로직 useProduct로 이동
kimfriendship Dec 3, 2025
7910fd6
refactor: 계산 로직 분리
kimfriendship Dec 3, 2025
62ff435
refactor: 불필요한 컴포넌트 분리 삭제
kimfriendship Dec 3, 2025
6abe963
refactor: 디렉토리 구조 수정
kimfriendship Dec 3, 2025
7bb4d95
refactor: formatPrice 재정의
kimfriendship Dec 3, 2025
8800e35
refactor: CartPage 리팩토링
kimfriendship Dec 3, 2025
a28c220
refactor: 유틸함수들 정리
kimfriendship Dec 4, 2025
7605a14
refactor: useDebounce 훅 추가
kimfriendship Dec 4, 2025
1b8a05a
refactor: useLocalStorage 훅 추가
kimfriendship Dec 4, 2025
57b8f65
refactor: notify 정리
kimfriendship Dec 4, 2025
bdabaac
refactor: useToast 적용
kimfriendship Dec 4, 2025
f0c3535
test: test코드에 toast provider 추가
kimfriendship Dec 4, 2025
d91d4ee
feat: 배포 설정
kimfriendship Dec 4, 2025
4e301e7
feat: basic 폴더 살리기
kimfriendship Dec 4, 2025
17bfbfe
refactor: jotai 적용
kimfriendship Dec 5, 2025
38246fa
refactor: handlePurchase 위치 이동
kimfriendship Dec 5, 2025
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
68 changes: 68 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main
paths:
- "src/advanced/**"
- "index.advanced.html"
- "vite.config.ts"
- ".github/workflows/deploy.yml"
workflow_dispatch:

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: true

jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2
with:
version: latest

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Build
run: pnpm run build
env:
NODE_ENV: production
VITE_BASE_PATH: /${{ github.event.repository.name }}/

# [추가된 핵심 로직]
# 빌드된 dist 폴더 안의 index.advanced.html을 index.html로 이름 변경
# 이렇게 하면 GitHub Pages가 index.html을 찾을 수 있게 됩니다.
- name: Rename entry file for GitHub Pages
run: mv dist/index.advanced.html dist/index.html

- name: Setup Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0"
},
"dependencies": {
"jotai": "^2.15.2",
"react": "^19.1.1",
"react-dom": "^19.1.1"
},
Expand Down
26 changes: 26 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading