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

Function setPwnLogIndicator

web/scripts/ragnar_modern.js:6474–6480  ·  view source on GitHub ↗
(active)

Source from the content-addressed store, hash-verified

6472// ---- Watchtower: unified pane for the standalone watchers ------------------
6473const _WT_SEV_STYLE = {
6474 critical: ['bg-red-950/60 border-red-800 text-red-300', '🛑'],
6475 high: ['bg-orange-950/50 border-orange-800 text-orange-300', '⚠'],
6476 medium: ['bg-amber-950/50 border-amber-800 text-amber-300', '⚠'],
6477 low: ['bg-slate-800 border-slate-700 text-slate-300', 'ℹ'],
6478 info: ['bg-slate-800 border-slate-700 text-slate-400', 'ℹ'],
6479};
6480function _wtSevChip(sev, n) {
6481 const [cls, icon] = _WT_SEV_STYLE[sev] || _WT_SEV_STYLE.info;
6482 return `<span class="px-2.5 py-1 rounded border ${cls}">${icon} ${escapeHtml(sev)}: ${n}</span>`;
6483}

Callers 3

resetPwnLogStateFunction · 0.70
startPwnLogStreamingFunction · 0.70
stopPwnLogStreamingFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected