View eslintrc.json
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
{ | |
"parser": "babel-eslint", | |
"parserOptions": { | |
"ecmaVersion": 6, | |
"sourceType": "module", | |
"ecmaFeatures": { | |
"jsx": true, | |
"impliedStrict": true, | |
"experimentalObjectRestSpread": true | |
} |
View auth.js
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 { connectedRouterRedirect } from 'redux-auth-wrapper/history4/redirect'; | |
import { routerActions } from 'react-router-redux'; | |
import connectedAuthWrapper from 'redux-auth-wrapper/connectedAuthWrapper'; | |
import locationHelperBuilder from 'redux-auth-wrapper/history4/locationHelper'; | |
const locationHelper = locationHelperBuilder({}); | |
export const requireAuth = connectedRouterRedirect({ | |
redirectPath: '/login', | |
allowRedirectBack: false, |
View webpack.config.js
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
var webpack = require('webpack'); | |
var CleanWebpackPlugin = require('clean-webpack-plugin'); | |
module.exports = { | |
// Don't attempt to continue if there are any errors. | |
bail: true, | |
// We generate sourcemaps in production. This is slow but gives good results. | |
// You can exclude the *.map files from the build during deployment. | |
devtool: 'hidden-source-map', | |
entry: [ |
View configureStore
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
if (process.env.NODE_ENV === 'production') { | |
module.exports = require('./configureStore.prod'); | |
} else { | |
module.exports = require('./configureStore.dev'); | |
} |
View configureStore.dev.js
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 { createStore, applyMiddleware } from 'redux'; | |
import thunk from 'redux-thunk'; | |
import rootReducer from '../reducers'; | |
import { createLogger } from 'redux-logger'; | |
const configureStore = preloadedState => createStore( | |
rootReducer, | |
preloadedState, | |
applyMiddleware( | |
thunk, |
View configureStore.dev.js
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 { createStore, applyMiddleware } from 'redux'; | |
import thunk from 'redux-thunk'; | |
import { createLogger } from 'redux-logger'; | |
import rootReducer from '../reducers'; | |
import { composeWithDevTools } from 'redux-devtools-extension'; | |
import reduxUnhandledAction from 'redux-unhandled-action'; | |
const configureStore = (preloadedState) => { | |
const store = createStore( | |
rootReducer, |
View polyfills.js
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
// Object.assign() is commonly used with React. | |
Object.assign = require('object-assign'); | |
// requestAnimationFrame polyfill | |
require('raf/polyfill'); | |
// console.* polyfill for old browsers | |
require('console-polyfill'); | |
// smooth scroll support for scrollIntoView |
View memoize_react.jsx
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 React from 'react'; | |
import memoize from 'lodash/memoize'; | |
const Heading = memoize((props) => ( | |
<div className="heading"> | |
<div className="App-header"> | |
<h2>{props.title}</h2> | |
</div> | |
</div> | |
), (props) => { |
View git_prune.bash
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
git fetch -p && for branch in `git branch -vv | grep ': gone]' | awk '{print $1}'`; do git branch -D $branch; done |
View hosts
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
0.0.0.0 assets.adobedtm.com | |
0.0.0.0 cdn.clicktale.net | |
0.0.0.0 cdnssl.clicktale.net | |
0.0.0.0 pagead2.googlesyndication.com | |
0.0.0.0 tags.crwdcntrl.net | |
0.0.0.0 c.amazon-adsystem.com | |
0.0.0.0 pixel.quantserve.com | |
0.0.0.0 cdn.taboola.com | |
0.0.0.0 ad.doubleclick.net | |
0.0.0.0 widget.perfectmarket.com |
NewerOlder