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
Show hidden characters
{ | |
"compilerOptions": { | |
"outDir": "build/dist", | |
"module": "esnext", | |
"target": "es5", | |
"lib": ["es6", "dom", "es2016.array.include", "es2017"], | |
"sourceMap": true, | |
"allowJs": true, | |
"jsx": "react", | |
"moduleResolution": "node", |
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
import * as React from 'react'; | |
import { RouteComponentProps, withRouter } from 'react-router'; | |
import { Dispatch, compose } from 'redux'; | |
import { connect } from 'react-redux'; | |
import { WithStyles, withStyles } from 'material-ui/styles'; | |
import Button from 'material-ui/Button'; | |
import { Model } from '../../../Main/Model'; | |
import { Product } from '../../Model/store'; | |
import { ProductActions } from '../../Model/actions/actions'; |
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
import { InputAdornmentClassKey } from "material-ui/Input/InputAdornment"; | |
import { StandardProps } from "material-ui/index"; | |
declare module "material-ui/Input/InputAdornment" { | |
export interface InputAdornmentProps extends StandardProps<{}, InputAdornmentClassKey> { | |
onClick?: () => void; | |
} | |
} |
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
/*there is scss syntax in this gist */ | |
/* based on this pen: https://codepen.io/mildrenben/pen/rVBrpK */ | |
$white: #fff; | |
$cubic: cubic-bezier(0.64, 0.09, 0.08, 1); | |
/* element that needs a hint */ | |
.tooltip--triangle { | |
position: relative; |
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 helps you to setup an environment | |
* for testing a React app with Mocha. | |
* It provides transpiling and some global variables before | |
* Mocha runs all the tests. | |
* Usage example in npm script: "test": "mocha --require tools/testSetup.js test/*.test.js" | |
* The major part of this file I got from Cory House pluralsight-redux-starter repo: | |
* https://github.com/coryhouse/pluralsight-redux-starter/blob/master/tools/testSetup.js | |
*/ | |
process.env.NODE_ENV = 'test'; |