feat: initialize zhixing-web with React, React Router, and Tailwind CSS

- Set up the main application structure with App component and routing.
- Implemented global state management for UI theme using Zustand.
- Created API utilities for fetching system status.
- Developed system status page with responsive design and theme toggle.
- Added testing setup with Vitest and initial tests for system status page.
- Configured TypeScript with appropriate settings for the application.
- Integrated Tailwind CSS for styling and responsive design.
- Established Vite configuration for development and testing environments.
This commit is contained in:
yuxuanhui
2026-08-03 13:47:24 +08:00
commit 844d8416bd
61 changed files with 4694 additions and 0 deletions
@@ -0,0 +1,8 @@
---
status: accepted
---
# 浏览器通过同源路径访问后端 API
浏览器统一使用 `/api/v1`,开发环境由 Vite 代理,生产前端容器由 Nginx 代理到可配置的后端地址。该方案以代理配置换取无 CORS 的稳定浏览器契约,并避免把后端地址编译进静态前端产物;后端仍可独立部署。