useTrafficChart composable replaces the duplicated chart code in Analytics and HistoryModal; theme observer is released on unmount; blob URLs are revoked. ConfirmModal gets a unique id; confirm() in Server/PKI and SweetAlert2 in Account are replaced by ConfirmModal and toasts, sweetalert2 and sass removed. Separate authApiClient for /api/auth. 404 redirect, lazy Clients, token-based isAuthenticated, theme from prefers-color-scheme set before mount. BaseModal reactive size, NewClientModal name check and focus on opened, HistoryModal ignores stale answers. Login.vue.bak, the dead global axios interceptor and empty <p> removed. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
OpenVPN Dashboard UI (APP_UI)
A Single Page Application (SPA) built with Vue 3 and Vite. It serves as the unified dashboard for monitoring and management.
Project Structure
src/views/: Page components (Dashboard, Login, Profiles, etc.).src/components/: Reusable widgets (Charts, Sidebar).src/stores/: Pinia state management (Auth, Client Data).
Configuration
Runtime configuration is loaded from /config.json (in public/) to allow environment-independent builds.
Development
npm install
npm run dev
# Access at http://localhost:5173
Documentation
See DOCS/UI/Architecture.md for detailed architecture notes.