IP Manager überarbeitet

This commit is contained in:
ecki
2026-03-27 14:50:03 +01:00
parent 0329c67904
commit 89ce86eb4a
7 changed files with 275 additions and 13 deletions
+20 -1
View File
@@ -8,7 +8,6 @@ document.addEventListener("DOMContentLoaded", async () => {
})
let refreshing = false
async function refreshAll(){
@@ -16,6 +15,7 @@ async function refreshAll(){
if(refreshing) return
refreshing = true
try{
await loadResources()
@@ -26,16 +26,35 @@ async function refreshAll(){
loadInfrastructure()
loadCosts()
// Zeit setzen
updateLastUpdate()
}catch(e){
console.error("Refresh error", e)
document.getElementById("lastUpdate").innerText = "🔴 Fehler beim Update"
}
refreshing = false
}
function clearDNSCache(){
for(const key in dnsCache){
delete dnsCache[key]
}
}
function updateLastUpdate(){
const now = new Date()
const time = now.toLocaleTimeString()
// Lade-Indikator
document.getElementById("lastUpdate").innerText =
"🟢 Letztes Update: " + time
}