mirror of
https://github.com/ansible/awx.git
synced 2026-01-16 12:20:45 -03:30
more stdout styling
This commit is contained in:
parent
261c91d836
commit
3e2940203f
@ -16,6 +16,7 @@
|
||||
padding: 10px 10px 10px;
|
||||
color: @b7grey;
|
||||
width: 75px;
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
.JobResultsStdOut-lineNumberColumn--first{
|
||||
@ -26,6 +27,10 @@
|
||||
.JobResultsStdOut-stdoutColumn{
|
||||
padding: 10px 20px 10px 20px;
|
||||
color: @default-interface-txt;
|
||||
display: inline-block;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: normal;
|
||||
width:100%;
|
||||
}
|
||||
|
||||
.JobResultsStdOut-stdoutColumn--first{
|
||||
|
||||
@ -11,11 +11,20 @@ export default [function(){
|
||||
// that i'm currently seeing on this branch on the beginning
|
||||
// and end of each event string. In the future it could be
|
||||
// used to add styling classes to the actual lines of stdout
|
||||
line = line.replace(/rn/g, '\r\n');
|
||||
line = line.replace(/rn/g, '');
|
||||
line = line.replace(/u001b/g, '');
|
||||
|
||||
// ok
|
||||
line = line.replace(/\[0;32m/g, '<span class="ansi33">');
|
||||
|
||||
//unreachable
|
||||
line = line.replace(/\[1;31m/g, '<span class="ansi1 ansi31">');
|
||||
line = line.replace(/\[0;31m/g, '<span class="ansi1 ansi31">');
|
||||
|
||||
line = line.replace(/\[0;32m=/g, '<span class="ansi32">');
|
||||
line = line.replace(/\[0;32m1/g, '<span class="ansi36">');
|
||||
|
||||
//end span
|
||||
line = line.replace(/\[0m/g, '</span>');
|
||||
return line;
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user