This file contains hidden or 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
| const path = require('path') | |
| const fs = require('fs') | |
| import attempt from 'lodash/attempt' | |
| const app = require('./app.json') | |
| const readDotEnv = filePath => attempt( | |
| fs.readFileSync(filePath, 'utf-8').split('\n').filter(Boolean) | |
| ) |
This file contains hidden or 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
| { | |
| flightsById: { | |
| 'sk4011-osl-svg-2016-06-09': { … }, | |
| }, | |
| flightRequests: { | |
| 'sk4011-osl-svg-2016-06-09': { | |
| startedAt: '2016-06-08T17:44:00Z', | |
| completedAt: '2016-06-08T17:44:00Z', | |
| error: null, |
This file contains hidden or 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
| import React from 'react' | |
| import { Link } from 'react-router' | |
| import { cashay as cashayClient } from '../client' | |
| import { connect } from 'react-redux' | |
| const FlightDetail = ({ request }) => { | |
| const { data, isComplete } = request | |
| if (!isComplete) { | |
| return <div>Loading</div> |
This file contains hidden or 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
| import { connect } from 'react-fela' | |
| import React from 'react' | |
| const App = ({ styles }) => ( | |
| <div> | |
| <h1 className={styles.heading}>Sorry</h1> | |
| <h2 className={styles.ingress}>All your base are belong to us</h2> | |
| <p className={styles.paragraph}>We know it's not nice, but you don't need it anyway.</p> | |
| </div> | |
| ) |
This file contains hidden or 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
| http://flights.tjenester.avinor.no/flights/departure/ham?fromDate=2016-09-18&toDate=2016-09-20 | |
| { | |
| "lastUpdated": "2016-09-16T15:47:12.274Z", | |
| "flightLegs": [ | |
| { | |
| "id": "ew4192-ham-osl-20160919", | |
| "flightIds": [ | |
| { | |
| "flightId": "EW4192", |
This file contains hidden or 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
| -scheme:chrome-extension -sockjs-node |
This file contains hidden or 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
| import path from 'path' | |
| import fs from 'fs' | |
| export default root => { | |
| const stories = [] | |
| const loopFiles = context => { | |
| fs.readdirSync(context).forEach(name => { | |
| const filepath = path.join(context, name) | |
| if (fs.lstatSync(filepath).isDirectory()) { |
This file contains hidden or 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
| /* eslint-disable no-bitwise */ | |
| export default (inputColor, amt) => { | |
| let usePound = false | |
| let color = inputColor | |
| if (color[0] === '#') { | |
| color = color.slice(1) | |
| usePound = true | |
| } |