Commit Graph

5 Commits

Author SHA1 Message Date
17bbb92da1 fix: 修复 navigation.tsx 中的 TypeScript 类型错误
Some checks failed
Deploy Frontend / deploy (push) Failing after 2m58s
- 修正 handleTabClick 函数的参数类型定义
- 将 icon 属性改为 href 属性以匹配实际的 navItems 数据结构
- 现在类型检查可以正常通过
2025-07-09 09:22:29 +08:00
0e9d9b9010 fix: 修复 ESLint 配置和代码检查错误
Some checks failed
Deploy Frontend / deploy (push) Failing after 1m39s
- 安装 ESLint 和 eslint-config-next 依赖
- 创建 .eslintrc.json 配置文件,使用 Next.js 严格模式
- 修复 TypeScript 代码中的类型错误:
  - 移除 any 类型,使用具体的类型定义
  - 修复未使用的函数参数和变量
  - 优化组件类型定义
- 现在 CI/CD 可以成功通过 lint 检查
2025-07-09 09:10:11 +08:00
55932ee587 feat: improve hydration handling and add dependencies
- Add hydration state check to PhotoGallery component to prevent SSR/client mismatch
- Update bun.lock with Express and CORS dependencies for mock API
- Add placeholder image for better development experience
2025-07-08 17:39:12 +08:00
8c5c9a5f8e fix: resolve hydration mismatch error and improve project setup
- Fix React hydration mismatch in ThemeProvider with mounted state check
- Update layout.tsx to use light theme by default instead of system
- Optimize photo filtering with useMemo in page.tsx
- Add Express mock API for development
- Update CLAUDE.md with comprehensive project documentation
- Create backend/ and admin/ directories for future development
2025-07-08 17:34:16 +08:00
3d197eb7e3 feat: setup frontend project with bun and dynamic data fetching
- Create new frontend project directory with Next.js 15 + React 19
- Migrate from pnpm to bun for faster package management
- Add TanStack Query + Axios for dynamic data fetching
- Create comprehensive Makefile with development commands
- Setup API layer with query hooks and error handling
- Configure environment variables and bun settings
- Add TypeScript type checking and project documentation
- Update CLAUDE.md with bun-specific development workflow
2025-07-08 15:28:26 +08:00