feat: draggable events

This commit is contained in:
cv
2021-05-06 12:05:21 +02:00
parent 0631dec3d3
commit 4161dd29c8
17 changed files with 408 additions and 209 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ const low = require('lowdb');
const FileSync = require('lowdb/adapters/FileSync');
const adapter = new FileSync(config.database.filename);
const db = low(adapter);
// TODO: move defaults to config file
db.defaults({
events: [],
@@ -65,7 +66,7 @@ app.use((err, req, res, next) => {
const server = http.createServer(app);
// get data (if any)
const eventlist = db.get('events').sortBy('order').value();
const eventlist = db.get('events').value();
// init timer
global.timer = new EventTimer(server, config);