Use BPQ Console branding and remove decorative logos
This commit is contained in:
1 parent
5358cad695
commit
7b5be2b9f0
4 files changed
+6
-6
No files matched your search
+1
-1
@@ -4,7 +4,7 @@ let csrf='',allMessages=[],dashboardData=null,filter='all',selected=null,page='h
|
||||
const esc=v=>String(v??'').replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));
|
||||
async function api(url,options={}){const r=await fetch('/api'+url,{...options,headers:{'Content-Type':'application/json',...(options.method==='POST'?{'X-CSRF-Token':csrf}:{}),...options.headers}});const data=await r.json();if(!r.ok){if(r.status===401&&url!=='/login')showLogin();throw new Error(data.error||'Richiesta fallita')}return data;}
|
||||
function toast(text){$('#toast').textContent=text;$('#toast').hidden=false;clearTimeout(toast.timer);toast.timer=setTimeout(()=>$('#toast').hidden=true,6500);}
|
||||
function showLogin(){$('#shell').hidden=true;$('#login').hidden=false;csrf='';}
|
||||
function showLogin(){document.title='BPQ Console';$('#shell').hidden=true;$('#login').hidden=false;csrf='';}
|
||||
function showShell(user){station=user.config;applyStation(user);csrf=user.csrf;$('#login').hidden=true;$('#shell').hidden=false;loadDashboard();if(station.features.bbs)loadMessages();document.dispatchEvent(new Event('station-ready'));}
|
||||
function logTime(value){if(!value)return '—';const m=value.match(/^(\d{2})(\d{2})(\d{2}) (\d{2}:\d{2}:\d{2})$/);if(!m)return value;return new Date(`20${m[1]}-${m[2]}-${m[3]}T${m[4]}Z`).toLocaleTimeString('it-IT',{hour:'2-digit',minute:'2-digit'});}
|
||||
function categoryLabel(m){return m.type==='P'?'PERSONALE':m.to||'BOLLETTINO'}
|
||||
|
||||
Reference in new issue
Block a user