Clients UI: show several sessions of one user

- API: /api/v1/stats returns sessions_count and sessions per client
- UI: badge "xN", "N devices", expandable session list, Active Sessions KPI
- deploy/ui-dist rebuilt, docs: plan, summary, API reference, UI architecture

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ayurishchevandClaude Sonnet 5.5 committed 2026-11-12 18:49:40 +03:00
1 parent 4815821f17
commit 1bbf9b7cc1
24 files changed
+229 -19

No files matched your search

+1 -1
View File
@@ -23,7 +23,7 @@ The frontend is a Single Page Application (SPA) built with **Vue 3** and **Vite*
| Route | View | Purpose |
|---|---|---|
| `/` | `Analytics.vue` | traffic charts |
| `/clients`, `/certificates` | `Clients.vue`, `Certificates.vue` | connected clients, issued profiles |
| `/clients`, `/certificates` | `Clients.vue`, `Certificates.vue` | connected clients (badge "×N" and a list of sessions when a user is connected from several devices), issued profiles |
| `/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) |