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
+50
View File
@@ -0,0 +1,50 @@
[project]
name = "zhixing-server"
version = "0.1.0"
description = "FastAPI backend and quantitative processing foundation for Zhixing System"
readme = "README.md"
requires-python = ">=3.12,<3.13"
dependencies = [
"fastapi>=0.141.1",
"pydantic-settings>=2.14.2",
"uvicorn[standard]>=0.52.1",
]
[dependency-groups]
dev = [
"httpx2>=2.9.1",
"pyright>=1.1.411",
"pytest>=9.1.1",
"pytest-cov>=7.1.0",
"ruff>=0.16.1",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/zhixing_server"]
[tool.pytest.ini_options]
addopts = "-ra --strict-config --strict-markers"
pythonpath = ["src"]
testpaths = ["tests"]
[tool.pyright]
include = ["src", "tests"]
pythonVersion = "3.12"
typeCheckingMode = "strict"
venvPath = "."
venv = ".venv"
[tool.ruff]
line-length = 100
target-version = "py312"
[tool.ruff.lint]
select = ["B", "E", "F", "I", "SIM", "UP"]
[tool.ruff.format]
quote-style = "double"