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

Function getCachedWifiNetworkResult

web/scripts/ragnar_modern.js:8779–8783  ·  view source on GitHub ↗
(interfaceName)

Source from the content-addressed store, hash-verified

8777 if (d.note) html += `<p class="text-xs text-gray-500 mb-2">${escapeHtml(d.note)}</p>`;
8778 if (d.enrich_note) html += `<p class="text-xs text-gray-500 mb-2">${escapeHtml(d.enrich_note)}</p>`;
8779 const asnNames = d.asn_names || {};
8780 if (d.peers && d.peers.length) {
8781 const tp = d.trusted_peers || [];
8782 html += `<p class="text-xs mb-1 text-gray-400">Peers: ` +
8783 d.peers.map(a => {
8784 const nm = asnNames[a] ? ` <span class="text-gray-500">(${escapeHtml(asnNames[a])})</span>` : '';
8785 return `<span class="font-mono ${tp.length && tp.indexOf(a) < 0 ? 'text-amber-300' : 'text-gray-200'}">AS${a}</span>${nm}`;
8786 }).join(', ') +

Callers 3

hasCachedWifiNetworksFunction · 0.70
displayWifiNetworksFunction · 0.70

Calls 1

getMethod · 0.45

Tested by

no test coverage detected