New dashboard widgets

- Custom time range can now be picked
- Map now shows accuracy of latest beat
- Presets removed
This commit is contained in:
2020-10-25 00:10:25 +02:00
parent 8a4b0b1e13
commit fa60f58d3c
17 changed files with 360 additions and 74 deletions

View File

@@ -15,7 +15,7 @@ import { hashPassword, randomPepper, randomString } from './lib/crypto';
import { UserType } from './models/user/user.interface';
import { User } from './models/user/user.model';
import { GetPhone, PostPhone } from './endpoints/phone';
import { GetBeat } from './endpoints/beat';
import { GetBeat, GetBeatStats } from './endpoints/beat';
// Load .env
dconfig({ debug: true, encoding: 'UTF-8' });
@@ -154,6 +154,7 @@ async function run() {
app.post('/phone', MW_User, (req, res) => PostPhone(req, res));
app.get('/beat/', MW_User, (req, res) => GetBeat(req, res));
app.get('/beat/stats', MW_User, (req, res) => GetBeatStats(req, res));
app.listen(config.http.port, config.http.host, () => {
logger.info(`HTTP server is running at ${config.http.host}:${config.http.port}`);