Import: choice on first startup, workflow, ported to Node.js fs API

FREEBIE
This commit is contained in:
Scott Nonnenberg
2017-08-07 17:24:59 -07:00
parent 9c8fe1a9d8
commit ba347744ff
12 changed files with 616 additions and 217 deletions
+31
View File
@@ -0,0 +1,31 @@
/*
* vim: ts=4:sw=4:expandtab
*/
(function () {
'use strict';
window.Whisper = window.Whisper || {};
Whisper.InstallChoiceView = Whisper.View.extend({
templateName: 'install-choice',
className: 'install install-choice',
events: {
'click .new': 'onClickNew',
'click .import': 'onClickImport'
},
initialize: function() {
this.render();
},
render_attributes: {
installWelcome: i18n('installWelcome'),
installTagline: i18n('installTagline'),
installNew: i18n('installNew'),
installImport: i18n('installImport')
},
onClickNew: function() {
this.trigger('install-new');
},
onClickImport: function() {
this.trigger('install-import');
}
});
})();