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

Function clearDashboardStatsCache

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

Source from the content-addressed store, hash-verified

8392 let html = `<div class="mb-2 px-3 py-2 rounded border ${cls} text-sm">${label}</div>`;
8393 html += `<p class="text-xs text-gray-500 mb-2">Interface: ${escapeHtml(d.interface || '—')} · ${d.seconds}s · ${d.packet_count} DTP frame(s), ${d.speaker_count} speaker(s)${d.learned ? ' · <span class="text-gray-400">baseline learned now</span>' : ''}</p>`;
8394 if ((d.speakers || []).length) {
8395 html += '<table class="min-w-full text-xs text-gray-300 whitespace-nowrap"><thead>' +
8396 '<tr class="text-left text-gray-500"><th class="px-2 py-1">Speaker MAC</th><th class="px-2 py-1">Status</th><th class="px-2 py-1">Trunk?</th><th class="px-2 py-1">Status</th></tr>' +
8397 '</thead><tbody>' +
8398 d.speakers.map(sp => {
8399 const badge = sp.baseline ? '<span class="text-green-400">✓ known</span>' : '<span class="text-amber-300">? new</span>';

Callers 2

setWifiInterfaceMetadataFunction · 0.70
setSelectedWifiInterfaceFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected