mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 08:48:46 -03:30
early styling of stdout
This commit is contained in:
@@ -13,8 +13,8 @@
|
|||||||
<div class="JobResultsStdOut-lineNumberColumn">
|
<div class="JobResultsStdOut-lineNumberColumn">
|
||||||
{{line.end_line}}
|
{{line.end_line}}
|
||||||
</div>
|
</div>
|
||||||
<div class="JobResultsStdOut-stdoutColumn">
|
<div class="JobResultsStdOut-stdoutColumn" ng-bind-html="line.stdout">
|
||||||
{{line.stdout}}
|
<!-- {{line.stdout}} -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -11,7 +11,13 @@ 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
|
||||||
return line.replace(/rn/g, '');
|
line = line.replace(/rn/g, '\r\n');
|
||||||
|
line = line.replace(/u001b/g, '');
|
||||||
|
line = line.replace(/\[0;32m/g, '<span class="ansi33">');
|
||||||
|
line = line.replace(/\[0;32m=/g, '<span class="ansi32">');
|
||||||
|
line = line.replace(/\[0;32m1/g, '<span class="ansi36">');
|
||||||
|
line = line.replace(/\[0m/g, '</span>');
|
||||||
|
return line;
|
||||||
},
|
},
|
||||||
parseStdout: function(event){
|
parseStdout: function(event){
|
||||||
// this object will be used by the ng-repeat in the
|
// this object will be used by the ng-repeat in the
|
||||||
|
|||||||
Reference in New Issue
Block a user