()
| 21278 | if (!modal || !title || !content) return; |
| 21279 | |
| 21280 | title.textContent = `${entry.type.toUpperCase()}: ${entry.host}`; |
| 21281 | |
| 21282 | const discoveredDate = new Date(entry.discovered * 1000).toLocaleString(); |
| 21283 | const severityColor = getSeverityColor(entry.severity); |
| 21284 | |
| 21285 | content.innerHTML = ` |
| 21286 | <div class="grid grid-cols-1 md:grid-cols-2 gap-4"> |
| 21287 | <div class="space-y-3"> |
| 21288 | <div> |
| 21289 | <label class="text-sm text-gray-400">Host/Target</label> |
| 21290 | <div class="font-mono text-lg">${entry.host}</div> |
| 21291 | </div> |
| 21292 | <div> |
| 21293 | <label class="text-sm text-gray-400">Service/Port</label> |
| 21294 | <div class="font-mono">${entry.port || 'N/A'} ${entry.service ? '(' + entry.service + ')' : ''}</div> |
| 21295 | </div> |
| 21296 | <div> |
| 21297 | <label class="text-sm text-gray-400">Type</label> |
| 21298 | <div class="capitalize">${entry.type}</div> |
| 21299 | </div> |
| 21300 | <div> |
| 21301 | <label class="text-sm text-gray-400">Severity</label> |
| 21302 | <div><span class="px-2 py-1 rounded text-sm ${severityColor}">${entry.severity}</span></div> |
| 21303 | </div> |
| 21304 | </div> |
| 21305 | <div class="space-y-3"> |
| 21306 | <div> |
| 21307 | <label class="text-sm text-gray-400">Description</label> |
| 21308 | <div class="text-sm">${entry.description}</div> |
| 21309 | </div> |
| 21310 | <div> |
| 21311 | <label class="text-sm text-gray-400">Source</label> |
nothing calls this directly
no test coverage detected