@@ -25,15 +25,14 @@ const K8sClient = (() => {
2525 [ configDiv , errorDiv , resourceDiv ] . forEach ( el => { if ( el ) el . innerHTML = spinner ; } ) ;
2626
2727 try {
28- // 1. Daten laden
2928 const [ report , context ] = await Promise . all ( [
3029 apiFetch ( '/api/k8s/istio/full-report' ) ,
3130 K8sClient . loadContext ( )
3231 ] ) ;
3332
34- // --- TAB A & B (Envoy Config & Errors) ---
35- // Hier bleibt deine bestehende Rendering- Logik für report.reachability und report.healthDiagnostics
36- configDiv . innerHTML = `<pre class="console x-small p-2 bg-dark text-success">${ report . reachability . activeEndpoints } </pre>` ;
33+ // --- TAB A & B (Config & Errors) ---
34+ // (Deine bestehende Logik für diese Tabs...)
35+ configDiv . innerHTML = `<pre class="console x-small p-3 bg-dark text-success" style="border-radius:4px; ">${ report . reachability . activeEndpoints } </pre>` ;
3736
3837 const errorEntries = Object . entries ( report . healthDiagnostics . activeErrorMetrics ) ;
3938 errorDiv . innerHTML = errorEntries . length === 0 ?
@@ -42,7 +41,6 @@ const K8sClient = (() => {
4241
4342
4443 // --- TAB C: POD KONTEXT (Dynamisch) ---
45- // Wir iterieren über alle Keys im Context-Response
4644 const contextRows = Object . entries ( context ) . map ( ( [ key , val ] ) => {
4745 let badgeClass = "bg-light text-dark border" ;
4846 if ( val === true ) badgeClass = "bg-success text-white" ;
@@ -69,8 +67,10 @@ const K8sClient = (() => {
6967 </table>
7068
7169 <div class="d-none mt-3">
72- <label class="x-small fw-bold text-muted">RAW CONTEXT RESPONSE:</label>
73- <pre class="console x-small bg-light p-3 border">${ JSON . stringify ( context , null , 4 ) } </pre>
70+ <label class="x-small fw-bold text-muted mb-1">RAW CONTEXT RESPONSE:</label>
71+ <pre class="x-small p-3 shadow-inner"
72+ style="background-color: #1e1e1e; color: #4af626; border-radius: 6px; border: 1px solid #333; overflow: auto; max-height: 400px; font-family: 'Fira Code', 'Courier New', monospace;"
73+ >${ JSON . stringify ( context , null , 4 ) } </pre>
7474 </div>
7575 </div>` ;
7676
0 commit comments