Skip to content

Commit

Permalink
Updated html highlights on the http status codes panel.
Browse files Browse the repository at this point in the history
  • Loading branch information
allinurl committed Mar 30, 2023
1 parent 7a0172d commit ca7255f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
20 changes: 20 additions & 0 deletions resources/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,26 @@ div.wrap-panel > div {
.wrap-panel table .cell-hl.d4 {
background: #9d9d9d;
}
.wrap-panel table .span-hl.lgrn {
background: #e6f4ea;
color: #137333;
}
.wrap-panel table .span-hl.lyel {
background: #fff3cd;
color: #d38a10;
}
.wrap-panel table .span-hl.lred {
background: #fce8e6;
color: #c5221f;
}
.wrap-panel table .span-hl.lblu {
background: #cfe2ff;
color: #052c65;
}
.wrap-panel table .span-hl.lprp {
background: #cdc7ff;
color: #343150;
}

/* thead meta */
.wrap-panel table thead>tr.thead-min th.meta-label,
Expand Down
6 changes: 5 additions & 1 deletion src/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,11 @@ print_def_data (FILE * fp, GModule module, int sp) {
.metakey = "unique",
.metalbl = "Total",
.metatype = "numeric",
.hlregex = "{" "\\\"^(\\\\\\\\d+|\\\\\\\\d+xx)(\\\\\\\\s.*)$\\\": \\\"<b>$1</b>$2\\\"," /* 2xx Success */
.hlregex = "{" "\\\"^(1\\\\\\\\d{2}|1xx)(\\\\\\\\s.*)$\\\": \\\"<b class='span-hl lblu'>$1</b>$2\\\"," /* 2xx Success */
"\\\"^(2\\\\\\\\d{2}|2xx)(\\\\\\\\s.*)$\\\": \\\"<b class='span-hl lgrn'>$1</b>$2\\\"," /* 2xx Success */
"\\\"^(3\\\\\\\\d{2}|3xx)(\\\\\\\\s.*)$\\\": \\\"<b class='span-hl lprp'>$1</b>$2\\\"," /* 3xx Success */
"\\\"^(4\\\\\\\\d{2}|4xx)(\\\\\\\\s.*)$\\\": \\\"<b class='span-hl lyel'>$1</b>$2\\\"," /* 4xx Success */
"\\\"^(5\\\\\\\\d{2}|5xx)(\\\\\\\\s.*)$\\\": \\\"<b class='span-hl lred'>$1</b>$2\\\"," /* 5xx Success */
"\\\"^(AS\\\\\\\\d+)\\\": \\\"<b>$1</b>\\\"," /* AS9823 Google */
"\\\"^(\\\\\\\\d+:)\\\": \\\"<b>$1</b>\\\"," /* 01234: Data */
"\\\"(\\\\\\\\d+)|(:\\\\\\\\d+)|(:\\\\\\\\d+:\\\\\\\\d+)\\\": \\\"$1<b>$2</b>\\\"," /* 12/May/2022:12:34 */
Expand Down

0 comments on commit ca7255f

Please sign in to comment.