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

Function refreshNucleiTemplateStatus

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

Source from the content-addressed store, hash-verified

19516 modal.id = 'power-detail-modal';
19517 document.body.appendChild(modal);
19518 }
19519 modal.className = 'fixed inset-0 z-[70] bg-black/60 flex items-start justify-center p-4 overflow-auto';
19520 modal.onclick = (e) => { if (e.target === modal) closePowerModal(); };
19521 modal.innerHTML = `
19522 <div class="glass rounded-xl w-full max-w-2xl my-8 p-6 border border-slate-700">
19523 <div class="flex items-start justify-between gap-3 mb-4">
19524 <h3 class="text-xl font-bold flex items-center gap-2"><span>⚡</span> Power &amp; supply health</h3>
19525 <button onclick="closePowerModal()" class="text-gray-400 hover:text-white text-2xl leading-none flex-shrink-0">&times;</button>
19526 </div>
19527 <div id="power-modal-body" class="text-sm text-gray-300">Loading…</div>
19528 </div>`;
19529 document.addEventListener('keydown', _powerModalEsc);
19530 try {
19531 const data = await fetchAPI('/api/power');

Callers

nothing calls this directly

Calls 1

updateScannerStatusFunction · 0.70

Tested by

no test coverage detected