-
-
Notifications
You must be signed in to change notification settings - Fork 149
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
Improve the "Debug Console" to add functionality and fix bugs #944
Conversation
- Improved the CSS code and JS code - Added the support for the "show 'list'" options as a select - Add an additional section to show only the "list" commands, when the user selects such option - Fixed the code detecting "list" messages, as it was missing cases where the JSON content had a "Ports" property but its value was null instead of an empty array.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super 🚀
I see that we're using a very old version of jquery, what do you think if we remove it and use just vanilla js?
home.html
Outdated
const MESSAGES_MAX_COUNT = 2000; | ||
|
||
// Check if the list visibility setting is saved in the localStorage. | ||
const LOCAL_STORAGE_KEY = "ArduinoAgentListVisibility"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
😮 noice!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice Work!
The code has been restructured to be simpler and avoid global variable as much as possible.
@alessio-perugini @umbynos jQuery has been removed, code simplified a bit and global variables usage reduced. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sweet 🤩 .
Tested on ubuntu working 🚀
Changes:
Closes #943