diff --git a/dashboard-ui.js b/dashboard-ui.js index 9c97b73..37177ec 100644 --- a/dashboard-ui.js +++ b/dashboard-ui.js @@ -1,5 +1,6 @@ const DashboardUI=(()=>{ let host=null,root=null,timers=[],controller=null; +let historyColors=['#c5edaf','#ffb454','#7fc8b6','#c39bff']; const esc=v=>String(v??'–').replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c])); const pct=n=>n==null?'–':`${Number(n).toFixed(1)}%`; const gib=b=>b==null?'–':`${(Number(b)/1073741824).toFixed(1)} GiB`; @@ -123,7 +124,6 @@ refreshFull();timers.push(setInterval(()=>{if(host?.isConnected)refreshFull();el let historyRange='24h',usageMode='total',lastProfileUsage=[]; -let historyColors=['#c5edaf','#ffb454','#7fc8b6','#c39bff']; const hiddenHistorySeries=new Set();let lastHistoryPoints=[]; const hiddenSlotSeries=new Set();let lastSlotPoints=[]; function drawHistory(points){