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 autoprefixer = require('autoprefixer'); | |
| const webpack = require('webpack'); | |
| const path = require('path'); | |
| const precss = require('precss'); | |
| const TransferWebpackPlugin = require('transfer-webpack-plugin'); | |
| const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
| module.exports = { | |
| mode: 'development', |
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
| entry: [ | |
| 'webpack/hot/only-dev-server', | |
| 'font-awesome/scss/font-awesome.scss', | |
| './client/app.jsx' | |
| ] |
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
| new webpack.ProvidePlugin({ | |
| $: 'jquery', | |
| jQuery: 'jquery', | |
| 'window.jQuery': 'jquery', | |
| Alert: 'exports-loader?Alert!bootstrap/js/dist/alert', | |
| Button: 'exports-loader?Button!bootstrap/js/dist/button', | |
| Carousel: 'exports-loader?Carousel!bootstrap/js/dist/carousel', | |
| Collapse: 'exports-loader?Collapse!bootstrap/js/dist/collapse', | |
| Dropdown: 'exports-loader?Dropdown!bootstrap/js/dist/dropdown', | |
| Modal: 'exports-loader?Modal!bootstrap/js/dist/modal', |
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 webpack = require('webpack'); | |
| const path = require('path'); | |
| const TransferWebpackPlugin = require('transfer-webpack-plugin'); | |
| const ExtractTextPlugin = require('extract-text-webpack-plugin'); | |
| module.exports = { | |
| mode: 'development', | |
| devtool: 'eval', | |
| entry: [ | |
| 'webpack/hot/only-dev-server', |
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
| redux-cra | |
| ├── node_modules | |
| ├── public | |
| │ └── favicon.ico | |
| │ └── index.html | |
| │ └── manifest.json | |
| ├── src | |
| │ └── App.css | |
| │ └── App.js | |
| │ └── App.test.js |
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, { Component } from 'react'; | |
| import { connect } from 'react-redux'; | |
| import logo from './logo.svg'; | |
| import ModalRoot from './ModalRoot'; | |
| import './dist/css/template.css'; | |
| import './App.css'; | |
| import { showModal, hideModal } from './actions/modal' |
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
| redux-modal-component/ | |
| README.md | |
| node_modules/ | |
| package.json | |
| public/ | |
| index.html | |
| favicon.ico | |
| manifest.json | |
| src/ | |
| actions/ |
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 keyMirror from 'keymirror' | |
| const ActionTypes = keyMirror({ | |
| HIDE_MODAL: null, | |
| SHOW_MODAL: null, | |
| }) | |
| export default ActionTypes |
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 { connect } from 'react-redux' | |
| import ReactModal from 'react-modal' | |
| import { default as modalTypes } from './components/Modals' | |
| const MODAL_TYPES = { | |
| 'alert': modalTypes.alertModal, | |
| 'confirm': modalTypes.confirmModal, | |
| 'delete': modalTypes.deleteModal, |
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 { connect } from 'react-redux' | |
| import ReactModal from 'react-modal' | |
| const mapStateToProps = state => ({ | |
| ...state.modal | |
| }) | |
| class ModalContainer extends React.Component { | |
| constructor(props) { |
NewerOlder