update files

This commit is contained in:
nuintun
2015-11-23 10:18:34 +08:00
parent aeff3080ba
commit f29bfb70ac
5 changed files with 104 additions and 18 deletions

View File

@@ -25,7 +25,21 @@ window.addEventListener('DOMContentLoaded', function (){
activeIndex: 0,
configure: { projects: [] }
},
computed: {
uniqueProjects: function (){
var cache = {};
this.configure.projects.forEach(function (project){
cache[project.name] = true;
});
return cache;
}
},
events: {
'change-active': function (index){
this.activeIndex = index;
},
'save-configure': function (){
ipc.send('app-configure', 'save', normalize(this.configure));
}