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

Function _setPwnUpdateBadge

web/scripts/ragnar_modern.js:6929–6934  ·  view source on GitHub ↗
(text, classes)

Source from the content-addressed store, hash-verified

6927 const fmt = r => {
6928 const [c] = _RAGUARD_VERDICT_STYLE[r.verdict] || _RAGUARD_VERDICT_STYLE.unknown;
6929 const badge = `<span class="px-1.5 py-0.5 rounded border text-[10px] ${c}">${escapeHtml(r.verdict)}</span>`;
6930 const red = v => v === 1 ? 'text-red-300' : 'text-gray-400';
6931 return `<tr class="border-t border-slate-800">
6932 <td class="px-2 py-1 font-mono ${r.virtual ? 'text-gray-500' : 'text-gray-200'}">${escapeHtml(r.iface)}</td>
6933 <td class="px-2 py-1">${badge}</td>
6934 <td class="px-2 py-1 font-mono ${red(r.accept_redirects)}">${r.accept_redirects}</td>
6935 <td class="px-2 py-1 font-mono ${red(r.accept_ra_rtr_pref)}">${r.accept_ra_rtr_pref}</td>
6936 <td class="px-2 py-1 font-mono text-gray-400">${r.accept_ra}</td>
6937 </tr>`;

Callers 3

checkPwnUpdatesFunction · 0.70
performPwnUpdateFunction · 0.70
stashAndUpdatePwnFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected