diff --git a/packages/strapi-admin/admin/src/app.js b/packages/strapi-admin/admin/src/app.js
index 4bcd6f0130..063f1a174f 100755
--- a/packages/strapi-admin/admin/src/app.js
+++ b/packages/strapi-admin/admin/src/app.js
@@ -8,6 +8,8 @@ import 'babel-polyfill';
// Import all the third party stuff
import { Provider } from 'react-redux';
+import React from 'react';
+import ReactDOM from 'react-dom';
import { ConnectedRouter } from 'react-router-redux';
import createHistory from 'history/createBrowserHistory';
import { merge, isFunction } from 'lodash';
@@ -20,7 +22,6 @@ import App from 'containers/App';
import { showNotification } from 'containers/NotificationProvider/actions';
import { pluginLoaded, updatePlugin } from 'containers/App/actions';
-import { plugins } from '../../config/admin.json';
import configureStore from './store';
import { translationMessages, languages } from './i18n';
@@ -129,23 +130,6 @@ window.Strapi = {
languages,
};
-// Ping each plugins port defined in configuration
-if (window.location.hostname === 'localhost') {
- plugins.ports.forEach(pluginPort => {
- // Define plugin url
- const pluginUrl = `http://localhost:${pluginPort}/main.js`;
-
- // Check that the server in running
- fetch(pluginUrl)
- .then(() => {
- // Inject `script` tag in DOM
- const script = window.document.createElement('script');
- script.src = pluginUrl;
- window.document.body.appendChild(script);
- });
- });
-}
-
const dispatch = store.dispatch;
export {
dispatch,
diff --git a/packages/strapi-admin/admin/src/components/Header/index.js b/packages/strapi-admin/admin/src/components/Header/index.js
index 0309c4e660..1d254ca65f 100755
--- a/packages/strapi-admin/admin/src/components/Header/index.js
+++ b/packages/strapi-admin/admin/src/components/Header/index.js
@@ -4,6 +4,7 @@
*
*/
+import React from 'react';
import styles from './styles.scss';
class Header extends React.Component { // eslint-disable-line react/prefer-stateless-function
diff --git a/packages/strapi-admin/admin/src/components/LeftMenuFooter/index.js b/packages/strapi-admin/admin/src/components/LeftMenuFooter/index.js
index 57398e6c8d..a9ad2b2a1b 100755
--- a/packages/strapi-admin/admin/src/components/LeftMenuFooter/index.js
+++ b/packages/strapi-admin/admin/src/components/LeftMenuFooter/index.js
@@ -4,6 +4,7 @@
*
*/
+import React from 'react';
import { defineMessages, FormattedMessage } from 'react-intl';
import LocaleToggle from 'containers/LocaleToggle';
diff --git a/packages/strapi-admin/admin/src/components/LeftMenuHeader/index.js b/packages/strapi-admin/admin/src/components/LeftMenuHeader/index.js
index c8843a71e7..fc114b0593 100755
--- a/packages/strapi-admin/admin/src/components/LeftMenuHeader/index.js
+++ b/packages/strapi-admin/admin/src/components/LeftMenuHeader/index.js
@@ -4,6 +4,7 @@
*
*/
+import React from 'react';
import { Link } from 'react-router-dom';
import styles from './styles.scss';
diff --git a/packages/strapi-admin/admin/src/components/LeftMenuLink/index.js b/packages/strapi-admin/admin/src/components/LeftMenuLink/index.js
index dc8bb81bd5..0fb8a45fb1 100755
--- a/packages/strapi-admin/admin/src/components/LeftMenuLink/index.js
+++ b/packages/strapi-admin/admin/src/components/LeftMenuLink/index.js
@@ -4,7 +4,8 @@
*
*/
-import _ from 'lodash';
+import React from 'react';
+import { startsWith } from 'lodash';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { Link } from 'react-router-dom';
@@ -15,7 +16,7 @@ class LeftMenuLink extends React.Component { // eslint-disable-line react/prefer
render() {
// We need to create our own active url checker,
// because of the two levels router.
- const isLinkActive = _.startsWith(window.location.pathname.replace('/admin', ''), this.props.destination);
+ const isLinkActive = startsWith(window.location.pathname.replace('/admin', ''), this.props.destination);
return (
diff --git a/packages/strapi-admin/admin/src/components/LeftMenuLinkContainer/index.js b/packages/strapi-admin/admin/src/components/LeftMenuLinkContainer/index.js
index 932f70455f..7002ade35a 100755
--- a/packages/strapi-admin/admin/src/components/LeftMenuLinkContainer/index.js
+++ b/packages/strapi-admin/admin/src/components/LeftMenuLinkContainer/index.js
@@ -4,6 +4,7 @@
*
*/
+import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { map } from 'lodash';
diff --git a/packages/strapi-admin/admin/src/components/Notification/index.js b/packages/strapi-admin/admin/src/components/Notification/index.js
index 4847493322..d2876f7df0 100755
--- a/packages/strapi-admin/admin/src/components/Notification/index.js
+++ b/packages/strapi-admin/admin/src/components/Notification/index.js
@@ -4,6 +4,7 @@
*
*/
+import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
diff --git a/packages/strapi-admin/admin/src/components/NotificationsContainer/index.js b/packages/strapi-admin/admin/src/components/NotificationsContainer/index.js
index f14616778c..cb734cdefd 100755
--- a/packages/strapi-admin/admin/src/components/NotificationsContainer/index.js
+++ b/packages/strapi-admin/admin/src/components/NotificationsContainer/index.js
@@ -4,13 +4,14 @@
*
*/
+import React from 'react';
import PropTypes from 'prop-types';
+import { CSSTransition, TransitionGroup } from 'react-transition-group';
+
import Notification from 'components/Notification';
import styles from './styles.scss';
-const { CSSTransition, TransitionGroup } = ReactTransitionGroup;
-
class NotificationsContainer extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
if (this.props.notifications.length === 0) {
diff --git a/packages/strapi-admin/admin/src/components/Toggle/index.js b/packages/strapi-admin/admin/src/components/Toggle/index.js
index 9f7fe59424..0d3cce44f6 100755
--- a/packages/strapi-admin/admin/src/components/Toggle/index.js
+++ b/packages/strapi-admin/admin/src/components/Toggle/index.js
@@ -4,6 +4,7 @@
*
*/
+import React from 'react';
import PropTypes from 'prop-types';
import ToggleOption from 'components/ToggleOption';
diff --git a/packages/strapi-admin/admin/src/components/ToggleOption/index.js b/packages/strapi-admin/admin/src/components/ToggleOption/index.js
index 6fb67a44b5..f72109a57a 100755
--- a/packages/strapi-admin/admin/src/components/ToggleOption/index.js
+++ b/packages/strapi-admin/admin/src/components/ToggleOption/index.js
@@ -4,6 +4,7 @@
*
*/
+import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, intlShape } from 'react-intl';
diff --git a/packages/strapi-admin/admin/src/containers/AdminPage/index.js b/packages/strapi-admin/admin/src/containers/AdminPage/index.js
index a5ec88f087..4fe17333d7 100644
--- a/packages/strapi-admin/admin/src/containers/AdminPage/index.js
+++ b/packages/strapi-admin/admin/src/containers/AdminPage/index.js
@@ -9,6 +9,7 @@
* the linting exception.
*/
+import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
diff --git a/packages/strapi-admin/admin/src/containers/App/index.js b/packages/strapi-admin/admin/src/containers/App/index.js
index 2d832477b1..7441753f96 100644
--- a/packages/strapi-admin/admin/src/containers/App/index.js
+++ b/packages/strapi-admin/admin/src/containers/App/index.js
@@ -11,6 +11,7 @@
* the linting exception.
*/
+import React from 'react';
import PropTypes from 'prop-types';
import { Switch, Route } from 'react-router-dom';
diff --git a/packages/strapi-admin/admin/src/containers/ComingSoonPage/index.js b/packages/strapi-admin/admin/src/containers/ComingSoonPage/index.js
index aea3a0c74e..67c6dcdd16 100755
--- a/packages/strapi-admin/admin/src/containers/ComingSoonPage/index.js
+++ b/packages/strapi-admin/admin/src/containers/ComingSoonPage/index.js
@@ -4,6 +4,7 @@
*
*/
+import React from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
diff --git a/packages/strapi-admin/admin/src/containers/Content/index.js b/packages/strapi-admin/admin/src/containers/Content/index.js
index 38b6bf4d00..0b2d751ef5 100755
--- a/packages/strapi-admin/admin/src/containers/Content/index.js
+++ b/packages/strapi-admin/admin/src/containers/Content/index.js
@@ -4,6 +4,7 @@
*
*/
+import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
diff --git a/packages/strapi-admin/admin/src/containers/HomePage/index.js b/packages/strapi-admin/admin/src/containers/HomePage/index.js
index e256d315cd..d3fc554480 100644
--- a/packages/strapi-admin/admin/src/containers/HomePage/index.js
+++ b/packages/strapi-admin/admin/src/containers/HomePage/index.js
@@ -4,6 +4,7 @@
*
*/
+import React from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import { FormattedMessage } from 'react-intl';
diff --git a/packages/strapi-admin/admin/src/containers/LanguageProvider/index.js b/packages/strapi-admin/admin/src/containers/LanguageProvider/index.js
index 5fc465c591..cf6a183e8f 100755
--- a/packages/strapi-admin/admin/src/containers/LanguageProvider/index.js
+++ b/packages/strapi-admin/admin/src/containers/LanguageProvider/index.js
@@ -6,6 +6,7 @@
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
+import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
diff --git a/packages/strapi-admin/admin/src/containers/LeftMenu/index.js b/packages/strapi-admin/admin/src/containers/LeftMenu/index.js
index 35cd08b6d6..202412b49b 100755
--- a/packages/strapi-admin/admin/src/containers/LeftMenu/index.js
+++ b/packages/strapi-admin/admin/src/containers/LeftMenu/index.js
@@ -4,6 +4,7 @@
*
*/
+import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
diff --git a/packages/strapi-admin/admin/src/containers/LocaleToggle/index.js b/packages/strapi-admin/admin/src/containers/LocaleToggle/index.js
index e4aec6fd4d..eacba0b0a2 100755
--- a/packages/strapi-admin/admin/src/containers/LocaleToggle/index.js
+++ b/packages/strapi-admin/admin/src/containers/LocaleToggle/index.js
@@ -4,6 +4,7 @@
*
*/
+import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
diff --git a/packages/strapi-admin/admin/src/containers/NotFoundPage/index.js b/packages/strapi-admin/admin/src/containers/NotFoundPage/index.js
index 9c379c3d72..a819eb5203 100755
--- a/packages/strapi-admin/admin/src/containers/NotFoundPage/index.js
+++ b/packages/strapi-admin/admin/src/containers/NotFoundPage/index.js
@@ -9,6 +9,7 @@
* the linting exception.
*/
+import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, FormattedMessage } from 'react-intl';
diff --git a/packages/strapi-admin/admin/src/containers/NotificationProvider/index.js b/packages/strapi-admin/admin/src/containers/NotificationProvider/index.js
index 1106f37860..0367a53315 100644
--- a/packages/strapi-admin/admin/src/containers/NotificationProvider/index.js
+++ b/packages/strapi-admin/admin/src/containers/NotificationProvider/index.js
@@ -4,6 +4,7 @@
*
*/
+import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { createStructuredSelector } from 'reselect';
@@ -12,7 +13,6 @@ import NotificationsContainer from 'components/NotificationsContainer';
import { selectNotifications } from './selectors';
import { hideNotification } from './actions';
-
export class NotificationProvider extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
return (
diff --git a/packages/strapi-admin/admin/src/containers/PluginPage/index.js b/packages/strapi-admin/admin/src/containers/PluginPage/index.js
index 2db1f6f6d8..793596c0cc 100755
--- a/packages/strapi-admin/admin/src/containers/PluginPage/index.js
+++ b/packages/strapi-admin/admin/src/containers/PluginPage/index.js
@@ -3,7 +3,8 @@
* PluginPage
*
*/
-
+
+import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
diff --git a/packages/strapi-admin/admin/src/index.html b/packages/strapi-admin/admin/src/index.html
index f9b3624764..ff86160ebd 100755
--- a/packages/strapi-admin/admin/src/index.html
+++ b/packages/strapi-admin/admin/src/index.html
@@ -12,9 +12,5 @@
-
-
-
-