Commit Graph

51 Commits

Author SHA1 Message Date
sebingel
4c117db463 Fix elementOptions: rename typo 'ordeable' to 'orderable'
The key 'ordeable' in elementOptions was a long-standing typo for the
correct English word 'orderable'. Since the JS check in settings_utils.js
used the same misspelled key, the feature appeared to work — but it was
relying on the consistent propagation of a typo across the entire codebase.

Two pre-existing entries in front/plugins/ui_settings/config.json already
used the correct spelling 'orderable', but these had no effect because the
JavaScript check (option.ordeable === 'true') never matched them. As a
result, orderable behavior was silently disabled for those two settings.

Changes:
- front/js/settings_utils.js: renamed option.ordeable → option.orderable
  and isOrdeable → isOrderable (6 occurrences, lines 792/823/824/880/1079/
  1192/1228). The JS key check is the authoritative definition of the
  elementOptions property name, so this must change atomically with all
  config files.

- server/initialise.py:245: renamed "ordeable" → "orderable" in the
  hardcoded JSON string for LOADED_PLUGINS setting. This string is the
  source-of-truth for that setting's elementOptions and is not auto-
  generated from the plugin config files.

- front/plugins/*/config.json (33 files, 90 occurrences): renamed all
  "ordeable": "true" entries to "orderable": "true" via sed. All plugins
  used the typo consistently; they must be updated in the same commit to
  avoid a broken intermediate state.

The two formerly broken 'orderable' entries in ui_settings/config.json
are now matched by the corrected JS check and work as intended.

Fixes netalertx/NetAlertX#1584

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-03 18:28:48 +00:00
Jokob @NetAlertX
0a7ecb5b7c Update config.json files to add 'ordeable' option and refactor cacheStrings function for consistency 2026-03-17 09:22:25 +00:00
Jokob @NetAlertX
c7399215ec Refactor event and session column names to camelCase
- Updated test cases to reflect new column names (eve_MAC -> eveMac, eve_DateTime -> eveDateTime, etc.) across various test files.
- Modified SQL table definitions in the database cleanup and migration tests to use camelCase naming conventions.
- Implemented migration tests to ensure legacy column names are correctly renamed to camelCase equivalents.
- Ensured that existing data is preserved during the migration process and that views referencing old column names are dropped before renaming.
- Verified that the migration function is idempotent, allowing for safe re-execution without data loss.
2026-03-16 10:11:22 +00:00
jokob-sk
d24411fa53 BE: CurrentScan table leanup - column rename
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2026-01-25 16:38:45 +11:00
Jokob @NetAlertX
3109b5d253 feat: Update plugin descriptions for authoritative column handling and overwrite conditions 2026-01-21 09:38:53 +00:00
Jokob @NetAlertX
9f1d04bcd4 feat: Update plugin configurations to include additional SET_EMPTY options 2026-01-21 08:48:47 +00:00
Jokob @NetAlertX
478b018fa5 feat: Enhance plugin configurations and improve MAC normalization 2026-01-21 01:58:52 +00:00
Jokob @NetAlertX
3b203536b8 ALL:Authoritative plugin fields 2026-01-19 11:28:37 +00:00
jokob-sk
b9d3f430fe FE: regex validation for cron run schedules
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2025-11-27 12:10:33 +11:00
jokob-sk
e242de0ddf ARPSCAN DURATION #1172
Signed-off-by: jokob-sk <jokob.sk@gmail.com>
2025-10-05 15:37:17 +11:00
jokob-sk
10a0921e35 plugins columns cleanup, devDetail cleanup, better icon selector CUSTPROP 2025-07-23 22:25:35 +10:00
jokob-sk
dd2b872712 Cron Schedule validation 2025-02-08 10:53:43 +11:00
jokob-sk
6718d054dc #951, small fixes 2025-01-12 11:46:32 +11:00
jokob-sk
4c46b27643 🔌Plugins page rebuild with DataTables 2024-10-24 21:51:16 +11:00
jokob-sk
bbb617ebda SPDTST increase maximum to 1000000 #854 + sync bugfix 2024-10-20 21:37:59 +11:00
jokob-sk
68fb1b7cbb 🔌Plugin execution order 2024-07-14 20:48:10 +10:00
jokob-sk
6049ba00c7 ⚙ Settings rework 3 - json linter 2024-07-09 21:54:55 +10:00
jokob-sk
6ea3d14480 ⚙ Settings rework 2024-07-07 23:11:30 +10:00
jokob-sk
5afc82f33e 🐛 ARPSCAN & INTNT scans could not be disabled #726 2024-07-05 20:32:54 +10:00
jokob-sk
1d525cb84c 🔃 Sync Hub v0.8.1 + CSS fixes + Empty settings sanity check + JSON linting + docs 2024-06-08 18:01:58 +10:00
jokob-sk
294518b146 Settings filter v0.2 🔍 2024-04-25 14:14:19 +10:00
jokob-sk
5cb7553ed5 Rename work 🏗 2024-04-12 19:44:29 +10:00
Jokob-sk
ddfd0d3cb3 docs 📚, links to plugin docs 2024-01-07 10:26:08 +11:00
Jokob-sk
e434a686c6 Settings overview dashboard + #462 work 2023-10-24 20:38:44 +11:00
Jokob-sk
138a899e34 Settings overview dashboard 2023-10-22 22:15:22 +11:00
Jokob-sk
ae7533cec0 Feature request - configurable arp-scan args #486 🎁 2023-10-22 09:41:38 +11:00
Jokob-sk
8ad63ba07d MQTT rework v0.1 + Settings UI improvements ⚙ 2023-10-14 15:35:09 +11:00
Markus Lorenz
1a02d34e85 Add german readme to arp_scan plugin, format config file 2023-10-09 11:32:55 +02:00
Markus Lorenz
88bbae7c84 Add german translation to internet_ip plugin 2023-10-09 10:57:44 +02:00
Markus Lorenz
9485b5adfb Add german translation to arp_scan plugin 2023-10-09 10:22:18 +02:00
Jokob-sk
1711cbfe2d Plugin:Speedtest v0.1 2023-10-03 20:18:34 +11:00
Jokob-sk
c08b70a38d internet_ip plugin 0.2 2023-09-20 21:53:22 +10:00
Jokob-sk
8676b7ccde Add cur_ScanMethod & fix Plugins display name in lists 2023-09-06 22:03:28 +10:00
Jokob-sk
e6644ad3ec NMAP plugin conversion v0.1 2023-08-27 18:45:07 +10:00
Jokob-sk
3b60a3a1ae docs + convert pholus to plugin v0.1 2023-08-24 08:03:19 +10:00
Jokob-sk
1067211033 mac to device name JS function, translation DHCP leases fix 2023-08-23 20:00:59 +10:00
Jokob-sk
20986852de arp_scan plugin update column + settings skip cache 2023-08-23 10:08:12 +10:00
Jokob-sk
609e118a7a Report fix + missing-in-last-scan functionality 2023-08-20 11:26:58 +10:00
Jokob-sk
a3359dbec4 Settings cleanup, docs and strings, Removal of ENABLE_ARPSCAN 2023-08-16 08:01:56 +10:00
Carlos V
086d1c03cf Update config.json
Added Spanish translation
2023-08-12 20:39:20 +02:00
Jokob-sk
b3159d683c Docs + show_ui 2023-08-12 07:24:42 +10:00
Jokob-sk
0e23c6ac61 PIHOLE to plugin rewrite 2023-08-09 07:52:56 +10:00
Jokob-sk
db4d81863b PIHOLE to plugin rewrite 2023-08-08 17:29:27 +10:00
Jokob-sk
9ddea01f12 ARPSCAN to plugin rewrite 2023-08-08 06:52:43 +10:00
Jokob-sk
80bda24b5f ARPSCAN to plugin rewrite 2023-08-07 17:42:46 +10:00
Jokob-sk
ff9245c31d ARPSCAN to plugin rewrite 2023-08-07 15:33:41 +10:00
Jokob-sk
9a13133a5f ARPSCAN to plugin rewrite 2023-08-07 08:23:39 +10:00
Jokob-sk
c2da5c56b8 ARPSCAN to plugin rewrite 2023-08-06 10:50:03 +10:00
Jokob-sk
ccbf4defe8 Set PWD plugin #286 work 2023-08-05 16:36:40 +10:00
Jokob-sk
c3c3de01e0 network tree port/wifi icons + cleanup 2023-08-05 15:52:47 +10:00