Updating client dependencies. Switching to yarn. (#6433)
* Updating client dependancies. Switching to using yarn. * Updating React * Moving pure components to using function syntax (performance gains with newer react version) * Updating client dependancies. * Ignore .yarninstall * Enabling pre-lockfile because it's the entire point of using yarn. * Removing old webpack config * Moving to new prop-types * Fixing ESLint Errors * Updating jest snapshots. * Cleaning up package.json
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
63e599c43b
Коммит
2bbedd9def
@@ -1,3 +1,5 @@
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See License.txt for license information.
|
||||
|
||||
@@ -54,6 +56,6 @@ export default class ClaimController extends React.Component {
|
||||
ClaimController.defaultProps = {
|
||||
};
|
||||
ClaimController.propTypes = {
|
||||
location: React.PropTypes.object.isRequired,
|
||||
children: React.PropTypes.node
|
||||
location: PropTypes.object.isRequired,
|
||||
children: PropTypes.node
|
||||
};
|
||||
|
||||
@@ -8,6 +8,8 @@ import * as Utils from 'utils/utils.jsx';
|
||||
import {checkMfa} from 'actions/user_actions.jsx';
|
||||
import {emailToLdap} from 'actions/admin_actions.jsx';
|
||||
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import React from 'react';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
|
||||
@@ -253,5 +255,5 @@ export default class EmailToLDAP extends React.Component {
|
||||
EmailToLDAP.defaultProps = {
|
||||
};
|
||||
EmailToLDAP.propTypes = {
|
||||
email: React.PropTypes.string
|
||||
email: PropTypes.string
|
||||
};
|
||||
|
||||
@@ -9,6 +9,8 @@ import Constants from 'utils/constants.jsx';
|
||||
import {checkMfa} from 'actions/user_actions.jsx';
|
||||
import {emailToOAuth} from 'actions/admin_actions.jsx';
|
||||
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
@@ -171,6 +173,6 @@ export default class EmailToOAuth extends React.Component {
|
||||
EmailToOAuth.defaultProps = {
|
||||
};
|
||||
EmailToOAuth.propTypes = {
|
||||
newType: React.PropTypes.string,
|
||||
email: React.PropTypes.string
|
||||
newType: PropTypes.string,
|
||||
email: PropTypes.string
|
||||
};
|
||||
|
||||
@@ -7,6 +7,8 @@ import * as Utils from 'utils/utils.jsx';
|
||||
|
||||
import {checkMfa, switchFromLdapToEmail} from 'actions/user_actions.jsx';
|
||||
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import React from 'react';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
|
||||
@@ -240,5 +242,5 @@ export default class LDAPToEmail extends React.Component {
|
||||
LDAPToEmail.defaultProps = {
|
||||
};
|
||||
LDAPToEmail.propTypes = {
|
||||
email: React.PropTypes.string
|
||||
email: PropTypes.string
|
||||
};
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
import * as Utils from 'utils/utils.jsx';
|
||||
import Constants from 'utils/constants.jsx';
|
||||
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import React from 'react';
|
||||
import ReactDOM from 'react-dom';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
@@ -139,6 +141,6 @@ export default class OAuthToEmail extends React.Component {
|
||||
OAuthToEmail.defaultProps = {
|
||||
};
|
||||
OAuthToEmail.propTypes = {
|
||||
currentType: React.PropTypes.string,
|
||||
email: React.PropTypes.string
|
||||
currentType: PropTypes.string,
|
||||
email: PropTypes.string
|
||||
};
|
||||
|
||||
Ссылка в новой задаче
Block a user