From 4a7e139b6b92ff8463345670a0fd7682d026fe2d Mon Sep 17 00:00:00 2001 From: Henri Bergius Date: Mon, 24 Dec 2018 16:59:11 +0100 Subject: [PATCH] Add c-base local events to calendar --- 35c3-events/c-base.js | 37 +++++++++++++++++++++++++++++++++++++ 35c3-events/calendar.js | 2 ++ 2 files changed, 39 insertions(+) create mode 100644 35c3-events/c-base.js diff --git a/35c3-events/c-base.js b/35c3-events/c-base.js new file mode 100644 index 0000000..56449b4 --- /dev/null +++ b/35c3-events/c-base.js @@ -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', + }, +]; diff --git a/35c3-events/calendar.js b/35c3-events/calendar.js index b1b8af7..cf8c2c5 100644 --- a/35c3-events/calendar.js +++ b/35c3-events/calendar.js @@ -1,4 +1,5 @@ import dateformat from 'dateformat'; +import baseevents from './c-base'; import '../elements/time'; function sortEvents(a, b) { @@ -47,6 +48,7 @@ function getEvents(number) { }); return talks; }) + .then(talks => baseevents.concat(talks)) .then(talks => fetch('https://launchlibrary.net/1.3/launch/next/2') .then(res => res.json()) .then((res) => {