styling fixes to job results

This commit is contained in:
John Mitchell 2016-11-08 11:24:15 -05:00 committed by jaredevantabor
parent 783f784e69
commit 7795ad0d2b
2 changed files with 10 additions and 3 deletions

View File

@ -132,7 +132,6 @@
color: @b7grey;
width: 75px;
flex: initial;
white-space: pre-line;
user-select: none;
-moz-user-select: none;
-webkit-user-select: none;
@ -147,7 +146,7 @@
color: @default-interface-txt;
display: inline-block;
white-space: pre-wrap;
word-wrap: normal;
word-break: break-word;
width:100%;
}

View File

@ -8,16 +8,24 @@ export default [function(){
var val = {
prettify: function(line){
// TODO: figure out from Jared what this is
if (line.indexOf("[K") > -1) {
console.log(line);
}
line = line.replace(/u001b/g, '');
// ansi classes
line = line.replace(/\[0;32m/g, '<span class="ansi32">');
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;33m/g, '<span class="ansi33">');
line = line.replace(/\[0;34m/g, '<span class="ansi34">');
line = line.replace(/\[0;35m/g, '<span class="ansi35">');
line = line.replace(/\[0;36m/g, '<span class="ansi36">');
line = line.replace(/(<host.*?>)\s/g, '$1');
//end span
line = line.replace(/\[0m/g, '</span>');