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 }
13656 if (state === 'installed') {
13657 return {
13658 badgeText: 'Installed',
13659 badgeClass: 'bg-blue-700 text-blue-100',
13660 alertClass: 'border-blue-500 bg-blue-900/30',
13661 icon: 'ℹ️'
13662 };
13663 }
13664 return {
13665 badgeText: 'Not Installed',
13666 badgeClass: 'bg-slate-700 text-slate-200',
13667 alertClass: 'border-slate-700 bg-slate-900',
13668 icon: 'ℹ️'
13669 };
13670}
13671
13672function formatPwnStateLabel(state) {
13673 if (!state) {
13674 return 'Unknown';
13675 }
13676 return state.replace(/_/g, ' ').replace(/\b\w/g, char => char.toUpperCase());
13677}
13678
13679function formatPwnModeLabel(mode) {
13680 return mode === 'pwnagotchi' ? 'Pwnagotchi' : 'Ragnar';
13681}
13682
13683function formatPwnPhaseLabel(phase) {
13684 if (!phase) {

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