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
export const withRouterProvider = story => ( | |
<BrowserRouter> | |
<Route>{story()}</Route> | |
</BrowserRouter> | |
); |
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
/usr/bin/node /home/danthedev/Projects/bonliva/CRM_work/Server/tests/api-test.js | |
{"name":"AzureAD: Bearer Strategy","hostname":"danthedev-station","pid":22091,"level":40,"msg":"Production environments should always validate the issuer.","time":"2018-03-16T11:04:50.538Z","v":0} | |
Connected to Mongo | |
warn: Parser warning in file '/home/danthedev/Projects/bonliva/CRM_work/Server/documentations/index.yml': Unable to generate application/json example message body out of JSON Schemaon line 584 | |
warn: Parser warning in file '/home/danthedev/Projects/bonliva/CRM_work/Server/documentations/index.yml': Invalid content type 'application/json; charset=utf=8', invalid parameter formaton line 1013 | |
info: Beginning Dredd testing... | |
info: Found Hookfiles: 0=/home/danthedev/Projects/bonliva/CRM_work/Server/tests/api-hooks.js | |
Running transaction: | |
consultant > /consultants > Get list of contacts > 200 > application/json; charset=utf-8 | |
Number of documents inserted: 2 |
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
/usr/bin/node /home/danthedev/Projects/bonliva/CRM_work/Server/tests/api-test.js | |
{"name":"AzureAD: Bearer Strategy","hostname":"danthedev-station","pid":21389,"level":40,"msg":"Production environments should always validate the issuer.","time":"2018-03-16T10:54:20.372Z","v":0} | |
Connected to Mongo | |
warn: Parser warning in file '/home/danthedev/Projects/bonliva/CRM_work/Server/documentations/index.yml': Unable to generate application/json; charset=utf-8 example message body out of JSON Schemaon line 167 | |
warn: Parser warning in file '/home/danthedev/Projects/bonliva/CRM_work/Server/documentations/index.yml': Unable to generate application/json example message body out of JSON Schemaon line 196 | |
warn: Parser warning in file '/home/danthedev/Projects/bonliva/CRM_work/Server/documentations/index.yml': Unable to generate application/json example message body out of JSON Schemaon line 196 | |
warn: Parser warning in file '/home/danthedev/Projects/bonliva/CRM_work/Server/documentations/index.yml': Unable to generate applicat |
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
export default compose<Props, OwnProps>( | |
withHistory, | |
withRouteBlock("Already leaving?") | |
)(SomeContainer); |
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 P from "prop-types"; | |
import ReactSelect, { | |
Creatable as ReactSelectCreatable, | |
Async as ReactSelectAsync, | |
AsyncCreatable as ReactSelectAsyncCreatable | |
} from "react-select"; | |
import get from "lodash/get"; | |
import { Field } from "formik"; | |
import { withStyles } from "material-ui"; |
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 { withStyles } from "material-ui"; | |
import Select, { SelectProps } from "material-ui/Select"; | |
import { MenuItem } from "material-ui/Menu"; | |
type OwnProps = SelectProps & { | |
options: Array<{ label: string; value: string }>; | |
} | |
type Props = OwnProps & { |
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 initialValues = { comment: 'hello'; } | |
storiesOf('Form Controls: Select', module) | |
.addDecorator(withFormValues(initialValues) | |
.add('default', () => ( | |
<Select name="select" label="Country..." options={selectOptions} /> | |
</Formik> | |
)) |
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
/** | |
* Recipe Editor Local Actions | |
*/ | |
import actionCreatorFactory from 'typescript-fsa'; | |
const actionCreator = actionCreatorFactory('@@local/RecipeEditor'); | |
export const showAddGroupDialog = actionCreator('SHOW_ADD_GROUP_DIALOG'); |
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 { isType } from 'typescript-fsa'; | |
import { Reducer } from 'redux'; | |
import * as actions from './actions'; | |
/** | |
* Item-List local store | |
*/ | |
export interface LocalState { |
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 * as React from 'react'; | |
import styled from 'styled-components'; | |
import { Col, Grid, Row } from 'react-styled-flexboxgrid'; | |
import Form from 'semantic-ui-react/dist/commonjs/collections/Form/Form'; | |
import { SubheaderCentered } from '../typography/Subheader'; | |
/** | |
* |-------------------| | |
* | | |
NewerOlder