(sortBy)
| 13981 | } |
| 13982 | if (state === 'installed') { |
| 13983 | return { |
| 13984 | badgeText: 'Installed', |
| 13985 | badgeClass: 'bg-blue-700 text-blue-100', |
| 13986 | alertClass: 'border-blue-500 bg-blue-900/30', |
| 13987 | icon: 'ℹ️' |
| 13988 | }; |
| 13989 | } |
| 13990 | return { |
| 13991 | badgeText: 'Not Installed', |
| 13992 | badgeClass: 'bg-slate-700 text-slate-200', |
| 13993 | alertClass: 'border-slate-700 bg-slate-900', |
| 13994 | icon: 'ℹ️' |
| 13995 | }; |
| 13996 | } |
| 13997 | |
| 13998 | function formatPwnStateLabel(state) { |
| 13999 | if (!state) { |
| 14000 | return 'Unknown'; |
| 14001 | } |
| 14002 | return state.replace(/_/g, ' ').replace(/\b\w/g, char => char.toUpperCase()); |
| 14003 | } |
| 14004 | |
| 14005 | function formatPwnModeLabel(mode) { |
| 14006 | return mode === 'pwnagotchi' ? 'Pwnagotchi' : 'Ragnar'; |
| 14007 | } |
| 14008 | |
| 14009 | function formatPwnPhaseLabel(phase) { |
nothing calls this directly
no test coverage detected