File size: 2,748 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
import { localize } from 'i18n-calypso';
import PropTypes from 'prop-types';
import { Component } from 'react';
import DocumentHead from 'calypso/components/data/document-head';
import QueryAccountRecoverySettings from 'calypso/components/data/query-account-recovery-settings';
import QueryUserSettings from 'calypso/components/data/query-user-settings';
import Main from 'calypso/components/main';
import NavigationHeader from 'calypso/components/navigation-header';
import SectionHeader from 'calypso/components/section-header';
import VerticalNav from 'calypso/components/vertical-nav';
import PageViewTracker from 'calypso/lib/analytics/page-view-tracker';
import twoStepAuthorization from 'calypso/lib/two-step-authorization';
import ReauthRequired from 'calypso/me/reauth-required';
import SecurityCheckupAccountEmail from './account-email';
import SecurityCheckupAccountRecoveryEmail from './account-recovery-email';
import SecurityCheckupAccountRecoveryPhone from './account-recovery-phone';
import SecurityCheckupConnectedApplications from './connected-applications';
import SecurityCheckupPassword from './password';
import SecurityCheckupSocialLogins from './social-logins';
import { SecurityCheckupSSHKey } from './ssh-key';
import SecurityCheckupTwoFactorAuthentication from './two-factor-authentication';
import SecurityCheckupTwoFactorBackupCodes from './two-factor-backup-codes';
import './style.scss';
class SecurityCheckupComponent extends Component {
static propTypes = {
path: PropTypes.string,
translate: PropTypes.func.isRequired,
};
render() {
const { path, translate } = this.props;
return (
<Main wideLayout className="security security-checkup">
<PageViewTracker path={ path } title="Me > Security Checkup" />
<ReauthRequired twoStepAuthorization={ twoStepAuthorization } />
<QueryAccountRecoverySettings />
<QueryUserSettings />
<DocumentHead title={ translate( 'Security' ) } />
<NavigationHeader navigationItems={ [] } title={ translate( 'Security' ) } />
<SectionHeader label={ translate( 'Security Checklist' ) } />
<VerticalNav>
<SecurityCheckupPassword />
<SecurityCheckupAccountEmail />
<SecurityCheckupTwoFactorAuthentication />
<SecurityCheckupTwoFactorBackupCodes />
<SecurityCheckupAccountRecoveryEmail />
<SecurityCheckupAccountRecoveryPhone />
<SecurityCheckupSSHKey />
</VerticalNav>
<SectionHeader label={ translate( 'Connections' ) } className="security-checkup__info" />
<VerticalNav className="security-checkup__info-nav">
<SecurityCheckupConnectedApplications />
<SecurityCheckupSocialLogins />
</VerticalNav>
</Main>
);
}
}
export default localize( SecurityCheckupComponent );
|