mirror of
https://github.com/spacedeck/spacedeck-open.git
synced 2025-12-16 01:47:30 +01:00
Port Backend to SQLite/Sequelize (removes MongoDB), Support Electron (#14)
* The MongoDB/Mongoose data storage is removed in favor of Sequelize. This abstracts over SQLite or RDBMs like PostgreSQL and MSSQL. The default is SQLite, which significantly simplifies deployments in end-user environments. * As Spacedeck now has no more mandatory server dependencies, we can wrap it in Electron and ship it as a desktop application. * Removes docker-compose.yml * First version of import UI
This commit is contained in:
@@ -15,7 +15,8 @@ SpacedeckUsers = {
|
||||
account_remove_error: null,
|
||||
loading_user: false,
|
||||
password_reset_confirm_error: "",
|
||||
password_reset_error: ""
|
||||
password_reset_error: "",
|
||||
|
||||
},
|
||||
methods:{
|
||||
load_user: function(on_success, on_error) {
|
||||
@@ -29,6 +30,12 @@ SpacedeckUsers = {
|
||||
if (on_success) {
|
||||
on_success(user);
|
||||
}
|
||||
|
||||
// see spacedeck_account.js
|
||||
load_importables(this.user, function(files) {
|
||||
this.importables = files;
|
||||
}.bind(this));
|
||||
|
||||
}.bind(this), function() {
|
||||
// error
|
||||
this.loading_user = false;
|
||||
@@ -40,18 +47,6 @@ SpacedeckUsers = {
|
||||
}.bind(this));
|
||||
},
|
||||
|
||||
login_google: function(evt) {
|
||||
this.loading_user = true;
|
||||
|
||||
create_oauthtoken(function(data){
|
||||
this.loading_user = false;
|
||||
location.href = data.url;
|
||||
}, function(xhr){
|
||||
this.loading_user = false;
|
||||
alert("could not get oauth token");
|
||||
});
|
||||
},
|
||||
|
||||
finalize_login: function(session_token, on_success) {
|
||||
if(!window.socket_auth || window.socket_auth == '' || window.socket_auth == 'null') {
|
||||
window.socket_auth = session_token;
|
||||
@@ -169,7 +164,6 @@ SpacedeckUsers = {
|
||||
},
|
||||
|
||||
password_reset_submit: function(evt, email) {
|
||||
|
||||
if (evt) {
|
||||
evt.preventDefault();
|
||||
evt.stopPropagation();
|
||||
@@ -203,7 +197,6 @@ SpacedeckUsers = {
|
||||
},
|
||||
|
||||
password_reset_confirm: function(evt, password, password_confirmation) {
|
||||
|
||||
if (evt) {
|
||||
evt.preventDefault();
|
||||
evt.stopPropagation();
|
||||
|
||||
Reference in New Issue
Block a user