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

Function updateVulnerabilityCount

web/scripts/ragnar_modern.js:8073–8083  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8071 d.routers.map(r => {
8072 const badge = r.baseline ? '<span class="text-green-400">✓ known</span>' : '<span class="text-amber-300">? new</span>';
8073 const auth = r.auth ? '<span class="text-green-400">yes</span>' : '<span class="text-amber-300">none</span>';
8074 return `<tr class="border-t border-slate-800">
8075 <td class="px-2 py-1 font-mono ${r.baseline ? '' : 'text-amber-300'}">${escapeHtml(r.src)}</td>
8076 <td class="px-2 py-1 font-mono">${(r.as || []).join(', ') || '?'}</td>
8077 <td class="px-2 py-1 text-gray-400">${escapeHtml(r.af)}</td>
8078 <td class="px-2 py-1">${auth}</td>
8079 <td class="px-2 py-1">${badge}</td>
8080 </tr>`;
8081 }).join('') +
8082 '</tbody></table>';
8083 }
8084 if ((d.prefixes || []).length) {
8085 html += '<p class="text-xs uppercase text-gray-400 mt-2 mb-1">Advertised prefixes (' + d.prefixes.length + ')</p>' +
8086 '<table class="min-w-full text-xs text-gray-300 whitespace-nowrap"><thead>' +

Callers 1

loadConfigDataFunction · 0.70

Calls 3

errorMethod · 0.80
fetchAPIFunction · 0.70
updateElementFunction · 0.70

Tested by

no test coverage detected