fix: CSS variables neu-*, WebSocket token, thème initial
- CSS: remplace var(--bg-*)/var(--text-*)/var(--accent-*)/var(--color-*)
par les vraies variables --neu-* (neu-bg, neu-surface, neu-text, neu-primary…)
- CSS: supprime body{overflow:hidden} qui bloquait le scroll
- CSS: .auth-layout déplacé dans neu.css pour login/install
- WS: ajoute ?token= aux connexions /ws/proxmox (dashboardPage + proxmoxPage)
- HTML: script inline pour appliquer data-theme avant Alpine (évite FOUC)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
2098c80ec1
commit
562eff8863
10 changed files with 142 additions and 133 deletions
|
|
@ -1,6 +1,7 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<script>(function(){document.documentElement.setAttribute("data-theme",localStorage.getItem("pxp_theme")||"dark")})()</script>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>ProxmoxPanel — Proxmox</title>
|
||||
|
|
@ -49,9 +50,9 @@
|
|||
|
||||
<div class="ws-status" :class="wsStatus">
|
||||
<span x-show="wsStatus==='connecting'">⌛ Connexion WebSocket…</span>
|
||||
<span x-show="wsStatus==='ok'" style="color:var(--color-success)">● Live</span>
|
||||
<span x-show="wsStatus==='disconnected'" style="color:var(--color-warning)">⚠ Reconnexion…</span>
|
||||
<span x-show="wsStatus==='error'" style="color:var(--color-error)">✗ Erreur WebSocket</span>
|
||||
<span x-show="wsStatus==='ok'" style="color:var(--neu-success)">● Live</span>
|
||||
<span x-show="wsStatus==='disconnected'" style="color:var(--neu-warning)">⚠ Reconnexion…</span>
|
||||
<span x-show="wsStatus==='error'" style="color:var(--neu-danger)">✗ Erreur WebSocket</span>
|
||||
</div>
|
||||
|
||||
<!-- LXC -->
|
||||
|
|
@ -140,19 +141,19 @@
|
|||
.resource-header{display:flex;align-items:center;gap:.5rem;margin-bottom:.75rem}
|
||||
.resource-name{font-weight:600;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
||||
.badge{font-size:.7rem;padding:.2rem .5rem;border-radius:.25rem;text-transform:uppercase;font-weight:600}
|
||||
.badge.running{background:rgba(34,197,94,.15);color:var(--color-success,#22c55e)}
|
||||
.badge.stopped{background:rgba(239,68,68,.1);color:var(--color-error,#ef4444)}
|
||||
.badge.running{background:rgba(34,197,94,.15);color:var(--neu-success)}
|
||||
.badge.stopped{background:rgba(239,68,68,.1);color:var(--neu-danger)}
|
||||
.resource-metrics{margin-bottom:.75rem}
|
||||
.metric{display:flex;align-items:center;gap:.5rem;margin-bottom:.4rem}
|
||||
.metric-label{font-size:.7rem;color:var(--text-secondary);min-width:30px}
|
||||
.metric-bar{flex:1;height:6px;border-radius:3px;background:var(--bg-secondary);overflow:hidden}
|
||||
.metric-fill{height:100%;border-radius:3px;background:var(--accent-primary);transition:width .5s}
|
||||
.metric-label{font-size:.7rem;color:var(--neu-text-muted);min-width:30px}
|
||||
.metric-bar{flex:1;height:6px;border-radius:3px;background:var(--neu-surface);overflow:hidden}
|
||||
.metric-fill{height:100%;border-radius:3px;background:var(--neu-primary);transition:width .5s}
|
||||
.metric-val{font-size:.7rem;min-width:36px;text-align:right}
|
||||
.resource-actions{display:flex;gap:.5rem;flex-wrap:wrap}
|
||||
.section{margin-bottom:2rem}
|
||||
.section-title{font-size:.875rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--text-secondary);margin-bottom:.75rem}
|
||||
.section-title{font-size:.875rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--neu-text-muted);margin-bottom:.75rem}
|
||||
.ws-status{font-size:.8rem;margin-bottom:1rem}
|
||||
.empty-state{color:var(--text-muted);font-size:.875rem}
|
||||
.empty-state{color:var(--neu-text-muted);font-size:.875rem}
|
||||
</style>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue