feat: add Gitea configuration page and state management

- Implemented GiteaConfigPage for managing Gitea API settings.
- Created Zustand store for Gitea configuration with local storage persistence.
- Added validation schema for Gitea configuration using Zod.
- Established routes for Gitea configuration in the application.
This commit is contained in:
2026-02-19 23:04:31 +08:00
parent 1884e87421
commit f9fd2a67b4
17 changed files with 977 additions and 4205 deletions

View File

@@ -45,4 +45,11 @@ pages/page-app/
- **react-hook-form**: 表单处理
- **sonner**: Toast 通知
- **zustand**: 状态管理
- **tailwindcss v4**: 使用 @tailwindcss/vite 插件进行样式处理
- **tailwindcss v4**: 使用 @tailwindcss/vite 插件进行样式处理
## 主题系统
- **主题配色**: 采用黑白配色方案,提供简洁优雅的视觉体验
- **主题模式**: 支持 light浅色和 dark深色模式切换
- **主题实现**: 使用 `next-themes` 进行主题管理
- **CSS 变量**: 主题相关的 CSS 变量定义在 `src/styles/theme.css`