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

Function _ndRunText

web/scripts/ragnar_modern.js:1316–1339  ·  view source on GitHub ↗
(inputId, resultId, endpoint, verb, rerunFnName)

Source from the content-addressed store, hash-verified

1314 btn.classList.toggle('hover:text-white', !active);
1315}
1316
1317function showNetworkSubtab(name) {
1318 const views = {
1319 hosts: 'net-sub-hosts', archive: 'net-sub-archive', map: 'net-sub-map',
1320 diagnostics: 'net-sub-diagnostics', switch: 'net-sub-switch', interfaces: 'net-sub-interfaces',
1321 wifi: 'net-sub-wifi'
1322 };
1323 Object.keys(views).forEach(key => {
1324 const el = document.getElementById(views[key]);
1325 if (el) el.classList.toggle('hidden', key !== name);
1326 _setSubtabActive(document.getElementById('net-subtab-' + key), key === name);
1327 });
1328 if (name === 'archive') {
1329 loadAllNetworksData();
1330 } else if (name === 'map') {
1331 if (!_mapInitialized) { loadNetworkMap(); }
1332 } else if (name === 'hosts') {
1333 loadNetworkData();
1334 } else if (name === 'switch') {
1335 _lldpFillIfaces();
1336 loadLldp();
1337 _arpScanFillIfaces();
1338 _pcapCapFillIfaces();
1339 _locateFillIfaces();
1340 _l2FillIfaces();
1341 _dhcpFillIfaces();
1342 _igmpFillIfaces();

Callers 3

runPingFunction · 0.85
runTracerouteFunction · 0.85
runWhoisFunction · 0.85

Calls 3

_ndBusyFunction · 0.85
_ndMissingToolFunction · 0.85
postAPIFunction · 0.70

Tested by

no test coverage detected