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 schema from "./schema"; | |
import { graphqlExpress, graphiqlExpress } from "apollo-server-express"; | |
app.use( | |
"/graphql", | |
graphqlExpress(req => { | |
return { | |
schema | |
}; | |
}) |
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 personService from "../services/person"; | |
import { Form, Field } from "react-final-form"; | |
import { DateTime } from "luxon"; | |
const required = value => (value ? undefined : "Required"); | |
const mustBeDate = value => { | |
const dt = DateTime.fromISO(value); | |
return dt.invalid && "Must be a date"; | |
}; |
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
module.exports = { | |
plugins: { | |
precss: {}, | |
autoprefixer: { | |
browsers: ['last 2 versions'], | |
}, | |
}, | |
}; |
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 { Router } from 'react-router-dom'; | |
import createBrowserHistory from 'history/createBrowserHistory'; | |
const LOCATION_CHANGE = '@@router/LOCATION_CHANGE'; | |
export const history = createBrowserHistory(); | |
class ReduxRouter extends React.Component { | |
static propTypes = { |
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 personService from 'services/person'; | |
import uuid from 'node-uuid'; | |
const defaultState = { | |
persons: [], | |
}; | |
export function getPersons() { | |
return { | |
type: 'PERSON_GET_PERSONS', |
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 cx from 'classnames'; | |
import { icons } from '../services/assets'; | |
import styles from './Icon.pcss'; | |
const Icon = props => { | |
const { name, size, flip, className } = props; | |
const classes = cx( | |
styles.icon, | |
styles.className, |
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
/** | |
* @ORM\Id | |
* @ORM\Column(type="integer") | |
* @ORM\generatedValue(strategy="AUTO") | |
*/ |
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
Kalenterisofta autokorjaamolle | |
------------------------------- | |
- Varaus | |
- Tekijä | |
- Auto | |
https://github.com/breerly/factory-girl-php |
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 { default as React, PropTypes } from 'react'; | |
class Measurement extends React.Component { | |
static propTypes = { | |
value: PropTypes.number.isRequired, | |
unit: PropTypes.string.isRequired | |
}; | |
render() { |