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:
@@ -0,0 +1,8 @@
|
||||
---
|
||||
status: accepted
|
||||
---
|
||||
|
||||
# 浏览器通过同源路径访问后端 API
|
||||
|
||||
浏览器统一使用 `/api/v1`,开发环境由 Vite 代理,生产前端容器由 Nginx 代理到可配置的后端地址。该方案以代理配置换取无 CORS 的稳定浏览器契约,并避免把后端地址编译进静态前端产物;后端仍可独立部署。
|
||||
|
||||
Reference in New Issue
Block a user