Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hey, je suis français mais puisque tout ce github parle anglais, i'm going to speak the king's.
First of all, I don't have a great knowledge in Vue.js at all, I've made this modification for my robotics team at INSA Rennes. (all help is appreciated 👈(゚ヮ゚👈) )
I've added support to ANSI color coding (at least tried) to log messages, charts title and single values (text).
I made small modification of ansi_up code which convert ANSI coloring into HTML div with style (foreground et background text).
In
DataSeries.js
andTelemetry.js
, I added acolored_name
member which contain the HTML colored text, thename
member still have the ANSI code with the text in it.Because ANSI code have semi-colons in it, I've had to modify
serverMessageReading.js
to allow semi-colons in the text if and only if the telemetry is a text.Vue.js double mustache
{{serie.name}}
parse the variable inside of it as text but we have the text inside a div, so I usedv-html
to counter this restriction (see vue docs).I know there can still be some problems somewhere, I look forward to fix them!