501622a676
Refactor codebase for PSR12 compliance and modernization ( #202 )
...
* PSR12 - First run
Rename functions to match PSR12 requirements
* PSR12 run 1
- Change tabs to spaces
- add consts
* reduce cognetive complexity scores based on PSR12 and sonar scans
* Split poller_monitor with helper file
* update docblocks
* code reorginization
Breaking up some of the large files
* modernize js
Replaced legacy var with const/let.
Switched loose checks to strict (===, !==, strict typeof checks).
Added default param: applyFilter(action = '').
Used template literals for URL/query string assembly.
Converted many callbacks to arrow functions and shorthand methods.
Removed one duplicate object key in saveFilter payload (trim was defined twice with same value).
Kept existing flow, DOM selectors, action names, and endpoints unchanged.
* Update monitor.js
Applied the Sonar-requested cleanups in monitor.js:
* remove unused variables
* remove unused variables
* Update copilot-instructions.md
* PSR12 formatting
* Update db_functions.php
* refactor functions
Refactor rending function and Ajax call functions
Lowe cognetive complexity
prepare for easier testing
* Add missing docblocks
* Apply typing
* remove checks for min php version
* correct installation errors after PSR12
* try iinstall fix one more time
* .
* Update monitor_controller.php
* Update monitor_controller.php
* Update monitor_render.php
* fix typing errors
* apply php cs-fixer updates
* missed 2 commits
* Update js/monitor.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update js/monitor.js
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update copilot-instructions.md
---------
Co-authored-by: TheWitness <thewitness@cacti.net >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-03-07 11:55:27 -05:00
d9d25655da
CI workflow and CS fixer updates ( #198 )
...
* add CI workflow and AI instructions
* Apply csfixer updates
* Update .github/agents/mysql-mariadb.agent.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update .github/agents/mysql-mariadb.agent.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update .github/agents/triage_agent.md.agent.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
---------
Co-authored-by: TheWitness <thewitness@cacti.net >
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2026-02-14 20:04:33 -05:00
TheWitness
89a2a485ad
Update copyrights to 2026 ( #199 )
2026-02-14 15:56:15 -05:00
TheWitness
c9ea6ecd34
QA: Update Copyrights to 2025
2025-06-16 09:20:41 -04:00
TheWitness
cae4012523
QA: Updating Copyrights to 2024
2024-03-16 04:57:13 +05:30
netniV
f0b6bf5e54
Update copyright for 2023
2023-01-04 22:15:22 +00:00
TheWitness
ce822e5b9b
Fixing Issue #340 - Spelling
...
Fix "Notification" Spelling Error
2021-02-23 07:42:08 -05:00
cigamit
8336774254
Resolving Issues #81 , #84
...
Two fixes, some i18n and format changes, and an easter egg
2019-02-17 12:18:33 -06:00
cigamit
c3d3e3749d
committing monitor 2.0
...
Note: Requires some syslog and base cacti changes.
Rough ChangeLog as follows:
--- 2.0 ---
feature: Support for Cacti 1.0
feature: Complete redesign using font awesome
feature: Allow specification of device criticality
feature: Allow specification of warning and alert ping round trip
latency number
feature: All GUI interactions using ajax
feature: Specification of settings using filter
feature: Save user based settings
feature: Using new Cacti permissions system
feature: Generalized code cleanup
feature: Integrate better with Thold and Syslog
2016-06-26 19:36:27 -05:00