From 899017fdd889623a0718f3e635561396557116cd Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Sat, 24 Jan 2026 23:37:51 +1100 Subject: [PATCH] feat: authoritative plugin fields Signed-off-by: jokob-sk --- front/css/app.css | 4 ++-- front/css/dark-patch.css | 9 +++++++++ front/css/system-dark-patch.css | 10 ++++++++++ front/deviceDetailsEdit.php | 2 +- server/scan/device_handling.py | 2 +- 5 files changed, 23 insertions(+), 4 deletions(-) diff --git a/front/css/app.css b/front/css/app.css index c686a831..988618ad 100755 --- a/front/css/app.css +++ b/front/css/app.css @@ -99,13 +99,13 @@ a[target="_blank"] { /* ----------------------------------------------------------------------------- Text Classes ----------------------------------------------------------------------------- */ -.logs +.logs, .log-area textarea { color:white !important; background-color: black !important; font-family: 'Courier New', monospace; font-size: .85em; - + cursor: pointer; } .logs-row textarea { diff --git a/front/css/dark-patch.css b/front/css/dark-patch.css index e3458c2a..8302fa28 100755 --- a/front/css/dark-patch.css +++ b/front/css/dark-patch.css @@ -811,4 +811,13 @@ table.dataTable tbody tr.selected, table.dataTable tbody tr .selected .btn:hover { color: var(--color-gray); +} + +.logs, .log-area textarea +{ + color:white !important; + background-color: black !important; + font-family: 'Courier New', monospace; + font-size: .85em; + cursor: pointer; } \ No newline at end of file diff --git a/front/css/system-dark-patch.css b/front/css/system-dark-patch.css index 21bed0b1..f55ce1c2 100755 --- a/front/css/system-dark-patch.css +++ b/front/css/system-dark-patch.css @@ -814,4 +814,14 @@ .btn:hover { color: var(--color-white); +} + + +.logs, .log-area textarea +{ + color:white !important; + background-color: black !important; + font-family: 'Courier New', monospace; + font-size: .85em; + cursor: pointer; } \ No newline at end of file diff --git a/front/deviceDetailsEdit.php b/front/deviceDetailsEdit.php index 09822b7a..83bf43ec 100755 --- a/front/deviceDetailsEdit.php +++ b/front/deviceDetailsEdit.php @@ -278,7 +278,7 @@ function getDeviceData() { // Add lock/unlock icon button for tracked fields (not for new devices) const fieldName = setting.setKey.replace('NEWDEV_', ''); - if (trackedFields[fieldName] && fieldName !== "devFQDN" && fieldName !== "devMac" && mac != "new") { + if (trackedFields[fieldName] && !["devFQDN", "devMac", "devLastIP"].includes(fieldName) && mac != "new") { const sourceField = fieldName + "Source"; const currentSource = deviceData[sourceField] || "N/A"; diff --git a/server/scan/device_handling.py b/server/scan/device_handling.py index ecbe1f4c..49251d03 100755 --- a/server/scan/device_handling.py +++ b/server/scan/device_handling.py @@ -608,7 +608,7 @@ def create_new_devices(db): eve_EventType, eve_AdditionalInfo, eve_PendingAlertEmail ) - SELECT cur_MAC, cur_IP, '{startTime}', 'New Device', cur_Vendor, 1 + SELECT DISTINCT cur_MAC, cur_IP, '{startTime}', 'New Device', cur_Vendor, 1 FROM CurrentScan WHERE NOT EXISTS ( SELECT 1 FROM Devices