Fixes #515 Update React to 16 and other dependencies (#519)

* Update to react, react-dom 16.2.0

* Update react-redux

* Update react-tabs

* Update redux-devtools

* Update redux-devtools-dock-monitor

* Update redux-devtools-log-monitor

* Add prop-types package

* Update gitignore

* Update all files to use prop-types package

* Update react-router

* Update react-inlinesvg
This commit is contained in:
Dhruvdutt Jadhav 2018-02-07 23:36:07 +05:30 committed by Cassie Tarakajian
parent 62670e6dda
commit e7abb55ee7
41 changed files with 1065 additions and 482 deletions

1
.gitignore vendored
View file

@ -1,5 +1,6 @@
.DS_Store .DS_Store
.env .env
.vscode/
node_modules/ node_modules/
npm-debug.log npm-debug.log
dump.rdb dump.rdb

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { Link } from 'react-router'; import { Link } from 'react-router';
import InlineSVG from 'react-inlinesvg'; import InlineSVG from 'react-inlinesvg';
import classNames from 'classnames'; import classNames from 'classnames';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import DevTools from './components/DevTools'; import DevTools from './components/DevTools';
import { setPreviousPath } from '../IDE/actions/ide'; import { setPreviousPath } from '../IDE/actions/ide';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import InlineSVG from 'react-inlinesvg'; import InlineSVG from 'react-inlinesvg';
import { browserHistory } from 'react-router'; import { browserHistory } from 'react-router';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import GridOutput from '../components/GridOutput'; import GridOutput from '../components/GridOutput';
import TextOutput from '../components/TextOutput'; import TextOutput from '../components/TextOutput';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { bindActionCreators } from 'redux'; import { bindActionCreators } from 'redux';
import { Link } from 'react-router'; import { Link } from 'react-router';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import InlineSVG from 'react-inlinesvg'; import InlineSVG from 'react-inlinesvg';
import classNames from 'classnames'; import classNames from 'classnames';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import Clipboard from 'clipboard'; import Clipboard from 'clipboard';
class CopyableInput extends React.Component { class CopyableInput extends React.Component {

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import CodeMirror from 'codemirror'; import CodeMirror from 'codemirror';
import beautifyJS from 'js-beautify'; import beautifyJS from 'js-beautify';
import 'codemirror/mode/css/css'; import 'codemirror/mode/css/css';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
class EditorAccessibility extends React.Component { class EditorAccessibility extends React.Component {
componentDidMount() { componentDidMount() {

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { Link } from 'react-router'; import { Link } from 'react-router';
class ErrorModal extends React.Component { class ErrorModal extends React.Component {

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { bindActionCreators } from 'redux'; import { bindActionCreators } from 'redux';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import InlineSVG from 'react-inlinesvg'; import InlineSVG from 'react-inlinesvg';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import Dropzone from 'dropzone'; import Dropzone from 'dropzone';
import { bindActionCreators } from 'redux'; import { bindActionCreators } from 'redux';
import { connect } from 'react-redux'; import { connect } from 'react-redux';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { domOnlyProps } from '../../../utils/reduxFormUtils'; import { domOnlyProps } from '../../../utils/reduxFormUtils';
class NewFileForm extends React.Component { class NewFileForm extends React.Component {

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { reduxForm } from 'redux-form'; import { reduxForm } from 'redux-form';
import classNames from 'classnames'; import classNames from 'classnames';
import InlineSVG from 'react-inlinesvg'; import InlineSVG from 'react-inlinesvg';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { domOnlyProps } from '../../../utils/reduxFormUtils'; import { domOnlyProps } from '../../../utils/reduxFormUtils';
class NewFolderForm extends React.Component { class NewFolderForm extends React.Component {

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { reduxForm } from 'redux-form'; import { reduxForm } from 'redux-form';
import InlineSVG from 'react-inlinesvg'; import InlineSVG from 'react-inlinesvg';
import NewFolderForm from './NewFolderForm'; import NewFolderForm from './NewFolderForm';
@ -35,4 +36,3 @@ export default reduxForm({
form: 'new-folder', form: 'new-folder',
fields: ['name'] fields: ['name']
})(NewFolderModal); })(NewFolderModal);

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import InlineSVG from 'react-inlinesvg'; import InlineSVG from 'react-inlinesvg';
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs'; import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
// import { bindActionCreators } from 'redux'; // import { bindActionCreators } from 'redux';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import ReactDOM from 'react-dom'; import ReactDOM from 'react-dom';
// import escapeStringRegexp from 'escape-string-regexp'; // import escapeStringRegexp from 'escape-string-regexp';
import srcDoc from 'srcdoc-polyfill'; import srcDoc from 'srcdoc-polyfill';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import CopyableInput from './CopyableInput'; import CopyableInput from './CopyableInput';
class ShareModal extends React.PureComponent { class ShareModal extends React.PureComponent {

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import classNames from 'classnames'; import classNames from 'classnames';
import InlineSVG from 'react-inlinesvg'; import InlineSVG from 'react-inlinesvg';
import ConnectedFileNode from './FileNode'; import ConnectedFileNode from './FileNode';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { bindActionCreators } from 'redux'; import { bindActionCreators } from 'redux';
import moment from 'moment'; import moment from 'moment';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import moment from 'moment'; import moment from 'moment';
import classNames from 'classnames'; import classNames from 'classnames';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { bindActionCreators } from 'redux'; import { bindActionCreators } from 'redux';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import InlineSVG from 'react-inlinesvg'; import InlineSVG from 'react-inlinesvg';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { Link } from 'react-router'; import { Link } from 'react-router';
import classNames from 'classnames'; import classNames from 'classnames';
import InlineSVG from 'react-inlinesvg'; import InlineSVG from 'react-inlinesvg';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { bindActionCreators } from 'redux'; import { bindActionCreators } from 'redux';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import PreviewFrame from '../components/PreviewFrame'; import PreviewFrame from '../components/PreviewFrame';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { bindActionCreators } from 'redux'; import { bindActionCreators } from 'redux';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { withRouter } from 'react-router'; import { withRouter } from 'react-router';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { domOnlyProps } from '../../../utils/reduxFormUtils'; import { domOnlyProps } from '../../../utils/reduxFormUtils';
function AccountForm(props) { function AccountForm(props) {

View file

@ -1,5 +1,6 @@
import InlineSVG from 'react-inlinesvg'; import InlineSVG from 'react-inlinesvg';
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
const githubUrl = require('../../../images/github.svg'); const githubUrl = require('../../../images/github.svg');

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { domOnlyProps } from '../../../utils/reduxFormUtils'; import { domOnlyProps } from '../../../utils/reduxFormUtils';
function LoginForm(props) { function LoginForm(props) {

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { domOnlyProps } from '../../../utils/reduxFormUtils'; import { domOnlyProps } from '../../../utils/reduxFormUtils';
function NewPasswordForm(props) { function NewPasswordForm(props) {

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { domOnlyProps } from '../../../utils/reduxFormUtils'; import { domOnlyProps } from '../../../utils/reduxFormUtils';
function ResetPasswordForm(props) { function ResetPasswordForm(props) {

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { domOnlyProps } from '../../../utils/reduxFormUtils'; import { domOnlyProps } from '../../../utils/reduxFormUtils';
function SignupForm(props) { function SignupForm(props) {

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { reduxForm } from 'redux-form'; import { reduxForm } from 'redux-form';
import { bindActionCreators } from 'redux'; import { bindActionCreators } from 'redux';
import { browserHistory } from 'react-router'; import { browserHistory } from 'react-router';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
import { bindActionCreators } from 'redux'; import { bindActionCreators } from 'redux';
import { browserHistory } from 'react-router'; import { browserHistory } from 'react-router';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { reduxForm } from 'redux-form'; import { reduxForm } from 'redux-form';
import { Link, browserHistory } from 'react-router'; import { Link, browserHistory } from 'react-router';
import InlineSVG from 'react-inlinesvg'; import InlineSVG from 'react-inlinesvg';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { reduxForm } from 'redux-form'; import { reduxForm } from 'redux-form';
import classNames from 'classnames'; import classNames from 'classnames';
import { browserHistory } from 'react-router'; import { browserHistory } from 'react-router';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { Link, browserHistory } from 'react-router'; import { Link, browserHistory } from 'react-router';
import classNames from 'classnames'; import classNames from 'classnames';
import InlineSVG from 'react-inlinesvg'; import InlineSVG from 'react-inlinesvg';

View file

@ -1,4 +1,5 @@
import React, { PropTypes } from 'react'; import PropTypes from 'prop-types';
import React from 'react';
import { bindActionCreators } from 'redux'; import { bindActionCreators } from 'redux';
import axios from 'axios'; import axios from 'axios';
import { Link, browserHistory } from 'react-router'; import { Link, browserHistory } from 'react-router';

1386
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -103,20 +103,21 @@
"pretty-bytes": "^3.0.1", "pretty-bytes": "^3.0.1",
"primer-tooltips": "^1.4.1", "primer-tooltips": "^1.4.1",
"project-name-generator": "^2.1.3", "project-name-generator": "^2.1.3",
"prop-types": "^15.6.0",
"pug": "^2.0.0-beta6", "pug": "^2.0.0-beta6",
"q": "^1.4.1", "q": "^1.4.1",
"react": "^15.1.0", "react": "^16.2.0",
"react-dom": "^15.1.0", "react-dom": "^16.2.0",
"react-helmet": "^5.1.3", "react-helmet": "^5.1.3",
"react-inlinesvg": "^0.4.2", "react-inlinesvg": "^0.7.5",
"react-redux": "^4.4.5", "react-redux": "^5.0.6",
"react-router": "^2.6.0", "react-router": "^3.2.0",
"react-split-pane": "^0.1.44", "react-split-pane": "^0.1.44",
"react-tabs": "^1.1.0", "react-tabs": "^2.2.1",
"redux": "^3.5.2", "redux": "^3.5.2",
"redux-devtools": "^3.3.1", "redux-devtools": "^3.4.1",
"redux-devtools-dock-monitor": "^1.1.1", "redux-devtools-dock-monitor": "^1.1.3",
"redux-devtools-log-monitor": "^1.0.11", "redux-devtools-log-monitor": "^1.4.0",
"redux-form": "^5.3.3", "redux-form": "^5.3.3",
"redux-thunk": "^2.1.0", "redux-thunk": "^2.1.0",
"request": "^2.76.0", "request": "^2.76.0",