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

Function clearConsole

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

Source from the content-addressed store, hash-verified

12162 html += '<p class="text-xs uppercase text-gray-400 mt-2 mb-1">Advertised prefixes (' + d.prefixes.length + ')</p>' +
12163 '<table class="min-w-full text-xs text-gray-300 whitespace-nowrap"><thead>' +
12164 '<tr class="text-left text-gray-500"><th class="px-2 py-1">Prefix</th><th class="px-2 py-1">Next-hop</th><th class="px-2 py-1">Origin</th><th class="px-2 py-1">Kind</th><th class="px-2 py-1">Status</th></tr>' +
12165 '</thead><tbody>' +
12166 d.prefixes.map(p => {
12167 const bad = (p.status === 'new' || p.status === 'nexthop-changed');
12168 const st = bad ? `<span class="text-red-300">${escapeHtml(p.status)}</span>` : `<span class="text-gray-500">${escapeHtml(p.status)}</span>`;
12169 return `<tr class="border-t border-slate-800">
12170 <td class="px-2 py-1 font-mono ${bad ? 'text-red-300' : ''}">${escapeHtml(p.prefix)}</td>
12171 <td class="px-2 py-1 font-mono">${escapeHtml(p.nexthop)}</td>
12172 <td class="px-2 py-1 font-mono text-gray-400">${escapeHtml(p.origin)}</td>
12173 <td class="px-2 py-1 text-gray-400">${escapeHtml(p.kind)}</td>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected