port most backend functionality, further cleanups, basic electron support

This commit is contained in:
Lukas F. Hartmann
2018-04-12 16:38:48 +02:00
parent 8dc48a84ba
commit 08b81d5ff4
19 changed files with 331 additions and 372 deletions

View File

@@ -13,19 +13,17 @@ SpacedeckAccount = {
methods: {
show_account: function(user) {
this.activate_dropdown('account');
this.load_subscription();
this.load_billing();
},
account_save_user_digest: function(val) {
this.user.preferences.daily_digest = val;
this.save_user(function(){
this.user.prefs_email_digest = val;
this.save_user(function() {
});
},
account_save_user_notifications: function(val) {
this.user.preferences.email_notifications = val;
this.save_user(function(){
this.user.prefs_email_notifications = val;
this.save_user(function() {
});
},

View File

@@ -170,7 +170,6 @@ var SpacedeckRoutes = {
location.href = "/";
} else {
this.active_view = "account";
this.load_subscription();
}
}.bind(this)
}

View File

@@ -158,7 +158,7 @@ function boot_spacedeck() {
});
}
$(document).ready(function(){
document.addEventListener("DOMContentLoaded",function() {
window.smoke = smoke;
window.alert = smoke.alert;