Adding webpack code splitting (#3377)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
00dc8e734c
Коммит
14510ce194
@@ -10,7 +10,7 @@ import * as GlobalActions from 'actions/global_actions.jsx';
|
||||
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
|
||||
import {Link} from 'react-router';
|
||||
import {Link} from 'react-router/es6';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import * as Utils from 'utils/utils.jsx';
|
||||
import AdminSidebarHeader from './admin_sidebar_header.jsx';
|
||||
import AdminSidebarTeam from './admin_sidebar_team.jsx';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
import {browserHistory} from 'react-router';
|
||||
import {browserHistory} from 'react-router/es6';
|
||||
import {OverlayTrigger, Tooltip} from 'react-bootstrap';
|
||||
import SelectTeamModal from './select_team_modal.jsx';
|
||||
import AdminSidebarCategory from './admin_sidebar_category.jsx';
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import {Link} from 'react-router';
|
||||
import {Link} from 'react-router/es6';
|
||||
|
||||
export default class AdminSidebarCategory extends React.Component {
|
||||
static get propTypes() {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import {Link} from 'react-router';
|
||||
import {Link} from 'react-router/es6';
|
||||
|
||||
export default class AdminSidebarSection extends React.Component {
|
||||
static get propTypes() {
|
||||
|
||||
@@ -10,7 +10,7 @@ import TeamStore from 'stores/team_store.jsx';
|
||||
import {FormattedMessage, FormattedHTMLMessage} from 'react-intl';
|
||||
|
||||
import React from 'react';
|
||||
import {browserHistory} from 'react-router';
|
||||
import {browserHistory} from 'react-router/es6';
|
||||
|
||||
export default class UserItem extends React.Component {
|
||||
constructor(props) {
|
||||
|
||||
@@ -9,7 +9,7 @@ import * as Utils from 'utils/utils.jsx';
|
||||
import BackstageHeader from './backstage_header.jsx';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
import FormError from 'components/form_error.jsx';
|
||||
import {browserHistory, Link} from 'react-router';
|
||||
import {browserHistory, Link} from 'react-router/es6';
|
||||
import SpinnerButton from 'components/spinner_button.jsx';
|
||||
import Constants from 'utils/constants.jsx';
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@ import BackstageHeader from './backstage_header.jsx';
|
||||
import ChannelSelect from 'components/channel_select.jsx';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
import FormError from 'components/form_error.jsx';
|
||||
import {browserHistory, Link} from 'react-router';
|
||||
import {browserHistory, Link} from 'react-router/es6';
|
||||
import SpinnerButton from 'components/spinner_button.jsx';
|
||||
|
||||
export default class AddIncomingWebhook extends React.Component {
|
||||
|
||||
@@ -10,7 +10,7 @@ import BackstageHeader from './backstage_header.jsx';
|
||||
import ChannelSelect from 'components/channel_select.jsx';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
import FormError from 'components/form_error.jsx';
|
||||
import {browserHistory, Link} from 'react-router';
|
||||
import {browserHistory, Link} from 'react-router/es6';
|
||||
import SpinnerButton from 'components/spinner_button.jsx';
|
||||
|
||||
export default class AddOutgoingWebhook extends React.Component {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import {Link} from 'react-router';
|
||||
import {Link} from 'react-router/es6';
|
||||
|
||||
export default class BackstageCategory extends React.Component {
|
||||
static get propTypes() {
|
||||
|
||||
@@ -8,7 +8,7 @@ import React from 'react';
|
||||
import TeamStore from 'stores/team_store.jsx';
|
||||
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
import {Link} from 'react-router';
|
||||
import {Link} from 'react-router/es6';
|
||||
|
||||
export default class BackstageNavbar extends React.Component {
|
||||
constructor(props) {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import {Link} from 'react-router';
|
||||
import {Link} from 'react-router/es6';
|
||||
|
||||
export default class BackstageSection extends React.Component {
|
||||
static get propTypes() {
|
||||
|
||||
@@ -5,7 +5,7 @@ import React from 'react';
|
||||
|
||||
import * as Utils from 'utils/utils.jsx';
|
||||
|
||||
import {Link} from 'react-router';
|
||||
import {Link} from 'react-router/es6';
|
||||
import LoadingScreen from 'components/loading_screen.jsx';
|
||||
|
||||
export default class InstalledIntegrations extends React.Component {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import {Link} from 'react-router';
|
||||
import {Link} from 'react-router/es6';
|
||||
|
||||
export default class IntegrationOption extends React.Component {
|
||||
static get propTypes() {
|
||||
|
||||
@@ -31,7 +31,7 @@ import Client from 'utils/web_client.jsx';
|
||||
import Constants from 'utils/constants.jsx';
|
||||
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
import {browserHistory} from 'react-router';
|
||||
import {browserHistory} from 'react-router/es6';
|
||||
|
||||
const ActionTypes = Constants.ActionTypes;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
import React from 'react';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
import {Link} from 'react-router';
|
||||
import {Link} from 'react-router/es6';
|
||||
|
||||
import logoImage from 'images/logo.png';
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import Client from 'utils/web_client.jsx';
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
import {browserHistory} from 'react-router';
|
||||
import {browserHistory} from 'react-router/es6';
|
||||
|
||||
export default class OAuthToEmail extends React.Component {
|
||||
constructor(props) {
|
||||
|
||||
@@ -24,7 +24,7 @@ import PreferenceStore from 'stores/preference_store.jsx';
|
||||
import Constants from 'utils/constants.jsx';
|
||||
|
||||
import {intlShape, injectIntl, defineMessages, FormattedHTMLMessage} from 'react-intl';
|
||||
import {browserHistory} from 'react-router';
|
||||
import {browserHistory} from 'react-router/es6';
|
||||
|
||||
const Preferences = Constants.Preferences;
|
||||
const TutorialSteps = Constants.TutorialSteps;
|
||||
|
||||
@@ -10,7 +10,7 @@ import logoImage from 'images/logo.png';
|
||||
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import {Link} from 'react-router';
|
||||
import {Link} from 'react-router/es6';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
|
||||
export default class TeamSignupDisplayNamePage extends React.Component {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import ErrorBar from 'components/error_bar.jsx';
|
||||
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
import {browserHistory, Link} from 'react-router';
|
||||
import {browserHistory, Link} from 'react-router/es6';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import Constants from 'utils/constants.jsx';
|
||||
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
|
||||
import {browserHistory} from 'react-router';
|
||||
import {browserHistory} from 'react-router/es6';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import {FormattedMessage} from 'react-intl';
|
||||
import Client from 'utils/web_client.jsx';
|
||||
import LoadingScreen from './loading_screen.jsx';
|
||||
|
||||
import {browserHistory, Link} from 'react-router';
|
||||
import {browserHistory, Link} from 'react-router/es6';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import $ from 'jquery';
|
||||
|
||||
import React from 'react';
|
||||
import {Link} from 'react-router';
|
||||
import {Link} from 'react-router/es6';
|
||||
|
||||
import * as Utils from 'utils/utils.jsx';
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import * as Utils from 'utils/utils.jsx';
|
||||
|
||||
import {defineMessages} from 'react-intl';
|
||||
import React from 'react';
|
||||
import {Link} from 'react-router';
|
||||
import {Link} from 'react-router/es6';
|
||||
|
||||
const holders = defineMessages({
|
||||
type: {
|
||||
|
||||
@@ -11,7 +11,7 @@ import * as Utils from 'utils/utils.jsx';
|
||||
import * as Websockets from 'actions/websocket_actions.jsx';
|
||||
import Constants from 'utils/constants.jsx';
|
||||
|
||||
import {browserHistory} from 'react-router';
|
||||
import {browserHistory} from 'react-router/es6';
|
||||
|
||||
const CLIENT_STATUS_INTERVAL = 30000;
|
||||
const BACKSPACE_CHAR = 8;
|
||||
|
||||
@@ -16,7 +16,7 @@ import * as Utils from 'utils/utils.jsx';
|
||||
import Constants from 'utils/constants.jsx';
|
||||
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
import {browserHistory, Link} from 'react-router';
|
||||
import {browserHistory, Link} from 'react-router/es6';
|
||||
|
||||
import React from 'react';
|
||||
import logoImage from 'images/logo.png';
|
||||
|
||||
@@ -12,7 +12,7 @@ import * as AsyncClient from 'utils/async_client.jsx';
|
||||
import * as GlobalActions from 'actions/global_actions.jsx';
|
||||
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
import {browserHistory} from 'react-router';
|
||||
import {browserHistory} from 'react-router/es6';
|
||||
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
|
||||
@@ -9,7 +9,7 @@ import * as Utils from 'utils/utils.jsx';
|
||||
import * as GlobalActions from 'actions/global_actions.jsx';
|
||||
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
import {browserHistory} from 'react-router';
|
||||
import {browserHistory} from 'react-router/es6';
|
||||
import SpinnerButton from 'components/spinner_button.jsx';
|
||||
import LoadingScreen from 'components/loading_screen.jsx';
|
||||
|
||||
|
||||
@@ -33,7 +33,7 @@ import {FormattedMessage} from 'react-intl';
|
||||
|
||||
import {Popover, OverlayTrigger} from 'react-bootstrap';
|
||||
|
||||
import {Link, browserHistory} from 'react-router';
|
||||
import {Link, browserHistory} from 'react-router/es6';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ import UserSettingsModal from './user_settings/user_settings_modal.jsx';
|
||||
import Constants from 'utils/constants.jsx';
|
||||
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
import {Link} from 'react-router';
|
||||
import {Link} from 'react-router/es6';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import React from 'react';
|
||||
|
||||
import $ from 'jquery';
|
||||
|
||||
import {browserHistory} from 'react-router';
|
||||
import {browserHistory} from 'react-router/es6';
|
||||
import * as Utils from 'utils/utils.jsx';
|
||||
import * as AsyncClient from 'utils/async_client.jsx';
|
||||
import TeamStore from 'stores/team_store.jsx';
|
||||
|
||||
@@ -9,7 +9,7 @@ import NewChannelModal from './new_channel_modal.jsx';
|
||||
import ChangeURLModal from './change_url_modal.jsx';
|
||||
|
||||
import {intlShape, injectIntl, defineMessages} from 'react-intl';
|
||||
import {browserHistory} from 'react-router';
|
||||
import {browserHistory} from 'react-router/es6';
|
||||
|
||||
import AppDispatcher from '../dispatcher/app_dispatcher.jsx';
|
||||
import Constants from 'utils/constants.jsx';
|
||||
|
||||
@@ -7,7 +7,7 @@ import * as Utils from 'utils/utils.jsx';
|
||||
import Constants from 'utils/constants.jsx';
|
||||
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
import {browserHistory} from 'react-router';
|
||||
import {browserHistory} from 'react-router/es6';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import client from 'utils/web_client.jsx';
|
||||
import {FormattedMessage, FormattedHTMLMessage} from 'react-intl';
|
||||
|
||||
import React from 'react';
|
||||
import {Link} from 'react-router';
|
||||
import {Link} from 'react-router/es6';
|
||||
|
||||
class PasswordResetSendLink extends React.Component {
|
||||
constructor(props) {
|
||||
|
||||
@@ -10,7 +10,7 @@ import PostFocusViewController from 'components/post_view/post_focus_view_contro
|
||||
import ChannelStore from 'stores/channel_store.jsx';
|
||||
import TeamStore from 'stores/team_store.jsx';
|
||||
|
||||
import {Link} from 'react-router';
|
||||
import {Link} from 'react-router/es6';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
|
||||
export default class PermalinkView extends React.Component {
|
||||
|
||||
@@ -10,7 +10,7 @@ import Constants from 'utils/constants.jsx';
|
||||
import Client from 'utils/web_client.jsx';
|
||||
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
import {browserHistory} from 'react-router';
|
||||
import {browserHistory} from 'react-router/es6';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ import BrowserStore from 'stores/browser_store.jsx';
|
||||
|
||||
import * as Utils from 'utils/utils.jsx';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
import {browserHistory} from 'react-router';
|
||||
import {browserHistory} from 'react-router/es6';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ import React from 'react';
|
||||
|
||||
import FastClick from 'fastclick';
|
||||
|
||||
import {browserHistory} from 'react-router';
|
||||
import {browserHistory} from 'react-router/es6';
|
||||
import UserStore from 'stores/user_store.jsx';
|
||||
|
||||
export default class Root extends React.Component {
|
||||
|
||||
@@ -16,7 +16,7 @@ const ActionTypes = Constants.ActionTypes;
|
||||
|
||||
import {FormattedMessage, FormattedDate} from 'react-intl';
|
||||
import React from 'react';
|
||||
import {browserHistory} from 'react-router';
|
||||
import {browserHistory} from 'react-router/es6';
|
||||
|
||||
export default class SearchResultsItem extends React.Component {
|
||||
constructor(props) {
|
||||
|
||||
@@ -9,7 +9,7 @@ import LoadingScreen from 'components/loading_screen.jsx';
|
||||
import * as AsyncClient from 'utils/async_client.jsx';
|
||||
import * as GlobalActions from 'actions/global_actions.jsx';
|
||||
|
||||
import {Link} from 'react-router';
|
||||
import {Link} from 'react-router/es6';
|
||||
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ import {FormattedMessage} from 'react-intl';
|
||||
import Client from 'utils/web_client.jsx';
|
||||
|
||||
import React from 'react';
|
||||
import {Link} from 'react-router';
|
||||
import {Link} from 'react-router/es6';
|
||||
|
||||
export default class ShouldVerifyEmail extends React.Component {
|
||||
constructor(props) {
|
||||
|
||||
@@ -30,7 +30,7 @@ import {Tooltip, OverlayTrigger} from 'react-bootstrap';
|
||||
import loadingGif from 'images/load.gif';
|
||||
|
||||
import React from 'react';
|
||||
import {browserHistory, Link} from 'react-router';
|
||||
import {browserHistory, Link} from 'react-router/es6';
|
||||
|
||||
import favicon from 'images/favicon/favicon-16x16.png';
|
||||
import redFavicon from 'images/favicon/redfavicon-16x16.png';
|
||||
|
||||
@@ -20,7 +20,7 @@ const Preferences = Constants.Preferences;
|
||||
const TutorialSteps = Constants.TutorialSteps;
|
||||
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
import {Link} from 'react-router';
|
||||
import {Link} from 'react-router/es6';
|
||||
import {createMenuTip} from 'components/tutorial/tutorial_tip.jsx';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
@@ -6,7 +6,7 @@ import BrowserStore from 'stores/browser_store.jsx';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
|
||||
import React from 'react';
|
||||
import {Link, browserHistory} from 'react-router';
|
||||
import {Link, browserHistory} from 'react-router/es6';
|
||||
|
||||
export default class SignupTeamComplete extends React.Component {
|
||||
constructor(props) {
|
||||
|
||||
@@ -17,7 +17,7 @@ import Constants from 'utils/constants.jsx';
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import {FormattedMessage, FormattedHTMLMessage} from 'react-intl';
|
||||
import {browserHistory, Link} from 'react-router';
|
||||
import {browserHistory, Link} from 'react-router/es6';
|
||||
|
||||
import logoImage from 'images/logo.png';
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import Client from 'utils/web_client.jsx';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
|
||||
import React from 'react';
|
||||
import {Link} from 'react-router';
|
||||
import {Link} from 'react-router/es6';
|
||||
|
||||
export default class TeamExportTab extends React.Component {
|
||||
constructor(props) {
|
||||
|
||||
@@ -12,7 +12,7 @@ import TeamStore from 'stores/team_store.jsx';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
|
||||
import React from 'react';
|
||||
import {browserHistory} from 'react-router';
|
||||
import {browserHistory} from 'react-router/es6';
|
||||
|
||||
export default class TeamMembersDropdown extends React.Component {
|
||||
constructor(props) {
|
||||
|
||||
@@ -10,7 +10,7 @@ import * as GlobalActions from 'actions/global_actions.jsx';
|
||||
import Constants from 'utils/constants.jsx';
|
||||
|
||||
import {FormattedMessage, FormattedHTMLMessage} from 'react-intl';
|
||||
import {browserHistory} from 'react-router';
|
||||
import {browserHistory} from 'react-router/es6';
|
||||
|
||||
const Preferences = Constants.Preferences;
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ import * as Utils from 'utils/utils.jsx';
|
||||
import Constants from 'utils/constants.jsx';
|
||||
|
||||
import {intlShape, injectIntl, defineMessages, FormattedMessage, FormattedHTMLMessage, FormattedTime, FormattedDate} from 'react-intl';
|
||||
import {Link} from 'react-router';
|
||||
import {Link} from 'react-router/es6';
|
||||
|
||||
const holders = defineMessages({
|
||||
currentPasswordError: {
|
||||
|
||||
Ссылка в новой задаче
Block a user