mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-14 22:21:38 -07:00
feat: authoritative plugin fields
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
This commit is contained in:
@@ -99,13 +99,13 @@ a[target="_blank"] {
|
|||||||
/* -----------------------------------------------------------------------------
|
/* -----------------------------------------------------------------------------
|
||||||
Text Classes
|
Text Classes
|
||||||
----------------------------------------------------------------------------- */
|
----------------------------------------------------------------------------- */
|
||||||
.logs
|
.logs, .log-area textarea
|
||||||
{
|
{
|
||||||
color:white !important;
|
color:white !important;
|
||||||
background-color: black !important;
|
background-color: black !important;
|
||||||
font-family: 'Courier New', monospace;
|
font-family: 'Courier New', monospace;
|
||||||
font-size: .85em;
|
font-size: .85em;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
.logs-row textarea
|
.logs-row textarea
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -812,3 +812,12 @@ table.dataTable tbody tr.selected, table.dataTable tbody tr .selected
|
|||||||
{
|
{
|
||||||
color: var(--color-gray);
|
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;
|
||||||
|
}
|
||||||
@@ -815,3 +815,13 @@
|
|||||||
{
|
{
|
||||||
color: var(--color-white);
|
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;
|
||||||
|
}
|
||||||
@@ -278,7 +278,7 @@ function getDeviceData() {
|
|||||||
|
|
||||||
// Add lock/unlock icon button for tracked fields (not for new devices)
|
// Add lock/unlock icon button for tracked fields (not for new devices)
|
||||||
const fieldName = setting.setKey.replace('NEWDEV_', '');
|
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 sourceField = fieldName + "Source";
|
||||||
|
|
||||||
const currentSource = deviceData[sourceField] || "N/A";
|
const currentSource = deviceData[sourceField] || "N/A";
|
||||||
|
|||||||
@@ -608,7 +608,7 @@ def create_new_devices(db):
|
|||||||
eve_EventType, eve_AdditionalInfo,
|
eve_EventType, eve_AdditionalInfo,
|
||||||
eve_PendingAlertEmail
|
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
|
FROM CurrentScan
|
||||||
WHERE NOT EXISTS (
|
WHERE NOT EXISTS (
|
||||||
SELECT 1 FROM Devices
|
SELECT 1 FROM Devices
|
||||||
|
|||||||
Reference in New Issue
Block a user