Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
efa39fb
Feature : PRODUCT_IDS, DISCOUNT_RATES 상수 적용
tooth-is-silver Jul 28, 2025
b41e34d
Chore : 테스트코드 화요일 관련 로직 수정
tooth-is-silver Jul 29, 2025
7e3efac
Feature : 함수 리팩토링
tooth-is-silver Jul 29, 2025
000b65e
Feature : 카트 기능 관련 컴포넌트 분리
tooth-is-silver Jul 29, 2025
0906bda
Refactor : 함수명 리팩토링
tooth-is-silver Jul 29, 2025
d37792c
Feature : 상수 파일로 분리
tooth-is-silver Jul 29, 2025
2deafc4
Feature : 상품 데이터 관리 모듈 분리
tooth-is-silver Jul 29, 2025
c98279f
Feature : 할인율 계산 함수 분리
tooth-is-silver Jul 29, 2025
1d85c3b
Feature : 포인트 계산 함수 분리
tooth-is-silver Jul 29, 2025
fd76fb5
Feature : 장바구니 관련 함수 분리
tooth-is-silver Jul 29, 2025
ce2d2bd
Feature : 장바구니 헨들러 분리
tooth-is-silver Jul 29, 2025
26d79de
Feature : 프로모션/세일 로직 분리
tooth-is-silver Jul 29, 2025
cb748a5
Feature : UI 렌더링 로직 분리
tooth-is-silver Jul 29, 2025
2117ca7
Feature : for 반복문 리팩토링
tooth-is-silver Jul 29, 2025
64ecfdc
Feature : CartContext 추가 (리액트 마이그레이션 대비용)
tooth-is-silver Jul 29, 2025
7bdf104
Feature : innerHTML을 리액트 컴포넌트 스타일로 리팩토링
tooth-is-silver Jul 29, 2025
9189e15
Remove : 중복된 컴포넌트 innerHTML 코드 삭제
tooth-is-silver Jul 29, 2025
005805a
Feature : 가독성이 좋도록 코드 리팩토링
tooth-is-silver Jul 29, 2025
4d74a46
Feature : productList 변수명 변경 리팩토링
tooth-is-silver Jul 30, 2025
fa64c06
Feature : react init
tooth-is-silver Jul 30, 2025
7039c7b
Feature : 기본 타입 정의, react context, 커스텀 훅 생성
tooth-is-silver Jul 30, 2025
c5af4ed
Refactor : useDiscount 리팩토링
tooth-is-silver Jul 30, 2025
039dc91
Refactor : 불필요한 컴포넌트 분리 개선
tooth-is-silver Jul 30, 2025
1044855
Refactor : main.basic.js에서 dom요소와 핸들러 분리
tooth-is-silver Jul 30, 2025
f8bafba
Refactor : 변수명 리팩토링
tooth-is-silver Jul 30, 2025
15088bd
Feature : basic 상수 리팩토링 및 적용
tooth-is-silver Jul 31, 2025
e4b3f76
Refactor : 변수 및 코드 정리
tooth-is-silver Jul 31, 2025
0e07dc5
Feature : ui 컴포넌트 분리
tooth-is-silver Jul 31, 2025
cda015c
Refactor : 분리된 컴포넌트 적용
tooth-is-silver Jul 31, 2025
d9ef498
Feature : 핸들러(함수 및 이벤트) 분리
tooth-is-silver Jul 31, 2025
27433bf
Refactor : 핸들러 분리 적용
tooth-is-silver Jul 31, 2025
f5f3b0d
Feature : 리액트 ui 컴포넌트 생성
tooth-is-silver Jul 31, 2025
fe83262
Feature : business 상수 추가
tooth-is-silver Jul 31, 2025
f659123
Feature : business 상수 컴포넌트에 적용
tooth-is-silver Jul 31, 2025
ef5bcf5
Feature : App.tsx에 카드 페이지 적용
tooth-is-silver Jul 31, 2025
da34f6a
Feature : advanced.test.js 테스트코드 추가
tooth-is-silver Jul 31, 2025
4fad30c
Feature : 초기 상품 리스트 상수 추가
tooth-is-silver Jul 31, 2025
ccc1dc6
Refactor: 초기 상품 리스트 상수 적용
tooth-is-silver Jul 31, 2025
c5ba9cb
Refactor : 초기 상품 리스트 리팩토링으로 테스트코드 수정
tooth-is-silver Jul 31, 2025
d3de1e6
Refactor : 추천 세일/번개 세일 로직 수정
tooth-is-silver Jul 31, 2025
c6a49d1
Refactor : 변경된 ui 수정
tooth-is-silver Jul 31, 2025
3c04a08
Remove : 사용하지 않는 코드 삭제
tooth-is-silver Jul 31, 2025
8499362
Feature : select된 product ui 리팩토링
tooth-is-silver Jul 31, 2025
0e23a83
Feature : 클린코드에 맞게 상태와 핸들러 좀 더 분리
tooth-is-silver Jul 31, 2025
d73a31d
Refactor : 네이밍 규칙 적용
tooth-is-silver Jul 31, 2025
0920be5
Remove ; 사용하지 않는 파일 삭제
tooth-is-silver Jul 31, 2025
669a46b
Refactor : 클린코드 규칙 적용하여 main 개선
tooth-is-silver Jul 31, 2025
fb3f1ff
Feature : 전역 컨텍스트추가
tooth-is-silver Jul 31, 2025
acc9c79
Feature : 할인 훅 추가
tooth-is-silver Jul 31, 2025
cea50a3
Feature : 포인트 적립 훅 추가
tooth-is-silver Jul 31, 2025
ddf5704
Feature : 상품 업데이트 관련 훅 추가"
tooth-is-silver Jul 31, 2025
e97cbbd
Feature : 추천 세일/번개 세일 훅 추가"
tooth-is-silver Jul 31, 2025
cc3cb35
Refactor : 컨텍스트,훅 추가로 리팩토링
tooth-is-silver Jul 31, 2025
725bd2f
Refactor : 바뀐 구조로 테스트코드 수정
tooth-is-silver Jul 31, 2025
dee26b1
Fix : order summary 할인율적용안되는부분 수정
tooth-is-silver Jul 31, 2025
73bb863
Refactor : 정상적으로 동작하지 않는 기능 수정
tooth-is-silver Jul 31, 2025
9ed5615
Remove : 불필요한 코드 삭제
tooth-is-silver Jul 31, 2025
bc969d5
Merge branch 'hanghae-plus:main' into main
tooth-is-silver Jul 31, 2025
060fcbd
Feature : vite.config.ts 수정
tooth-is-silver Jul 31, 2025
715120e
Remove : 사용하지 않는 코드 삭제
tooth-is-silver Aug 1, 2025
b3ac008
Fix : ci 오류 해결
tooth-is-silver Aug 1, 2025
2c03391
Chore : PR 리뷰 적용 (PriceDisplayComponent로 분리)
tooth-is-silver Aug 2, 2025
4d6fad1
Chore : PR 리뷰 적용 (삼항 연상자)
tooth-is-silver Aug 2, 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
73 changes: 44 additions & 29 deletions index.advanced.html
Original file line number Diff line number Diff line change
@@ -1,32 +1,47 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hanghae Shopping Cart</title>
<!-- Note: Tailwind CDN is for development only. For production, use PostCSS or Tailwind CLI -->
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: {'sans': ['-apple-system', 'BlinkMacSystemFont', 'Helvetica Neue', 'Arial', 'sans-serif']},
letterSpacing: {
'extra-wide': '0.3em',
'super-wide': '0.25em',
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Hanghae Shopping Cart</title>
<!-- Note: Tailwind CDN is for development only. For production, use PostCSS or Tailwind CLI -->
<script src="https://cdn.tailwindcss.com"></script>
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: {
sans: [
"-apple-system",
"BlinkMacSystemFont",
"Helvetica Neue",
"Arial",
"sans-serif",
],
},
letterSpacing: {
"extra-wide": "0.3em",
"super-wide": "0.25em",
},
fontSize: { "2xs": "0.625rem" },
maxHeight: { 800: "800px" },
backgroundImage: {
"gradient-black": "linear-gradient(135deg, #000 0%, #333 100%)",
},
},
},
fontSize: {'2xs': '0.625rem'},
maxHeight: {'800': '800px'},
backgroundImage: {'gradient-black': 'linear-gradient(135deg, #000 0%, #333 100%)',}
}
}
}
</script>
</head>
<body class="bg-gray-50 text-black antialiased overflow-hidden h-screen text-sm">
<div id="app" class="max-w-screen-xl h-screen max-h-800 mx-auto p-8 flex flex-col">
<!-- Content will be dynamically generated here -->
</div>
<script type="module" src="./src/advanced/main.advanced.js"></script>
</body>
</html>
};
</script>
</head>
<body
class="bg-gray-50 text-black antialiased overflow-hidden h-screen text-sm"
>
<div
id="app"
class="max-w-screen-xl h-screen max-h-1000 mx-auto p-8 flex flex-col"
>
<!-- Content will be dynamically generated here -->
</div>
<script type="module" src="./src/advanced/main.advanced.tsx"></script>
</body>
</html>
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,19 @@
"test:advanced": "vitest advanced.test.js",
"test:ui": "vitest --ui"
},
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/user-event": "^14.6.1",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@vitejs/plugin-react": "^4.3.4",
"@vitest/ui": "^3.2.4",
"jsdom": "^26.1.0",
"typescript": "^5.7.2",
"vite": "^7.0.5",
"vitest": "^3.2.4"
}
Expand Down
Loading