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

Function sortProcesses

web/scripts/ragnar_modern.js:13983–14006  ·  view source on GitHub ↗
(sortBy)

Source from the content-addressed store, hash-verified

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
13998function formatPwnStateLabel(state) {
13999 if (!state) {
14000 return 'Unknown';
14001 }
14002 return state.replace(/_/g, ' ').replace(/\b\w/g, char => char.toUpperCase());
14003}
14004
14005function formatPwnModeLabel(mode) {
14006 return mode === 'pwnagotchi' ? 'Pwnagotchi' : 'Ragnar';
14007}
14008
14009function formatPwnPhaseLabel(phase) {

Callers

nothing calls this directly

Calls 4

addMethod · 0.80
errorMethod · 0.80
networkAwareFetchFunction · 0.70
updateProcessListFunction · 0.70

Tested by

no test coverage detected