From 144412d94a62875eb921aa8b771cb8fe6ba482e1 Mon Sep 17 00:00:00 2001 From: ecki Date: Sat, 7 Mar 2026 13:57:57 +0100 Subject: [PATCH] working resman with all cruds --- backend/public/index.html | 14 ++- backend/public/index.sav | 174 ++++++++++++++++++++++++++++---------- 2 files changed, 141 insertions(+), 47 deletions(-) diff --git a/backend/public/index.html b/backend/public/index.html index 35de675..9294fa9 100644 --- a/backend/public/index.html +++ b/backend/public/index.html @@ -92,6 +92,7 @@ border-radius:6px; Name +Produkt Provider CPU RAM @@ -269,11 +270,13 @@ if(Array.isArray(r.ips)){ ips=r.ips.map(ip=>` -${ip.ip} +${ip.ip} (${ip.type||""}) +${ip.comment ? "- "+ip.comment : ""} `).join("") + } const tr=document.createElement("tr") @@ -281,6 +284,7 @@ const tr=document.createElement("tr") tr.innerHTML=` ${r.name} +Produkt ${r.provider||""} ${r.cpu||""} ${r.ram||""} @@ -292,7 +296,9 @@ ${ips}
- + + + @@ -344,12 +350,14 @@ table.appendChild(tr) async function addIP(resource){ const ip=document.getElementById("ip_"+resource).value +const type=document.getElementById("iptype_"+resource).value +const comment=document.getElementById("ipcomment_"+resource).value await fetch(API+"/resources/"+resource+"/ips",{ method:"POST", headers:{'Content-Type':'application/json'}, -body:JSON.stringify({ip}) +body:JSON.stringify({ip,type,comment}) }) diff --git a/backend/public/index.sav b/backend/public/index.sav index 78aa8e7..35de675 100644 --- a/backend/public/index.sav +++ b/backend/public/index.sav @@ -10,11 +10,7 @@ body{ font-family:Arial; margin:40px; -background:#f4f6f8; -} - -h1{ -margin-bottom:30px; +background:#f5f6fa; } section{ @@ -22,7 +18,7 @@ background:white; padding:20px; margin-bottom:30px; border-radius:8px; -box-shadow:0 2px 6px rgba(0,0,0,0.1); +box-shadow:0 2px 8px rgba(0,0,0,0.1); } table{ @@ -38,7 +34,7 @@ text-align:left; } th{ -background:#333; +background:#2f3640; color:white; } @@ -48,14 +44,15 @@ margin:2px; cursor:pointer; } -input{ +input,textarea{ padding:6px; -margin:3px; +margin:4px; +width:95%; } .ip{ background:#eee; -padding:2px 6px; +padding:3px 6px; border-radius:4px; margin-right:4px; display:inline-block; @@ -72,7 +69,7 @@ padding:20px; width:600px; max-height:80vh; overflow:auto; -box-shadow:0 10px 30px rgba(0,0,0,0.3); +box-shadow:0 10px 30px rgba(0,0,0,0.4); border-radius:6px; } @@ -112,7 +109,7 @@ border-radius:6px;
-

Cancelled

+

Cancelled Resources

@@ -133,12 +130,7 @@ border-radius:6px;

Domains

- - - - - - +
@@ -148,6 +140,7 @@ border-radius:6px; + @@ -184,32 +177,43 @@ border-radius:6px; -

General

+ -



+ -

Hardware

+ -



+ -

Kosten

+ -

+ -

Provider

+ -

+ -

Daten

+ -


+ + + + + + + + + + + + + -

Bemerkung

+ @@ -219,6 +223,30 @@ border-radius:6px; + +
Provider IP ServerCost/Y Actions