Add c-base local events to calendar

This commit is contained in:
Henri Bergius 2018-12-24 16:59:11 +01:00
parent d980cc2594
commit 4a7e139b6b
2 changed files with 39 additions and 0 deletions

37
35c3-events/c-base.js Normal file
View file

@ -0,0 +1,37 @@
module.exports = [
{
allDay: true,
start: '2018-12-25T15:24:51+0000',
end: '2018-12-25T15:24:51+0000',
title: 'Alle Safeties checken',
id: 'c-base',
},
{
allDay: true,
start: '2018-12-25T15:24:51+0000',
end: '2018-12-25T15:24:51+0000',
title: 'Tische aufbauen',
id: 'c-base',
},
{
allDay: true,
start: '2018-12-25T15:24:51+0000',
end: '2018-12-25T15:24:51+0000',
title: 'Monitore anhängen mit dazz)',
id: 'c-base',
},
{
allDay: true,
start: '2018-12-25T15:24:51+0000',
end: '2018-12-25T15:24:51+0000',
title: 'projection mapping von riot platzieren',
id: 'c-base',
},
{
allDay: false,
start: '2018-12-25T18:00:00+0000',
end: '2018-12-25T18:00:00+0000',
title: 'Abnahme',
id: 'c-base',
},
];

View file

@ -1,4 +1,5 @@
import dateformat from 'dateformat'; import dateformat from 'dateformat';
import baseevents from './c-base';
import '../elements/time'; import '../elements/time';
function sortEvents(a, b) { function sortEvents(a, b) {
@ -47,6 +48,7 @@ function getEvents(number) {
}); });
return talks; return talks;
}) })
.then(talks => baseevents.concat(talks))
.then(talks => fetch('https://launchlibrary.net/1.3/launch/next/2') .then(talks => fetch('https://launchlibrary.net/1.3/launch/next/2')
.then(res => res.json()) .then(res => res.json())
.then((res) => { .then((res) => {