Adds compiled JS source files to be published with the npm distribution.
authorDavid Schoonover <dsc@wikimedia.org>
Tue, 10 Jul 2012 13:19:39 +0000 (06:19 -0700)
committerDavid Schoonover <dsc@wikimedia.org>
Tue, 10 Jul 2012 13:19:39 +0000 (06:19 -0700)
175 files changed:
lib/app.js [new file with mode: 0644]
lib/app.mod.js [new file with mode: 0644]
lib/base/base-mixin.js [new file with mode: 0644]
lib/base/base-mixin.mod.js [new file with mode: 0644]
lib/base/base-model.js [new file with mode: 0644]
lib/base/base-model.mod.js [new file with mode: 0644]
lib/base/base-view.js [new file with mode: 0644]
lib/base/base-view.mod.js [new file with mode: 0644]
lib/base/base.js [new file with mode: 0644]
lib/base/base.mod.js [new file with mode: 0644]
lib/base/cascading-model.js [new file with mode: 0644]
lib/base/cascading-model.mod.js [new file with mode: 0644]
lib/base/data-binding.js [new file with mode: 0644]
lib/base/data-binding.mod.js [new file with mode: 0644]
lib/base/index.js [new file with mode: 0644]
lib/base/index.mod.js [new file with mode: 0644]
lib/base/model-cache.js [new file with mode: 0644]
lib/base/model-cache.mod.js [new file with mode: 0644]
lib/base/scaffold/index.js [new file with mode: 0644]
lib/base/scaffold/index.mod.js [new file with mode: 0644]
lib/base/scaffold/scaffold-model.js [new file with mode: 0644]
lib/base/scaffold/scaffold-model.mod.js [new file with mode: 0644]
lib/base/scaffold/scaffold-view.js [new file with mode: 0644]
lib/base/scaffold/scaffold-view.mod.js [new file with mode: 0644]
lib/chart/chart-type.js [new file with mode: 0644]
lib/chart/chart-type.mod.js [new file with mode: 0644]
lib/chart/index.js [new file with mode: 0644]
lib/chart/index.mod.js [new file with mode: 0644]
lib/chart/option/chart-option-model.js [new file with mode: 0644]
lib/chart/option/chart-option-model.mod.js [new file with mode: 0644]
lib/chart/option/chart-option-view.js [new file with mode: 0644]
lib/chart/option/chart-option-view.mod.js [new file with mode: 0644]
lib/chart/option/index.js [new file with mode: 0644]
lib/chart/option/index.mod.js [new file with mode: 0644]
lib/chart/type/d3-chart.js [new file with mode: 0644]
lib/chart/type/d3-chart.mod.js [new file with mode: 0644]
lib/chart/type/d3/d3-bar-element.js [new file with mode: 0644]
lib/chart/type/d3/d3-bar-element.mod.js [new file with mode: 0644]
lib/chart/type/d3/d3-chart-element.js [new file with mode: 0644]
lib/chart/type/d3/d3-chart-element.mod.js [new file with mode: 0644]
lib/chart/type/d3/d3-line-element.js [new file with mode: 0644]
lib/chart/type/d3/d3-line-element.mod.js [new file with mode: 0644]
lib/chart/type/d3/index.js [new file with mode: 0644]
lib/chart/type/d3/index.mod.js [new file with mode: 0644]
lib/chart/type/dygraphs.js [new file with mode: 0644]
lib/chart/type/dygraphs.mod.js [new file with mode: 0644]
lib/chart/type/index.js [new file with mode: 0644]
lib/chart/type/index.mod.js [new file with mode: 0644]
lib/dashboard/dashboard-model.js [new file with mode: 0644]
lib/dashboard/dashboard-model.mod.js [new file with mode: 0644]
lib/dashboard/dashboard-view.js [new file with mode: 0644]
lib/dashboard/dashboard-view.mod.js [new file with mode: 0644]
lib/dashboard/index.js [new file with mode: 0644]
lib/dashboard/index.mod.js [new file with mode: 0644]
lib/data/data-view.js [new file with mode: 0644]
lib/data/data-view.mod.js [new file with mode: 0644]
lib/data/dataset-model.js [new file with mode: 0644]
lib/data/dataset-model.mod.js [new file with mode: 0644]
lib/data/dataset-view.js [new file with mode: 0644]
lib/data/dataset-view.mod.js [new file with mode: 0644]
lib/data/datasource-model.js [new file with mode: 0644]
lib/data/datasource-model.mod.js [new file with mode: 0644]
lib/data/datasource-ui-view.js [new file with mode: 0644]
lib/data/datasource-ui-view.mod.js [new file with mode: 0644]
lib/data/datasource-view.js [new file with mode: 0644]
lib/data/datasource-view.mod.js [new file with mode: 0644]
lib/data/index.js [new file with mode: 0644]
lib/data/index.mod.js [new file with mode: 0644]
lib/data/metric-edit-view.js [new file with mode: 0644]
lib/data/metric-edit-view.mod.js [new file with mode: 0644]
lib/data/metric-model.js [new file with mode: 0644]
lib/data/metric-model.mod.js [new file with mode: 0644]
lib/data/project-colors.js [new file with mode: 0644]
lib/data/project-colors.mod.js [new file with mode: 0644]
lib/graph/graph-display-view.js [new file with mode: 0644]
lib/graph/graph-display-view.mod.js [new file with mode: 0644]
lib/graph/graph-edit-view.js [new file with mode: 0644]
lib/graph/graph-edit-view.mod.js [new file with mode: 0644]
lib/graph/graph-list-view.js [new file with mode: 0644]
lib/graph/graph-list-view.mod.js [new file with mode: 0644]
lib/graph/graph-model.js [new file with mode: 0644]
lib/graph/graph-model.mod.js [new file with mode: 0644]
lib/graph/graph-view.js [new file with mode: 0644]
lib/graph/graph-view.mod.js [new file with mode: 0644]
lib/graph/index.js [new file with mode: 0644]
lib/graph/index.mod.js [new file with mode: 0644]
lib/main-dashboard.js [new file with mode: 0644]
lib/main-display.js [new file with mode: 0644]
lib/main-edit.js [new file with mode: 0644]
lib/main-geo.js [new file with mode: 0644]
lib/main-graph-list.js [new file with mode: 0644]
lib/template/browser-helpers.jade.js [new file with mode: 0644]
lib/template/chart/chart-option.jade.js [new file with mode: 0644]
lib/template/chart/chart-option.jade.mod.js [new file with mode: 0644]
lib/template/chart/chart-scaffold.jade.js [new file with mode: 0644]
lib/template/chart/chart-scaffold.jade.mod.js [new file with mode: 0644]
lib/template/dashboard/dashboard-tab.jade.js [new file with mode: 0644]
lib/template/dashboard/dashboard-tab.jade.mod.js [new file with mode: 0644]
lib/template/dashboard/dashboard.jade.js [new file with mode: 0644]
lib/template/dashboard/dashboard.jade.mod.js [new file with mode: 0644]
lib/template/data/data.jade.js [new file with mode: 0644]
lib/template/data/data.jade.mod.js [new file with mode: 0644]
lib/template/data/dataset-metric.jade.js [new file with mode: 0644]
lib/template/data/dataset-metric.jade.mod.js [new file with mode: 0644]
lib/template/data/dataset.jade.js [new file with mode: 0644]
lib/template/data/dataset.jade.mod.js [new file with mode: 0644]
lib/template/data/datasource-ui.jade.js [new file with mode: 0644]
lib/template/data/datasource-ui.jade.mod.js [new file with mode: 0644]
lib/template/data/datasource.jade.js [new file with mode: 0644]
lib/template/data/datasource.jade.mod.js [new file with mode: 0644]
lib/template/data/metric-edit.jade.js [new file with mode: 0644]
lib/template/data/metric-edit.jade.mod.js [new file with mode: 0644]
lib/template/graph/graph-display.jade.js [new file with mode: 0644]
lib/template/graph/graph-display.jade.mod.js [new file with mode: 0644]
lib/template/graph/graph-edit.jade.js [new file with mode: 0644]
lib/template/graph/graph-edit.jade.mod.js [new file with mode: 0644]
lib/template/graph/graph-list.jade.js [new file with mode: 0644]
lib/template/graph/graph-list.jade.mod.js [new file with mode: 0644]
lib/util/backbone.js [new file with mode: 0644]
lib/util/backbone.mod.js [new file with mode: 0644]
lib/util/cascade.js [new file with mode: 0644]
lib/util/cascade.mod.js [new file with mode: 0644]
lib/util/event/index.js [new file with mode: 0644]
lib/util/event/index.mod.js [new file with mode: 0644]
lib/util/event/ready-emitter.js [new file with mode: 0644]
lib/util/event/ready-emitter.mod.js [new file with mode: 0644]
lib/util/event/waiting-emitter.js [new file with mode: 0644]
lib/util/event/waiting-emitter.mod.js [new file with mode: 0644]
lib/util/formatters.js [new file with mode: 0644]
lib/util/formatters.mod.js [new file with mode: 0644]
lib/util/index.js [new file with mode: 0644]
lib/util/index.mod.js [new file with mode: 0644]
lib/util/op.js [new file with mode: 0644]
lib/util/op.mod.js [new file with mode: 0644]
lib/util/parser.js [new file with mode: 0644]
lib/util/parser.mod.js [new file with mode: 0644]
lib/util/timeseries/csv.js [new file with mode: 0644]
lib/util/timeseries/csv.mod.js [new file with mode: 0644]
lib/util/timeseries/index.js [new file with mode: 0644]
lib/util/timeseries/index.mod.js [new file with mode: 0644]
lib/util/timeseries/timeseries.js [new file with mode: 0644]
lib/util/timeseries/timeseries.mod.js [new file with mode: 0644]
lib/util/underscore/array.js [new file with mode: 0644]
lib/util/underscore/array.mod.js [new file with mode: 0644]
lib/util/underscore/class.js [new file with mode: 0644]
lib/util/underscore/class.mod.js [new file with mode: 0644]
lib/util/underscore/function.js [new file with mode: 0644]
lib/util/underscore/function.mod.js [new file with mode: 0644]
lib/util/underscore/index.js [new file with mode: 0644]
lib/util/underscore/index.mod.js [new file with mode: 0644]
lib/util/underscore/kv.js [new file with mode: 0644]
lib/util/underscore/kv.mod.js [new file with mode: 0644]
lib/util/underscore/object.js [new file with mode: 0644]
lib/util/underscore/object.mod.js [new file with mode: 0644]
lib/util/underscore/string.js [new file with mode: 0644]
lib/util/underscore/string.mod.js [new file with mode: 0644]
www/css/bootstrap-variables.css [new file with mode: 0644]
www/css/chart.css [new file with mode: 0644]
www/css/colors.css [new file with mode: 0644]
www/css/dashboard.css [new file with mode: 0644]
www/css/data.css [new file with mode: 0644]
www/css/docs.css [new file with mode: 0644]
www/css/geo-display.css [new file with mode: 0644]
www/css/graph-display-print.css [new file with mode: 0644]
www/css/graph-display.css [new file with mode: 0644]
www/css/graph.css [new file with mode: 0644]
www/css/hicons.css [new file with mode: 0644]
www/css/layout.css [new file with mode: 0644]
www/css/mixins.css [new file with mode: 0644]
www/css/text.css [new file with mode: 0644]
www/schema/d3/d3-bar.json [new file with mode: 0644]
www/schema/d3/d3-chart.json [new file with mode: 0644]
www/schema/d3/d3-geo-world.json [new file with mode: 0644]
www/schema/d3/d3-line.json [new file with mode: 0644]
www/schema/dygraph.json [new file with mode: 0644]

