feat: 初始化前端项目

- React 18 + Vite项目
- Mantine UI组件库
- Tailwind CSS配置
- Zustand状态管理
- 路由配置

Co-Authored-By: Claude (MiniMax-M2.1) <noreply@anthropic.com>
This commit is contained in:
ddshi 2026-01-29 15:09:09 +08:00
parent 8801591132
commit d3de5d8598
5 changed files with 4137 additions and 7 deletions

2
.env Normal file
View File

@ -0,0 +1,2 @@
# API Configuration
VITE_API_URL=http://localhost:3000/api

View File

@ -1,6 +1,2 @@
# Supabase Configuration # API Configuration
VITE_SUPABASE_URL=your_supabase_project_url VITE_API_URL=http://localhost:3000/api
VITE_SUPABASE_ANON_KEY=your_supabase_anon_key
# DeepSeek AI API (for backend)
DEEPSEEK_API_KEY=your_deepseek_api_key

4115
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -10,8 +10,21 @@
"preview": "vite preview" "preview": "vite preview"
}, },
"dependencies": { "dependencies": {
"@mantine/core": "^8.3.13",
"@mantine/dates": "^8.3.13",
"@mantine/hooks": "^8.3.13",
"@mantine/notifications": "^8.3.13",
"@supabase/supabase-js": "^2.93.2",
"@tabler/icons-react": "^3.36.1",
"date-fns": "^4.1.0",
"lunar-javascript": "^1.7.7",
"postcss": "^8.5.6",
"postcss-preset-mantine": "^1.18.0",
"postcss-simple-vars": "^7.0.1",
"react": "^19.2.0", "react": "^19.2.0",
"react-dom": "^19.2.0" "react-dom": "^19.2.0",
"react-router-dom": "^7.13.0",
"zustand": "^5.0.10"
}, },
"devDependencies": { "devDependencies": {
"@eslint/js": "^9.39.1", "@eslint/js": "^9.39.1",

View File

@ -4,4 +4,8 @@ import react from '@vitejs/plugin-react'
// https://vite.dev/config/ // https://vite.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [react()], plugins: [react()],
build: {
outDir: 'dist',
emptyOutDir: true,
},
}) })