fix job results styling

This commit is contained in:
John Mitchell 2017-02-22 15:52:24 -05:00
parent 0a25b286ca
commit 4c665171ed
4 changed files with 11 additions and 3 deletions

View File

@ -46,7 +46,7 @@
.ansi3 { font-weight: italic; }
.ansi4 { text-decoration: underline; }
.ansi9 { text-decoration: line-through; }
.ansi30 { color: @default-stdout-txt; }
.ansi30 { color: @default-data-txt; }
.ansi31 { color: @default-err; }
.ansi1.ansi31 {
color: @default-unreachable;

View File

@ -159,6 +159,7 @@
border: 1px solid #ccc;
font-style: normal;
background-color: @default-no-items-bord;
font-family: Monaco, Menlo, Consolas, "Courier New", monospace;
}
.HostEvent-numberColumnPreload {
@ -189,5 +190,4 @@
.HostEvent-stdoutColumn{
margin-left: 46px;
padding-top: 4px;
font-family: monospace;
}

View File

@ -178,7 +178,7 @@
color: @default-err;
}
.JobResultsStdOut-stdoutColumn {
.JobResultsStdOut-stdoutColumn--clickable {
cursor: pointer;
}

View File

@ -28,6 +28,10 @@ export default ['$log', 'moment', function($log, moment){
// ansi classes
line = line.replace(/\[1;im/g, '<span class="JobResultsStdOut-cappedLine">');
line = line.replace(/\[0;30m/g, '<span class="ansi30">');
line = line.replace(/\[1;30m/g, '<span class="ansi1 ansi30">');
line = line.replace(/\[1;31m/g, '<span class="ansi1 ansi31">');
line = line.replace(/\[0;31m/g, '<span class="ansi1 ansi31">');
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">');
@ -48,6 +52,8 @@ export default ['$log', 'moment', function($log, moment){
line = line.replace(/u001b/g, '');
// ansi classes
line = line.replace(/\[0;30m/g, '');
line = line.replace(/\[1;30m/g, '');
line = line.replace(/\[1;31m/g, '');
line = line.replace(/\[0;31m/g, '');
line = line.replace(/\[0;32m/g, '');
@ -210,6 +216,8 @@ export default ['$log', 'moment', function($log, moment){
if (line.indexOf("[0m") === -1) {
if (line.indexOf("[1;31m") > -1) {
colorCode = "[1;31m";
} else if (line.indexOf("[1;30m") > -1) {
colorCode = "[1;30m";
} else if (line.indexOf("[0;31m") > -1) {
colorCode = "[0;31m";
} else if (line.indexOf("[0;32m=") > -1) {