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
Executable
+38
View File
@@ -0,0 +1,38 @@
#!/usr/bin/env bash
set -euo pipefail
PROJECT_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
COMPOSE_FILE="${PROJECT_ROOT}/docker-compose.dev.yml"
usage() {
printf 'Usage: %s {up|down|logs|check|test}\n' "$0"
}
command="${1:-}"
case "${command}" in
up)
docker compose --file "${COMPOSE_FILE}" up --build --remove-orphans
;;
down)
docker compose --file "${COMPOSE_FILE}" down --remove-orphans
;;
logs)
docker compose --file "${COMPOSE_FILE}" logs --follow
;;
check)
uv run --directory "${PROJECT_ROOT}/zhixing-server" ruff format --check .
uv run --directory "${PROJECT_ROOT}/zhixing-server" ruff check .
uv run --directory "${PROJECT_ROOT}/zhixing-server" pyright
pnpm --dir "${PROJECT_ROOT}/zhixing-web" check
;;
test)
uv run --directory "${PROJECT_ROOT}/zhixing-server" pytest
pnpm --dir "${PROJECT_ROOT}/zhixing-web" test
;;
*)
usage
exit 1
;;
esac