Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit dbcdf02b4e1abd22d3b7a46419cf86495b38a070 @jgallen23 committed Jun 12, 2011
@@ -0,0 +1,3 @@
+config.js
+node_modules
+.DS_Store
No changes.
@@ -0,0 +1,9 @@
+modules.exports = {
+ loggly: {
+ subdomain: '',
+ auth: {
+ username: '',
+ password: ''
+ }
+ }
+};
@@ -0,0 +1,13 @@
+{
+ "name": "loggly-dashboard",
+ "version": "1.0.0",
+ "dependencies": {
+ "express": "*",
+ "jade": "*",
+ "stylus": "*",
+ "nib": "*",
+ "winston": "*",
+ "loggly": "*"
+ }
+}
+
@@ -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.

0 comments on commit dbcdf02

Please sign in to comment.