use latest version of grunt builder

This commit is contained in:
Radek Stepan 2014-10-16 20:59:30 -07:00
parent 4adfe8774e
commit 0682bdd39b
39 changed files with 522 additions and 765 deletions

View File

@ -7,7 +7,7 @@ module.exports = (grunt) ->
dest: 'public/js/commonjs.js' dest: 'public/js/commonjs.js'
commonjs: commonjs:
src: [ 'src/**/*.{coffee,js,json,mustache}' ] src: [ 'src/**/*.{coffee,js,json,mustache,html}' ]
dest: 'public/js/app.js' dest: 'public/js/app.js'
options: options:
main: 'src/app.coffee' main: 'src/app.coffee'

View File

@ -4,7 +4,7 @@
"description": "GitHub Burndown Chart as a Service", "description": "GitHub Burndown Chart as a Service",
"devDependencies": { "devDependencies": {
"grunt": "~0.4.1", "grunt": "~0.4.1",
"grunt-apps-c": "0.1.15", "grunt-apps-c": "0.2.0",
"grunt-contrib-stylus": "~0.9.0", "grunt-contrib-stylus": "~0.9.0",
"grunt-contrib-concat": "~0.3.0", "grunt-contrib-concat": "~0.3.0",
"grunt-contrib-uglify": "~0.2.5", "grunt-contrib-uglify": "~0.2.5",

View File

@ -1,208 +1,96 @@
// A standalone CommonJS loader. (function(/*! Brunch !*/) {
(function(root) { 'use strict';
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
var require = function(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed var globals = typeof window !== 'undefined' ? window : global;
if (!resolved) { if (typeof globals.require === 'function') return;
orig = orig || path;
parent = parent || 'root'; var modules = {};
var err = new Error('Failed to require "' + orig + '" from "' + parent + '"'); var cache = {};
err.path = orig;
err.parent = parent; var has = function(object, name) {
err.require = true; return ({}).hasOwnProperty.call(object, name);
throw err; };
var expand = function(root, name) {
var results = [], parts, part;
if (/^\.\.?(\/|$)/.test(name)) {
parts = [root, name].join('/').split('/');
} else {
parts = name.split('/');
} }
for (var i = 0, length = parts.length; i < length; i++) {
var module = require.modules[resolved]; part = parts[i];
if (part === '..') {
// perform real require() results.pop();
// by invoking the module's } else if (part !== '.' && part !== '') {
// registered function results.push(part);
if (!module._resolving && !module.exports) { }
var mod = {};
mod.exports = {};
mod.client = mod.component = true;
module._resolving = true;
module.call(this, mod.exports, require.relative(resolved), mod);
delete module._resolving;
module.exports = mod.exports;
} }
return results.join('/');
};
var dirname = function(path) {
return path.split('/').slice(0, -1).join('/');
};
var localRequire = function(path) {
return function(name) {
var dir = dirname(path);
var absolute = expand(dir, name);
return globals.require(absolute, path);
};
};
var initModule = function(name, definition) {
var module = {id: name, exports: {}};
cache[name] = module;
definition(module.exports, localRequire(name), module);
return module.exports; return module.exports;
}; };
/** var require = function(name, loaderPath) {
* Registered modules. var path = expand(name, '.');
*/ if (loaderPath == null) loaderPath = '/';
require.modules = {}; if (has(cache, path)) return cache[path].exports;
if (has(modules, path)) return initModule(path, modules[path]);
/** var dirIndex = expand(path, './index');
* Registered aliases. if (has(cache, dirIndex)) return cache[dirIndex].exports;
*/ if (has(modules, dirIndex)) return initModule(dirIndex, modules[dirIndex]);
require.aliases = {}; throw new Error('Cannot find module "' + name + '" from '+ '"' + loaderPath + '"');
};
/** var define = function(bundle, fn) {
* Resolve `path`. if (typeof bundle === 'object') {
* for (var key in bundle) {
* Lookup: if (has(bundle, key)) {
* modules[key] = bundle[key];
* - PATH/index.js }
* - PATH.js }
* - PATH } else {
* modules[bundle] = fn;
* @param {String} path
* @return {String} path or null
* @api private
*/
require.resolve = function(path) {
if (path.charAt(0) === '/') path = path.slice(1);
var paths = [
path,
path + '.js',
path + '.json',
path + '/index.js',
path + '/index.json'
];
for (var i = 0; i < paths.length; i++) {
path = paths[i];
if (require.modules.hasOwnProperty(path)) return path;
if (require.aliases.hasOwnProperty(path)) return require.aliases[path];
} }
}; };
/** var list = function() {
* Normalize `path` relative to the current path. var result = [];
* for (var item in modules) {
* @param {String} curr if (has(modules, item)) {
* @param {String} path result.push(item);
* @return {String}
* @api private
*/
require.normalize = function(curr, path) {
var segs = [];
if ('.' != path.charAt(0)) return path;
curr = curr.split('/');
path = path.split('/');
for (var i = 0; i < path.length; ++i) {
if ('..' == path[i]) {
curr.pop();
} else if ('.' !== path[i] && '' !== path[i]) {
segs.push(path[i]);
} }
} }
return result;
return curr.concat(segs).join('/');
}; };
/** globals.require = require;
* Register module at `path` with callback `definition`. globals.require.define = define;
* globals.require.register = define;
* @param {String} path globals.require.list = list;
* @param {Function} definition globals.require.brunch = true;
* @api private })();
*/ ;/**
require.register = function(path, definition) {
require.modules[path] = definition;
};
/**
* Alias a module definition.
*
* @param {String} from
* @param {String} to
* @api private
*/
require.alias = function(from, to) {
if (!require.modules.hasOwnProperty(from)) {
throw new Error('Failed to alias "' + from + '", it does not exist');
}
require.aliases[to] = from;
};
/**
* Return a require function relative to the `parent` path.
*
* @param {String} parent
* @return {Function}
* @api private
*/
require.relative = function(parent) {
var p = require.normalize(parent, '..');
/**
* lastIndexOf helper.
*/
function lastIndexOf(arr, obj) {
var i = arr.length;
while (i--) {
if (arr[i] === obj) return i;
}
return -1;
}
/**
* The relative require() itself.
*/
var localRequire = function(path) {
var resolved = localRequire.resolve(path);
return require(resolved, parent, path);
};
/**
* Resolve relative to the parent.
*/
localRequire.resolve = function(path) {
var c = path.charAt(0);
if ('/' == c) return path.slice(1);
if ('.' == c) return require.normalize(p, path);
// resolve deps by returning
// the dep in the nearest "deps"
// directory
var segs = parent.split('/');
var i = lastIndexOf(segs, 'deps') + 1;
if (!i) i = 0;
path = segs.slice(0, i + 1).join('/') + '/deps/' + path;
return path;
};
/**
* Check if module is defined at `path`.
*/
localRequire.exists = function(path) {
return require.modules.hasOwnProperty(localRequire.resolve(path));
};
return localRequire;
};
// Do we already have require loader?
root.require = (typeof root.require !== 'undefined') ? root.require : require;
})(this);;/**
* @license * @license
* Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/> * Lo-Dash 2.3.0 (Custom Build) <http://lodash.com/>
* Build: `lodash modern -o ./dist/lodash.js` * Build: `lodash modern -o ./dist/lodash.js`
@ -39053,24 +38941,24 @@ Router.prototype.mount = function(routes, path) {
(function() { (function() {
// app.coffee // app.coffee
root.require.register('burnchart/src/app.js', function(exports, require, module) { root.require.register('burnchart/src/app.coffee', function(exports, require, module) {
var App, Header, Notify, key, router, _i, _len, _ref; var App, Header, Notify, key, router, _i, _len, _ref;
_ref = ['utils/mixins', 'models/projects']; _ref = ['utils/mixins.coffee', 'models/projects.coffee'];
for (_i = 0, _len = _ref.length; _i < _len; _i++) { for (_i = 0, _len = _ref.length; _i < _len; _i++) {
key = _ref[_i]; key = _ref[_i];
require("./" + key); require("./" + key);
} }
Header = require('./views/header'); Header = require('./views/header.coffee');
Notify = require('./views/notify'); Notify = require('./views/notify.coffee');
router = require('./modules/router'); router = require('./modules/router.coffee');
App = Ractive.extend({ App = Ractive.extend({
'template': require('./templates/app'), 'template': require('./templates/app.html'),
'components': { 'components': {
Header: Header, Header: Header,
Notify: Notify Notify: Notify
@ -39085,11 +38973,11 @@ Router.prototype.mount = function(routes, path) {
}); });
// config.coffee // config.coffee
root.require.register('burnchart/src/models/config.js', function(exports, require, module) { root.require.register('burnchart/src/models/config.coffee', function(exports, require, module) {
var Model; var Model;
Model = require('../utils/model'); Model = require('../utils/model.coffee');
module.exports = new Model({ module.exports = new Model({
'name': 'models/config', 'name': 'models/config',
@ -39112,15 +39000,15 @@ Router.prototype.mount = function(routes, path) {
}); });
// firebase.coffee // firebase.coffee
root.require.register('burnchart/src/models/firebase.js', function(exports, require, module) { root.require.register('burnchart/src/models/firebase.coffee', function(exports, require, module) {
var Model, config, user; var Model, config, user;
Model = require('../utils/model'); Model = require('../utils/model.coffee');
user = require('./user'); user = require('./user.coffee');
config = require('./config'); config = require('./config.coffee');
module.exports = new Model({ module.exports = new Model({
'name': 'models/firebase', 'name': 'models/firebase',
@ -39158,19 +39046,19 @@ Router.prototype.mount = function(routes, path) {
}); });
// projects.coffee // projects.coffee
root.require.register('burnchart/src/models/projects.js', function(exports, require, module) { root.require.register('burnchart/src/models/projects.coffee', function(exports, require, module) {
var Model, config, date, mediator, user; var Model, config, date, mediator, user;
config = require('../models/config'); config = require('../models/config.coffee');
mediator = require('../modules/mediator'); mediator = require('../modules/mediator.coffee');
Model = require('../utils/model'); Model = require('../utils/model.coffee');
date = require('../utils/date'); date = require('../utils/date.coffee');
user = require('./user'); user = require('./user.coffee');
module.exports = new Model({ module.exports = new Model({
'name': 'models/projects', 'name': 'models/projects',
@ -39217,13 +39105,13 @@ Router.prototype.mount = function(routes, path) {
}); });
// system.coffee // system.coffee
root.require.register('burnchart/src/models/system.js', function(exports, require, module) { root.require.register('burnchart/src/models/system.coffee', function(exports, require, module) {
var Model, async, counter, mediator, system; var Model, async, counter, mediator, system;
mediator = require('../modules/mediator'); mediator = require('../modules/mediator.coffee');
Model = require('../utils/model'); Model = require('../utils/model.coffee');
system = new Model({ system = new Model({
'name': 'models/system', 'name': 'models/system',
@ -39251,13 +39139,13 @@ Router.prototype.mount = function(routes, path) {
}); });
// user.coffee // user.coffee
root.require.register('burnchart/src/models/user.js', function(exports, require, module) { root.require.register('burnchart/src/models/user.coffee', function(exports, require, module) {
var Model, mediator; var Model, mediator;
mediator = require('../modules/mediator'); mediator = require('../modules/mediator.coffee');
Model = require('../utils/model'); Model = require('../utils/model.coffee');
module.exports = new Model({ module.exports = new Model({
'name': 'models/user', 'name': 'models/user',
@ -39272,7 +39160,7 @@ Router.prototype.mount = function(routes, path) {
}); });
// axes.coffee // axes.coffee
root.require.register('burnchart/src/modules/chart/axes.js', function(exports, require, module) { root.require.register('burnchart/src/modules/chart/axes.coffee', function(exports, require, module) {
module.exports = { module.exports = {
horizontal: function(height, x) { horizontal: function(height, x) {
@ -39288,12 +39176,12 @@ Router.prototype.mount = function(routes, path) {
}); });
// lines.coffee // lines.coffee
root.require.register('burnchart/src/modules/chart/lines.js', function(exports, require, module) { root.require.register('burnchart/src/modules/chart/lines.coffee', function(exports, require, module) {
var config, var config,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
config = require('../../models/config'); config = require('../../models/config.coffee');
module.exports = { module.exports = {
actual: function(issues, created_at, total) { actual: function(issues, created_at, total) {
@ -39422,13 +39310,13 @@ Router.prototype.mount = function(routes, path) {
}); });
// issues.coffee // issues.coffee
root.require.register('burnchart/src/modules/github/issues.js', function(exports, require, module) { root.require.register('burnchart/src/modules/github/issues.coffee', function(exports, require, module) {
var config, request; var config, request;
config = require('../../models/config'); config = require('../../models/config.coffee');
request = require('./request'); request = require('./request.coffee');
module.exports = { module.exports = {
fetchAll: function(repo, cb) { fetchAll: function(repo, cb) {
@ -39505,11 +39393,11 @@ Router.prototype.mount = function(routes, path) {
}); });
// milestones.coffee // milestones.coffee
root.require.register('burnchart/src/modules/github/milestones.js', function(exports, require, module) { root.require.register('burnchart/src/modules/github/milestones.coffee', function(exports, require, module) {
var request; var request;
request = require('./request'); request = require('./request.coffee');
module.exports = { module.exports = {
'fetch': request.oneMilestone, 'fetch': request.oneMilestone,
@ -39519,11 +39407,11 @@ Router.prototype.mount = function(routes, path) {
}); });
// request.coffee // request.coffee
root.require.register('burnchart/src/modules/github/request.js', function(exports, require, module) { root.require.register('burnchart/src/modules/github/request.coffee', function(exports, require, module) {
var defaults, error, headers, isReady, isValid, ready, request, response, stack, user; var defaults, error, headers, isReady, isValid, ready, request, response, stack, user;
user = require('../../models/user'); user = require('../../models/user.coffee');
superagent.parse = { superagent.parse = {
'application/json': function(res) { 'application/json': function(res) {
@ -39764,7 +39652,7 @@ Router.prototype.mount = function(routes, path) {
}); });
// mediator.coffee // mediator.coffee
root.require.register('burnchart/src/modules/mediator.js', function(exports, require, module) { root.require.register('burnchart/src/modules/mediator.coffee', function(exports, require, module) {
var Mediator; var Mediator;
@ -39775,14 +39663,14 @@ Router.prototype.mount = function(routes, path) {
}); });
// router.coffee // router.coffee
root.require.register('burnchart/src/modules/router.js', function(exports, require, module) { root.require.register('burnchart/src/modules/router.coffee', function(exports, require, module) {
var addProject, c, el, mediator, route, routes, system, view, var addProject, c, el, mediator, route, routes, system, view,
__slice = [].slice; __slice = [].slice;
mediator = require('./mediator'); mediator = require('./mediator.coffee');
system = require('../models/system'); system = require('../models/system.coffee');
el = '#page'; el = '#page';
@ -39815,7 +39703,7 @@ Router.prototype.mount = function(routes, path) {
view.teardown(); view.teardown();
} }
mediator.fire('!app/notify/hide'); mediator.fire('!app/notify/hide');
Page = require("../views/pages/" + page); Page = require("../views/pages/" + page + ".coffee");
return view = new Page({ return view = new Page({
el: el, el: el,
'data': { 'data': {
@ -39844,80 +39732,80 @@ Router.prototype.mount = function(routes, path) {
}); });
// app.mustache // app.html
root.require.register('burnchart/src/templates/app.js', function(exports, require, module) { root.require.register('burnchart/src/templates/app.html', function(exports, require, module) {
module.exports = ["<div id=\"app\">"," <Notify/>"," <Header/>",""," <div id=\"page\">"," <!-- content loaded from a router -->"," </div>",""," <div id=\"footer\">"," <div class=\"wrap\">"," &copy; 2012-2014 <a href=\"http://cloudfi.re\">Cloudfire Systems</a>"," </div>"," </div>","</div>"].join("\n"); module.exports = ["<div id=\"app\">"," <Notify/>"," <Header/>",""," <div id=\"page\">"," <!-- content loaded from a router -->"," </div>",""," <div id=\"footer\">"," <div class=\"wrap\">"," &copy; 2012-2014 <a href=\"http://cloudfi.re\">Cloudfire Systems</a>"," </div>"," </div>","</div>"].join("\n");
}); });
// chart.mustache // chart.html
root.require.register('burnchart/src/templates/chart.js', function(exports, require, module) { root.require.register('burnchart/src/templates/chart.html', function(exports, require, module) {
module.exports = ["<div id=\"chart\"></div>"].join("\n"); module.exports = ["<div id=\"chart\"></div>"].join("\n");
}); });
// header.mustache // header.html
root.require.register('burnchart/src/templates/header.js', function(exports, require, module) { root.require.register('burnchart/src/templates/header.html', function(exports, require, module) {
module.exports = ["<div id=\"head\">"," {{#with user}}"," {{#ready}}"," <div class=\"right\" intro=\"fade\">"," {{#displayName}}"," {{displayName}} logged in"," {{else}}"," <a class=\"github\" on-click=\"!login\"><Icons icon=\"github\"/> Sign In</a>"," {{/displayName}}"," </div>"," {{/ready}}"," {{/with}}",""," <a id=\"icon\" href=\"#\">"," <Icons icon=\"{{icon}}\"/>"," </a>",""," <!--"," <div class=\"q\">"," <Icons icon=\"search\"/>"," <Icons icon=\"down-open\"/>"," <input type=\"text\" placeholder=\"Jump to...\">"," </div>"," -->",""," <ul>"," <li><a href=\"#new/project\" class=\"add\"><Icons icon=\"plus-circled\"/> Add a Project</a></li>"," <li><a href=\"#\" class=\"faq\">FAQ</a></li>"," <li><a href=\"#reset\">DB Reset</a></li>"," <li><a href=\"#notify\">Notify</a></li>"," </ul>","</div>"].join("\n"); module.exports = ["<div id=\"head\">"," {{#with user}}"," {{#ready}}"," <div class=\"right\" intro=\"fade\">"," {{#displayName}}"," {{displayName}} logged in"," {{else}}"," <a class=\"github\" on-click=\"!login\"><Icons icon=\"github\"/> Sign In</a>"," {{/displayName}}"," </div>"," {{/ready}}"," {{/with}}",""," <a id=\"icon\" href=\"#\">"," <Icons icon=\"{{icon}}\"/>"," </a>",""," <!--"," <div class=\"q\">"," <Icons icon=\"search\"/>"," <Icons icon=\"down-open\"/>"," <input type=\"text\" placeholder=\"Jump to...\">"," </div>"," -->",""," <ul>"," <li><a href=\"#new/project\" class=\"add\"><Icons icon=\"plus-circled\"/> Add a Project</a></li>"," <li><a href=\"#\" class=\"faq\">FAQ</a></li>"," <li><a href=\"#reset\">DB Reset</a></li>"," <li><a href=\"#notify\">Notify</a></li>"," </ul>","</div>"].join("\n");
}); });
// hero.mustache // hero.html
root.require.register('burnchart/src/templates/hero.js', function(exports, require, module) { root.require.register('burnchart/src/templates/hero.html', function(exports, require, module) {
module.exports = ["<div id=\"hero\">"," <div class=\"content\">"," <Icons icon=\"address\"/>"," <h2>See your project progress</h2>"," <p>Not sure where to start? Just add a demo repo to see a chart. There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable.</p>"," <div class=\"cta\">"," <a href=\"#new/project\" class=\"primary\"><Icons icon=\"plus-circled\"/> Add your project</a>"," <a href=\"#\" class=\"secondary\">Read the Guide</a>"," </div>"," </div>","</div>"].join("\n"); module.exports = ["<div id=\"hero\">"," <div class=\"content\">"," <Icons icon=\"address\"/>"," <h2>See your project progress</h2>"," <p>Not sure where to start? Just add a demo repo to see a chart. There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable.</p>"," <div class=\"cta\">"," <a href=\"#new/project\" class=\"primary\"><Icons icon=\"plus-circled\"/> Add your project</a>"," <a href=\"#\" class=\"secondary\">Read the Guide</a>"," </div>"," </div>","</div>"].join("\n");
}); });
// icons.mustache // icons.html
root.require.register('burnchart/src/templates/icons.js', function(exports, require, module) { root.require.register('burnchart/src/templates/icons.html', function(exports, require, module) {
module.exports = ["{{#code}}"," <span class=\"icon {{icon}}\">{{{ '&#' + code + ';' }}}</span>","{{/code}}"].join("\n"); module.exports = ["{{#code}}"," <span class=\"icon {{icon}}\">{{{ '&#' + code + ';' }}}</span>","{{/code}}"].join("\n");
}); });
// notify.mustache // notify.html
root.require.register('burnchart/src/templates/notify.js', function(exports, require, module) { root.require.register('burnchart/src/templates/notify.html', function(exports, require, module) {
module.exports = ["{{#text}}"," {{#system}}"," <div id=\"notify\" class=\"{{type}} system\" style=\"top:{{top}}%\">"," <Icons icon=\"{{icon}}\"/>"," <p>{{text}}</p>"," </div>"," {{else}}"," <div id=\"notify\" class=\"{{type}}\" style=\"top:{{-top}}px\">"," <span class=\"close\" on-click=\"close\" />"," <Icons icon=\"{{icon}}\"/>"," <p>{{text}}</p>"," </div>"," {{/system}}","{{/text}}"].join("\n"); module.exports = ["{{#text}}"," {{#system}}"," <div id=\"notify\" class=\"{{type}} system\" style=\"top:{{top}}%\">"," <Icons icon=\"{{icon}}\"/>"," <p>{{text}}</p>"," </div>"," {{else}}"," <div id=\"notify\" class=\"{{type}}\" style=\"top:{{-top}}px\">"," <span class=\"close\" on-click=\"close\" />"," <Icons icon=\"{{icon}}\"/>"," <p>{{text}}</p>"," </div>"," {{/system}}","{{/text}}"].join("\n");
}); });
// index.mustache // index.html
root.require.register('burnchart/src/templates/pages/index.js', function(exports, require, module) { root.require.register('burnchart/src/templates/pages/index.html', function(exports, require, module) {
module.exports = ["<div id=\"content\" class=\"wrap\">"," {{#if projects.list}}"," {{#ready}}"," <div intro=\"fade\">"," <Projects projects=\"{{projects}}\"/>"," </div>"," {{/ready}}"," {{else}}"," <Hero/>"," {{/if}}","</div>"].join("\n"); module.exports = ["<div id=\"content\" class=\"wrap\">"," {{#if projects.list}}"," {{#ready}}"," <div intro=\"fade\">"," <Projects projects=\"{{projects}}\"/>"," </div>"," {{/ready}}"," {{else}}"," <Hero/>"," {{/if}}","</div>"].join("\n");
}); });
// milestone.mustache // milestone.html
root.require.register('burnchart/src/templates/pages/milestone.js', function(exports, require, module) { root.require.register('burnchart/src/templates/pages/milestone.html', function(exports, require, module) {
module.exports = ["{{#ready}}"," <div intro=\"fade\">"," <div id=\"title\">"," <div class=\"wrap\">"," <h2 class=\"title\">{{ format.title(milestone.title) }}</h2>"," <span class=\"sub\">{{{ format.due(milestone.due_on) }}}</span>"," <p class=\"description\">{{{ format.markdown(milestone.description) }}}</p>"," </div>"," </div>",""," <div id=\"content\" class=\"wrap\">"," <Chart milestone=\"{{milestone}}\"/>"," </div>"," </div>","{{/ready}}"].join("\n"); module.exports = ["{{#ready}}"," <div intro=\"fade\">"," <div id=\"title\">"," <div class=\"wrap\">"," <h2 class=\"title\">{{ format.title(milestone.title) }}</h2>"," <span class=\"sub\">{{{ format.due(milestone.due_on) }}}</span>"," <p class=\"description\">{{{ format.markdown(milestone.description) }}}</p>"," </div>"," </div>",""," <div id=\"content\" class=\"wrap\">"," <Chart milestone=\"{{milestone}}\"/>"," </div>"," </div>","{{/ready}}"].join("\n");
}); });
// new.mustache // new.html
root.require.register('burnchart/src/templates/pages/new.js', function(exports, require, module) { root.require.register('burnchart/src/templates/pages/new.html', function(exports, require, module) {
module.exports = ["<div id=\"content\" class=\"wrap\">"," <div id=\"add\">"," <div class=\"header\">"," <h2>Add a Project</h2>"," <p>Type in the name of the repository as you would normally. If you'd like to add a private GitHub project, <a href=\"#\">Sign In</a> first.</p>"," </div>",""," <div class=\"form\">"," <table>"," <tr>"," <td>"," <input type=\"text\" placeholder=\"user/repo\" autocomplete=\"off\" value=\"{{value}}\" on-keyup=\"submit:{{value}}\">"," </td>"," <td>"," <a on-click=\"submit:{{value}}\">Add</a>"," </td>"," </tr>"," </table>"," </div>"," </div>","</div>"].join("\n"); module.exports = ["<div id=\"content\" class=\"wrap\">"," <div id=\"add\">"," <div class=\"header\">"," <h2>Add a Project</h2>"," <p>Type in the name of the repository as you would normally. If you'd like to add a private GitHub project, <a href=\"#\">Sign In</a> first.</p>"," </div>",""," <div class=\"form\">"," <table>"," <tr>"," <td>"," <input type=\"text\" placeholder=\"user/repo\" autocomplete=\"off\" value=\"{{value}}\" on-keyup=\"submit:{{value}}\">"," </td>"," <td>"," <a on-click=\"submit:{{value}}\">Add</a>"," </td>"," </tr>"," </table>"," </div>"," </div>","</div>"].join("\n");
}); });
// project.mustache // project.html
root.require.register('burnchart/src/templates/pages/project.js', function(exports, require, module) { root.require.register('burnchart/src/templates/pages/project.html', function(exports, require, module) {
module.exports = ["{{#ready}}"," <div intro=\"fade\">"," <div id=\"title\">"," <div class=\"wrap\">"," <h2 class=\"title\">{{route.join('/')}}</h2>"," </div>"," </div>",""," <div id=\"content\" class=\"wrap\">"," <Milestones project=\"{{project}}\"/>"," </div>"," </div>","{{/ready}}"].join("\n"); module.exports = ["{{#ready}}"," <div intro=\"fade\">"," <div id=\"title\">"," <div class=\"wrap\">"," <h2 class=\"title\">{{route.join('/')}}</h2>"," </div>"," </div>",""," <div id=\"content\" class=\"wrap\">"," <Milestones project=\"{{project}}\"/>"," </div>"," </div>","{{/ready}}"].join("\n");
}); });
// milestones.mustache // milestones.html
root.require.register('burnchart/src/templates/tables/milestones.js', function(exports, require, module) { root.require.register('burnchart/src/templates/tables/milestones.html', function(exports, require, module) {
module.exports = ["<div id=\"projects\">"," <div class=\"header\">"," <a href=\"#\" class=\"sort\"><Icons icon=\"sort-alphabet\"/> Sorted by priority</a>"," <h2>Milestones</h2>"," </div>",""," <table>"," {{#project.milestones}}"," <tr>"," <td>"," <a class=\"milestone\" href=\"#{{project.owner}}/{{project.name}}/{{number}}\">{{ title }}</a>"," </td>"," <td style=\"width:1%\">"," <div class=\"progress\">"," <span class=\"percent\">{{Math.floor(format.progress(issues.closed.size, issues.open.size))}}%</span>"," <span class=\"due\">{{{ format.due(due_on) }}}</span>"," <div class=\"outer bar\">"," <div class=\"inner bar {{format.onTime(number, due_on, created_at, issues.closed.size, issues.open.size)}}\" style=\"width:{{format.progress(issues.closed.size, issues.open.size)}}%\"></div>"," </div>"," </div>"," </td>"," </tr>"," {{/project.milestones}}"," </table>",""," <div class=\"footer\">"," <a href=\"#\"><Icons icon=\"cog\"/> Edit</a>"," </div>","</div>"].join("\n"); module.exports = ["<div id=\"projects\">"," <div class=\"header\">"," <a href=\"#\" class=\"sort\"><Icons icon=\"sort-alphabet\"/> Sorted by priority</a>"," <h2>Milestones</h2>"," </div>",""," <table>"," {{#project.milestones}}"," <tr>"," <td>"," <a class=\"milestone\" href=\"#{{project.owner}}/{{project.name}}/{{number}}\">{{ title }}</a>"," </td>"," <td style=\"width:1%\">"," <div class=\"progress\">"," <span class=\"percent\">{{Math.floor(format.progress(issues.closed.size, issues.open.size))}}%</span>"," <span class=\"due\">{{{ format.due(due_on) }}}</span>"," <div class=\"outer bar\">"," <div class=\"inner bar {{format.onTime(number, due_on, created_at, issues.closed.size, issues.open.size)}}\" style=\"width:{{format.progress(issues.closed.size, issues.open.size)}}%\"></div>"," </div>"," </div>"," </td>"," </tr>"," {{/project.milestones}}"," </table>",""," <div class=\"footer\">"," <a href=\"#\"><Icons icon=\"cog\"/> Edit</a>"," </div>","</div>"].join("\n");
}); });
// projects.mustache // projects.html
root.require.register('burnchart/src/templates/tables/projects.js', function(exports, require, module) { root.require.register('burnchart/src/templates/tables/projects.html', function(exports, require, module) {
module.exports = ["<div id=\"projects\">"," <div class=\"header\">"," <a href=\"#\" class=\"sort\"><Icons icon=\"sort-alphabet\"/> Sorted by priority</a>"," <h2>Projects</h2>"," </div>",""," <table>"," {{#projects.list}}"," {{#if error}}"," <tr>"," <td colspan=\"3\" class=\"repo\">"," <div class=\"project\">{{owner}}/{{name}} <span class=\"error\" title=\"{{error}}\"><Icons icon=\"attention\"/></span></div>"," </td>"," </tr>"," {{else}}"," {{#milestones}}"," <tr>"," <td class=\"repo\">"," <a class=\"project\" href=\"#{{owner}}/{{name}}\">{{owner}}/{{name}}</a>"," </td>"," <td>"," <a class=\"milestone\" href=\"#{{owner}}/{{name}}/{{number}}\">{{ title }}</a>"," </td>"," <td style=\"width:1%\">"," <div class=\"progress\">"," <span class=\"percent\">{{Math.floor(format.progress(issues.closed.size, issues.open.size))}}%</span>"," <span class=\"due\">{{{ format.due(due_on) }}}</span>"," <div class=\"outer bar\">"," <div class=\"inner bar {{format.onTime(number, due_on, created_at, issues.closed.size, issues.open.size)}}\" style=\"width:{{format.progress(issues.closed.size, issues.open.size)}}%\"></div>"," </div>"," </div>"," </td>"," </tr>"," {{/milestones}}"," {{/if}}"," {{/projects.list}}"," </table>",""," <div class=\"footer\">"," <a href=\"#\"><Icons icon=\"cog\"/> Edit</a>"," </div>","</div>","","<!--"," <tr>"," <td><a class=\"repo\" href=\"#\">radekstepan/disposable</a></td>"," <td><span class=\"milestone\">Milestone 1.0 <span class=\"icon down-open\"></span></td>"," <td>"," <div class=\"progress\">"," <span class=\"percent\">40%</span>"," <span class=\"due\">due on Friday</span>"," <div class=\"outer bar\">"," <div class=\"inner bar red\" style=\"width:40%\"></div>"," </div>"," </div>"," </td>"," </tr>"," <tr class=\"done\">"," <td><a class=\"repo\" href=\"#\">radekstepan/burnchart</a></td>"," <td><span class=\"milestone\">Beta Milestone <span class=\"icon down-open\"></span></a></td>"," <td>"," <div class=\"progress\">"," <span class=\"percent\">100%</span>"," <span class=\"due\">due tomorrow</span>"," <div class=\"outer bar\">"," <div class=\"inner bar green\" style=\"width:100%\"></div>"," </div>"," </div>"," </td>"," </tr>"," <tr>"," <td><a class=\"repo\" href=\"#\">intermine/intermine</a></td>"," <td><span class=\"milestone\">Emma Release 96 <span class=\"icon down-open\"></span></a></td>"," <td>"," <div class=\"progress\">"," <span class=\"percent\">27%</span>"," <span class=\"due\">due in 2 weeks</span>"," <div class=\"outer bar\">"," <div class=\"inner bar red\" style=\"width:27%\"></div>"," </div>"," </div>"," </td>"," </tr>"," <tr>"," <td><a class=\"repo\" href=\"#\">microsoft/windows</a></td>"," <td><span class=\"milestone\">RC 9 <span class=\"icon down-open\"></span></a></td>"," <td>"," <div class=\"progress\">"," <span class=\"percent\">90%</span>"," <span class=\"due red\">overdue by a month</span>"," <div class=\"outer bar\">"," <div class=\"inner bar red\" style=\"width:90%\"></div>"," </div>"," </div>"," </td>"," </tr>","-->"].join("\n"); module.exports = ["<div id=\"projects\">"," <div class=\"header\">"," <a href=\"#\" class=\"sort\"><Icons icon=\"sort-alphabet\"/> Sorted by priority</a>"," <h2>Projects</h2>"," </div>",""," <table>"," {{#projects.list}}"," {{#if error}}"," <tr>"," <td colspan=\"3\" class=\"repo\">"," <div class=\"project\">{{owner}}/{{name}} <span class=\"error\" title=\"{{error}}\"><Icons icon=\"attention\"/></span></div>"," </td>"," </tr>"," {{else}}"," {{#milestones}}"," <tr>"," <td class=\"repo\">"," <a class=\"project\" href=\"#{{owner}}/{{name}}\">{{owner}}/{{name}}</a>"," </td>"," <td>"," <a class=\"milestone\" href=\"#{{owner}}/{{name}}/{{number}}\">{{ title }}</a>"," </td>"," <td style=\"width:1%\">"," <div class=\"progress\">"," <span class=\"percent\">{{Math.floor(format.progress(issues.closed.size, issues.open.size))}}%</span>"," <span class=\"due\">{{{ format.due(due_on) }}}</span>"," <div class=\"outer bar\">"," <div class=\"inner bar {{format.onTime(number, due_on, created_at, issues.closed.size, issues.open.size)}}\" style=\"width:{{format.progress(issues.closed.size, issues.open.size)}}%\"></div>"," </div>"," </div>"," </td>"," </tr>"," {{/milestones}}"," {{/if}}"," {{/projects.list}}"," </table>",""," <div class=\"footer\">"," <a href=\"#\"><Icons icon=\"cog\"/> Edit</a>"," </div>","</div>","","<!--"," <tr>"," <td><a class=\"repo\" href=\"#\">radekstepan/disposable</a></td>"," <td><span class=\"milestone\">Milestone 1.0 <span class=\"icon down-open\"></span></td>"," <td>"," <div class=\"progress\">"," <span class=\"percent\">40%</span>"," <span class=\"due\">due on Friday</span>"," <div class=\"outer bar\">"," <div class=\"inner bar red\" style=\"width:40%\"></div>"," </div>"," </div>"," </td>"," </tr>"," <tr class=\"done\">"," <td><a class=\"repo\" href=\"#\">radekstepan/burnchart</a></td>"," <td><span class=\"milestone\">Beta Milestone <span class=\"icon down-open\"></span></a></td>"," <td>"," <div class=\"progress\">"," <span class=\"percent\">100%</span>"," <span class=\"due\">due tomorrow</span>"," <div class=\"outer bar\">"," <div class=\"inner bar green\" style=\"width:100%\"></div>"," </div>"," </div>"," </td>"," </tr>"," <tr>"," <td><a class=\"repo\" href=\"#\">intermine/intermine</a></td>"," <td><span class=\"milestone\">Emma Release 96 <span class=\"icon down-open\"></span></a></td>"," <td>"," <div class=\"progress\">"," <span class=\"percent\">27%</span>"," <span class=\"due\">due in 2 weeks</span>"," <div class=\"outer bar\">"," <div class=\"inner bar red\" style=\"width:27%\"></div>"," </div>"," </div>"," </td>"," </tr>"," <tr>"," <td><a class=\"repo\" href=\"#\">microsoft/windows</a></td>"," <td><span class=\"milestone\">RC 9 <span class=\"icon down-open\"></span></a></td>"," <td>"," <div class=\"progress\">"," <span class=\"percent\">90%</span>"," <span class=\"due red\">overdue by a month</span>"," <div class=\"outer bar\">"," <div class=\"inner bar red\" style=\"width:90%\"></div>"," </div>"," </div>"," </td>"," </tr>","-->"].join("\n");
}); });
// date.coffee // date.coffee
root.require.register('burnchart/src/utils/date.js', function(exports, require, module) { root.require.register('burnchart/src/utils/date.coffee', function(exports, require, module) {
module.exports = { module.exports = {
now: function() { now: function() {
@ -39928,7 +39816,7 @@ Router.prototype.mount = function(routes, path) {
}); });
// format.coffee // format.coffee
root.require.register('burnchart/src/utils/format.js', function(exports, require, module) { root.require.register('burnchart/src/utils/format.coffee', function(exports, require, module) {
var __slice = [].slice; var __slice = [].slice;
@ -39978,7 +39866,7 @@ Router.prototype.mount = function(routes, path) {
}); });
// key.coffee // key.coffee
root.require.register('burnchart/src/utils/key.js', function(exports, require, module) { root.require.register('burnchart/src/utils/key.coffee', function(exports, require, module) {
module.exports = { module.exports = {
is: function(evt) { is: function(evt) {
@ -39993,7 +39881,7 @@ Router.prototype.mount = function(routes, path) {
}); });
// mixins.coffee // mixins.coffee
root.require.register('burnchart/src/utils/mixins.js', function(exports, require, module) { root.require.register('burnchart/src/utils/mixins.coffee', function(exports, require, module) {
_.mixin({ _.mixin({
'pluckMany': function(source, keys) { 'pluckMany': function(source, keys) {
@ -40017,7 +39905,7 @@ Router.prototype.mount = function(routes, path) {
}); });
// model.coffee // model.coffee
root.require.register('burnchart/src/utils/model.js', function(exports, require, module) { root.require.register('burnchart/src/utils/model.coffee', function(exports, require, module) {
module.exports = function(opts) { module.exports = function(opts) {
var Model, model; var Model, model;
@ -40030,17 +39918,17 @@ Router.prototype.mount = function(routes, path) {
}); });
// chart.coffee // chart.coffee
root.require.register('burnchart/src/views/chart.js', function(exports, require, module) { root.require.register('burnchart/src/views/chart.coffee', function(exports, require, module) {
var axes, lines; var axes, lines;
lines = require('../modules/chart/lines'); lines = require('../modules/chart/lines.coffee');
axes = require('../modules/chart/axes'); axes = require('../modules/chart/axes.coffee');
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/chart', 'name': 'views/chart',
'template': require('../templates/chart'), 'template': require('../templates/chart.html'),
oncomplete: function() { oncomplete: function() {
var actual, head, height, ideal, issues, line, m, mAxis, margin, milestone, svg, tooltip, total, trend, width, x, xAxis, y, yAxis, _ref; var actual, head, height, ideal, issues, line, m, mAxis, margin, milestone, svg, tooltip, total, trend, width, x, xAxis, y, yAxis, _ref;
milestone = this.data.milestone; milestone = this.data.milestone;
@ -40116,21 +40004,21 @@ Router.prototype.mount = function(routes, path) {
}); });
// header.coffee // header.coffee
root.require.register('burnchart/src/views/header.js', function(exports, require, module) { root.require.register('burnchart/src/views/header.coffee', function(exports, require, module) {
var Icons, firebase, system, user; var Icons, firebase, system, user;
system = require('../models/system').system; system = require('../models/system.coffee').system;
firebase = require('../models/firebase'); firebase = require('../models/firebase.coffee');
user = require('../models/user'); user = require('../models/user.coffee');
Icons = require('./icons'); Icons = require('./icons.coffee');
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/header', 'name': 'views/header',
'template': require('../templates/header'), 'template': require('../templates/header.html'),
'data': { 'data': {
'user': user, 'user': user,
'icon': 'fire-station' 'icon': 'fire-station'
@ -40159,17 +40047,17 @@ Router.prototype.mount = function(routes, path) {
}); });
// hero.coffee // hero.coffee
root.require.register('burnchart/src/views/hero.js', function(exports, require, module) { root.require.register('burnchart/src/views/hero.coffee', function(exports, require, module) {
var Icons, mediator; var Icons, mediator;
mediator = require('../modules/mediator'); mediator = require('../modules/mediator.coffee');
Icons = require('./icons'); Icons = require('./icons.coffee');
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/hero', 'name': 'views/hero',
'template': require('../templates/hero'), 'template': require('../templates/hero.html'),
'components': { 'components': {
Icons: Icons Icons: Icons
}, },
@ -40179,11 +40067,11 @@ Router.prototype.mount = function(routes, path) {
}); });
// icons.coffee // icons.coffee
root.require.register('burnchart/src/views/icons.js', function(exports, require, module) { root.require.register('burnchart/src/views/icons.coffee', function(exports, require, module) {
var codes, utils; var codes, format;
utils = require('../utils/format'); format = require('../utils/format.coffee');
codes = { codes = {
'cog': '\e800', 'cog': '\e800',
@ -40203,13 +40091,13 @@ Router.prototype.mount = function(routes, path) {
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/icons', 'name': 'views/icons',
'template': require('../templates/icons'), 'template': require('../templates/icons.html'),
'isolated': true, 'isolated': true,
onrender: function() { onrender: function() {
return this.observe('icon', function(icon) { return this.observe('icon', function(icon) {
var hex; var hex;
if (icon && (hex = codes[icon])) { if (icon && (hex = codes[icon])) {
return this.set('code', utils.hexToDecimal(hex)); return this.set('code', format.hexToDecimal(hex));
} else { } else {
return this.set('code', null); return this.set('code', null);
} }
@ -40220,19 +40108,19 @@ Router.prototype.mount = function(routes, path) {
}); });
// notify.coffee // notify.coffee
root.require.register('burnchart/src/views/notify.js', function(exports, require, module) { root.require.register('burnchart/src/views/notify.coffee', function(exports, require, module) {
var HEIGHT, Icons, mediator; var HEIGHT, Icons, mediator;
mediator = require('../modules/mediator'); mediator = require('../modules/mediator.coffee');
Icons = require('./icons'); Icons = require('./icons.coffee');
HEIGHT = 68; HEIGHT = 68;
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/notify', 'name': 'views/notify',
'template': require('../templates/notify'), 'template': require('../templates/notify.html'),
'data': { 'data': {
'top': HEIGHT, 'top': HEIGHT,
'hidden': true, 'hidden': true,
@ -40285,27 +40173,27 @@ Router.prototype.mount = function(routes, path) {
}); });
// index.coffee // index.coffee
root.require.register('burnchart/src/views/pages/index.js', function(exports, require, module) { root.require.register('burnchart/src/views/pages/index.coffee', function(exports, require, module) {
var Hero, Projects, issues, mediator, milestones, projects, system; var Hero, Projects, issues, mediator, milestones, projects, system;
Hero = require('../hero'); Hero = require('../hero.coffee');
Projects = require('../tables/projects'); Projects = require('../tables/projects.coffee');
projects = require('../../models/projects'); projects = require('../../models/projects.coffee');
system = require('../../models/system'); system = require('../../models/system.coffee');
milestones = require('../../modules/github/milestones'); milestones = require('../../modules/github/milestones.coffee');
issues = require('../../modules/github/issues'); issues = require('../../modules/github/issues.coffee');
mediator = require('../../modules/mediator'); mediator = require('../../modules/mediator.coffee');
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/pages/index', 'name': 'views/pages/index',
'template': require('../../templates/pages/index'), 'template': require('../../templates/pages/index.html'),
'components': { 'components': {
Hero: Hero, Hero: Hero,
Projects: Projects Projects: Projects
@ -40366,27 +40254,27 @@ Router.prototype.mount = function(routes, path) {
}); });
// milestone.coffee // milestone.coffee
root.require.register('burnchart/src/views/pages/milestone.js', function(exports, require, module) { root.require.register('burnchart/src/views/pages/milestone.coffee', function(exports, require, module) {
var Chart, format, issues, mediator, milestones, projects, system; var Chart, format, issues, mediator, milestones, projects, system;
Chart = require('../chart'); Chart = require('../chart.coffee');
projects = require('../../models/projects'); projects = require('../../models/projects.coffee');
system = require('../../models/system'); system = require('../../models/system.coffee');
milestones = require('../../modules/github/milestones'); milestones = require('../../modules/github/milestones.coffee');
issues = require('../../modules/github/issues'); issues = require('../../modules/github/issues.coffee');
mediator = require('../../modules/mediator'); mediator = require('../../modules/mediator.coffee');
format = require('../../utils/format'); format = require('../../utils/format.coffee');
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/pages/chart', 'name': 'views/pages/chart',
'template': require('../../templates/pages/milestone'), 'template': require('../../templates/pages/milestone.html'),
'components': { 'components': {
Chart: Chart Chart: Chart
}, },
@ -40457,21 +40345,21 @@ Router.prototype.mount = function(routes, path) {
}); });
// new.coffee // new.coffee
root.require.register('burnchart/src/views/pages/new.js', function(exports, require, module) { root.require.register('burnchart/src/views/pages/new.coffee', function(exports, require, module) {
var key, mediator, system, user; var key, mediator, system, user;
mediator = require('../../modules/mediator'); mediator = require('../../modules/mediator.coffee');
system = require('../../models/system'); system = require('../../models/system.coffee');
user = require('../../models/user'); user = require('../../models/user.coffee');
key = require('../../utils/key'); key = require('../../utils/key.coffee');
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/pages/new', 'name': 'views/pages/new',
'template': require('../../templates/pages/new'), 'template': require('../../templates/pages/new.html'),
'data': { 'data': {
'value': 'radekstepan/disposable', 'value': 'radekstepan/disposable',
user: user user: user
@ -40511,25 +40399,25 @@ Router.prototype.mount = function(routes, path) {
}); });
// project.coffee // project.coffee
root.require.register('burnchart/src/views/pages/project.js', function(exports, require, module) { root.require.register('burnchart/src/views/pages/project.coffee', function(exports, require, module) {
var Milestones, issues, mediator, milestones, projects, system; var Milestones, issues, mediator, milestones, projects, system;
Milestones = require('../tables/milestones'); Milestones = require('../tables/milestones.coffee');
projects = require('../../models/projects'); projects = require('../../models/projects.coffee');
system = require('../../models/system'); system = require('../../models/system.coffee');
milestones = require('../../modules/github/milestones'); milestones = require('../../modules/github/milestones.coffee');
issues = require('../../modules/github/issues'); issues = require('../../modules/github/issues.coffee');
mediator = require('../../modules/mediator'); mediator = require('../../modules/mediator.coffee');
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/pages/project', 'name': 'views/pages/project',
'template': require('../../templates/pages/project'), 'template': require('../../templates/pages/project.html'),
'components': { 'components': {
Milestones: Milestones Milestones: Milestones
}, },
@ -40595,21 +40483,21 @@ Router.prototype.mount = function(routes, path) {
}); });
// milestones.coffee // milestones.coffee
root.require.register('burnchart/src/views/tables/milestones.js', function(exports, require, module) { root.require.register('burnchart/src/views/tables/milestones.coffee', function(exports, require, module) {
var Icons, format, mediator, projects; var Icons, format, mediator, projects;
mediator = require('../../modules/mediator'); mediator = require('../../modules/mediator.coffee');
projects = require('../../models/projects'); projects = require('../../models/projects.coffee');
format = require('../../utils/format'); format = require('../../utils/format.coffee');
Icons = require('../icons'); Icons = require('../icons.coffee');
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/milestones', 'name': 'views/milestones',
'template': require('../../templates/tables/milestones'), 'template': require('../../templates/tables/milestones.html'),
'data': { 'data': {
format: format format: format
}, },
@ -40622,19 +40510,19 @@ Router.prototype.mount = function(routes, path) {
}); });
// projects.coffee // projects.coffee
root.require.register('burnchart/src/views/tables/projects.js', function(exports, require, module) { root.require.register('burnchart/src/views/tables/projects.coffee', function(exports, require, module) {
var Icons, format, mediator; var Icons, format, mediator;
mediator = require('../../modules/mediator'); mediator = require('../../modules/mediator.coffee');
format = require('../../utils/format'); format = require('../../utils/format.coffee');
Icons = require('../icons'); Icons = require('../icons.coffee');
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/projects', 'name': 'views/projects',
'template': require('../../templates/tables/projects'), 'template': require('../../templates/tables/projects.html'),
'data': { 'data': {
format: format format: format
}, },
@ -40648,32 +40536,23 @@ Router.prototype.mount = function(routes, path) {
})(); })();
// Return the main app. // Return the main app.
var main = root.require("burnchart/src/app.js"); var main = root.require("burnchart/src/app.coffee");
// CommonJS/Modules with all its aliases.
root.require.register("burnchart", function(exports, require, module) {
module.exports = main;
});
// AMD/RequireJS. // AMD/RequireJS.
if (typeof define !== 'undefined' && define.amd) { if (typeof define === 'function' && define.amd) {
define("burnchart", [ /* load deps ahead of time */ ], function () { define("burnchart", [ /* load deps ahead of time */ ], function () {
return main; return main;
}); });
} }
// CommonJS. // Browser globals.
else if (typeof module !== 'undefined' && module.exports) { root["burnchart"] = main;
module.exports = main;
}
// Globally exported.
else {
root["burnchart"] = main;
}
// Alias our app.
root.require.alias("burnchart/src/app.js", "burnchart/index.js");
})(this); })(this);