diff --git a/lib/app.js b/lib/app.js
new file mode 100644 (file)
index 0000000..b4937f3
--- /dev/null
@@ -0,0 +1,58 @@
+var Backbone, op, AppView, _ref, _;
+Backbone = require('backbone');
+_ref = require('kraken/util'), _ = _ref._, op = _ref.op;
+/**
+ * @class Application view, automatically attaching to an existing element
+ *  found at `appSelector`.
+ * @extends Backbone.View
+ */
+AppView = exports.AppView = Backbone.View.extend({
+  appSelector: '#content .inner'
+  /**
+   * @constructor
+   */,
+  constructor: (function(){
+    function AppView(options){
+      var that, _this = this;
+      options == null && (options = {});
+      if (typeof options === 'function') {
+        this.initialize = options;
+        options = {};
+      } else {
+        if (that = options.initialize) {
+          this.initialize = that;
+        }
+      }
+      if (that = options.appSelector) {
+        this.appSelector = that;
+      }
+      options.el || (options.el = jQuery(this.appSelector)[0]);
+      Backbone.View.call(this, options);
+      jQuery(function(){
+        return _this.render();
+      });
+      return this;
+    }
+    return AppView;
+  }())
+  /**
+   * Override to set up your app. This method may be passed
+   * as an option to the constructor.
+   */,
+  initialize: function(){}
+  /**
+   * Append subviews.
+   */,
+  render: function(){
+    var _ref;
+    if (this.view && !((_ref = this.view.$el.parent()) != null && _ref.length)) {
+      return this.$el.append(this.view.el);
+    }
+  },
+  getClassName: function(){
+    return (this.constructor.name || this.constructor.displayName) + "";
+  },
+  toString: function(){
+    return this.getClassName() + "()";
+  }
+});
\ No newline at end of file
diff --git a/lib/app.mod.js b/lib/app.mod.js
new file mode 100644 (file)
index 0000000..e816fc5
--- /dev/null
@@ -0,0 +1,62 @@
+require.define('/node_modules/kraken/app.js.js', function(require, module, exports, __dirname, __filename, undefined){
+
+var Backbone, op, AppView, _ref, _;
+Backbone = require('backbone');
+_ref = require('kraken/util'), _ = _ref._, op = _ref.op;
+/**
+ * @class Application view, automatically attaching to an existing element
+ *  found at `appSelector`.
+ * @extends Backbone.View
+ */
+AppView = exports.AppView = Backbone.View.extend({
+  appSelector: '#content .inner'
+  /**
+   * @constructor
+   */,
+  constructor: (function(){
+    function AppView(options){
+      var that, _this = this;
+      options == null && (options = {});
+      if (typeof options === 'function') {
+        this.initialize = options;
+        options = {};
+      } else {
+        if (that = options.initialize) {
+          this.initialize = that;
+        }
+      }
+      if (that = options.appSelector) {
+        this.appSelector = that;
+      }
+      options.el || (options.el = jQuery(this.appSelector)[0]);
+      Backbone.View.call(this, options);
+      jQuery(function(){
+        return _this.render();
+      });
+      return this;
+    }
+    return AppView;
+  }())
+  /**
+   * Override to set up your app. This method may be passed
+   * as an option to the constructor.
+   */,
+  initialize: function(){}
+  /**
+   * Append subviews.
+   */,
+  render: function(){
+    var _ref;
+    if (this.view && !((_ref = this.view.$el.parent()) != null && _ref.length)) {
+      return this.$el.append(this.view.el);
+    }
+  },
+  getClassName: function(){
+    return (this.constructor.name || this.constructor.displayName) + "";
+  },
+  toString: function(){
+    return this.getClassName() + "()";
+  }
+});
+
+});
diff --git a/lib/base/base-mixin.js b/lib/base/base-mixin.js
new file mode 100644 (file)
index 0000000..eba7b88
--- /dev/null
@@ -0,0 +1,216 @@
+var Backbone, op, BaseBackboneMixin, Mixin, mixinBase, _ref, _, __slice = [].slice;
+Backbone = require('backbone');
+_ref = require('kraken/util'), _ = _ref._, op = _ref.op;
+BaseBackboneMixin = exports.BaseBackboneMixin = {
+  initialize: function(){
+    return this.__apply_bind__();
+  }
+  /**
+   * A list of method-names to bind on `initialize`; set this on a subclass to override.
+   * @type Array<String>
+   */,
+  __bind__: []
+  /**
+   * Applies the contents of `__bind__`.
+   */,
+  __apply_bind__: function(){
+    var names;
+    names = _(this.pluckSuperAndSelf('__bind__')).chain().flatten().compact().unique().value();
+    if (names.length) {
+      return _.bindAll.apply(_, [this].concat(__slice.call(names)));
+    }
+  }
+  /**
+   * Whether we're ready.
+   * @type Boolean
+   */,
+  ready: false
+  /**
+   * Triggers the 'ready' event if it has not yet been triggered.
+   * Subsequent listeners added on this ev