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:
@@ -133,7 +133,15 @@ function load_spaces(id, is_home, on_success, on_error) {
|
||||
}, on_error);
|
||||
}
|
||||
|
||||
function load_writable_folders( on_success, on_error) {
|
||||
function load_importables(user, on_success, on_error) {
|
||||
load_resource("get", "/users/"+user._id+"/importables", null, on_success, on_error);
|
||||
}
|
||||
|
||||
function import_zip(user, filename, on_success, on_error) {
|
||||
load_resource("get", "/users/"+user._id+"/import?zip="+filename, null, on_success, on_error);
|
||||
}
|
||||
|
||||
function load_writable_folders(on_success, on_error) {
|
||||
load_resource("get", "/spaces?writablefolders=true", null, on_success, on_error);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user