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

Function resetPwnLogState

web/scripts/ragnar_modern.js:6453–6459  ·  view source on GitHub ↗
(message)

Source from the content-addressed store, hash-verified

6451 if (!d.enabled) {
6452 sumEl.innerHTML = '<span class="text-xs text-gray-500">Watchtower is off — enable it to aggregate the standalone watchers into this pane.</span>';
6453 if (srcEl) srcEl.textContent = '';
6454 listEl.innerHTML = '';
6455 return;
6456 }
6457 const s = d.summary || {};
6458 const bySev = s.by_severity || {};
6459 const chips = ['critical', 'high', 'medium', 'low', 'info']
6460 .filter(k => bySev[k]).map(k => _wtSevChip(k, bySev[k]));
6461 const when = s.newest_ts ? new Date(s.newest_ts * 1000).toLocaleString() : '—';
6462 sumEl.innerHTML = (chips.length ? chips.join(' ') : '<span class="text-xs text-green-400">✓ No alerts from any watcher</span>')

Callers 3

initializePwnUIFunction · 0.70
updatePwnagotchiUIFunction · 0.70
handlePwnInstallClickFunction · 0.70

Calls 3

clearPwnLogViewerFunction · 0.70
updatePwnLogPathFunction · 0.70
setPwnLogIndicatorFunction · 0.70

Tested by

no test coverage detected