Skip to content
This repository has been archived by the owner on Dec 20, 2017. It is now read-only.

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jgallen23 committed Jun 12, 2011
0 parents commit dbcdf02
Show file tree
Hide file tree
Showing 21 changed files with 3,231 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -0,0 +1,3 @@
config.js
node_modules
.DS_Store
Empty file added .monitor
Empty file.
9 changes: 9 additions & 0 deletions config.sample.js
@@ -0,0 +1,9 @@
modules.exports = {
loggly: {
subdomain: '',
auth: {
username: '',
password: ''
}
}
};
13 changes: 13 additions & 0 deletions package.json
@@ -0,0 +1,13 @@
{
"name": "loggly-dashboard",
"version": "1.0.0",
"dependencies": {
"express": "*",
"jade": "*",
"stylus": "*",
"nib": "*",
"winston": "*",
"loggly": "*"
}
}

30 changes: 30 additions & 0 deletions public/ui/scripts/dashboard.js
@@ -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);
104 changes: 104 additions & 0 deletions public/ui/scripts/external/date.js

Large diffs are not rendered by default.

0 comments on commit dbcdf02

Please sign in to comment.