Создал директории для каждого компонента auth

This commit is contained in:
SleepWalker 2016-03-13 10:50:09 +02:00
parent 518901fb57
commit 41015ca336
27 changed files with 18 additions and 18 deletions

View File

@ -3,7 +3,7 @@
*/
import React, { Component, PropTypes } from 'react';
import AuthError from './AuthError';
import AuthError from 'components/auth/authError/AuthError';
import { userShape } from 'components/user/User';
export default class BaseAuthBody extends Component {

View File

@ -6,7 +6,7 @@ import Helmet from 'react-helmet';
import buttons from 'components/ui/buttons.scss';
import { Input } from 'components/ui/Form';
import BaseAuthBody from './BaseAuthBody';
import BaseAuthBody from 'components/auth/BaseAuthBody';
import styles from './activation.scss';
import messages from './Activation.messages';

View File

@ -6,7 +6,7 @@ import Helmet from 'react-helmet';
import buttons from 'components/ui/buttons.scss';
import { Input } from 'components/ui/Form';
import BaseAuthBody from './BaseAuthBody';
import BaseAuthBody from 'components/auth/BaseAuthBody';
import messages from './ForgotPassword.messages';
import styles from './forgotPassword.scss';

View File

@ -7,9 +7,9 @@ import { Link } from 'react-router';
import buttons from 'components/ui/buttons.scss';
import { Input } from 'components/ui/Form';
import BaseAuthBody from './BaseAuthBody';
import BaseAuthBody from 'components/auth/BaseAuthBody';
import passwordMessages from 'components/auth/password/Password.messages';
import messages from './Login.messages';
import passwordMessages from './Password.messages';
class Body extends BaseAuthBody {
static displayName = 'LoginBody';

View File

@ -8,7 +8,7 @@ import buttons from 'components/ui/buttons.scss';
import icons from 'components/ui/icons.scss';
import { Input, Checkbox } from 'components/ui/Form';
import BaseAuthBody from './BaseAuthBody';
import BaseAuthBody from 'components/auth/BaseAuthBody';
import styles from './password.scss';
import messages from './Password.messages';

View File

@ -6,7 +6,7 @@ import Helmet from 'react-helmet';
import buttons from 'components/ui/buttons.scss';
import { Input } from 'components/ui/Form';
import BaseAuthBody from './BaseAuthBody';
import BaseAuthBody from 'components/auth/BaseAuthBody';
import passwordChangedMessages from './PasswordChange.messages';
import icons from 'components/ui/icons.scss';

View File

@ -7,7 +7,7 @@ import buttons from 'components/ui/buttons.scss';
import icons from 'components/ui/icons.scss';
import { PanelBodyHeader } from 'components/ui/Panel';
import BaseAuthBody from './BaseAuthBody';
import BaseAuthBody from 'components/auth/BaseAuthBody';
import styles from './permissions.scss';
import messages from './Permissions.messages';

View File

@ -6,9 +6,9 @@ import Helmet from 'react-helmet';
import buttons from 'components/ui/buttons.scss';
import { Input, Checkbox } from 'components/ui/Form';
import BaseAuthBody from './BaseAuthBody';
import BaseAuthBody from 'components/auth/BaseAuthBody';
import activationMessages from 'components/auth/activation/Activation.messages';
import messages from './Register.messages';
import activationMessages from './Activation.messages';
// TODO: password and username can be validate for length and sameness

View File

@ -2,7 +2,7 @@ import React, { Component, PropTypes } from 'react';
import { connect } from 'react-redux';
import AppInfo from 'components/auth/AppInfo';
import AppInfo from 'components/auth/appInfo/AppInfo';
import PanelTransition from 'components/auth/PanelTransition';
import styles from './auth.scss';

View File

@ -8,14 +8,14 @@ import AuthPage from 'pages/auth/AuthPage';
import { authenticate } from 'components/user/actions';
import OAuthInit from 'components/auth/OAuthInit';
import Register from 'components/auth/Register';
import Login from 'components/auth/Login';
import Permissions from 'components/auth/Permissions';
import Activation from 'components/auth/Activation';
import Password from 'components/auth/Password';
import Register from 'components/auth/register/Register';
import Login from 'components/auth/login/Login';
import Permissions from 'components/auth/permissions/Permissions';
import Activation from 'components/auth/activation/Activation';
import Password from 'components/auth/password/Password';
import Logout from 'components/auth/Logout';
import PasswordChange from 'components/auth/PasswordChange';
import ForgotPassword from 'components/auth/ForgotPassword';
import PasswordChange from 'components/auth/passwordChange/PasswordChange';
import ForgotPassword from 'components/auth/forgotPassword/ForgotPassword';
import authFlow from 'services/authFlow';