@@ -569,7 +569,7 @@ async function viewTool(toolId) {
569569 }
570570
571571 document . getElementById ( "tool-details" ) . innerHTML = `
572- <div class="space-y-2">
572+ <div class="space-y-2 dark:bg-gray-900 dark:text-gray-100 ">
573573 <p><strong>Name:</strong> ${ tool . name } </p>
574574 <p><strong>URL:</strong> ${ tool . url } </p>
575575 <p><strong>Type:</strong> ${ tool . integrationType } </p>
@@ -578,11 +578,11 @@ async function viewTool(toolId) {
578578 ${ authHTML }
579579 <div>
580580 <strong>Headers:</strong>
581- <pre class="mt-1 bg-gray-100 p-2 rounded overflow-auto">${ JSON . stringify ( tool . headers || { } , null , 2 ) } </pre>
581+ <pre class="mt-1 bg-gray-100 p-2 rounded overflow-auto dark:bg-gray-900 dark:text-gray-300 ">${ JSON . stringify ( tool . headers || { } , null , 2 ) } </pre>
582582 </div>
583583 <div>
584584 <strong>Input Schema:</strong>
585- <pre class="mt-1 bg-gray-100 p-2 rounded overflow-auto">${ JSON . stringify ( tool . inputSchema || { } , null , 2 ) } </pre>
585+ <pre class="mt-1 bg-gray-100 p-2 rounded overflow-auto dark:bg-gray-900 dark:text-gray-300 ">${ JSON . stringify ( tool . inputSchema || { } , null , 2 ) } </pre>
586586 </div>
587587 <div>
588588 <strong>Metrics:</strong>
@@ -707,7 +707,7 @@ async function viewResource(resourceUri) {
707707 const resource = data . resource ;
708708 const content = data . content ;
709709 document . getElementById ( "resource-details" ) . innerHTML = `
710- <div class="space-y-2">
710+ <div class="space-y-2 dark:bg-gray-900 dark:text-gray-100 ">
711711 <p><strong>URI:</strong> ${ resource . uri } </p>
712712 <p><strong>Name:</strong> ${ resource . name } </p>
713713 <p><strong>Type:</strong> ${ resource . mimeType || "N/A" } </p>
@@ -799,7 +799,7 @@ async function viewPrompt(promptName) {
799799 ) ;
800800 const prompt = await response . json ( ) ;
801801 document . getElementById ( "prompt-details" ) . innerHTML = `
802- <div class="space-y-2">
802+ <div class="space-y-2 dark:bg-gray-900 dark:text-gray-100 ">
803803 <p><strong>Name:</strong> ${ prompt . name } </p>
804804 <p><strong>Description:</strong> ${ prompt . description || "N/A" } </p>
805805 <p><strong>Status:</strong>
@@ -819,7 +819,7 @@ async function viewPrompt(promptName) {
819819 </div>
820820 <div>
821821 <strong>Arguments:</strong>
822- <pre class="mt-1 bg-gray-100 p-2 rounded">${ JSON . stringify ( prompt . arguments || [ ] , null , 2 ) } </pre>
822+ <pre class="mt-1 bg-gray-100 p-2 rounded dark:bg-gray-800 dark:text-gray-100 ">${ JSON . stringify ( prompt . arguments || [ ] , null , 2 ) } </pre>
823823 </div>
824824 <!-- ADD THIS: Metrics section -->
825825 <div>
@@ -904,7 +904,7 @@ async function viewGateway(gatewayId) {
904904 }
905905
906906 document . getElementById ( "gateway-details" ) . innerHTML = `
907- <div class="space-y-2">
907+ <div class="space-y-2 dark:bg-gray-900 dark:text-gray-100 ">
908908 <p><strong>Name:</strong> ${ gateway . name } </p>
909909 <p><strong>URL:</strong> ${ gateway . url } </p>
910910 <p><strong>Description:</strong> ${ gateway . description || "N/A" } </p>
@@ -921,7 +921,7 @@ async function viewGateway(gatewayId) {
921921 ${ authHTML }
922922 <div>
923923 <strong>Capabilities:</strong>
924- <pre class="mt-1 bg-gray-100 p-2 rounded">${ JSON . stringify ( gateway . capabilities || { } , null , 2 ) } </pre>
924+ <pre class="mt-1 bg-gray-100 p-2 rounded dark:bg-gray-800 dark:text-gray-100 ">${ JSON . stringify ( gateway . capabilities || { } , null , 2 ) } </pre>
925925 </div>
926926 </div>
927927 ` ;
@@ -997,7 +997,7 @@ async function viewServer(serverId) {
997997 : "N/A" ;
998998
999999 document . getElementById ( "server-details" ) . innerHTML = `
1000- <div class="space-y-2">
1000+ <div class="space-y-2 dark:bg-gray-900 dark:text-gray-100 ">
10011001 <p><strong>Name:</strong> ${ server . name } </p>
10021002 <p><strong>Description:</strong> ${ server . description || "N/A" } </p>
10031003 <p><strong>Status:</strong>
@@ -1327,7 +1327,7 @@ async function loadAggregatedMetrics() {
13271327
13281328 // Build an aggregated metrics table
13291329 const tableHTML = `
1330- <table class="min-w-full bg-white border dark:bg-gray-900">
1330+ <table class="min-w-full bg-white border dark:bg-gray-900 dark:text-gray-100 ">
13311331 <thead>
13321332 <tr>
13331333 <th class="py-2 px-4 border dark:text-gray-200">Entity</th>
@@ -1643,7 +1643,7 @@ function testTool(toolId) {
16431643 input . type = "text" ;
16441644 input . required = schema . required && schema . required . includes ( key ) ;
16451645 input . className =
1646- "mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500" ;
1646+ "mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 dark:bg-gray-900 dark:text-gray-300 dark:border-gray-700 dark:focus:border-indigo-400 dark:focus:ring-indigo-400 " ;
16471647 fieldDiv . appendChild ( input ) ;
16481648
16491649 container . appendChild ( fieldDiv ) ;
0 commit comments