Skip to content

Commit

Permalink
Merge pull request buildbot#8271 from mokibit/fix-builds-logs-bold
Browse files Browse the repository at this point in the history
www: Implement bold text style in builds steps logs
  • Loading branch information
p12tic authored Dec 14, 2024
2 parents 66efcdc + d4526a8 commit 2163d9b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Implement bold text style in builds steps logs (:issue:`7853`)
2 changes: 2 additions & 0 deletions www/base/src/components/LogViewer/LogViewerText.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
}
// bright colors
.ansi1 {
font-weight: bold;
&.ansi30 {
color: #ffffff;
}
Expand Down Expand Up @@ -76,6 +77,7 @@
}
// bright colors
.ansi1 {
font-weight: bold;
&.ansi40 {
background-color: #ffffff;
}
Expand Down
9 changes: 9 additions & 0 deletions www/base/src/util/AnsiEscapeCodes.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,15 @@ describe('AnsiEscapeCodes', () => {
]);
});

it('bold', () => {
const ret = parseEscapeCodesToSimple(
"\x1b[1;36mDEBUG [plugin]: \x1b[39mLoading plugin karma-jasmine.");
expect(ret).toEqual([
{class: "ansi1 ansi36", text: "DEBUG [plugin]: "},
{class: "", text: "Loading plugin karma-jasmine."},
]);
});

it('256 colors reset only fg last instruction', () => {
const ret = parseEscapeCodesToSimple(
"\x1b[48;5;71mDEBUG \x1b[38;5;72m[plugin]: \x1b[39mLoading plugin karma-jasmine.");
Expand Down

0 comments on commit 2163d9b

Please sign in to comment.