MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / _buildMapLegend

Function _buildMapLegend

web/scripts/ragnar_modern.js:20926–20940  ·  view source on GitHub ↗
(deviceColors, deviceLabels)

Source from the content-addressed store, hash-verified

20924 const discoveredDate = new Date(entry.discovered * 1000).toLocaleString();
20925 const severityColor = getSeverityColor(entry.severity);
20926
20927 content.innerHTML = `
20928 <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
20929 <div class="space-y-3">
20930 <div>
20931 <label class="text-sm text-gray-400">Host/Target</label>
20932 <div class="font-mono text-lg">${entry.host}</div>
20933 </div>
20934 <div>
20935 <label class="text-sm text-gray-400">Service/Port</label>
20936 <div class="font-mono">${entry.port || 'N/A'} ${entry.service ? '(' + entry.service + ')' : ''}</div>
20937 </div>
20938 <div>
20939 <label class="text-sm text-gray-400">Type</label>
20940 <div class="capitalize">${entry.type}</div>
20941 </div>
20942 <div>
20943 <label class="text-sm text-gray-400">Severity</label>

Callers 1

loadNetworkMapFunction · 0.70

Calls 1

escapeHtmlFunction · 0.70

Tested by

no test coverage detected