View File

@ -5,24 +5,24 @@
(function() { (function() {
// app.coffee // app.coffee
root.require.register('burnchart/src/app.js', function(exports, require, module) { root.require.register('burnchart/src/app.coffee', function(exports, require, module) {
var App, Header, Notify, key, router, _i, _len, _ref; var App, Header, Notify, key, router, _i, _len, _ref;
_ref = ['utils/mixins', 'models/projects']; _ref = ['utils/mixins.coffee', 'models/projects.coffee'];
for (_i = 0, _len = _ref.length; _i < _len; _i++) { for (_i = 0, _len = _ref.length; _i < _len; _i++) {
key = _ref[_i]; key = _ref[_i];
require("./" + key); require("./" + key);
} }
Header = require('./views/header'); Header = require('./views/header.coffee');
Notify = require('./views/notify'); Notify = require('./views/notify.coffee');
router = require('./modules/router'); router = require('./modules/router.coffee');
App = Ractive.extend({ App = Ractive.extend({
'template': require('./templates/app'), 'template': require('./templates/app.html'),
'components': { 'components': {
Header: Header, Header: Header,
Notify: Notify Notify: Notify
@ -37,11 +37,11 @@
}); });
// config.coffee // config.coffee
root.require.register('burnchart/src/models/config.js', function(exports, require, module) { root.require.register('burnchart/src/models/config.coffee', function(exports, require, module) {
var Model; var Model;
Model = require('../utils/model'); Model = require('../utils/model.coffee');
module.exports = new Model({ module.exports = new Model({
'name': 'models/config', 'name': 'models/config',
@ -64,15 +64,15 @@
}); });
// firebase.coffee // firebase.coffee
root.require.register('burnchart/src/models/firebase.js', function(exports, require, module) { root.require.register('burnchart/src/models/firebase.coffee', function(exports, require, module) {
var Model, config, user; var Model, config, user;
Model = require('../utils/model'); Model = require('../utils/model.coffee');
user = require('./user'); user = require('./user.coffee');
config = require('./config'); config = require('./config.coffee');
module.exports = new Model({ module.exports = new Model({
'name': 'models/firebase', 'name': 'models/firebase',
@ -110,19 +110,19 @@
}); });
// projects.coffee // projects.coffee
root.require.register('burnchart/src/models/projects.js', function(exports, require, module) { root.require.register('burnchart/src/models/projects.coffee', function(exports, require, module) {
var Model, config, date, mediator, user; var Model, config, date, mediator, user;
config = require('../models/config'); config = require('../models/config.coffee');
mediator = require('../modules/mediator'); mediator = require('../modules/mediator.coffee');
Model = require('../utils/model'); Model = require('../utils/model.coffee');
date = require('../utils/date'); date = require('../utils/date.coffee');
user = require('./user'); user = require('./user.coffee');
module.exports = new Model({ module.exports = new Model({
'name': 'models/projects', 'name': 'models/projects',
@ -169,13 +169,13 @@
}); });
// system.coffee // system.coffee
root.require.register('burnchart/src/models/system.js', function(exports, require, module) { root.require.register('burnchart/src/models/system.coffee', function(exports, require, module) {
var Model, async, counter, mediator, system; var Model, async, counter, mediator, system;
mediator = require('../modules/mediator'); mediator = require('../modules/mediator.coffee');
Model = require('../utils/model'); Model = require('../utils/model.coffee');
system = new Model({ system = new Model({
'name': 'models/system', 'name': 'models/system',
@ -203,13 +203,13 @@
}); });
// user.coffee // user.coffee
root.require.register('burnchart/src/models/user.js', function(exports, require, module) { root.require.register('burnchart/src/models/user.coffee', function(exports, require, module) {
var Model, mediator; var Model, mediator;
mediator = require('../modules/mediator'); mediator = require('../modules/mediator.coffee');
Model = require('../utils/model'); Model = require('../utils/model.coffee');
module.exports = new Model({ module.exports = new Model({
'name': 'models/user', 'name': 'models/user',
@ -224,7 +224,7 @@
}); });
// axes.coffee // axes.coffee
root.require.register('burnchart/src/modules/chart/axes.js', function(exports, require, module) { root.require.register('burnchart/src/modules/chart/axes.coffee', function(exports, require, module) {
module.exports = { module.exports = {
horizontal: function(height, x) { horizontal: function(height, x) {
@ -240,12 +240,12 @@
}); });
// lines.coffee // lines.coffee
root.require.register('burnchart/src/modules/chart/lines.js', function(exports, require, module) { root.require.register('burnchart/src/modules/chart/lines.coffee', function(exports, require, module) {
var config, var config,
__indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; __indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
config = require('../../models/config'); config = require('../../models/config.coffee');
module.exports = { module.exports = {
actual: function(issues, created_at, total) { actual: function(issues, created_at, total) {
@ -374,13 +374,13 @@
}); });
// issues.coffee // issues.coffee
root.require.register('burnchart/src/modules/github/issues.js', function(exports, require, module) { root.require.register('burnchart/src/modules/github/issues.coffee', function(exports, require, module) {
var config, request; var config, request;
config = require('../../models/config'); config = require('../../models/config.coffee');
request = require('./request'); request = require('./request.coffee');
module.exports = { module.exports = {
fetchAll: function(repo, cb) { fetchAll: function(repo, cb) {
@ -457,11 +457,11 @@
}); });
// milestones.coffee // milestones.coffee
root.require.register('burnchart/src/modules/github/milestones.js', function(exports, require, module) { root.require.register('burnchart/src/modules/github/milestones.coffee', function(exports, require, module) {
var request; var request;
request = require('./request'); request = require('./request.coffee');
module.exports = { module.exports = {
'fetch': request.oneMilestone, 'fetch': request.oneMilestone,
@ -471,11 +471,11 @@
}); });
// request.coffee // request.coffee
root.require.register('burnchart/src/modules/github/request.js', function(exports, require, module) { root.require.register('burnchart/src/modules/github/request.coffee', function(exports, require, module) {
var defaults, error, headers, isReady, isValid, ready, request, response, stack, user; var defaults, error, headers, isReady, isValid, ready, request, response, stack, user;
user = require('../../models/user'); user = require('../../models/user.coffee');
superagent.parse = { superagent.parse = {
'application/json': function(res) { 'application/json': function(res) {
@ -716,7 +716,7 @@
}); });
// mediator.coffee // mediator.coffee
root.require.register('burnchart/src/modules/mediator.js', function(exports, require, module) { root.require.register('burnchart/src/modules/mediator.coffee', function(exports, require, module) {
var Mediator; var Mediator;
@ -727,14 +727,14 @@
}); });
// router.coffee // router.coffee
root.require.register('burnchart/src/modules/router.js', function(exports, require, module) { root.require.register('burnchart/src/modules/router.coffee', function(exports, require, module) {
var addProject, c, el, mediator, route, routes, system, view, var addProject, c, el, mediator, route, routes, system, view,
__slice = [].slice; __slice = [].slice;
mediator = require('./mediator'); mediator = require('./mediator.coffee');
system = require('../models/system'); system = require('../models/system.coffee');
el = '#page'; el = '#page';
@ -767,7 +767,7 @@
view.teardown(); view.teardown();
} }
mediator.fire('!app/notify/hide'); mediator.fire('!app/notify/hide');
Page = require("../views/pages/" + page); Page = require("../views/pages/" + page + ".coffee");
return view = new Page({ return view = new Page({
el: el, el: el,
'data': { 'data': {
@ -796,80 +796,80 @@
}); });
// app.mustache // app.html
root.require.register('burnchart/src/templates/app.js', function(exports, require, module) { root.require.register('burnchart/src/templates/app.html', function(exports, require, module) {
module.exports = ["<div id=\"app\">"," <Notify/>"," <Header/>",""," <div id=\"page\">"," <!-- content loaded from a router -->"," </div>",""," <div id=\"footer\">"," <div class=\"wrap\">"," &copy; 2012-2014 <a href=\"http://cloudfi.re\">Cloudfire Systems</a>"," </div>"," </div>","</div>"].join("\n"); module.exports = ["<div id=\"app\">"," <Notify/>"," <Header/>",""," <div id=\"page\">"," <!-- content loaded from a router -->"," </div>",""," <div id=\"footer\">"," <div class=\"wrap\">"," &copy; 2012-2014 <a href=\"http://cloudfi.re\">Cloudfire Systems</a>"," </div>"," </div>","</div>"].join("\n");
}); });
// chart.mustache // chart.html
root.require.register('burnchart/src/templates/chart.js', function(exports, require, module) { root.require.register('burnchart/src/templates/chart.html', function(exports, require, module) {
module.exports = ["<div id=\"chart\"></div>"].join("\n"); module.exports = ["<div id=\"chart\"></div>"].join("\n");
}); });
// header.mustache // header.html
root.require.register('burnchart/src/templates/header.js', function(exports, require, module) { root.require.register('burnchart/src/templates/header.html', function(exports, require, module) {
module.exports = ["<div id=\"head\">"," {{#with user}}"," {{#ready}}"," <div class=\"right\" intro=\"fade\">"," {{#displayName}}"," {{displayName}} logged in"," {{else}}"," <a class=\"github\" on-click=\"!login\"><Icons icon=\"github\"/> Sign In</a>"," {{/displayName}}"," </div>"," {{/ready}}"," {{/with}}",""," <a id=\"icon\" href=\"#\">"," <Icons icon=\"{{icon}}\"/>"," </a>",""," <!--"," <div class=\"q\">"," <Icons icon=\"search\"/>"," <Icons icon=\"down-open\"/>"," <input type=\"text\" placeholder=\"Jump to...\">"," </div>"," -->",""," <ul>"," <li><a href=\"#new/project\" class=\"add\"><Icons icon=\"plus-circled\"/> Add a Project</a></li>"," <li><a href=\"#\" class=\"faq\">FAQ</a></li>"," <li><a href=\"#reset\">DB Reset</a></li>"," <li><a href=\"#notify\">Notify</a></li>"," </ul>","</div>"].join("\n"); module.exports = ["<div id=\"head\">"," {{#with user}}"," {{#ready}}"," <div class=\"right\" intro=\"fade\">"," {{#displayName}}"," {{displayName}} logged in"," {{else}}"," <a class=\"github\" on-click=\"!login\"><Icons icon=\"github\"/> Sign In</a>"," {{/displayName}}"," </div>"," {{/ready}}"," {{/with}}",""," <a id=\"icon\" href=\"#\">"," <Icons icon=\"{{icon}}\"/>"," </a>",""," <!--"," <div class=\"q\">"," <Icons icon=\"search\"/>"," <Icons icon=\"down-open\"/>"," <input type=\"text\" placeholder=\"Jump to...\">"," </div>"," -->",""," <ul>"," <li><a href=\"#new/project\" class=\"add\"><Icons icon=\"plus-circled\"/> Add a Project</a></li>"," <li><a href=\"#\" class=\"faq\">FAQ</a></li>"," <li><a href=\"#reset\">DB Reset</a></li>"," <li><a href=\"#notify\">Notify</a></li>"," </ul>","</div>"].join("\n");
}); });
// hero.mustache // hero.html
root.require.register('burnchart/src/templates/hero.js', function(exports, require, module) { root.require.register('burnchart/src/templates/hero.html', function(exports, require, module) {
module.exports = ["<div id=\"hero\">"," <div class=\"content\">"," <Icons icon=\"address\"/>"," <h2>See your project progress</h2>"," <p>Not sure where to start? Just add a demo repo to see a chart. There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable.</p>"," <div class=\"cta\">"," <a href=\"#new/project\" class=\"primary\"><Icons icon=\"plus-circled\"/> Add your project</a>"," <a href=\"#\" class=\"secondary\">Read the Guide</a>"," </div>"," </div>","</div>"].join("\n"); module.exports = ["<div id=\"hero\">"," <div class=\"content\">"," <Icons icon=\"address\"/>"," <h2>See your project progress</h2>"," <p>Not sure where to start? Just add a demo repo to see a chart. There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable.</p>"," <div class=\"cta\">"," <a href=\"#new/project\" class=\"primary\"><Icons icon=\"plus-circled\"/> Add your project</a>"," <a href=\"#\" class=\"secondary\">Read the Guide</a>"," </div>"," </div>","</div>"].join("\n");
}); });
// icons.mustache // icons.html
root.require.register('burnchart/src/templates/icons.js', function(exports, require, module) { root.require.register('burnchart/src/templates/icons.html', function(exports, require, module) {
module.exports = ["{{#code}}"," <span class=\"icon {{icon}}\">{{{ '&#' + code + ';' }}}</span>","{{/code}}"].join("\n"); module.exports = ["{{#code}}"," <span class=\"icon {{icon}}\">{{{ '&#' + code + ';' }}}</span>","{{/code}}"].join("\n");
}); });
// notify.mustache // notify.html
root.require.register('burnchart/src/templates/notify.js', function(exports, require, module) { root.require.register('burnchart/src/templates/notify.html', function(exports, require, module) {
module.exports = ["{{#text}}"," {{#system}}"," <div id=\"notify\" class=\"{{type}} system\" style=\"top:{{top}}%\">"," <Icons icon=\"{{icon}}\"/>"," <p>{{text}}</p>"," </div>"," {{else}}"," <div id=\"notify\" class=\"{{type}}\" style=\"top:{{-top}}px\">"," <span class=\"close\" on-click=\"close\" />"," <Icons icon=\"{{icon}}\"/>"," <p>{{text}}</p>"," </div>"," {{/system}}","{{/text}}"].join("\n"); module.exports = ["{{#text}}"," {{#system}}"," <div id=\"notify\" class=\"{{type}} system\" style=\"top:{{top}}%\">"," <Icons icon=\"{{icon}}\"/>"," <p>{{text}}</p>"," </div>"," {{else}}"," <div id=\"notify\" class=\"{{type}}\" style=\"top:{{-top}}px\">"," <span class=\"close\" on-click=\"close\" />"," <Icons icon=\"{{icon}}\"/>"," <p>{{text}}</p>"," </div>"," {{/system}}","{{/text}}"].join("\n");
}); });
// index.mustache // index.html
root.require.register('burnchart/src/templates/pages/index.js', function(exports, require, module) { root.require.register('burnchart/src/templates/pages/index.html', function(exports, require, module) {
module.exports = ["<div id=\"content\" class=\"wrap\">"," {{#if projects.list}}"," {{#ready}}"," <div intro=\"fade\">"," <Projects projects=\"{{projects}}\"/>"," </div>"," {{/ready}}"," {{else}}"," <Hero/>"," {{/if}}","</div>"].join("\n"); module.exports = ["<div id=\"content\" class=\"wrap\">"," {{#if projects.list}}"," {{#ready}}"," <div intro=\"fade\">"," <Projects projects=\"{{projects}}\"/>"," </div>"," {{/ready}}"," {{else}}"," <Hero/>"," {{/if}}","</div>"].join("\n");
}); });
// milestone.mustache // milestone.html
root.require.register('burnchart/src/templates/pages/milestone.js', function(exports, require, module) { root.require.register('burnchart/src/templates/pages/milestone.html', function(exports, require, module) {
module.exports = ["{{#ready}}"," <div intro=\"fade\">"," <div id=\"title\">"," <div class=\"wrap\">"," <h2 class=\"title\">{{ format.title(milestone.title) }}</h2>"," <span class=\"sub\">{{{ format.due(milestone.due_on) }}}</span>"," <p class=\"description\">{{{ format.markdown(milestone.description) }}}</p>"," </div>"," </div>",""," <div id=\"content\" class=\"wrap\">"," <Chart milestone=\"{{milestone}}\"/>"," </div>"," </div>","{{/ready}}"].join("\n"); module.exports = ["{{#ready}}"," <div intro=\"fade\">"," <div id=\"title\">"," <div class=\"wrap\">"," <h2 class=\"title\">{{ format.title(milestone.title) }}</h2>"," <span class=\"sub\">{{{ format.due(milestone.due_on) }}}</span>"," <p class=\"description\">{{{ format.markdown(milestone.description) }}}</p>"," </div>"," </div>",""," <div id=\"content\" class=\"wrap\">"," <Chart milestone=\"{{milestone}}\"/>"," </div>"," </div>","{{/ready}}"].join("\n");
}); });
// new.mustache // new.html
root.require.register('burnchart/src/templates/pages/new.js', function(exports, require, module) { root.require.register('burnchart/src/templates/pages/new.html', function(exports, require, module) {
module.exports = ["<div id=\"content\" class=\"wrap\">"," <div id=\"add\">"," <div class=\"header\">"," <h2>Add a Project</h2>"," <p>Type in the name of the repository as you would normally. If you'd like to add a private GitHub project, <a href=\"#\">Sign In</a> first.</p>"," </div>",""," <div class=\"form\">"," <table>"," <tr>"," <td>"," <input type=\"text\" placeholder=\"user/repo\" autocomplete=\"off\" value=\"{{value}}\" on-keyup=\"submit:{{value}}\">"," </td>"," <td>"," <a on-click=\"submit:{{value}}\">Add</a>"," </td>"," </tr>"," </table>"," </div>"," </div>","</div>"].join("\n"); module.exports = ["<div id=\"content\" class=\"wrap\">"," <div id=\"add\">"," <div class=\"header\">"," <h2>Add a Project</h2>"," <p>Type in the name of the repository as you would normally. If you'd like to add a private GitHub project, <a href=\"#\">Sign In</a> first.</p>"," </div>",""," <div class=\"form\">"," <table>"," <tr>"," <td>"," <input type=\"text\" placeholder=\"user/repo\" autocomplete=\"off\" value=\"{{value}}\" on-keyup=\"submit:{{value}}\">"," </td>"," <td>"," <a on-click=\"submit:{{value}}\">Add</a>"," </td>"," </tr>"," </table>"," </div>"," </div>","</div>"].join("\n");
}); });
// project.mustache // project.html
root.require.register('burnchart/src/templates/pages/project.js', function(exports, require, module) { root.require.register('burnchart/src/templates/pages/project.html', function(exports, require, module) {
module.exports = ["{{#ready}}"," <div intro=\"fade\">"," <div id=\"title\">"," <div class=\"wrap\">"," <h2 class=\"title\">{{route.join('/')}}</h2>"," </div>"," </div>",""," <div id=\"content\" class=\"wrap\">"," <Milestones project=\"{{project}}\"/>"," </div>"," </div>","{{/ready}}"].join("\n"); module.exports = ["{{#ready}}"," <div intro=\"fade\">"," <div id=\"title\">"," <div class=\"wrap\">"," <h2 class=\"title\">{{route.join('/')}}</h2>"," </div>"," </div>",""," <div id=\"content\" class=\"wrap\">"," <Milestones project=\"{{project}}\"/>"," </div>"," </div>","{{/ready}}"].join("\n");
}); });
// milestones.mustache // milestones.html
root.require.register('burnchart/src/templates/tables/milestones.js', function(exports, require, module) { root.require.register('burnchart/src/templates/tables/milestones.html', function(exports, require, module) {
module.exports = ["<div id=\"projects\">"," <div class=\"header\">"," <a href=\"#\" class=\"sort\"><Icons icon=\"sort-alphabet\"/> Sorted by priority</a>"," <h2>Milestones</h2>"," </div>",""," <table>"," {{#project.milestones}}"," <tr>"," <td>"," <a class=\"milestone\" href=\"#{{project.owner}}/{{project.name}}/{{number}}\">{{ title }}</a>"," </td>"," <td style=\"width:1%\">"," <div class=\"progress\">"," <span class=\"percent\">{{Math.floor(format.progress(issues.closed.size, issues.open.size))}}%</span>"," <span class=\"due\">{{{ format.due(due_on) }}}</span>"," <div class=\"outer bar\">"," <div class=\"inner bar {{format.onTime(number, due_on, created_at, issues.closed.size, issues.open.size)}}\" style=\"width:{{format.progress(issues.closed.size, issues.open.size)}}%\"></div>"," </div>"," </div>"," </td>"," </tr>"," {{/project.milestones}}"," </table>",""," <div class=\"footer\">"," <a href=\"#\"><Icons icon=\"cog\"/> Edit</a>"," </div>","</div>"].join("\n"); module.exports = ["<div id=\"projects\">"," <div class=\"header\">"," <a href=\"#\" class=\"sort\"><Icons icon=\"sort-alphabet\"/> Sorted by priority</a>"," <h2>Milestones</h2>"," </div>",""," <table>"," {{#project.milestones}}"," <tr>"," <td>"," <a class=\"milestone\" href=\"#{{project.owner}}/{{project.name}}/{{number}}\">{{ title }}</a>"," </td>"," <td style=\"width:1%\">"," <div class=\"progress\">"," <span class=\"percent\">{{Math.floor(format.progress(issues.closed.size, issues.open.size))}}%</span>"," <span class=\"due\">{{{ format.due(due_on) }}}</span>"," <div class=\"outer bar\">"," <div class=\"inner bar {{format.onTime(number, due_on, created_at, issues.closed.size, issues.open.size)}}\" style=\"width:{{format.progress(issues.closed.size, issues.open.size)}}%\"></div>"," </div>"," </div>"," </td>"," </tr>"," {{/project.milestones}}"," </table>",""," <div class=\"footer\">"," <a href=\"#\"><Icons icon=\"cog\"/> Edit</a>"," </div>","</div>"].join("\n");
}); });
// projects.mustache // projects.html
root.require.register('burnchart/src/templates/tables/projects.js', function(exports, require, module) { root.require.register('burnchart/src/templates/tables/projects.html', function(exports, require, module) {
module.exports = ["<div id=\"projects\">"," <div class=\"header\">"," <a href=\"#\" class=\"sort\"><Icons icon=\"sort-alphabet\"/> Sorted by priority</a>"," <h2>Projects</h2>"," </div>",""," <table>"," {{#projects.list}}"," {{#if error}}"," <tr>"," <td colspan=\"3\" class=\"repo\">"," <div class=\"project\">{{owner}}/{{name}} <span class=\"error\" title=\"{{error}}\"><Icons icon=\"attention\"/></span></div>"," </td>"," </tr>"," {{else}}"," {{#milestones}}"," <tr>"," <td class=\"repo\">"," <a class=\"project\" href=\"#{{owner}}/{{name}}\">{{owner}}/{{name}}</a>"," </td>"," <td>"," <a class=\"milestone\" href=\"#{{owner}}/{{name}}/{{number}}\">{{ title }}</a>"," </td>"," <td style=\"width:1%\">"," <div class=\"progress\">"," <span class=\"percent\">{{Math.floor(format.progress(issues.closed.size, issues.open.size))}}%</span>"," <span class=\"due\">{{{ format.due(due_on) }}}</span>"," <div class=\"outer bar\">"," <div class=\"inner bar {{format.onTime(number, due_on, created_at, issues.closed.size, issues.open.size)}}\" style=\"width:{{format.progress(issues.closed.size, issues.open.size)}}%\"></div>"," </div>"," </div>"," </td>"," </tr>"," {{/milestones}}"," {{/if}}"," {{/projects.list}}"," </table>",""," <div class=\"footer\">"," <a href=\"#\"><Icons icon=\"cog\"/> Edit</a>"," </div>","</div>","","<!--"," <tr>"," <td><a class=\"repo\" href=\"#\">radekstepan/disposable</a></td>"," <td><span class=\"milestone\">Milestone 1.0 <span class=\"icon down-open\"></span></td>"," <td>"," <div class=\"progress\">"," <span class=\"percent\">40%</span>"," <span class=\"due\">due on Friday</span>"," <div class=\"outer bar\">"," <div class=\"inner bar red\" style=\"width:40%\"></div>"," </div>"," </div>"," </td>"," </tr>"," <tr class=\"done\">"," <td><a class=\"repo\" href=\"#\">radekstepan/burnchart</a></td>"," <td><span class=\"milestone\">Beta Milestone <span class=\"icon down-open\"></span></a></td>"," <td>"," <div class=\"progress\">"," <span class=\"percent\">100%</span>"," <span class=\"due\">due tomorrow</span>"," <div class=\"outer bar\">"," <div class=\"inner bar green\" style=\"width:100%\"></div>"," </div>"," </div>"," </td>"," </tr>"," <tr>"," <td><a class=\"repo\" href=\"#\">intermine/intermine</a></td>"," <td><span class=\"milestone\">Emma Release 96 <span class=\"icon down-open\"></span></a></td>"," <td>"," <div class=\"progress\">"," <span class=\"percent\">27%</span>"," <span class=\"due\">due in 2 weeks</span>"," <div class=\"outer bar\">"," <div class=\"inner bar red\" style=\"width:27%\"></div>"," </div>"," </div>"," </td>"," </tr>"," <tr>"," <td><a class=\"repo\" href=\"#\">microsoft/windows</a></td>"," <td><span class=\"milestone\">RC 9 <span class=\"icon down-open\"></span></a></td>"," <td>"," <div class=\"progress\">"," <span class=\"percent\">90%</span>"," <span class=\"due red\">overdue by a month</span>"," <div class=\"outer bar\">"," <div class=\"inner bar red\" style=\"width:90%\"></div>"," </div>"," </div>"," </td>"," </tr>","-->"].join("\n"); module.exports = ["<div id=\"projects\">"," <div class=\"header\">"," <a href=\"#\" class=\"sort\"><Icons icon=\"sort-alphabet\"/> Sorted by priority</a>"," <h2>Projects</h2>"," </div>",""," <table>"," {{#projects.list}}"," {{#if error}}"," <tr>"," <td colspan=\"3\" class=\"repo\">"," <div class=\"project\">{{owner}}/{{name}} <span class=\"error\" title=\"{{error}}\"><Icons icon=\"attention\"/></span></div>"," </td>"," </tr>"," {{else}}"," {{#milestones}}"," <tr>"," <td class=\"repo\">"," <a class=\"project\" href=\"#{{owner}}/{{name}}\">{{owner}}/{{name}}</a>"," </td>"," <td>"," <a class=\"milestone\" href=\"#{{owner}}/{{name}}/{{number}}\">{{ title }}</a>"," </td>"," <td style=\"width:1%\">"," <div class=\"progress\">"," <span class=\"percent\">{{Math.floor(format.progress(issues.closed.size, issues.open.size))}}%</span>"," <span class=\"due\">{{{ format.due(due_on) }}}</span>"," <div class=\"outer bar\">"," <div class=\"inner bar {{format.onTime(number, due_on, created_at, issues.closed.size, issues.open.size)}}\" style=\"width:{{format.progress(issues.closed.size, issues.open.size)}}%\"></div>"," </div>"," </div>"," </td>"," </tr>"," {{/milestones}}"," {{/if}}"," {{/projects.list}}"," </table>",""," <div class=\"footer\">"," <a href=\"#\"><Icons icon=\"cog\"/> Edit</a>"," </div>","</div>","","<!--"," <tr>"," <td><a class=\"repo\" href=\"#\">radekstepan/disposable</a></td>"," <td><span class=\"milestone\">Milestone 1.0 <span class=\"icon down-open\"></span></td>"," <td>"," <div class=\"progress\">"," <span class=\"percent\">40%</span>"," <span class=\"due\">due on Friday</span>"," <div class=\"outer bar\">"," <div class=\"inner bar red\" style=\"width:40%\"></div>"," </div>"," </div>"," </td>"," </tr>"," <tr class=\"done\">"," <td><a class=\"repo\" href=\"#\">radekstepan/burnchart</a></td>"," <td><span class=\"milestone\">Beta Milestone <span class=\"icon down-open\"></span></a></td>"," <td>"," <div class=\"progress\">"," <span class=\"percent\">100%</span>"," <span class=\"due\">due tomorrow</span>"," <div class=\"outer bar\">"," <div class=\"inner bar green\" style=\"width:100%\"></div>"," </div>"," </div>"," </td>"," </tr>"," <tr>"," <td><a class=\"repo\" href=\"#\">intermine/intermine</a></td>"," <td><span class=\"milestone\">Emma Release 96 <span class=\"icon down-open\"></span></a></td>"," <td>"," <div class=\"progress\">"," <span class=\"percent\">27%</span>"," <span class=\"due\">due in 2 weeks</span>"," <div class=\"outer bar\">"," <div class=\"inner bar red\" style=\"width:27%\"></div>"," </div>"," </div>"," </td>"," </tr>"," <tr>"," <td><a class=\"repo\" href=\"#\">microsoft/windows</a></td>"," <td><span class=\"milestone\">RC 9 <span class=\"icon down-open\"></span></a></td>"," <td>"," <div class=\"progress\">"," <span class=\"percent\">90%</span>"," <span class=\"due red\">overdue by a month</span>"," <div class=\"outer bar\">"," <div class=\"inner bar red\" style=\"width:90%\"></div>"," </div>"," </div>"," </td>"," </tr>","-->"].join("\n");
}); });
// date.coffee // date.coffee
root.require.register('burnchart/src/utils/date.js', function(exports, require, module) { root.require.register('burnchart/src/utils/date.coffee', function(exports, require, module) {
module.exports = { module.exports = {
now: function() { now: function() {
@ -880,7 +880,7 @@
}); });
// format.coffee // format.coffee
root.require.register('burnchart/src/utils/format.js', function(exports, require, module) { root.require.register('burnchart/src/utils/format.coffee', function(exports, require, module) {
var __slice = [].slice; var __slice = [].slice;
@ -930,7 +930,7 @@
}); });
// key.coffee // key.coffee
root.require.register('burnchart/src/utils/key.js', function(exports, require, module) { root.require.register('burnchart/src/utils/key.coffee', function(exports, require, module) {
module.exports = { module.exports = {
is: function(evt) { is: function(evt) {
@ -945,7 +945,7 @@
}); });
// mixins.coffee // mixins.coffee
root.require.register('burnchart/src/utils/mixins.js', function(exports, require, module) { root.require.register('burnchart/src/utils/mixins.coffee', function(exports, require, module) {
_.mixin({ _.mixin({
'pluckMany': function(source, keys) { 'pluckMany': function(source, keys) {
@ -969,7 +969,7 @@
}); });
// model.coffee // model.coffee
root.require.register('burnchart/src/utils/model.js', function(exports, require, module) { root.require.register('burnchart/src/utils/model.coffee', function(exports, require, module) {
module.exports = function(opts) { module.exports = function(opts) {
var Model, model; var Model, model;
@ -982,17 +982,17 @@
}); });
// chart.coffee // chart.coffee
root.require.register('burnchart/src/views/chart.js', function(exports, require, module) { root.require.register('burnchart/src/views/chart.coffee', function(exports, require, module) {
var axes, lines; var axes, lines;
lines = require('../modules/chart/lines'); lines = require('../modules/chart/lines.coffee');
axes = require('../modules/chart/axes'); axes = require('../modules/chart/axes.coffee');
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/chart', 'name': 'views/chart',
'template': require('../templates/chart'), 'template': require('../templates/chart.html'),
oncomplete: function() { oncomplete: function() {
var actual, head, height, ideal, issues, line, m, mAxis, margin, milestone, svg, tooltip, total, trend, width, x, xAxis, y, yAxis, _ref; var actual, head, height, ideal, issues, line, m, mAxis, margin, milestone, svg, tooltip, total, trend, width, x, xAxis, y, yAxis, _ref;
milestone = this.data.milestone; milestone = this.data.milestone;
@ -1068,21 +1068,21 @@
}); });
// header.coffee // header.coffee
root.require.register('burnchart/src/views/header.js', function(exports, require, module) { root.require.register('burnchart/src/views/header.coffee', function(exports, require, module) {
var Icons, firebase, system, user; var Icons, firebase, system, user;
system = require('../models/system').system; system = require('../models/system.coffee').system;
firebase = require('../models/firebase'); firebase = require('../models/firebase.coffee');
user = require('../models/user'); user = require('../models/user.coffee');
Icons = require('./icons'); Icons = require('./icons.coffee');
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/header', 'name': 'views/header',
'template': require('../templates/header'), 'template': require('../templates/header.html'),
'data': { 'data': {
'user': user, 'user': user,
'icon': 'fire-station' 'icon': 'fire-station'
@ -1111,17 +1111,17 @@
}); });
// hero.coffee // hero.coffee
root.require.register('burnchart/src/views/hero.js', function(exports, require, module) { root.require.register('burnchart/src/views/hero.coffee', function(exports, require, module) {
var Icons, mediator; var Icons, mediator;
mediator = require('../modules/mediator'); mediator = require('../modules/mediator.coffee');
Icons = require('./icons'); Icons = require('./icons.coffee');
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/hero', 'name': 'views/hero',
'template': require('../templates/hero'), 'template': require('../templates/hero.html'),
'components': { 'components': {
Icons: Icons Icons: Icons
}, },
@ -1131,11 +1131,11 @@
}); });
// icons.coffee // icons.coffee
root.require.register('burnchart/src/views/icons.js', function(exports, require, module) { root.require.register('burnchart/src/views/icons.coffee', function(exports, require, module) {
var codes, utils; var codes, format;
utils = require('../utils/format'); format = require('../utils/format.coffee');
codes = { codes = {
'cog': '\e800', 'cog': '\e800',
@ -1155,13 +1155,13 @@
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/icons', 'name': 'views/icons',
'template': require('../templates/icons'), 'template': require('../templates/icons.html'),
'isolated': true, 'isolated': true,
onrender: function() { onrender: function() {
return this.observe('icon', function(icon) { return this.observe('icon', function(icon) {
var hex; var hex;
if (icon && (hex = codes[icon])) { if (icon && (hex = codes[icon])) {
return this.set('code', utils.hexToDecimal(hex)); return this.set('code', format.hexToDecimal(hex));
} else { } else {
return this.set('code', null); return this.set('code', null);
} }
@ -1172,19 +1172,19 @@
}); });
// notify.coffee // notify.coffee
root.require.register('burnchart/src/views/notify.js', function(exports, require, module) { root.require.register('burnchart/src/views/notify.coffee', function(exports, require, module) {
var HEIGHT, Icons, mediator; var HEIGHT, Icons, mediator;
mediator = require('../modules/mediator'); mediator = require('../modules/mediator.coffee');
Icons = require('./icons'); Icons = require('./icons.coffee');
HEIGHT = 68; HEIGHT = 68;
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/notify', 'name': 'views/notify',
'template': require('../templates/notify'), 'template': require('../templates/notify.html'),
'data': { 'data': {
'top': HEIGHT, 'top': HEIGHT,
'hidden': true, 'hidden': true,
@ -1237,27 +1237,27 @@
}); });
// index.coffee // index.coffee
root.require.register('burnchart/src/views/pages/index.js', function(exports, require, module) { root.require.register('burnchart/src/views/pages/index.coffee', function(exports, require, module) {
var Hero, Projects, issues, mediator, milestones, projects, system; var Hero, Projects, issues, mediator, milestones, projects, system;
Hero = require('../hero'); Hero = require('../hero.coffee');
Projects = require('../tables/projects'); Projects = require('../tables/projects.coffee');
projects = require('../../models/projects'); projects = require('../../models/projects.coffee');
system = require('../../models/system'); system = require('../../models/system.coffee');
milestones = require('../../modules/github/milestones'); milestones = require('../../modules/github/milestones.coffee');
issues = require('../../modules/github/issues'); issues = require('../../modules/github/issues.coffee');
mediator = require('../../modules/mediator'); mediator = require('../../modules/mediator.coffee');
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/pages/index', 'name': 'views/pages/index',
'template': require('../../templates/pages/index'), 'template': require('../../templates/pages/index.html'),
'components': { 'components': {
Hero: Hero, Hero: Hero,
Projects: Projects Projects: Projects
@ -1318,27 +1318,27 @@
}); });
// milestone.coffee // milestone.coffee
root.require.register('burnchart/src/views/pages/milestone.js', function(exports, require, module) { root.require.register('burnchart/src/views/pages/milestone.coffee', function(exports, require, module) {
var Chart, format, issues, mediator, milestones, projects, system; var Chart, format, issues, mediator, milestones, projects, system;
Chart = require('../chart'); Chart = require('../chart.coffee');
projects = require('../../models/projects'); projects = require('../../models/projects.coffee');
system = require('../../models/system'); system = require('../../models/system.coffee');
milestones = require('../../modules/github/milestones'); milestones = require('../../modules/github/milestones.coffee');
issues = require('../../modules/github/issues'); issues = require('../../modules/github/issues.coffee');
mediator = require('../../modules/mediator'); mediator = require('../../modules/mediator.coffee');
format = require('../../utils/format'); format = require('../../utils/format.coffee');
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/pages/chart', 'name': 'views/pages/chart',
'template': require('../../templates/pages/milestone'), 'template': require('../../templates/pages/milestone.html'),
'components': { 'components': {
Chart: Chart Chart: Chart
}, },
@ -1409,21 +1409,21 @@
}); });
// new.coffee // new.coffee
root.require.register('burnchart/src/views/pages/new.js', function(exports, require, module) { root.require.register('burnchart/src/views/pages/new.coffee', function(exports, require, module) {
var key, mediator, system, user; var key, mediator, system, user;
mediator = require('../../modules/mediator'); mediator = require('../../modules/mediator.coffee');
system = require('../../models/system'); system = require('../../models/system.coffee');
user = require('../../models/user'); user = require('../../models/user.coffee');
key = require('../../utils/key'); key = require('../../utils/key.coffee');
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/pages/new', 'name': 'views/pages/new',
'template': require('../../templates/pages/new'), 'template': require('../../templates/pages/new.html'),
'data': { 'data': {
'value': 'radekstepan/disposable', 'value': 'radekstepan/disposable',
user: user user: user
@ -1463,25 +1463,25 @@
}); });
// project.coffee // project.coffee
root.require.register('burnchart/src/views/pages/project.js', function(exports, require, module) { root.require.register('burnchart/src/views/pages/project.coffee', function(exports, require, module) {
var Milestones, issues, mediator, milestones, projects, system; var Milestones, issues, mediator, milestones, projects, system;
Milestones = require('../tables/milestones'); Milestones = require('../tables/milestones.coffee');
projects = require('../../models/projects'); projects = require('../../models/projects.coffee');
system = require('../../models/system'); system = require('../../models/system.coffee');
milestones = require('../../modules/github/milestones'); milestones = require('../../modules/github/milestones.coffee');
issues = require('../../modules/github/issues'); issues = require('../../modules/github/issues.coffee');
mediator = require('../../modules/mediator'); mediator = require('../../modules/mediator.coffee');
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/pages/project', 'name': 'views/pages/project',
'template': require('../../templates/pages/project'), 'template': require('../../templates/pages/project.html'),
'components': { 'components': {
Milestones: Milestones Milestones: Milestones
}, },
@ -1547,21 +1547,21 @@
}); });
// milestones.coffee // milestones.coffee
root.require.register('burnchart/src/views/tables/milestones.js', function(exports, require, module) { root.require.register('burnchart/src/views/tables/milestones.coffee', function(exports, require, module) {
var Icons, format, mediator, projects; var Icons, format, mediator, projects;
mediator = require('../../modules/mediator'); mediator = require('../../modules/mediator.coffee');
projects = require('../../models/projects'); projects = require('../../models/projects.coffee');
format = require('../../utils/format'); format = require('../../utils/format.coffee');
Icons = require('../icons'); Icons = require('../icons.coffee');
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/milestones', 'name': 'views/milestones',
'template': require('../../templates/tables/milestones'), 'template': require('../../templates/tables/milestones.html'),
'data': { 'data': {
format: format format: format
}, },
@ -1574,19 +1574,19 @@
}); });
// projects.coffee // projects.coffee
root.require.register('burnchart/src/views/tables/projects.js', function(exports, require, module) { root.require.register('burnchart/src/views/tables/projects.coffee', function(exports, require, module) {
var Icons, format, mediator; var Icons, format, mediator;
mediator = require('../../modules/mediator'); mediator = require('../../modules/mediator.coffee');
format = require('../../utils/format'); format = require('../../utils/format.coffee');
Icons = require('../icons'); Icons = require('../icons.coffee');
module.exports = Ractive.extend({ module.exports = Ractive.extend({
'name': 'views/projects', 'name': 'views/projects',
'template': require('../../templates/tables/projects'), 'template': require('../../templates/tables/projects.html'),
'data': { 'data': {
format: format format: format
}, },
@ -1600,32 +1600,23 @@
})(); })();
// Return the main app. // Return the main app.
var main = root.require("burnchart/src/app.js"); var main = root.require("burnchart/src/app.coffee");
// CommonJS/Modules with all its aliases.
root.require.register("burnchart", function(exports, require, module) {
module.exports = main;
});
// AMD/RequireJS. // AMD/RequireJS.
if (typeof define !== 'undefined' && define.amd) { if (typeof define === 'function' && define.amd) {
define("burnchart", [ /* load deps ahead of time */ ], function () { define("burnchart", [ /* load deps ahead of time */ ], function () {
return main; return main;
}); });
} }
// CommonJS. // Browser globals.
else if (typeof module !== 'undefined' && module.exports) { root["burnchart"] = main;
module.exports = main;
}
// Globally exported.
else {
root["burnchart"] = main;
}
// Alias our app.
root.require.alias("burnchart/src/app.js", "burnchart/index.js");
})(this); })(this);

View File

@ -1,205 +1,92 @@
// A standalone CommonJS loader. (function(/*! Brunch !*/) {
(function(root) { 'use strict';
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
var require = function(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed var globals = typeof window !== 'undefined' ? window : global;
if (!resolved) { if (typeof globals.require === 'function') return;
orig = orig || path;
parent = parent || 'root'; var modules = {};
var err = new Error('Failed to require "' + orig + '" from "' + parent + '"'); var cache = {};
err.path = orig;
err.parent = parent; var has = function(object, name) {
err.require = true; return ({}).hasOwnProperty.call(object, name);
throw err; };
var expand = function(root, name) {
var results = [], parts, part;
if (/^\.\.?(\/|$)/.test(name)) {
parts = [root, name].join('/').split('/');
} else {
parts = name.split('/');
} }
for (var i = 0, length = parts.length; i < length; i++) {
var module = require.modules[resolved]; part = parts[i];
if (part === '..') {
// perform real require() results.pop();
// by invoking the module's } else if (part !== '.' && part !== '') {
// registered function results.push(part);
if (!module._resolving && !module.exports) { }
var mod = {};
mod.exports = {};
mod.client = mod.component = true;
module._resolving = true;
module.call(this, mod.exports, require.relative(resolved), mod);
delete module._resolving;
module.exports = mod.exports;
} }
return results.join('/');
};
var dirname = function(path) {
return path.split('/').slice(0, -1).join('/');
};
var localRequire = function(path) {
return function(name) {
var dir = dirname(path);
var absolute = expand(dir, name);
return globals.require(absolute, path);
};
};
var initModule = function(name, definition) {
var module = {id: name, exports: {}};
cache[name] = module;
definition(module.exports, localRequire(name), module);
return module.exports; return module.exports;
}; };
/** var require = function(name, loaderPath) {
* Registered modules. var path = expand(name, '.');
*/ if (loaderPath == null) loaderPath = '/';
require.modules = {}; if (has(cache, path)) return cache[path].exports;
if (has(modules, path)) return initModule(path, modules[path]);
/** var dirIndex = expand(path, './index');
* Registered aliases. if (has(cache, dirIndex)) return cache[dirIndex].exports;
*/ if (has(modules, dirIndex)) return initModule(dirIndex, modules[dirIndex]);
require.aliases = {}; throw new Error('Cannot find module "' + name + '" from '+ '"' + loaderPath + '"');
};
/** var define = function(bundle, fn) {
* Resolve `path`. if (typeof bundle === 'object') {
* for (var key in bundle) {
* Lookup: if (has(bundle, key)) {
* modules[key] = bundle[key];
* - PATH/index.js }
* - PATH.js }
* - PATH } else {
* modules[bundle] = fn;
* @param {String} path
* @return {String} path or null
* @api private
*/
require.resolve = function(path) {
if (path.charAt(0) === '/') path = path.slice(1);
var paths = [
path,
path + '.js',
path + '.json',
path + '/index.js',
path + '/index.json'
];
for (var i = 0; i < paths.length; i++) {
path = paths[i];
if (require.modules.hasOwnProperty(path)) return path;
if (require.aliases.hasOwnProperty(path)) return require.aliases[path];
} }
}; };
/** var list = function() {
* Normalize `path` relative to the current path. var result = [];
* for (var item in modules) {
* @param {String} curr if (has(modules, item)) {
* @param {String} path result.push(item);
* @return {String}
* @api private
*/
require.normalize = function(curr, path) {
var segs = [];
if ('.' != path.charAt(0)) return path;
curr = curr.split('/');
path = path.split('/');
for (var i = 0; i < path.length; ++i) {
if ('..' == path[i]) {
curr.pop();
} else if ('.' !== path[i] && '' !== path[i]) {
segs.push(path[i]);
} }
} }
return result;
return curr.concat(segs).join('/');
}; };
/** globals.require = require;
* Register module at `path` with callback `definition`. globals.require.define = define;
* globals.require.register = define;
* @param {String} path globals.require.list = list;
* @param {Function} definition globals.require.brunch = true;
* @api private })();
*/
require.register = function(path, definition) {
require.modules[path] = definition;
};
/**
* Alias a module definition.
*
* @param {String} from
* @param {String} to
* @api private
*/
require.alias = function(from, to) {
if (!require.modules.hasOwnProperty(from)) {
throw new Error('Failed to alias "' + from + '", it does not exist');
}
require.aliases[to] = from;
};
/**
* Return a require function relative to the `parent` path.
*
* @param {String} parent
* @return {Function}
* @api private
*/
require.relative = function(parent) {
var p = require.normalize(parent, '..');
/**
* lastIndexOf helper.
*/
function lastIndexOf(arr, obj) {
var i = arr.length;
while (i--) {
if (arr[i] === obj) return i;
}
return -1;
}
/**
* The relative require() itself.
*/
var localRequire = function(path) {
var resolved = localRequire.resolve(path);
return require(resolved, parent, path);
};
/**
* Resolve relative to the parent.
*/
localRequire.resolve = function(path) {
var c = path.charAt(0);
if ('/' == c) return path.slice(1);
if ('.' == c) return require.normalize(p, path);
// resolve deps by returning
// the dep in the nearest "deps"
// directory
var segs = parent.split('/');
var i = lastIndexOf(segs, 'deps') + 1;
if (!i) i = 0;
path = segs.slice(0, i + 1).join('/') + '/deps/' + path;
return path;
};
/**
* Check if module is defined at `path`.
*/
localRequire.exists = function(path) {
return require.modules.hasOwnProperty(localRequire.resolve(path));
};
return localRequire;
};
// Do we already have require loader?
root.require = (typeof root.require !== 'undefined') ? root.require : require;
})(this);

View File

@ -1,15 +1,15 @@
( require "./#{key}" for key in [ ( require "./#{key}" for key in [
'utils/mixins' 'utils/mixins.coffee'
'models/projects' # will load projects from localStorage 'models/projects.coffee' # will load projects from localStorage
] ) ] )
Header = require './views/header' Header = require './views/header.coffee'
Notify = require './views/notify' Notify = require './views/notify.coffee'
router = require './modules/router' router = require './modules/router.coffee'
App = Ractive.extend App = Ractive.extend
'template': require './templates/app' 'template': require './templates/app.html'
'components': { Header, Notify } 'components': { Header, Notify }

View File

@ -1,4 +1,4 @@
Model = require '../utils/model' Model = require '../utils/model.coffee'
module.exports = new Model module.exports = new Model

View File

@ -1,6 +1,6 @@
Model = require '../utils/model' Model = require '../utils/model.coffee'
user = require './user' user = require './user.coffee'
config = require './config' config = require './config.coffee'
module.exports = new Model module.exports = new Model

View File

@ -1,8 +1,8 @@
config = require '../models/config' config = require '../models/config.coffee'
mediator = require '../modules/mediator' mediator = require '../modules/mediator.coffee'
Model = require '../utils/model' Model = require '../utils/model.coffee'
date = require '../utils/date' date = require '../utils/date.coffee'
user = require './user' user = require './user.coffee'
module.exports = new Model module.exports = new Model

View File

@ -1,5 +1,5 @@
mediator = require '../modules/mediator' mediator = require '../modules/mediator.coffee'
Model = require '../utils/model' Model = require '../utils/model.coffee'
# System state. # System state.
system = new Model system = new Model

View File

@ -1,5 +1,5 @@
mediator = require '../modules/mediator' mediator = require '../modules/mediator.coffee'
Model = require '../utils/model' Model = require '../utils/model.coffee'
# Currently logged-in user. # Currently logged-in user.
module.exports = new Model module.exports = new Model

View File

@ -1,4 +1,4 @@
config = require '../../models/config' config = require '../../models/config.coffee'
module.exports = module.exports =

View File

@ -1,6 +1,6 @@
#!/usr/bin/env coffee #!/usr/bin/env coffee
config = require '../../models/config' config = require '../../models/config.coffee'
request = require './request' request = require './request.coffee'
module.exports = module.exports =

View File

@ -1,5 +1,5 @@
#!/usr/bin/env coffee #!/usr/bin/env coffee
request = require './request' request = require './request.coffee'
module.exports = module.exports =

View File

@ -1,4 +1,4 @@
user = require '../../models/user' user = require '../../models/user.coffee'
# Custom JSON parser. # Custom JSON parser.
superagent.parse = superagent.parse =

View File

@ -1,5 +1,5 @@
mediator = require './mediator' mediator = require './mediator.coffee'
system = require '../models/system' system = require '../models/system.coffee'
el = '#page' el = '#page'
@ -18,7 +18,7 @@ route = (page, args...) ->
# Hide any notifications. # Hide any notifications.
mediator.fire '!app/notify/hide' mediator.fire '!app/notify/hide'
# Require the new one. # Require the new one.
Page = require "../views/pages/#{page}" Page = require "../views/pages/#{page}.coffee"
# Render it. # Render it.
view = new Page { el, 'data': { 'route': args } } view = new Page { el, 'data': { 'route': args } }

View File

@ -1,11 +1,11 @@
lines = require '../modules/chart/lines' lines = require '../modules/chart/lines.coffee'
axes = require '../modules/chart/axes' axes = require '../modules/chart/axes.coffee'
module.exports = Ractive.extend module.exports = Ractive.extend
'name': 'views/chart' 'name': 'views/chart'
'template': require '../templates/chart' 'template': require '../templates/chart.html'
oncomplete: -> oncomplete: ->
milestone = @data.milestone milestone = @data.milestone

View File

@ -1,13 +1,13 @@
{ system } = require '../models/system' { system } = require '../models/system.coffee'
firebase = require '../models/firebase' firebase = require '../models/firebase.coffee'
user = require '../models/user' user = require '../models/user.coffee'
Icons = require './icons' Icons = require './icons.coffee'
module.exports = Ractive.extend module.exports = Ractive.extend
'name': 'views/header' 'name': 'views/header'
'template': require '../templates/header' 'template': require '../templates/header.html'
'data': 'data':
'user': user 'user': user

View File

@ -1,11 +1,11 @@
mediator = require '../modules/mediator' mediator = require '../modules/mediator.coffee'
Icons = require './icons' Icons = require './icons.coffee'
module.exports = Ractive.extend module.exports = Ractive.extend
'name': 'views/hero' 'name': 'views/hero'
'template': require '../templates/hero' 'template': require '../templates/hero.html'
'components': { Icons } 'components': { Icons }

View File

@ -1,4 +1,4 @@
utils = require '../utils/format' format = require '../utils/format.coffee'
# Fontello icon hex codes. # Fontello icon hex codes.
codes = codes =
@ -20,13 +20,13 @@ module.exports = Ractive.extend
'name': 'views/icons' 'name': 'views/icons'
'template': require '../templates/icons' 'template': require '../templates/icons.html'
'isolated': yes 'isolated': yes
onrender: -> onrender: ->
@observe 'icon', (icon) -> @observe 'icon', (icon) ->
if icon and hex = codes[icon] if icon and hex = codes[icon]
@set 'code', utils.hexToDecimal hex @set 'code', format.hexToDecimal hex
else else
@set 'code', null @set 'code', null

View File

@ -1,5 +1,5 @@
mediator = require '../modules/mediator' mediator = require '../modules/mediator.coffee'
Icons = require './icons' Icons = require './icons.coffee'
HEIGHT = 68 # height of div in px HEIGHT = 68 # height of div in px
@ -7,7 +7,7 @@ module.exports = Ractive.extend
'name': 'views/notify' 'name': 'views/notify'
'template': require '../templates/notify' 'template': require '../templates/notify.html'
'data': 'data':
'top': HEIGHT 'top': HEIGHT

View File

@ -1,18 +1,18 @@
Hero = require '../hero' Hero = require '../hero.coffee'
Projects = require '../tables/projects' Projects = require '../tables/projects.coffee'
projects = require '../../models/projects' projects = require '../../models/projects.coffee'
system = require '../../models/system' system = require '../../models/system.coffee'
milestones = require '../../modules/github/milestones' milestones = require '../../modules/github/milestones.coffee'
issues = require '../../modules/github/issues' issues = require '../../modules/github/issues.coffee'
mediator = require '../../modules/mediator' mediator = require '../../modules/mediator.coffee'
module.exports = Ractive.extend module.exports = Ractive.extend
'name': 'views/pages/index' 'name': 'views/pages/index'
'template': require '../../templates/pages/index' 'template': require '../../templates/pages/index.html'
'components': { Hero, Projects } 'components': { Hero, Projects }

View File

@ -1,17 +1,17 @@
Chart = require '../chart' Chart = require '../chart.coffee'
projects = require '../../models/projects' projects = require '../../models/projects.coffee'
system = require '../../models/system' system = require '../../models/system.coffee'
milestones = require '../../modules/github/milestones' milestones = require '../../modules/github/milestones.coffee'
issues = require '../../modules/github/issues' issues = require '../../modules/github/issues.coffee'
mediator = require '../../modules/mediator' mediator = require '../../modules/mediator.coffee'
format = require '../../utils/format' format = require '../../utils/format.coffee'
module.exports = Ractive.extend module.exports = Ractive.extend
'name': 'views/pages/chart' 'name': 'views/pages/chart'
'template': require '../../templates/pages/milestone' 'template': require '../../templates/pages/milestone.html'
'components': { Chart } 'components': { Chart }

View File

@ -1,13 +1,13 @@
mediator = require '../../modules/mediator' mediator = require '../../modules/mediator.coffee'
system = require '../../models/system' system = require '../../models/system.coffee'
user = require '../../models/user' user = require '../../models/user.coffee'
key = require '../../utils/key' key = require '../../utils/key.coffee'
module.exports = Ractive.extend module.exports = Ractive.extend
'name': 'views/pages/new' 'name': 'views/pages/new'
'template': require '../../templates/pages/new' 'template': require '../../templates/pages/new.html'
'data': { 'value': 'radekstepan/disposable', user } 'data': { 'value': 'radekstepan/disposable', user }

View File

@ -1,16 +1,16 @@
Milestones = require '../tables/milestones' Milestones = require '../tables/milestones.coffee'
projects = require '../../models/projects' projects = require '../../models/projects.coffee'
system = require '../../models/system' system = require '../../models/system.coffee'
milestones = require '../../modules/github/milestones' milestones = require '../../modules/github/milestones.coffee'
issues = require '../../modules/github/issues' issues = require '../../modules/github/issues.coffee'
mediator = require '../../modules/mediator' mediator = require '../../modules/mediator.coffee'
module.exports = Ractive.extend module.exports = Ractive.extend
'name': 'views/pages/project' 'name': 'views/pages/project'
'template': require '../../templates/pages/project' 'template': require '../../templates/pages/project.html'
'components': { Milestones } 'components': { Milestones }

View File

@ -1,13 +1,13 @@
mediator = require '../../modules/mediator' mediator = require '../../modules/mediator.coffee'
projects = require '../../models/projects' projects = require '../../models/projects.coffee'
format = require '../../utils/format' format = require '../../utils/format.coffee'
Icons = require '../icons' Icons = require '../icons.coffee'
module.exports = Ractive.extend module.exports = Ractive.extend
'name': 'views/milestones' 'name': 'views/milestones'
'template': require '../../templates/tables/milestones' 'template': require '../../templates/tables/milestones.html'
'data': { format } 'data': { format }

View File

@ -1,12 +1,12 @@
mediator = require '../../modules/mediator' mediator = require '../../modules/mediator.coffee'
format = require '../../utils/format' format = require '../../utils/format.coffee'
Icons = require '../icons' Icons = require '../icons.coffee'
module.exports = Ractive.extend module.exports = Ractive.extend
'name': 'views/projects' 'name': 'views/projects'
'template': require '../../templates/tables/projects' 'template': require '../../templates/tables/projects.html'
'data': { format } 'data': { format }