refactor: split ui into modules (resources, domains, infra, costs, modals)

This commit is contained in:
ecki
2026-03-22 15:42:45 +01:00
parent 67106ac1a1
commit 0559cc4cd1
9 changed files with 393 additions and 611 deletions
+7 -23
View File
@@ -1,27 +1,11 @@
document.addEventListener("DOMContentLoaded",()=>{
document.addEventListener("DOMContentLoaded", async () => {
loadResources()
loadDomains()
loadMapping()
loadCosts()
loadInfrastructure()
loadCancelled();
setInterval(()=>{
await loadResources()
await loadDomains()
await loadMapping()
await loadCancelled()
document.querySelectorAll("[id^='status-']").forEach(el=>{
const id = el.id.replace("status-","")
const resource = window.resources.find(r=>r.id==id)
if(resource){
checkServerStatus(resource)
}
loadInfrastructure()
loadCosts()
})
},30000)
});