diff --git a/README.md b/README.md index cdffbb1..e46a3d2 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ GitHub Burndown Chart as a service. Public repos are free, for private access au - [ ] Check location.hash is supported - [ ] Have an app wide of triggering a URL and have named routes too - [ ] Check that we have not run out of requests to make +- [ ] Deal with running out of GH API requests ### Extras diff --git a/public/js/app.bundle.js b/public/js/app.bundle.js index 11f50bc..b342b06 100644 --- a/public/js/app.bundle.js +++ b/public/js/app.bundle.js @@ -24617,20 +24617,19 @@ requireModule('promise/polyfill').polyfill(); 'adapt': [Ractive.adaptors.Ractive], init: function() { var autocomplete; - autocomplete = function(value) { - return console.log('Autocomplete', value); - }; + autocomplete = function(value) {}; this.observe('value', _.debounce(autocomplete, 200), { 'init': false }); return this.on('submit', function() { - var repo, reponame, username, _ref; - _ref = this.get('value').split('/'), username = _ref[0], reponame = _ref[1]; - repo = github.getRepo(username, reponame); + var name, owner, repo, _ref; + _ref = this.get('value').split('/'), owner = _ref[0], name = _ref[1]; + repo = github.getRepo(owner, name); return repo.show(function(err, repo, xhr) { if (err) { throw err; } + mediator.fire('!projects/add', repo); return window.location.hash = '#'; }); }); @@ -24812,7 +24811,7 @@ requireModule('promise/polyfill').polyfill(); }, init: function() { var _this = this; - return mediator.on('!projects/get', function(provider) { + mediator.on('!projects/get', function(provider) { switch (provider) { case 'local': return localforage.getItem('projects', function(items) { @@ -24825,6 +24824,12 @@ requireModule('promise/polyfill').polyfill(); throw 'Not implemented yet'; } }); + return mediator.on('!projects/add', function(repo) { + return _this.push('items', { + 'owner': repo.owner.login, + 'name': repo.name + }); + }); } }); @@ -24941,7 +24946,7 @@ requireModule('promise/polyfill').polyfill(); // projects.mustache root.require.register('burnchart/src/templates/projects.js', function(exports, require, module) { - module.exports = ["{{#projects.items}}","
demo/demo | ","Milestone 1.0 | ",""," "," 40%"," due on Friday"," "," "," "," "," | ","
radekstepan/disposable | ","Milestone 1.0 | ",""," "," 40%"," due on Friday"," "," "," "," "," | ","
radekstepan/burnchart | ","Beta Milestone | ",""," "," 100%"," due tomorrow"," "," "," "," "," | ","
intermine/intermine | ","Emma Release 96 | ",""," "," 27%"," due in 2 weeks"," "," "," "," "," | ","
microsoft/windows | ","RC 9 | ",""," "," 90%"," overdue by a month"," "," "," "," "," | ","
{{owner}}/{{name}} | ","??? | ",""," "," 10%"," ???"," "," "," "," "," | ","
radekstepan/disposable | ","Milestone 1.0 | ",""," "," 40%"," due on Friday"," "," "," "," "," | ","
radekstepan/burnchart | ","Beta Milestone | ",""," "," 100%"," due tomorrow"," "," "," "," "," | ","
intermine/intermine | ","Emma Release 96 | ",""," "," 27%"," due in 2 weeks"," "," "," "," "," | ","
microsoft/windows | ","RC 9 | ",""," "," 90%"," overdue by a month"," "," "," "," "," | ","
demo/demo | ","Milestone 1.0 | ",""," "," 40%"," due on Friday"," "," "," "," "," | ","
radekstepan/disposable | ","Milestone 1.0 | ",""," "," 40%"," due on Friday"," "," "," "," "," | ","
radekstepan/burnchart | ","Beta Milestone | ",""," "," 100%"," due tomorrow"," "," "," "," "," | ","
intermine/intermine | ","Emma Release 96 | ",""," "," 27%"," due in 2 weeks"," "," "," "," "," | ","
microsoft/windows | ","RC 9 | ",""," "," 90%"," overdue by a month"," "," "," "," "," | ","
{{owner}}/{{name}} | ","??? | ",""," "," 10%"," ???"," "," "," "," "," | ","
radekstepan/disposable | ","Milestone 1.0 | ",""," "," 40%"," due on Friday"," "," "," "," "," | ","
radekstepan/burnchart | ","Beta Milestone | ",""," "," 100%"," due tomorrow"," "," "," "," "," | ","
intermine/intermine | ","Emma Release 96 | ",""," "," 27%"," due in 2 weeks"," "," "," "," "," | ","
microsoft/windows | ","RC 9 | ",""," "," 90%"," overdue by a month"," "," "," "," "," | ","
demo/demo | -Milestone 1.0 | +{{owner}}/{{name}} | +??? |
- 40%
- due on Friday
+ 10%
+ ???
|