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