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

Function loadConnectData

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

Source from the content-addressed store, hash-verified

6841 } catch (e) {
6842 out.innerHTML = '<p class="text-sm text-red-400">Failed: ' + escapeHtml(e.message) + '</p>';
6843 } finally {
6844 _ndBusy(btn, false);
6845 }
6846}
6847async function snmpTrustBaseline() {
6848 try {
6849 await postAPI('/api/net/snmp-baseline', { action: 'reset' });
6850 addConsoleMessage('SNMP baseline reset — re-learning current agents / community strings', 'info');
6851 await runSnmpWatch();
6852 } catch (e) {
6853 addConsoleMessage('Failed to reset SNMP baseline: ' + e.message, 'error');
6854 }
6855}
6856
6857// ---- Cert Watch (active certificate & TLS hygiene checker) ------------------
6858const _CERT_VERDICT_STYLE = {
6859 valid: ['bg-green-950/40 border-green-900 text-green-400', '✓ valid'],
6860 clean: ['bg-green-950/40 border-green-900 text-green-400', '✓ All certificates valid, trusted and in-date'],
6861 expiring: ['bg-amber-950/50 border-amber-800 text-amber-300', '⚠ expiring soon'],

Callers 2

preloadAllTabsFunction · 0.70
loadTabDataFunction · 0.70

Calls 5

errorMethod · 0.80
loadWifiInterfacesFunction · 0.70
refreshWifiStatusFunction · 0.70
refreshEthernetStatusFunction · 0.70
refreshBluetoothStatusFunction · 0.70

Tested by

no test coverage detected