Skip to content

Commit

Permalink
Adds a short description of the tool...
Browse files Browse the repository at this point in the history
Part of #6, explains what this tool is.
  • Loading branch information
samueldr committed Jan 27, 2018
1 parent 9b67626 commit 36624b1
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
23 changes: 23 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@ import Backlog from "./backlog";
// FIXME : build configuration?
const WELL_KNOWN = "https://logs.nix.gsc.io/logs";

const MAN = `
ofborg-viewer(web) ofborg web interface ofborg-viewer(web)
NAME
ofborg-viewer — Build logs web interface
DESCRIPTION
ofborg-viewer is a web interface that aggregates the currently in-progress
build logs made by ofborg.
New logs for the given build will be added to the discovered logs at the
top if the interface. Clicking them or activating them through the keyboard
shortcuts of your browser will show them.
The log will autscroll when the logger interface is scrolled at the bottom.
Scrolling up will stop the autoscroll until scrolled back down.
`;

/**
* The logger app.
*/
Expand All @@ -27,6 +46,10 @@ class App {
boot() {
window.document.title = "Log viewer starting...";
this.gui = new Gui();

this.log("$ man ofborg-viewer", null, {tag: "ofborg"});
this.log(MAN, null, {tag: "man"});

this.log("→ logger starting", null, {tag: "ofborg"});
window.document.title = "Log viewer started...";

Expand Down
6 changes: 5 additions & 1 deletion src/styles/index.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
@color_borg: #2D8F34;
@color_debug: #8F2D87;
@color_header_bg: #AFFFFF;
@color_man: #424775;
@color_header_fg: #005FFF;
@color_header_selected: #ffffff;
@colof_header_focus: #DC00B8;
Expand Down Expand Up @@ -151,7 +152,7 @@ body {
}

// Specially tagged messages.
.ofborg, .stomp {
.ofborg, .stomp, .man {
border-left: @left_border/2 solid transparent;
padding-left: @left_border/2;
color: #666;
Expand All @@ -167,6 +168,9 @@ body {
.stderr {
color: #BA3300;
}
.man {
border-left-color: @color_man;
}

// The previous bits of logs.
&.backlog {
Expand Down

0 comments on commit 36624b1

Please sign in to comment.