Fix dashboard theme initialization order
This commit is contained in:
+1
-1
@@ -1,5 +1,6 @@
|
|||||||
const DashboardUI=(()=>{
|
const DashboardUI=(()=>{
|
||||||
let host=null,root=null,timers=[],controller=null;
|
let host=null,root=null,timers=[],controller=null;
|
||||||
|
let historyColors=['#c5edaf','#ffb454','#7fc8b6','#c39bff'];
|
||||||
const esc=v=>String(v??'–').replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));
|
const esc=v=>String(v??'–').replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));
|
||||||
const pct=n=>n==null?'–':`${Number(n).toFixed(1)}%`;
|
const pct=n=>n==null?'–':`${Number(n).toFixed(1)}%`;
|
||||||
const gib=b=>b==null?'–':`${(Number(b)/1073741824).toFixed(1)} GiB`;
|
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 historyRange='24h',usageMode='total',lastProfileUsage=[];
|
||||||
let historyColors=['#c5edaf','#ffb454','#7fc8b6','#c39bff'];
|
|
||||||
const hiddenHistorySeries=new Set();let lastHistoryPoints=[];
|
const hiddenHistorySeries=new Set();let lastHistoryPoints=[];
|
||||||
const hiddenSlotSeries=new Set();let lastSlotPoints=[];
|
const hiddenSlotSeries=new Set();let lastSlotPoints=[];
|
||||||
function drawHistory(points){
|
function drawHistory(points){
|
||||||
|
|||||||
Reference in New Issue
Block a user