mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Merge pull request #215 from ascribe/feature/remove-signup
Remove signup
This commit is contained in:
commit
802b4e84ce
@ -73,8 +73,8 @@ gulp.task('js:build', function() {
|
|||||||
gulp.task('serve', ['browser-sync', 'run-server', 'sass:build', 'sass:watch', 'copy'], function() {
|
gulp.task('serve', ['browser-sync', 'run-server', 'sass:build', 'sass:watch', 'copy'], function() {
|
||||||
bundle(true);
|
bundle(true);
|
||||||
|
|
||||||
// opens the browser window with the correct url, which is localhost.com
|
// opens the browser window with the correct url, which is localhost:300
|
||||||
opn('http://www.localhost.com:3000');
|
opn('http://localhost:3000');
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('jest', function(done) {
|
gulp.task('jest', function(done) {
|
||||||
|
@ -130,7 +130,6 @@ let Header = React.createClass({
|
|||||||
const { unfilteredPieceListCount } = this.state;
|
const { unfilteredPieceListCount } = this.state;
|
||||||
|
|
||||||
let account;
|
let account;
|
||||||
let signup;
|
|
||||||
let navRoutesLinks;
|
let navRoutesLinks;
|
||||||
|
|
||||||
if (currentUser.username) {
|
if (currentUser.username) {
|
||||||
@ -188,13 +187,6 @@ let Header = React.createClass({
|
|||||||
</NavItem>
|
</NavItem>
|
||||||
</LinkContainer>
|
</LinkContainer>
|
||||||
);
|
);
|
||||||
signup = (
|
|
||||||
<LinkContainer to="/signup">
|
|
||||||
<NavItem>
|
|
||||||
{getLangText('SIGNUP')}
|
|
||||||
</NavItem>
|
|
||||||
</LinkContainer>
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@ -216,7 +208,6 @@ let Header = React.createClass({
|
|||||||
<Nav navbar right>
|
<Nav navbar right>
|
||||||
<HeaderNotificationDebug show={false} />
|
<HeaderNotificationDebug show={false} />
|
||||||
{account}
|
{account}
|
||||||
{signup}
|
|
||||||
</Nav>
|
</Nav>
|
||||||
<HeaderNotifications currentUser={currentUser} />
|
<HeaderNotifications currentUser={currentUser} />
|
||||||
{navRoutesLinks}
|
{navRoutesLinks}
|
||||||
|
@ -31,7 +31,6 @@ let LoginContainer = React.createClass({
|
|||||||
location={location}
|
location={location}
|
||||||
whitelabelName={whitelabelName} />
|
whitelabelName={whitelabelName} />
|
||||||
<div className="ascribe-login-text">
|
<div className="ascribe-login-text">
|
||||||
{getLangText(`Not a ${whitelabelName || 'ascribe'} user`)}? <Link to="/signup">{getLangText('Sign up')}...</Link><br/>
|
|
||||||
{getLangText('Forgot my password')}? <Link to="/password_reset">{getLangText('Rescue me')}...</Link>
|
{getLangText('Forgot my password')}? <Link to="/password_reset">{getLangText('Rescue me')}...</Link>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -57,15 +57,6 @@ const PRLanding = React.createClass({
|
|||||||
if (this.state.prize && this.state.prize.active) {
|
if (this.state.prize && this.state.prize.active) {
|
||||||
return (
|
return (
|
||||||
<ButtonGroup className="enter" bsSize="large" vertical>
|
<ButtonGroup className="enter" bsSize="large" vertical>
|
||||||
<LinkContainer to="/signup">
|
|
||||||
<Button>
|
|
||||||
{getLangText('Sign up to submit')}
|
|
||||||
</Button>
|
|
||||||
</LinkContainer>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
{getLangText('or, already an ascribe user?')}
|
|
||||||
</p>
|
|
||||||
<LinkContainer to="/login">
|
<LinkContainer to="/login">
|
||||||
<Button>
|
<Button>
|
||||||
{getLangText('Log in to submit')}
|
{getLangText('Log in to submit')}
|
||||||
@ -76,13 +67,6 @@ const PRLanding = React.createClass({
|
|||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<ButtonGroup className="enter" bsSize="large" vertical>
|
<ButtonGroup className="enter" bsSize="large" vertical>
|
||||||
<a className="btn btn-default" href="https://www.ascribe.io/app/signup">
|
|
||||||
{getLangText('Sign up to ascribe')}
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
{getLangText('or, already an ascribe user?')}
|
|
||||||
</p>
|
|
||||||
<LinkContainer to="/login">
|
<LinkContainer to="/login">
|
||||||
<Button>
|
<Button>
|
||||||
{getLangText('Log in')}
|
{getLangText('Log in')}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Route, IndexRoute } from 'react-router';
|
import { Route, IndexRoute, Redirect } from 'react-router';
|
||||||
|
|
||||||
import { ProxyHandler, AuthRedirect } from '../../../components/ascribe_routes/proxy_handler';
|
import { ProxyHandler, AuthRedirect } from '../../../components/ascribe_routes/proxy_handler';
|
||||||
import { AuthPrizeRoleRedirect } from './portfolioreview/components/pr_routes/pr_proxy_handler';
|
import { AuthPrizeRoleRedirect } from './portfolioreview/components/pr_routes/pr_proxy_handler';
|
||||||
@ -16,7 +16,6 @@ import ErrorNotFoundPage from '../../error_not_found_page';
|
|||||||
import SPApp from './simple_prize/prize_app';
|
import SPApp from './simple_prize/prize_app';
|
||||||
import SPLanding from './simple_prize/components/prize_landing';
|
import SPLanding from './simple_prize/components/prize_landing';
|
||||||
import SPLoginContainer from './simple_prize/components/prize_login_container';
|
import SPLoginContainer from './simple_prize/components/prize_login_container';
|
||||||
import SPSignupContainer from './simple_prize/components/prize_signup_container';
|
|
||||||
import SPRegisterPiece from './simple_prize/components/prize_register_piece';
|
import SPRegisterPiece from './simple_prize/components/prize_register_piece';
|
||||||
import SPPieceList from './simple_prize/components/prize_piece_list';
|
import SPPieceList from './simple_prize/components/prize_piece_list';
|
||||||
import SPPieceContainer from './simple_prize/components/ascribe_detail/prize_piece_container';
|
import SPPieceContainer from './simple_prize/components/ascribe_detail/prize_piece_container';
|
||||||
@ -42,9 +41,8 @@ const ROUTES = {
|
|||||||
<Route
|
<Route
|
||||||
path='logout'
|
path='logout'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
||||||
<Route
|
<Redirect from='signup' to='login' />
|
||||||
path='signup'
|
<Route path='signup' />
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SPSignupContainer)} />
|
|
||||||
<Route
|
<Route
|
||||||
path='password_reset'
|
path='password_reset'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
||||||
@ -93,12 +91,8 @@ const ROUTES = {
|
|||||||
<Route
|
<Route
|
||||||
path='logout'
|
path='logout'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
||||||
<Route
|
<Redirect from='signup' to='login' />
|
||||||
path='signup'
|
<Route path='signup' />
|
||||||
component={ProxyHandler(
|
|
||||||
AuthPrizeRoleRedirect({ to: '/collection', when: ['is_admin', 'is_judge', 'is_jury'] }),
|
|
||||||
AuthRedirect({to: '/register_piece', when: 'loggedIn'})
|
|
||||||
)(SPSignupContainer)} />
|
|
||||||
<Route
|
<Route
|
||||||
path='password_reset'
|
path='password_reset'
|
||||||
component={ProxyHandler(
|
component={ProxyHandler(
|
||||||
|
@ -44,15 +44,6 @@ let Landing = React.createClass({
|
|||||||
if (this.state.prize && this.state.prize.active) {
|
if (this.state.prize && this.state.prize.active) {
|
||||||
return (
|
return (
|
||||||
<ButtonGroup className="enter" bsSize="large" vertical>
|
<ButtonGroup className="enter" bsSize="large" vertical>
|
||||||
<LinkContainer to="/signup">
|
|
||||||
<Button>
|
|
||||||
{getLangText('Sign up to submit')}
|
|
||||||
</Button>
|
|
||||||
</LinkContainer>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
{getLangText('or, already an ascribe user?')}
|
|
||||||
</p>
|
|
||||||
<LinkContainer to="/login">
|
<LinkContainer to="/login">
|
||||||
<Button>
|
<Button>
|
||||||
{getLangText('Log in to submit')}
|
{getLangText('Log in to submit')}
|
||||||
@ -63,13 +54,6 @@ let Landing = React.createClass({
|
|||||||
} else {
|
} else {
|
||||||
return (
|
return (
|
||||||
<ButtonGroup className="enter" bsSize="large" vertical>
|
<ButtonGroup className="enter" bsSize="large" vertical>
|
||||||
<a className="btn btn-default" href="https://www.ascribe.io/app/signup">
|
|
||||||
{getLangText('Sign up to ascribe')}
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
{getLangText('or, already an ascribe user?')}
|
|
||||||
</p>
|
|
||||||
<LinkContainer to="/login">
|
<LinkContainer to="/login">
|
||||||
<Button>
|
<Button>
|
||||||
{getLangText('Log in')}
|
{getLangText('Log in')}
|
||||||
|
@ -28,10 +28,6 @@ let LoginContainer = React.createClass({
|
|||||||
headerMessage={getLangText('Log in with ascribe')}
|
headerMessage={getLangText('Log in with ascribe')}
|
||||||
location={this.props.location} />
|
location={this.props.location} />
|
||||||
<div className="ascribe-login-text">
|
<div className="ascribe-login-text">
|
||||||
{getLangText('I\'m not a user') + ' '}
|
|
||||||
<Link to="/signup">{getLangText('Sign up...')}</Link>
|
|
||||||
<br />
|
|
||||||
|
|
||||||
{getLangText('I forgot my password') + ' '}
|
{getLangText('I forgot my password') + ' '}
|
||||||
<Link to="/password_reset">{getLangText('Rescue me...')}</Link>
|
<Link to="/password_reset">{getLangText('Rescue me...')}</Link>
|
||||||
</div>
|
</div>
|
||||||
|
@ -51,16 +51,6 @@ let Vivi23Landing = React.createClass({
|
|||||||
</Button>
|
</Button>
|
||||||
</LinkContainer>
|
</LinkContainer>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-xs-6">
|
|
||||||
<p>
|
|
||||||
{getLangText('Do you need an account?')}
|
|
||||||
</p>
|
|
||||||
<LinkContainer to="/signup">
|
|
||||||
<Button>
|
|
||||||
{getLangText('Sign up')}
|
|
||||||
</Button>
|
|
||||||
</LinkContainer>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -43,16 +43,6 @@ let ArtcityLanding = React.createClass({
|
|||||||
</Button>
|
</Button>
|
||||||
</LinkContainer>
|
</LinkContainer>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-xs-6">
|
|
||||||
<p>
|
|
||||||
{getLangText('Do you need an account?')}
|
|
||||||
</p>
|
|
||||||
<LinkContainer to="/signup">
|
|
||||||
<Button>
|
|
||||||
{getLangText('Sign up')}
|
|
||||||
</Button>
|
|
||||||
</LinkContainer>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -49,16 +49,6 @@ let CylandLanding = React.createClass({
|
|||||||
</Button>
|
</Button>
|
||||||
</LinkContainer>
|
</LinkContainer>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-xs-6">
|
|
||||||
<p>
|
|
||||||
{getLangText('Do you need an account?')}
|
|
||||||
</p>
|
|
||||||
<LinkContainer to="/signup">
|
|
||||||
<Button>
|
|
||||||
{getLangText('Sign up')}
|
|
||||||
</Button>
|
|
||||||
</LinkContainer>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -46,16 +46,6 @@ let DemoLanding = React.createClass({
|
|||||||
</Button>
|
</Button>
|
||||||
</LinkContainer>
|
</LinkContainer>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-xs-6">
|
|
||||||
<p>
|
|
||||||
{getLangText('Do you need an account?')}
|
|
||||||
</p>
|
|
||||||
<LinkContainer to="/signup">
|
|
||||||
<Button>
|
|
||||||
{getLangText('Sign up')}
|
|
||||||
</Button>
|
|
||||||
</LinkContainer>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -48,16 +48,6 @@ let LumenusLanding = React.createClass({
|
|||||||
</Button>
|
</Button>
|
||||||
</LinkContainer>
|
</LinkContainer>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-xs-6">
|
|
||||||
<p>
|
|
||||||
{getLangText('Do you need an account?')}
|
|
||||||
</p>
|
|
||||||
<LinkContainer to="/signup">
|
|
||||||
<Button>
|
|
||||||
{getLangText('Sign up')}
|
|
||||||
</Button>
|
|
||||||
</LinkContainer>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -52,16 +52,6 @@ let MarketLanding = React.createClass({
|
|||||||
</Button>
|
</Button>
|
||||||
</LinkContainer>
|
</LinkContainer>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-xs-6">
|
|
||||||
<p>
|
|
||||||
{getLangText('Do you need an account?')}
|
|
||||||
</p>
|
|
||||||
<LinkContainer to="/signup">
|
|
||||||
<Button>
|
|
||||||
{getLangText('Sign up')}
|
|
||||||
</Button>
|
|
||||||
</LinkContainer>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -46,16 +46,6 @@ let PollineLanding = React.createClass({
|
|||||||
</Button>
|
</Button>
|
||||||
</LinkContainer>
|
</LinkContainer>
|
||||||
</div>
|
</div>
|
||||||
<div className="col-xs-6">
|
|
||||||
<p>
|
|
||||||
{getLangText('Do you need an account?')}
|
|
||||||
</p>
|
|
||||||
<LinkContainer to="/signup">
|
|
||||||
<Button>
|
|
||||||
{getLangText('Sign up')}
|
|
||||||
</Button>
|
|
||||||
</LinkContainer>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Route, IndexRoute } from 'react-router';
|
import { Route, IndexRoute, Redirect } from 'react-router';
|
||||||
|
|
||||||
import { ProxyHandler, AuthRedirect } from '../../../components/ascribe_routes/proxy_handler';
|
import { ProxyHandler, AuthRedirect } from '../../../components/ascribe_routes/proxy_handler';
|
||||||
|
|
||||||
@ -9,7 +9,6 @@ import { ProxyHandler, AuthRedirect } from '../../../components/ascribe_routes/p
|
|||||||
import CoaVerifyContainer from '../../../components/coa_verify_container';
|
import CoaVerifyContainer from '../../../components/coa_verify_container';
|
||||||
import LoginContainer from '../../../components/login_container';
|
import LoginContainer from '../../../components/login_container';
|
||||||
import LogoutContainer from '../../../components/logout_container';
|
import LogoutContainer from '../../../components/logout_container';
|
||||||
import SignupContainer from '../../../components/signup_container';
|
|
||||||
import PasswordResetContainer from '../../../components/password_reset_container';
|
import PasswordResetContainer from '../../../components/password_reset_container';
|
||||||
import PieceList from '../../../components/piece_list';
|
import PieceList from '../../../components/piece_list';
|
||||||
import PieceContainer from '../../../components/ascribe_detail/piece_container';
|
import PieceContainer from '../../../components/ascribe_detail/piece_container';
|
||||||
@ -69,9 +68,8 @@ let ROUTES = {
|
|||||||
<Route
|
<Route
|
||||||
path='logout'
|
path='logout'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
||||||
<Route
|
<Redirect from='signup' to='login' />
|
||||||
path='signup'
|
<Route path='signup' />
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)} />
|
|
||||||
<Route
|
<Route
|
||||||
path='password_reset'
|
path='password_reset'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
||||||
@ -113,9 +111,8 @@ let ROUTES = {
|
|||||||
<Route
|
<Route
|
||||||
path='logout'
|
path='logout'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
||||||
<Route
|
<Redirect from='signup' to='login' />
|
||||||
path='signup'
|
<Route path='signup' />
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)} />
|
|
||||||
<Route
|
<Route
|
||||||
path='password_reset'
|
path='password_reset'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
||||||
@ -158,9 +155,8 @@ let ROUTES = {
|
|||||||
<Route
|
<Route
|
||||||
path='logout'
|
path='logout'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
||||||
<Route
|
<Redirect from='signup' to='login' />
|
||||||
path='signup'
|
<Route path='signup' />
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)} />
|
|
||||||
<Route
|
<Route
|
||||||
path='password_reset'
|
path='password_reset'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
||||||
@ -212,9 +208,8 @@ let ROUTES = {
|
|||||||
<Route
|
<Route
|
||||||
path='logout'
|
path='logout'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
||||||
<Route
|
<Redirect from='signup' to='login' />
|
||||||
path='signup'
|
<Route path='signup' />
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)} />
|
|
||||||
<Route
|
<Route
|
||||||
path='password_reset'
|
path='password_reset'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
||||||
@ -259,10 +254,8 @@ let ROUTES = {
|
|||||||
path='logout'
|
path='logout'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)}
|
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)}
|
||||||
footer={MarketFooter} />
|
footer={MarketFooter} />
|
||||||
<Route
|
<Redirect from='signup' to='login' />
|
||||||
path='signup'
|
<Route path='signup' />
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)}
|
|
||||||
footer={MarketFooter} />
|
|
||||||
<Route
|
<Route
|
||||||
path='password_reset'
|
path='password_reset'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)}
|
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)}
|
||||||
@ -314,9 +307,8 @@ let ROUTES = {
|
|||||||
<Route
|
<Route
|
||||||
path='logout'
|
path='logout'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
||||||
<Route
|
<Redirect from='signup' to='login' />
|
||||||
path='signup'
|
<Route path='signup' />
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)} />
|
|
||||||
<Route
|
<Route
|
||||||
path='password_reset'
|
path='password_reset'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
||||||
@ -351,9 +343,8 @@ let ROUTES = {
|
|||||||
<Route
|
<Route
|
||||||
path='logout'
|
path='logout'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
||||||
<Route
|
<Redirect from='signup' to='login' />
|
||||||
path='signup'
|
<Route path='signup' />
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)} />
|
|
||||||
<Route
|
<Route
|
||||||
path='password_reset'
|
path='password_reset'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
||||||
@ -388,9 +379,8 @@ let ROUTES = {
|
|||||||
<Route
|
<Route
|
||||||
path='logout'
|
path='logout'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
||||||
<Route
|
<Redirect from='signup' to='login' />
|
||||||
path='signup'
|
<Route path='signup' />
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)} />
|
|
||||||
<Route
|
<Route
|
||||||
path='password_reset'
|
path='password_reset'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
||||||
@ -425,9 +415,8 @@ let ROUTES = {
|
|||||||
<Route
|
<Route
|
||||||
path='logout'
|
path='logout'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
||||||
<Route
|
<Redirect from='signup' to='login' />
|
||||||
path='signup'
|
<Route path='signup' />
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)} />
|
|
||||||
<Route
|
<Route
|
||||||
path='password_reset'
|
path='password_reset'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
||||||
@ -461,9 +450,8 @@ let ROUTES = {
|
|||||||
<Route
|
<Route
|
||||||
path='logout'
|
path='logout'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
||||||
<Route
|
<Redirect from='signup' to='login' />
|
||||||
path='signup'
|
<Route path='signup' />
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)} />
|
|
||||||
<Route
|
<Route
|
||||||
path='password_reset'
|
path='password_reset'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { Route } from 'react-router';
|
import { Route, Redirect } from 'react-router';
|
||||||
|
|
||||||
import getPrizeRoutes from './components/whitelabel/prize/prize_routes';
|
import getPrizeRoutes from './components/whitelabel/prize/prize_routes';
|
||||||
import getWalletRoutes from './components/whitelabel/wallet/wallet_routes';
|
import getWalletRoutes from './components/whitelabel/wallet/wallet_routes';
|
||||||
@ -14,7 +14,6 @@ import EditionContainer from './components/ascribe_detail/edition_container';
|
|||||||
|
|
||||||
import LoginContainer from './components/login_container';
|
import LoginContainer from './components/login_container';
|
||||||
import LogoutContainer from './components/logout_container';
|
import LogoutContainer from './components/logout_container';
|
||||||
import SignupContainer from './components/signup_container';
|
|
||||||
import PasswordResetContainer from './components/password_reset_container';
|
import PasswordResetContainer from './components/password_reset_container';
|
||||||
|
|
||||||
import ContractSettings from './components/ascribe_settings/contract_settings';
|
import ContractSettings from './components/ascribe_settings/contract_settings';
|
||||||
@ -49,10 +48,8 @@ const COMMON_ROUTES = (
|
|||||||
headerTitle={getLangText('COLLECTION')}
|
headerTitle={getLangText('COLLECTION')}
|
||||||
disableOn='noPieces'
|
disableOn='noPieces'
|
||||||
footer={Footer} />
|
footer={Footer} />
|
||||||
<Route
|
<Redirect from="signup" to="login" />
|
||||||
path='signup'
|
<Route path='signup' />
|
||||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)}
|
|
||||||
footer={Footer} />
|
|
||||||
<Route
|
<Route
|
||||||
path='logout'
|
path='logout'
|
||||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(LogoutContainer)}
|
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(LogoutContainer)}
|
||||||
|
@ -77,9 +77,6 @@ gemini.suite('Basic', (suite) => {
|
|||||||
.capture('hover on login submit', (actions, find) => {
|
.capture('hover on login submit', (actions, find) => {
|
||||||
actions.mouseMove(find('.ascribe-form button[type=submit]'));
|
actions.mouseMove(find('.ascribe-form button[type=submit]'));
|
||||||
})
|
})
|
||||||
.capture('hover on sign up link', (actions, find) => {
|
|
||||||
actions.mouseMove(find('.ascribe-login-text a[href="/signup"]'));
|
|
||||||
})
|
|
||||||
.capture('login form filled with focus', (actions, find) => {
|
.capture('login form filled with focus', (actions, find) => {
|
||||||
const emailInput = find('.ascribe-form input[name=email]');
|
const emailInput = find('.ascribe-form input[name=email]');
|
||||||
|
|
||||||
@ -94,22 +91,6 @@ gemini.suite('Basic', (suite) => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
gemini.suite('Sign up', (signUpSuite) => {
|
|
||||||
signUpSuite
|
|
||||||
.setUrl('/signup')
|
|
||||||
.capture('sign up', (actions, find) => {
|
|
||||||
actions.waitForElementToShow('.ascribe-form', TIMEOUTS.NORMAL);
|
|
||||||
})
|
|
||||||
.capture('sign up form filled with focus', (actions, find) => {
|
|
||||||
actions.sendKeys(find('.ascribe-form input[name=email]'), MAIN_USER.email);
|
|
||||||
actions.sendKeys(find('.ascribe-form input[name=password]'), MAIN_USER.password);
|
|
||||||
actions.sendKeys(find('.ascribe-form input[name=password_confirm]'), MAIN_USER.password);
|
|
||||||
})
|
|
||||||
.capture('sign up form filled with check', (actions, find) => {
|
|
||||||
actions.click(find('.ascribe-form input[type="checkbox"] ~ .checkbox'));
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
gemini.suite('Password reset', (passwordResetSuite) => {
|
gemini.suite('Password reset', (passwordResetSuite) => {
|
||||||
passwordResetSuite
|
passwordResetSuite
|
||||||
.setUrl('/password_reset')
|
.setUrl('/password_reset')
|
||||||
|
@ -59,9 +59,6 @@ gemini.suite('Ikonotv', (suite) => {
|
|||||||
.capture('hover on login submit', (actions, find) => {
|
.capture('hover on login submit', (actions, find) => {
|
||||||
actions.mouseMove(find('.ascribe-form button[type=submit]'));
|
actions.mouseMove(find('.ascribe-form button[type=submit]'));
|
||||||
})
|
})
|
||||||
.capture('hover on sign up link', (actions, find) => {
|
|
||||||
actions.mouseMove(find('.ascribe-login-text a[href="/signup"]'));
|
|
||||||
})
|
|
||||||
.capture('login form filled with focus', (actions, find) => {
|
.capture('login form filled with focus', (actions, find) => {
|
||||||
const emailInput = find('.ascribe-form input[name=email]');
|
const emailInput = find('.ascribe-form input[name=email]');
|
||||||
|
|
||||||
@ -75,20 +72,6 @@ gemini.suite('Ikonotv', (suite) => {
|
|||||||
actions.click(find('.ascribe-form-header'));
|
actions.click(find('.ascribe-form-header'));
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
gemini.suite('Sign up', (signUpSuite) => {
|
|
||||||
signUpSuite
|
|
||||||
.setUrl('/signup')
|
|
||||||
.capture('sign up')
|
|
||||||
.capture('sign up form filled with focus', (actions, find) => {
|
|
||||||
actions.sendKeys(find('.ascribe-form input[name=email]'), MAIN_USER.email);
|
|
||||||
actions.sendKeys(find('.ascribe-form input[name=password]'), MAIN_USER.password);
|
|
||||||
actions.sendKeys(find('.ascribe-form input[name=password_confirm]'), MAIN_USER.password);
|
|
||||||
})
|
|
||||||
.capture('sign up form filled with check', (actions, find) => {
|
|
||||||
actions.click(find('.ascribe-form input[type="checkbox"] ~ .checkbox'));
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: add more tests for ikonotv specific pages after authentication
|
// TODO: add more tests for ikonotv specific pages after authentication
|
||||||
|
@ -37,9 +37,6 @@ gemini.suite('Whitelabel basic', (suite) => {
|
|||||||
.capture('hover on login submit', (actions, find) => {
|
.capture('hover on login submit', (actions, find) => {
|
||||||
actions.mouseMove(find('.ascribe-form button[type=submit]'));
|
actions.mouseMove(find('.ascribe-form button[type=submit]'));
|
||||||
})
|
})
|
||||||
.capture('hover on sign up link', (actions, find) => {
|
|
||||||
actions.mouseMove(find('.ascribe-login-text a[href="/signup"]'));
|
|
||||||
})
|
|
||||||
.capture('login form filled with focus', (actions, find) => {
|
.capture('login form filled with focus', (actions, find) => {
|
||||||
const emailInput = find('.ascribe-form input[name=email]');
|
const emailInput = find('.ascribe-form input[name=email]');
|
||||||
|
|
||||||
@ -54,26 +51,6 @@ gemini.suite('Whitelabel basic', (suite) => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
gemini.suite('Sign up', (signUpSuite) => {
|
|
||||||
signUpSuite
|
|
||||||
.setUrl('/signup')
|
|
||||||
// See Ikono
|
|
||||||
.skip(/Ikono/)
|
|
||||||
.capture('sign up', (actions, find) => {
|
|
||||||
actions.waitForElementToShow('.ascribe-form', TIMEOUTS.NORMAL);
|
|
||||||
// Wait in case the form reloads due to other assets loading
|
|
||||||
actions.wait(500);
|
|
||||||
})
|
|
||||||
.capture('sign up form filled with focus', (actions, find) => {
|
|
||||||
actions.sendKeys(find('.ascribe-form input[name=email]'), MAIN_USER.email);
|
|
||||||
actions.sendKeys(find('.ascribe-form input[name=password]'), MAIN_USER.password);
|
|
||||||
actions.sendKeys(find('.ascribe-form input[name=password_confirm]'), MAIN_USER.password);
|
|
||||||
})
|
|
||||||
.capture('sign up form filled with check', (actions, find) => {
|
|
||||||
actions.click(find('.ascribe-form input[type="checkbox"] ~ .checkbox'));
|
|
||||||
});
|
|
||||||
});
|
|
||||||
|
|
||||||
gemini.suite('Password reset', (passwordResetSuite) => {
|
gemini.suite('Password reset', (passwordResetSuite) => {
|
||||||
passwordResetSuite
|
passwordResetSuite
|
||||||
.setUrl('/password_reset')
|
.setUrl('/password_reset')
|
||||||
|
Loading…
Reference in New Issue
Block a user