- **Theme Support**: Light/Dark mode toggling; the first visit follows the system setting (`prefers-color-scheme`), the choice is saved. The theme is applied before the app is mounted.
- **Authentication**: JWT-based auth flow with support for 2FA. The token is kept in `localStorage` (accepted risk, see [Security Architecture](../General/Security_Architecture.md)). A `401` from the monitoring or profiler API ends the session and opens `/login`; `401` from `/api/auth/*` (wrong current password or 2FA code) does not: it is shown as an error. Unknown addresses redirect to `/`.
- **Confirmations and notices**: destructive actions ask through `ConfirmModal` (each instance has a unique id); results are toasts (`useToast`). The native `confirm()` and SweetAlert2 are not used.
- **Charts**: `composables/useTrafficChart.js` (downsampling, labels, theme colors, Chart.js config) is shared by Analytics and the client history window.
| `/config/pki`, `/config/vpn` | `PKIConfig.vue`, `VPNConfig.vue` | PKI and server settings |
| `/server` | `ServerManagement.vue` | OpenVPN process control |
| `/backup` | `BackupRestore.vue` | **Backup and Restore** (MANAGEMENT section): destinations table with an add/edit modal (the form is built from the `fields` of `GET /backup/settings`: text, number, switch, password and multi-line secret fields; a field may carry a warning, for example plain FTP or a disabled certificate check; types with a pinned host key (SFTP) show it, and **Test** opens a confirmation with the fingerprint and a Trust button), backup panel (encryption status, **server name** field with the name actually used, destination checkboxes, progress per destination, history), restore panel (source, package list with the server name and the time in UTC and in the browser's local time, passphrase, red Restore button with a confirmation). It polls `GET /backup/status` every 2 s while a job runs. See [Backup and Restore](../Profiler_Management/Backup_Restore.md) |
`APP_UI/default.conf.template` (also used by the all-in-one image) sends `X-Content-Type-Options`, `X-Frame-Options: DENY`, `Referrer-Policy: no-referrer` and a CSP (`default-src 'self'`, inline styles allowed, `img-src`/`font-src` with `data:`, `connect-src 'self'`), compresses text files, serves `/assets/` with `immutable` caching and `index.html`/`config.json` with `no-cache`. If `config.json` points to another origin, add it to `connect-src`. The system-service nginx (`deploy/native/nginx`) has its own headers.