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

Function toggleSubnetPanel

web/scripts/ragnar_modern.js:21233–21245  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

21231 if (interfaces.length === 0) {
21232 networkInterfaces.innerHTML = '<p class="text-gray-400 text-center py-4">No network interfaces found</p>';
21233 return;
21234 }
21235
21236 let html = '';
21237 interfaces.forEach(iface => {
21238 const statusColor = iface.is_up ? 'text-green-400' : 'text-red-400';
21239 const statusText = iface.is_up ? 'UP' : 'DOWN';
21240
21241 html += `
21242 <div class="border border-gray-700 rounded p-3">
21243 <div class="flex items-center justify-between mb-2">
21244 <span class="font-medium">${iface.name}</span>
21245 <span class="${statusColor} text-xs">${statusText}</span>
21246 </div>
21247 <div class="text-xs text-gray-400 space-y-1">
21248 ${iface.speed > 0 ? `<div>Speed: ${iface.speed} Mbps</div>` : ''}

Callers

nothing calls this directly

Calls 3

loadScanSubnetsFunction · 0.70
_startSubnetLogPollingFunction · 0.70
_stopSubnetLogPollingFunction · 0.70

Tested by

no test coverage detected