This repository has been archived by the owner on Dec 20, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit dbcdf02
Showing
21 changed files
with
3,231 additions
and
0 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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,3 @@ | |||
config.js | |||
node_modules | |||
.DS_Store |
Empty file.
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,9 @@ | |||
modules.exports = { | |||
loggly: { | |||
subdomain: '', | |||
auth: { | |||
username: '', | |||
password: '' | |||
} | |||
} | |||
}; |
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,13 @@ | |||
{ | |||
"name": "loggly-dashboard", | |||
"version": "1.0.0", | |||
"dependencies": { | |||
"express": "*", | |||
"jade": "*", | |||
"stylus": "*", | |||
"nib": "*", | |||
"winston": "*", | |||
"loggly": "*" | |||
} | |||
} | |||
|
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 | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,30 @@ | |||
!function(public) { | |||
|
|||
var renderWidgets = function() { | |||
var widgetContainer = $("#widgets"); | |||
for (var key in widgets) { | |||
var widget = widgets[key]; | |||
if (widget.disabled) | |||
continue; | |||
var node = $("<div/>").attr("id", key).addClass("Widget").addClass(widget.ui.type); | |||
if (widget.ui.type == "list") { | |||
new ListWidget({ el: node, key: key, settings: widget }); | |||
} | |||
else if (widget.ui.type == "bar") { | |||
new BarWidget({ el: node, key: key, settings: widget }); | |||
} | |||
widgetContainer.append(node); | |||
} | |||
}; | |||
|
|||
|
|||
var initGoogleCharts = function(cb) { | |||
google.load("visualization", "1", {packages:["corechart"]}); | |||
google.setOnLoadCallback(cb); | |||
}; | |||
|
|||
initGoogleCharts(function() { | |||
renderWidgets(); | |||
}); | |||
|
|||
}(this); |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.