Introduces a new 'customFiles' array in the config schema for granular domain-level CSS and JavaScript customization. Updates webserver logic to inject custom CSS/JS tags based on template scope, replacing static custom.css/custom.js references in all Handlebars views. Also updates meshctrl.js to support the new config property.
* Update login token modal and button behavior
Removes orange background from username and password fields in the login token modal,
updates modal title to 'Login Token Created', disables the OK button, and changes
the Cancel button text to 'Close'. Also adds a 'return false' statement to
account_createLoginTokenEx to keep the modal open upon token creation.
* Added Close and Login Token Created
Added Close and Login Token Created
* Add translations for 'Login Token Created'
Added multiple language translations for the 'Login Token Created' message in translate.json to improve localization support.
Corrected the callback function for the ‘Remove Login Token’ modal to properly execute the token removal. The previous implementation incorrectly wrapped the callback in an arrow function returning another function, preventing the logic from running.
* Add initial support for custom stylesheets
Allow an override file `custom.css` that can partially override the
stylesheet used for the web interface.
# Changes
1. Update default views to use custom stylesheet
2. Update documentation
Related to: https://github.com/Ylianst/MeshCentral/issues/7144
* Add custom style support to more views
Load `custom.css` in the following views:
- agentinvite.handlebars
- invite.handlebars
- login2.handlebars
- message2.handlebars
- messenger.handlebars
- player.handlebars
- sharing.handlebars
Introduces the .backgroundContainer class to improve styling of modal content in night mode by setting text color. Updates relevant divs in default3.handlebars to use this class for hardware keys and login events sections. Also adjusts the width of login event entries for better display.
* update default.handlebars to implement gotodevicername
Adding a new gotodevicername url option to reach the device page
* update default3.handlebars to implement gotodevicername
Adding a new gotodevicername url option to reach the device page
* update mobile.handlebars to implement gotodevicername
Adding a new gotodevicername url option to reach the device page
---------
Co-authored-by: rida.abou <rida.abouechcharaf@pytech.it>
* Add flags to meshes to prefer agentname when synced and to override synced name temporarily
* automatically enable sub-options
* change caption
* apply changes to bootstrap UI