Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for "dark mode" and custom page title in html logger #1617

Merged
merged 5 commits into from
Feb 22, 2025

Conversation

JamesJJ
Copy link
Contributor

@JamesJJ JamesJJ commented Feb 21, 2025

This PR introduces two new features:

1/ The page title can be configured using a new navbar_title configuration line. The default if not set is "SimpleMonitor", which matches previous behaviour. The screenshot below is an example with navbar_title=Network Dashboard.

2/ The page can be configured to display with a dark theme using a new visual_theme configuration line. The default if not set is "light", which matches previous behaviour. The screenshot below is an example with visual_theme=dark.

html-appearance-options

The different themes are provided by Bootstrap 5.3, and this PR includes updating bootstrap to 5.3.3 for that. The PR also version bumps the other frontend dependencies too.

For map output, the page navbar and page background below the map support dark theme, however the map picture (the map tiles) remain in their original colours.

var tooltipTriggerList = [].slice.call(
document.querySelectorAll('[data-toggle="tooltip"]')
);
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note test

Unused variable tooltipList.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in #1618

});
check_age();
setTimeout(too_old, (30 * 2000));
update_props = {

Check warning

Code scanning / CodeQL

Missing variable declaration Warning test

Variable update_props is used like a local variable, but is missing a declaration.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in #1618

@jamesoff jamesoff merged commit 6e1fac4 into jamesoff:develop Feb 22, 2025
10 of 21 checks passed
@jamesoff
Copy link
Owner

This is awesome, thanks :)

@JamesJJ JamesJJ deleted the html-appearance-options-1 branch February 22, 2025 16:57
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.

2 participants