()
| 20316 | |
| 20317 | // Cleanup old button states for removed hosts |
| 20318 | cleanupOldDeepScanStates(); |
| 20319 | } |
| 20320 | |
| 20321 | function displayCredentialsTable(data) { |
| 20322 | const container = document.getElementById('credentials-table'); |
| 20323 | if (!container) return; |
| 20324 | |
| 20325 | if (!data || Object.keys(data).length === 0) { |
| 20326 | container.innerHTML = '<p class="text-gray-400">No credentials discovered yet</p>'; |
| 20327 | return; |
| 20328 | } |
| 20329 | |
| 20330 | let html = '<div class="space-y-6">'; |
| 20331 | |
| 20332 | Object.entries(data).forEach(([service, creds]) => { |
| 20333 | if (creds && creds.length > 0) { |
| 20334 | html += ` |
| 20335 | <div class="bg-gray-800 rounded-lg p-4"> |
| 20336 | <h3 class="text-lg font-semibold text-Ragnar-400 mb-3">${service.toUpperCase()} (${creds.length})</h3> |
| 20337 | <div class="overflow-x-auto"> |
| 20338 | <table class="min-w-full divide-y divide-gray-700"> |
| 20339 | <thead> |
| 20340 | <tr> |
nothing calls this directly
no test coverage detected