forked from philberty/vigilant
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial logging packets and data structures
- Loading branch information
Showing
10 changed files
with
368 additions
and
103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,7 @@ build/ | |
bindings/python/pywatchy.c | ||
*.log | ||
src/test | ||
src/log | ||
src/watcher | ||
src/config.h.in~ | ||
libtool | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>Stats Node {{ node }}</title> | ||
|
||
<link href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet"> | ||
<link href="/deps/css/index.css" rel="stylesheet" type="text/css"> | ||
<link href="/deps/css/graph.css" rel="stylesheet" type="text/css"> | ||
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | ||
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script> | ||
|
||
<script type="text/javascript"> | ||
$(function () { | ||
var gkey = '{{ node }}' | ||
function fillSideBar () { | ||
function keyFetch (keys) { | ||
$('.nav.nav-sidebar').empty () | ||
var ovr = "<li><a href=\"/\">Overview</a></li>" | ||
$('.nav.nav-sidebar').append (ovr) | ||
|
||
for (var i in keys ["keys"]) { | ||
var ikey = keys ["keys"] [i] | ||
var tab = "" | ||
if (ikey == gkey) { | ||
tab = "<li class=\"active\"><a href=\"__key__\">__key__</a></li>" | ||
} else { | ||
tab = "<li><a href=\"__key__\">__key__</a></li>" | ||
} | ||
tab = tab.replace ("__key__", ikey) | ||
tab = tab.replace ("__key__", ikey) | ||
$('.nav.nav-sidebar').append (tab) | ||
} | ||
} | ||
$.ajax({ | ||
url: "/api/logs/keys", | ||
type: "GET", | ||
dataType: "json", | ||
success: keyFetch | ||
}); | ||
} | ||
|
||
fillSideBar (); | ||
setInterval (fillSideBar, 10000) | ||
}); | ||
</script> | ||
|
||
</head> | ||
|
||
<body> | ||
|
||
<div class="navbar navbar-inverse navbar-fixed-top" role="navigation"> | ||
<div class="container-fluid"> | ||
<div class="navbar-header"> | ||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> | ||
<span class="sr-only">Toggle navigation</span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
<span class="icon-bar"></span> | ||
</button> | ||
<a class="navbar-brand" href="/">Watchy Stats Server</a> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-sm-3 col-md-2 sidebar"> | ||
<ul class="nav nav-sidebar"> | ||
|
||
</ul> | ||
</div> | ||
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main"> | ||
<h1 class="page-header">Dashboard {{ node }}</h1> | ||
|
||
DO SOMETHING HERE | ||
|
||
</div> | ||
</div> | ||
</div> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.