feat: loading overlay on dashboard, RDP pooled session routing fix

- dashboard.html: overlay div moved before <script> so getElementById works;
  double rAF ensures browser paints spinner before navigation
- main.py: pooled_rdp route fix — session_status now returns /svc/<slug>/
  route and redirect_url for POOL: RDP sessions (was always ready instantly)
- docker-compose.yml: parametrise env vars via .env for easier tuning

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-27 19:07:55 +00:00
parent 419b495020
commit 6f17193312
4 changed files with 68 additions and 19 deletions
+2 -1
View File
@@ -107,7 +107,8 @@ cat > /opt/portal/index.html <<HTML
connected = true;
reconnectAttempts = 0;
clearTimeout(reconnectTimer);
hideStatus();
showStatus('Устанавливается соединение с рабочим столом...');
setTimeout(hideStatus, 6000);
});
rfb.addEventListener('disconnect', () => {
connected = false;