Skip to content

v3.4.3#252

Merged
TiTidom-RC merged 90 commits intomasterfrom
beta
Jan 11, 2026
Merged

v3.4.3#252
TiTidom-RC merged 90 commits intomasterfrom
beta

Conversation

@TiTidom-RC
Copy link
Owner

This pull request introduces several improvements and new features to the Monitoring plugin, focusing on enhanced health data reporting, better template selection, improved memory usage logging, and internationalization updates. It also includes some workflow and configuration cleanups.

Monitoring health data and UI improvements:

  • Added a new AJAX action (getHealthData) in Monitoring.ajax.php to provide a comprehensive health summary of all Monitoring equipment, including status, type, SSH info, last refresh, and select command values.
  • Improved template selection logic in Monitoring.class.php to use specific templates for AsusWRT and Synology devices, falling back to a default otherwise.
  • Enhanced dashboard rendering for network info by refactoring inline JavaScript for safer and more robust DOM updates.

Logging and memory usage:

  • Refined memory usage logging in the pullCustom method to include the equipment name in log entries and ensure logs are only written when appropriate.

Security and code safety:

  • Improved HTML attribute escaping for the _tendance# replacement to prevent conflicts and potential injection issues.

Updated the SSH host select initialization in Monitoring.js to ensure event listeners are attached only after options are loaded asynchronously. Bumped plugin version to 3.4.3.
Improved the logic for attaching the change event listener to the SSH host select element by ensuring any existing listener is removed before adding a new one. Also, ensured the toggleSSHButtons function is called after the select is populated, handling both promise and non-promise cases from buildSelectHost.
Refactored toggleSSHButtons to use direct style.display assignments instead of unseen/seen methods for showing and hiding the add and edit buttons.
Updated the toggleSSHButtons function to more reliably extract the selected value from the event object, improving compatibility with different event sources.
Refactored the toggleSSHButtons function to accept either an event or a direct SSHHostId value, improving initialization and event handling. This ensures correct button display when the SSH host select is populated asynchronously or synchronously.
Replaces double quotes with single quotes in the HTML string for the tendance icon to ensure consistency and avoid potential conflicts in attribute quoting.
Updated the tendance icon HTML generation to use escaped double quotes for attribute values, preventing conflicts with surrounding quotes and improving HTML safety.
@TiTidom-RC TiTidom-RC merged commit a37101f into master Jan 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant