mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 12:41:19 -03:30
fix job results styling
This commit is contained in:
parent
0a25b286ca
commit
4c665171ed
@ -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;
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -178,7 +178,7 @@
|
||||
color: @default-err;
|
||||
}
|
||||
|
||||
.JobResultsStdOut-stdoutColumn {
|
||||
.JobResultsStdOut-stdoutColumn--clickable {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user