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

Function showNotification

web/scripts/ragnar_modern.js:13657–13681  ·  view source on GitHub ↗
(message, type)

Source from the content-addressed store, hash-verified

13655 } else if (lowerStatus.startsWith('failed')) {
13656 info.label = 'Failed';
13657 info.className = 'text-red-400';
13658 } else if (['running', 'scanning', 'pending', 'inprogress', 'in_progress'].includes(lowerStatus)) {
13659 info.label = statusPart.replace(/_/g, ' ').replace(/\b\w/g, c => c.toUpperCase());
13660 info.className = 'text-yellow-400';
13661 } else {
13662 info.label = statusPart.replace(/_/g, ' ').replace(/\b\w/g, c => c.toUpperCase());
13663 info.className = 'text-slate-300';
13664 }
13665
13666 if (timestamp) {
13667 info.timestampText = timestamp.toLocaleString();
13668 }
13669
13670 const tooltipParts = [];
13671 if (info.rawStatus) {
13672 tooltipParts.push(`Status: ${info.rawStatus}`);
13673 }
13674 if (info.timestampText) {
13675 tooltipParts.push(`Completed: ${info.timestampText}`);
13676 }
13677 if (info.rawTimestamp && !info.timestampText) {
13678 tooltipParts.push(`Reported: ${info.rawTimestamp}`);
13679 }
13680 info.tooltip = tooltipParts.join('\n');
13681
13682 return info;
13683}
13684

Callers 15

openLootFileFunction · 0.70
showFileSuccessFunction · 0.70
showFileErrorFunction · 0.70
showFileLoadingFunction · 0.70
showSystemSuccessFunction · 0.70
showSystemErrorFunction · 0.70
showNetkbSuccessFunction · 0.70
showNetkbErrorFunction · 0.70
showNetkbInfoFunction · 0.70
triggerManualVulnScanFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected