feat: eventsAPI

This commit is contained in:
cv
2021-04-10 11:39:53 +02:00
parent e2561bcd54
commit e62b79f84e
13 changed files with 384 additions and 193 deletions
+19 -13
View File
@@ -1,48 +1,54 @@
[
{
"id": "1",
"id":"5ce39a29-a70c-426a-9ce2-f97782049c71",
"order": 0,
"timerDuration": 5,
"type": "delay"
},
{
"id": "5ce39a29-a70c-426a-9ce2-f97782049c72",
"order": 1,
"title": "Is the internet a fad?",
"subtitle": "It is",
"presenter": "Carlos Valente",
"timeStart": "",
"timeEnd":"",
"timeStart": "2020-04-09T11:25:43.511Z",
"timeEnd": "2020-04-09T12:25:43.511Z",
"type": "event"
},
{
"id": 0.4849093424577693,
"id":"5ce39a29-a70c-426a-9ce2-f97782049c73",
"order": 2,
"timerDuration": 25,
"type": "delay"
},
{
"id": "2",
"id": "5ce39a29-a70c-426a-9ce2-f97782049c74",
"order": 3,
"title": "Is reddit a dictatorship?",
"subtitle": "It is",
"presenter": "Carlos Valente",
"timeStart": "",
"timeEnd":"",
"timeStart": "2020-04-09T13:25:43.511Z",
"timeEnd": "2020-04-09T14:25:43.511Z",
"type": "event"
},
{
"id": "3",
"id": "5ce39a29-a70c-426a-9ce2-f97782049c75",
"order": 4,
"title": "Out of words",
"subtitle": "",
"presenter": "Carlos Valente",
"timeStart": "",
"timeEnd":"",
"timeStart": "2020-04-09T15:25:43.511Z",
"timeEnd": "2020-04-09T16:25:43.511Z",
"type": "event"
},
{
"id": "4",
"id": "5ce39a29-a70c-426a-9ce2-f97782049c76",
"order": 5,
"title": "Really",
"subtitle": "",
"presenter": "Carlos Valente",
"timeStart": "",
"timeEnd":"",
"timeStart": "2020-04-09T17:25:43.511Z",
"timeEnd": "2020-04-09T18:25:43.511Z",
"type": "event"
}
]
+23
View File
@@ -0,0 +1,23 @@
const event = {
order: 0,
title: '',
subtitle: '',
presenter: '',
timeStart: new Date(),
timeEnd: new Date(),
clockStarted: null,
type: 'event',
};
const delay = {
order: 0,
timerDuration: 0,
type: 'delay',
};
const block = {
order: 0,
type: 'block',
};
module.exports = { event, delay, block };