forked from brentvatne/nodevember-2017-mobile
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed linting issues. Updated babel-eslint.
- Loading branch information
Showing
33 changed files
with
161 additions
and
375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,5 +21,8 @@ | |
"rules": { | ||
"no-console": "warn", | ||
"react/prop-types": "off" | ||
}, | ||
"globals": { | ||
"fetch": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,20 @@ | ||
import _ from "lodash"; | ||
import moment from "moment-timezone"; | ||
import { convertUtcDateToEventTimezone, conferenceHasEnded } from "../utils"; | ||
|
||
export const Schedule = require("../data/schedule.json"); | ||
const FullSchedule = Schedule.events[0].groupedSchedule; | ||
|
||
const Speakers = Schedule.events[0].speakers; | ||
const Event = Schedule.events[0]; | ||
export const Talks = Schedule.events[0].schedule; | ||
|
||
export function findNextTalksAfterDate(date = new Date(), allTalks = Talks) { | ||
export function findNextTalksAfterDate() { | ||
let talks = Event.status.nextFiveScheduledItems; | ||
return talks.slice(0, 3); | ||
} | ||
|
||
export function findRandomTalk(allTalks = Talks) { | ||
export function findRandomTalk() { | ||
let talks = _.filter(Talks, talk => talk.type === 0); | ||
return [_.sample(talks)]; | ||
} | ||
|
||
const NextYearTalk = { | ||
talk: true, | ||
keynote: true, | ||
room: "Unknown", | ||
summary: "", | ||
time: "-", | ||
title: "ReactEurope 2019", | ||
speaker: "Maybe you?" | ||
}; | ||
|
||
export function findTalkData(speakerName) { | ||
return _.find(Talks, talk => talk.speaker === speakerName); | ||
} |
Oops, something went wrong.