(message, type)
| 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 | |
| 13672 | function formatPwnStateLabel(state) { |
| 13673 | if (!state) { |
| 13674 | return 'Unknown'; |
| 13675 | } |
| 13676 | return state.replace(/_/g, ' ').replace(/\b\w/g, char => char.toUpperCase()); |
| 13677 | } |
| 13678 | |
| 13679 | function formatPwnModeLabel(mode) { |
| 13680 | return mode === 'pwnagotchi' ? 'Pwnagotchi' : 'Ragnar'; |
| 13681 | } |
| 13682 | |
| 13683 | function formatPwnPhaseLabel(phase) { |
| 13684 | if (!phase) { |
no outgoing calls
no test coverage detected