Skip to content

Frontend Architecture ​

Overview ​

The frontend is built with React 18 + TypeScript + Ant Design 5.x, providing a single-page application (SPA) that communicates with the backend via the REST API.

Tech Stack ​

TechnologyVersionPurpose
React18.xUI framework
TypeScript5.xType safety
Vite5.xBuild tool
Ant Design5.xUI component library
React Router6.xRouting
Zustand4.xState management
TanStack Query5.xServer state management
Axios1.xHTTP client

Routes ​

/                → Redirect to /files
/login           → Login page
/dashboard       → Dashboard
/files           → File management (default space)
/files/:spaceId  → File management (specific space)
/devices         → Device management
/shares          → Share management
/admin           → Admin panel
/share/:key      → Public share page (no auth)

State Management ​

Uses Zustand for global state with stores for auth, file state, and UI preferences (sidebar, dark mode).

API Layer ​

Uses Axios with interceptors for automatic JWT token injection and 401 redirect handling.

Apache License 2.0