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

Function updateConnectivityIndicator

web/scripts/ragnar_modern.js:11880–11910  ·  view source on GitHub ↗
(id, active, ssid = null, apMode = false)

Source from the content-addressed store, hash-verified

11878 if (data.vuln_summary) {
11879 vulnEl.textContent = data.vuln_summary;
11880 vulnSection.classList.remove('hidden');
11881 } else {
11882 vulnSection.classList.add('hidden');
11883 }
11884}
11885
11886function updateHostCountDisplay() {
11887 const tableBody = document.getElementById('network-hosts-table');
11888 const hostCount = document.getElementById('host-count');
11889 if (!tableBody || !hostCount) {
11890 return;
11891 }
11892
11893 const totalHosts = tableBody.querySelectorAll('tr[data-ip]').length;
11894 hostCount.textContent = `${totalHosts} host${totalHosts !== 1 ? 's' : ''}`;
11895}
11896
11897function updateHostInTable(hostData) {
11898 const tableBody = document.getElementById('network-hosts-table');
11899 if (!tableBody) {
11900 return;
11901 }
11902
11903 const normalized = normalizeHostRecord(hostData);
11904 if (!normalized) {
11905 return;
11906 }
11907
11908 const noDataRow = tableBody.querySelector('td[colspan="8"]');
11909 if (noDataRow) {
11910 noDataRow.parentElement.remove();
11911 }
11912
11913 const selector = `tr[data-ip="${escapeSelector(normalized.ip)}"]`;

Callers 2

updateDashboardStatusFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected