Commit Graph

7121 Commits

Author SHA1 Message Date
TheDevRyan
53f108fe7b Refactor: Rebuilt Masthead User Dropdown for Cleaner Structure and Modern Behavior (#7398)
* Update default3.handlebars

* Update default3.handlebars

* Update style-bootstrap.css

* Update translate.json

* Improve user dropdown menu visibility and control

Refactored user dropdown menu items in default3.handlebars to add unique IDs and a new 'mobile-menu-item' class for better visibility control. Added logic to conditionally show/hide menu items based on UI mode and feature flags, including forced Modern UI and night mode. Updated CSS to remove unnecessary border styling. updated webserver.js to set a feature flag when Modern UI is forced.

* Adjust desktop breakpoint and submenu animation logic

Changed desktop breakpoint from 1025px to 769px in both CSS and JS to better align with responsive design. Submenu animation now respects the user's reduced motion preference, disabling transitions when 'prefers-reduced-motion' is enabled.

* Improve masthead layout and text overflow handling

* Refine mobile menu item visibility logic

Updated the logic for showing/hiding mobile menu items based on uiMode. Now, only menu items without 'users-menu-item', 'files-menu-item', or 'server-menu-item' classes are shown when uiMode is not 2 or 3.

* Update style-bootstrap.css

* Comment out toggleModernUIMenuItem line

Comment out the toggleModernUIMenuItem visibility check.

* Update translate.json
2025-11-17 11:46:46 +00:00
Simon Smith
6103d94e2c Delete translate/mytranslate.js 2025-11-17 11:37:14 +00:00
TheDevRyan
208ddddf53 Add modal support to plugin add dialog (#7432)
Enhanced the addPluginDlg function to use showModal when available, improving compatibility with different UI templates. Falls back to setDialogMode for environments without showModal.
2025-11-17 10:34:15 +00:00
TheDevRyan
dd010f03e5 Fix deviceViewPanel to properly initialize panel entries (#7433)
Corrects the logic in deviceViewPanel to ensure that each plugin's panel entry is initialized as an object with header and content properties, and checks for the existence of both on_device_header and on_device_page functions before invoking them.
2025-11-17 10:33:48 +00:00
TheDevRyan
afe0aed976 Improve plugin file handling and cleanup logic (#7434)
* Improve plugin file handling and cleanup logic

Adds checks and fallbacks for temporary directory write access when creating plugin zip files, and enhances error handling when creating write streams. Updates plugin removal to use fs.rmSync with force and recursive options, and adds error handling for directory removal.

* Update pluginHandler.js
2025-11-17 10:33:09 +00:00
si458
a1f182426e add first agent connection to the details page and attribute firstconnect #7408
Signed-off-by: si458 <simonsmith5521@gmail.com>
2025-11-16 18:53:30 +00:00
si458
9545bec218 replace av and chassistype with wmi instead of powershell
Signed-off-by: si458 <simonsmith5521@gmail.com>
2025-11-16 16:18:40 +00:00
si458
da73bff99e fix defender and add defender to console command
Signed-off-by: si458 <simonsmith5521@gmail.com>
2025-11-16 16:09:50 +00:00
si458
312e2ea228 add windows defender signature version
Signed-off-by: si458 <simonsmith5521@gmail.com>
2025-11-15 22:03:00 +00:00
DaanSelen
3faace86d6 chore: df alternate to exclude memory (#7428) 2025-11-14 14:16:16 +00:00
Simon Smith
7319b20892 i really cant type at times and so close too!
Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
2025-11-06 16:48:52 +00:00
Simon Smith
858113b1ac use 24.04 arm runners and node 22
Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
2025-11-06 16:33:49 +00:00
Simon Smith
ce4b298deb fix domain sitestyle forcing a style and not allowing switching
Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
2025-11-06 15:51:31 +00:00
DaanSelen
433a0ef3c2 chore: improve formatting of video tutorial links (#7412)
Updated video tutorial section with line breaks for better formatting.
2025-11-04 22:10:49 +00:00
Fausto Gutierrez
55b840ad7c Update translate.json (Spanish) (#7410)
Fix "Agent online/offline" translation to Spanish and improve other "connected" related translations
2025-11-04 19:05:13 +00:00
Bruno Kambere
cc305aa9e1 Remove "Try the new MeshCentral UI" and fix footer in modern UI (#7395)
* remove new UI prompt from the default3 template

* enhance footer styles and update visibility in default3 template
2025-11-02 13:01:07 +00:00
si458
3ab7e0a375 fixed files/my files rename bug #7321
Signed-off-by: si458 <simonsmith5521@gmail.com>
2025-11-02 12:48:34 +00:00
si458
6df2c7b76b remove loading=lazy and fix messaging icon/text #7328
Signed-off-by: si458 <simonsmith5521@gmail.com>
2025-10-31 21:52:54 +00:00
si458
0a9d718b1d remove armv6/v7 from docker for the moment
Signed-off-by: si458 <simonsmith5521@gmail.com>
2025-10-31 20:15:05 +00:00
si458
ad8b2e366b fix minify with flasherrors and pin passport modules versions #7386
Signed-off-by: si458 <simonsmith5521@gmail.com>
2025-10-31 20:09:37 +00:00
silversword411
3922d7b4d0 fix(schema): correct formatting and add patternProperties for disabled settings (#7402) 2025-10-31 10:39:04 +00:00
silversword411
b6302e3c15 fix(docs): update links to ODT files and change image formats from PNG to JPG and other misc fixes (#7401) 2025-10-31 10:38:05 +00:00
stephannn
49da5da9dd autoAcceptIfLocked and more! (#7319) 2025-10-28 17:20:49 +00:00
si458
1bd06ccded finally add http/s_proxy support for oidc and more in future #6616
Signed-off-by: si458 <simonsmith5521@gmail.com>
2025-10-28 16:42:32 +00:00
si458
7681f52ee6 fix modern ui menu opening multiple windows with shift key #7343
Signed-off-by: si458 <simonsmith5521@gmail.com>
2025-10-27 17:18:35 +00:00
TheDevRyan
3bcfd031ca Update to customFiles - Object instead of array (#7384)
* Updated to use Object instead of array, still supports old array
2025-10-27 16:09:10 +00:00
si458
b50d07c183 add interface speed for networking (windows for now) #7354
Signed-off-by: si458 <simonsmith5521@gmail.com>
2025-10-27 16:05:35 +00:00
Simon Smith
a051cb5548 try ubuntu-22.04 docker
Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
2025-10-27 10:27:10 +00:00
Simon Smith
d0e352c6c8 remove package-lock for docker fixes
Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
2025-10-27 10:09:29 +00:00
Simon Smith
d7efb1f3b1 add DISABLE_EXTRACT to dockerfile and max-parallel to fix docker workflows
Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
2025-10-27 09:50:15 +00:00
Simon Smith
4137132701 fix dockerfile and improved docker workflow
Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
2025-10-27 09:29:57 +00:00
si458
c899ee2404 fix proxmox and nodered websocket web relay issue (no cookies being passed) #7269
Signed-off-by: si458 <simonsmith5521@gmail.com>
2025-10-25 18:49:59 +01:00
DaanSelen
6e2f9aad37 feat: add docker healthcheck and expand documentation (#7375) 2025-10-25 16:31:44 +01:00
TheDevRyan
f58217280a Update dropdown styling (Light/DarkMode) (#7382) 2025-10-25 16:25:32 +01:00
TheDevRyan
29858c65e7 Added loginkey check for server maintenance mode (#7383) 2025-10-25 13:42:09 +01:00
TheDevRyan
d31a7e54dc Add permission checks to user dropdown menu (#7381)
Menu items are now conditionally rendered based on user rights and server features.
2025-10-25 11:59:55 +01:00
TechWorkz
f9bb7315cc Update logout redirection logic with key parameter on logoutonidlesessiontimeout (#7379) 2025-10-25 10:32:06 +01:00
Simon Smith
751f6a80e5 update docs script windows
Added installation commands for mkdocs-print-site-plugin and pymdown-extensions.
2025-10-24 23:25:10 +01:00
Simon Smith
d386f02a2e Add mkdocs-print-site-plugin to docs dependencies 2025-10-24 23:21:11 +01:00
DaanSelen
781c2ea60a refac(docs): MeshCentral Mkdocs rewrite (#7216)
* Sanitation and cleanup.

* More sanitation.

* Good base.

* Conversion of images to jpeg for background and added border-radius.

* sanitation and css addition.

* Moved documents and further expanded documentation.

* Converting images and setting structure.

* Minor text addition

* [ENH] Improve home page documentation, meshcentral index page documentation

* [ENH]Improve submodules & features page

* [ENH]review and improve how-to-contribute page

* [ENH]review and improve Design and Architecture page

* [ENH] Reviewed and improve 'Other' pages

* reworked advanced page

* Small additions and corrections.

* minor removal of dashes

* [ENH] Review and improve install menu (With related pages) in the docs (#16)

* feat: rewrite entire install directory

---------

Co-authored-by: alain.cisirika <cisirikalain@gmail.com>
Co-authored-by: Daan Selen <dselen@systemec.nl>
2025-10-24 23:12:52 +01:00
TheDevRyan
b96db142c8 Updated Dropdown Style (#7376)
Updated dropdownMenu Missing Styles + Updated Mobile for Translations
2025-10-24 22:32:11 +01:00
TheDevRyan
683b4e882b Updated DevListToolbar for Mobile (#7377) 2025-10-24 22:04:29 +01:00
Ylian Saint-Hilaire
740a2bfbaa Version 1.1.53 1.1.53 2025-10-24 06:51:19 -07:00
Szymon Sypula
e89f97aaed Fix OIDC login: ensure Passport callback is defined (#7312)
MeshCentral OIDC strategy was throwing `TypeError: done is not a function`
because the callback was not properly passed when using openid-client.

This patch wraps the OIDC callback to detect missing callback parameters,
extracts user info from the id_token if needed, and ensures `done()` is
called in all code paths, including async group fetching. This restores
functional OIDC logins for Azure AD/Keycloak.

Tested on Azure B2C OIDC

Co-authored-by: Szymon Sypula <szymon.sypula@dieboldnixdorf.com>
2025-10-24 14:03:58 +01:00
si458
bd37bb5391 fix user.links being null #7371
Signed-off-by: si458 <simonsmith5521@gmail.com>
2025-10-24 13:18:40 +01:00
TheDevRyan
acd6001a8a Dropdown Menu - re-design / Updated Notifications Icon (#7372)
* Redesign user dropdown menu with new icons and UI

Replaces the old top menu and UI selection controls with a modern user dropdown menu featuring new icon assets, improved styling, and a UI settings submenu. Updates CSS for layout and responsiveness, adds new PNG icon files, and refactors related JavaScript logic for menu toggling and user image handling.

* Replace user dropdown icons with Font Awesome

Swapped out image-based icons in the user dropdown menu for Font Awesome icon elements. This change reduces reliance on image assets, improves consistency, and simplifies icon management.

* Update icons in user dropdown menu

Replaced the UI Settings, Left bar interface, and night mode icons with more appropriate Font Awesome icons for improved clarity and consistency in the user dropdown menu.

* Fixed menu position for Fixed Width Style

* Updated Dropdown for Translations

Refactored hardcoded dropdown text to support translation handling.

* Updated Translations

* Updated dropdown to close SubMenu on all buttons.

* Removed "UserDummyMenuSpan" Not needed any more as we have removed UIMenu

* Improve notification icon UI and add badge

Replaces the plain notification count with a bell icon and a badge for better visibility. (FA)

* notificationBadge & notificationCount:hover

* Add new translations

Added new translation entries for 'Toggle Dark Mode', 'Toggle Light Mode', 'Toggle Footer Bar', 'Left Bar Interface', and 'Top Bar Interface'

* Updated Dropdown background

* Updated Dark/Light Mode Toggle

* Updated Right Chevron Arrow
2025-10-24 12:18:03 +01:00
TheDevRyan
c7d1c0e18f Add advanced custom CSS/JS file support per template (#7361)
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.
2025-10-24 11:53:37 +01:00
Ylian Saint-Hilaire
e5205f285b Version 1.1.52 1.1.52 2025-10-22 12:23:57 -07:00
TheDevRyan
dd01abc38e Update login token modal and button behavior (#7360)
* 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.
2025-10-20 15:02:04 +01:00
TheDevRyan
64ece1df90 Fix remove login token modal callback (#7359)
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.
2025-10-18 10:42:06 +01:00