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
export default (state, action) => { | |
if (action.type === LOGOUT_SUCCESS) { | |
return appReducer(fromJS( { | |
routing: state.get('routing') | |
}), action); | |
} | |
return appReducer(state, action); | |
}; |
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 PropTypes from 'prop-types'; | |
import { Modal } from 'react-bootstrap'; | |
import './assets/styles/styles.scss'; | |
const NoContentDialog = ({ onClose }) => { | |
console.log('onClose', onClose); | |
return ( | |
<Modal onHide={ onClose }> |
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
'use strict'; | |
var path = require('path'); | |
var webpack = require('webpack'); | |
var HtmlWebpackPlugin = require('html-webpack-plugin'); | |
var devConfigs = require('../dev-server/configs'); | |
module.exports = { | |
devtool: 'eval-source-map', | |
entry: [ |
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
class DisconnectMessage { | |
constructor() { | |
this._container = document.getElementById('warning'); | |
this._isNeeded = 0; | |
this._children = []; | |
} | |
_render() { |
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 { match } from 'react-router'; | |
import renderLayout from 'render-layout'; | |
import render from 'render'; | |
import store from '/configure-store'; | |
const initialState = store.getState(); | |
import routes from '/routes' | |
export default (req, res) => { |
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, { Component, PropTypes } from 'react'; | |
import { Link, IndexLink } from 'react-router'; | |
import styles from "./someCompWithStyle.css"; | |
export default class SomeCompWithStyle extends Component { | |
constructor(props) { | |
super(props); | |
} |
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 path = require('path'); | |
var webpack = require('webpack'); | |
const rootFolder = path.resolve(__dirname, '..'); | |
module.exports = { | |
entry: [ | |
'babel-polyfill', | |
path.join(rootFolder, 'src/client/index.js'), | |
], | |
output: { |
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
function someFunction(vaiable){ | |
if (vaiable) { | |
//.... do wahtever you need to do. | |
} | |
} | |
// VS | |
function someFunction(vaiable){ | |
if ( !vaiable ) { |
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, { PropTypes, Component } from 'react'; | |
import { connect } from 'react-redux' | |
import * as Consts from '../constants'; | |
import * as Action from '../actions/index'; | |
import * as Utils from '../utils/index'; | |
export default class WebNotification extends Component { | |
constructor(props) { | |
super(props); |
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
#!/usr/bin/bash | |
set -x | |
su - myUser << eof | |
cd www/folder | |
eof |
NewerOlder