mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 17:33:14 +01:00
Merge with main AD-1396 branch
This commit is contained in:
commit
946d80e94f
@ -4,7 +4,6 @@ import React from 'react';
|
||||
import classNames from 'classnames';
|
||||
import { History } from 'react-router';
|
||||
|
||||
import Footer from './footer';
|
||||
import GlobalNotification from './global_notification';
|
||||
|
||||
import AppConstants from '../constants/application_constants';
|
||||
@ -15,14 +14,10 @@ export default function AppBase(App) {
|
||||
displayName: 'AppBase',
|
||||
|
||||
propTypes: {
|
||||
children: React.PropTypes.element.isRequired,
|
||||
history: React.PropTypes.object.isRequired,
|
||||
location: React.PropTypes.object.isRequired,
|
||||
routes: React.PropTypes.arrayOf(React.PropTypes.object).isRequired,
|
||||
|
||||
children: React.PropTypes.oneOfType([
|
||||
React.PropTypes.arrayOf(React.PropTypes.element),
|
||||
React.PropTypes.element
|
||||
])
|
||||
routes: React.PropTypes.arrayOf(React.PropTypes.object).isRequired
|
||||
},
|
||||
|
||||
mixins: [History],
|
||||
@ -42,10 +37,17 @@ export default function AppBase(App) {
|
||||
},
|
||||
|
||||
render() {
|
||||
const { routes } = this.props;
|
||||
|
||||
// The second element of the routes prop given to us by react-router is always the
|
||||
// active second-level component object (ie. after App).
|
||||
const activeRoute = routes[1];
|
||||
|
||||
return (
|
||||
<div>
|
||||
<App {...this.props} />
|
||||
<Footer />
|
||||
<App
|
||||
{...this.props}
|
||||
activeRoute={activeRoute} />
|
||||
<GlobalNotification />
|
||||
<div id="modal" className="container" />
|
||||
</div>
|
||||
|
@ -3,21 +3,19 @@
|
||||
import React from 'react';
|
||||
|
||||
import AppBase from './app_base';
|
||||
import Footer from './footer';
|
||||
import Header from './header';
|
||||
|
||||
|
||||
let AscribeApp = React.createClass({
|
||||
propTypes: {
|
||||
routes: React.PropTypes.arrayOf(React.PropTypes.object).isRequired,
|
||||
|
||||
children: React.PropTypes.oneOfType([
|
||||
React.PropTypes.arrayOf(React.PropTypes.element),
|
||||
React.PropTypes.element
|
||||
])
|
||||
activeRoute: React.PropTypes.object.isRequired,
|
||||
children: React.PropTypes.element.isRequired,
|
||||
routes: React.PropTypes.arrayOf(React.PropTypes.object).isRequired
|
||||
},
|
||||
|
||||
render() {
|
||||
const { children, routes } = this.props;
|
||||
const { activeRoute, children, routes } = this.props;
|
||||
|
||||
return (
|
||||
<div className="ascribe-default-app">
|
||||
@ -26,6 +24,7 @@ let AscribeApp = React.createClass({
|
||||
{/* Routes are injected here */}
|
||||
{children}
|
||||
</div>
|
||||
<Footer activeRoute={activeRoute} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
@ -5,8 +5,12 @@ import React from 'react';
|
||||
import { getLangText } from '../utils/lang_utils';
|
||||
|
||||
let Footer = React.createClass({
|
||||
propTypes: {
|
||||
activeRoute: React.PropTypes.object.isRequired
|
||||
},
|
||||
|
||||
render() {
|
||||
return (
|
||||
return !this.props.activeRoute.hideFooter ? (
|
||||
<div className="ascribe-footer hidden-print">
|
||||
<p className="ascribe-sub-sub-statement">
|
||||
<br />
|
||||
@ -24,7 +28,7 @@ let Footer = React.createClass({
|
||||
<a href="https://www.linkedin.com/company/4816284?trk=vsrp_companies_res_name&trkInfo=VSRPsearchId%3A122827941425632318075%2CVSRPtargetId%3A4816284%2CVSRPcmpt%3Aprimary" className="social social-linked-in" target="_blank"></a>
|
||||
</p>
|
||||
</div>
|
||||
);
|
||||
) : null;
|
||||
}
|
||||
});
|
||||
|
||||
|
@ -11,6 +11,7 @@ import UserActions from '../../../../actions/user_actions';
|
||||
import Hero from './components/pr_hero';
|
||||
|
||||
import AppBase from '../../../app_base';
|
||||
import Footer from '../../../footer';
|
||||
import Header from '../../../header';
|
||||
|
||||
import { getSubdomain } from '../../../../utils/general_utils';
|
||||
@ -19,13 +20,10 @@ import { getCookie } from '../../../../utils/fetch_api_utils';
|
||||
|
||||
let PRApp = React.createClass({
|
||||
propTypes: {
|
||||
activeRoute: React.PropTypes.object.isRequired,
|
||||
children: React.PropTypes.element.isRequired,
|
||||
history: React.PropTypes.object.isRequired,
|
||||
routes: React.PropTypes.arrayOf(React.PropTypes.object).isRequired,
|
||||
|
||||
children: React.PropTypes.oneOfType([
|
||||
React.PropTypes.arrayOf(React.PropTypes.element),
|
||||
React.PropTypes.element
|
||||
])
|
||||
routes: React.PropTypes.arrayOf(React.PropTypes.object).isRequired
|
||||
},
|
||||
|
||||
getInitialState() {
|
||||
@ -60,7 +58,7 @@ let PRApp = React.createClass({
|
||||
|
||||
|
||||
render() {
|
||||
const { children, history, routes } = this.props;
|
||||
const { activeRoute, children, history, routes } = this.props;
|
||||
const { currentUser } = this.state;
|
||||
const subdomain = getSubdomain();
|
||||
|
||||
@ -88,6 +86,7 @@ let PRApp = React.createClass({
|
||||
{/* Routes are injected here */}
|
||||
{children}
|
||||
</div>
|
||||
<Footer activeRoute={activeRoute} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
@ -31,74 +31,116 @@ import { AuthPrizeRoleRedirect } from './portfolioreview/components/pr_routes/pr
|
||||
const ROUTES = {
|
||||
sluice: (
|
||||
<Route path='/' component={SPApp}>
|
||||
<IndexRoute component={SPLanding} />
|
||||
<IndexRoute
|
||||
component={SPLanding}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='login'
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SPLoginContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SPLoginContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='logout'
|
||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)}/>
|
||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='signup'
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SPSignupContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SPSignupContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='password_reset'
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='settings'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(SPSettingsContainer)}/>
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(SPSettingsContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='register_piece'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(SPRegisterPiece)}
|
||||
headerTitle='+ NEW WORK'/>
|
||||
headerTitle='+ NEW WORK'
|
||||
hideFooter />
|
||||
<Route
|
||||
path='collection'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(SPPieceList)}
|
||||
headerTitle='COLLECTION'/>
|
||||
<Route path='pieces/:pieceId' component={SluicePieceContainer} />
|
||||
<Route path='editions/:editionId' component={EditionContainer} />
|
||||
<Route path='verify' component={CoaVerifyContainer} />
|
||||
<Route path='*' component={ErrorNotFoundPage} />
|
||||
headerTitle='COLLECTION'
|
||||
hideFooter />
|
||||
<Route
|
||||
path='pieces/:pieceId'
|
||||
component={SluicePieceContainer}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='editions/:editionId'
|
||||
component={EditionContainer}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='verify'
|
||||
component={CoaVerifyContainer}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='*'
|
||||
component={ErrorNotFoundPage}
|
||||
hideFooter />
|
||||
</Route>
|
||||
),
|
||||
portfolioreview: (
|
||||
<Route path='/' component={PRApp}>
|
||||
<IndexRoute component={ProxyHandler(AuthPrizeRoleRedirect({ to: '/collection', when: ['is_admin', 'is_judge', 'is_jury'] }))(PRLanding)} />
|
||||
<IndexRoute
|
||||
component={ProxyHandler(AuthPrizeRoleRedirect({ to: '/collection', when: ['is_admin', 'is_judge', 'is_jury'] }))(PRLanding)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='register_piece'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(PRRegisterPiece)}/>
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(PRRegisterPiece)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='collection'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(SPPieceList)}
|
||||
headerTitle='SUBMISSIONS'/>
|
||||
headerTitle='SUBMISSIONS'
|
||||
hideFooter />
|
||||
<Route
|
||||
path='login'
|
||||
component={ProxyHandler(
|
||||
AuthPrizeRoleRedirect({ to: '/collection', when: ['is_admin', 'is_judge', 'is_jury'] }),
|
||||
AuthRedirect({to: '/register_piece', when: 'loggedIn'})
|
||||
)(SPLoginContainer)} />
|
||||
)(SPLoginContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='logout'
|
||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='signup'
|
||||
component={ProxyHandler(
|
||||
AuthPrizeRoleRedirect({ to: '/collection', when: ['is_admin', 'is_judge', 'is_jury'] }),
|
||||
AuthRedirect({to: '/register_piece', when: 'loggedIn'})
|
||||
)(SPSignupContainer)} />
|
||||
)(SPSignupContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='password_reset'
|
||||
component={ProxyHandler(
|
||||
AuthPrizeRoleRedirect({ to: '/collection', when: ['is_admin', 'is_judge', 'is_jury'] }),
|
||||
AuthRedirect({to: '/register_piece', when: 'loggedIn'})
|
||||
)(PasswordResetContainer)} />
|
||||
)(PasswordResetContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='settings'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(SPSettingsContainer)}/>
|
||||
<Route path='pieces/:pieceId' component={SPPieceContainer} />
|
||||
<Route path='editions/:editionId' component={EditionContainer} />
|
||||
<Route path='verify' component={CoaVerifyContainer} />
|
||||
<Route path='*' component={ErrorNotFoundPage} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(SPSettingsContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='pieces/:pieceId'
|
||||
component={SPPieceContainer}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='editions/:editionId'
|
||||
component={EditionContainer}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='verify'
|
||||
component={CoaVerifyContainer}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='*'
|
||||
component={ErrorNotFoundPage}
|
||||
hideFooter />
|
||||
</Route>
|
||||
)
|
||||
};
|
||||
|
@ -6,6 +6,7 @@ import classNames from 'classnames';
|
||||
import Hero from './components/prize_hero';
|
||||
|
||||
import AppBase from '../../../app_base';
|
||||
import Footer from '../../../footer';
|
||||
import Header from '../../../header';
|
||||
|
||||
import { getSubdomain } from '../../../../utils/general_utils';
|
||||
@ -13,17 +14,14 @@ import { getSubdomain } from '../../../../utils/general_utils';
|
||||
|
||||
let PrizeApp = React.createClass({
|
||||
propTypes: {
|
||||
activeRoute: React.PropTypes.object.isRequired,
|
||||
children: React.PropTypes.element.isRequired,
|
||||
history: React.PropTypes.object.isRequired,
|
||||
routes: React.PropTypes.arrayOf(React.PropTypes.object).isRequired,
|
||||
|
||||
children: React.PropTypes.oneOfType([
|
||||
React.PropTypes.arrayOf(React.PropTypes.element),
|
||||
React.PropTypes.element
|
||||
])
|
||||
routes: React.PropTypes.arrayOf(React.PropTypes.object).isRequired
|
||||
},
|
||||
|
||||
render() {
|
||||
const { children, history, routes } = this.props;
|
||||
const { activeRoute, children, history, routes } = this.props;
|
||||
const subdomain = getSubdomain();
|
||||
|
||||
// The second element of routes is always the active component object, where we can
|
||||
@ -45,6 +43,7 @@ let PrizeApp = React.createClass({
|
||||
{/* Routes are injected here */}
|
||||
{children}
|
||||
</div>
|
||||
<Footer activeRoute={activeRoute} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
@ -4,6 +4,7 @@ import React from 'react';
|
||||
import classNames from 'classnames';
|
||||
|
||||
import AppBase from '../../app_base';
|
||||
import Footer from '../../footer';
|
||||
import Header from '../../header';
|
||||
|
||||
import { getSubdomain } from '../../../utils/general_utils';
|
||||
@ -11,17 +12,14 @@ import { getSubdomain } from '../../../utils/general_utils';
|
||||
|
||||
let WalletApp = React.createClass({
|
||||
propTypes: {
|
||||
activeRoute: React.PropTypes.object.isRequired,
|
||||
children: React.PropTypes.element.isRequired,
|
||||
history: React.PropTypes.object.isRequired,
|
||||
routes: React.PropTypes.arrayOf(React.PropTypes.object).isRequired,
|
||||
|
||||
children: React.PropTypes.oneOfType([
|
||||
React.PropTypes.arrayOf(React.PropTypes.element),
|
||||
React.PropTypes.element
|
||||
])
|
||||
routes: React.PropTypes.arrayOf(React.PropTypes.object).isRequired
|
||||
},
|
||||
|
||||
render() {
|
||||
const { children, history, routes } = this.props;
|
||||
const { activeRoute, children, history, routes } = this.props;
|
||||
const subdomain = getSubdomain();
|
||||
|
||||
// The second element of routes is always the active component object, where we can
|
||||
@ -30,8 +28,9 @@ let WalletApp = React.createClass({
|
||||
|
||||
let header = null;
|
||||
// if the path of the current activeRoute is not defined, then this is the IndexRoute
|
||||
if ((!path || history.isActive('/login') || history.isActive('/signup') || history.isActive('/contract_notifications'))
|
||||
&& (['cyland', 'ikonotv', 'lumenus', '23vivi']).indexOf(subdomain) > -1) {
|
||||
if ((!path || history.isActive('/login') || history.isActive('/signup') ||
|
||||
history.isActive('/contract_notifications')) &&
|
||||
(['cyland', 'ikonotv', 'lumenus', '23vivi']).includes(subdomain)) {
|
||||
header = (<div className="hero" />);
|
||||
} else {
|
||||
header = (<Header routes={routes} />);
|
||||
@ -46,6 +45,7 @@ let WalletApp = React.createClass({
|
||||
{/* Routes are injected here */}
|
||||
{children}
|
||||
</div>
|
||||
<Footer activeRoute={activeRoute} />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
@ -48,193 +48,302 @@ import WalletApp from './wallet_app';
|
||||
let ROUTES = {
|
||||
'cyland': (
|
||||
<Route path='/' component={WalletApp}>
|
||||
<IndexRoute component={CylandLanding} />
|
||||
<IndexRoute
|
||||
component={CylandLanding}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='login'
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(LoginContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(LoginContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='logout'
|
||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='signup'
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='password_reset'
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='settings'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(SettingsContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(SettingsContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='contract_settings'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(ContractSettings)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(ContractSettings)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='register_piece'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(CylandRegisterPiece)}
|
||||
headerTitle='+ NEW WORK'
|
||||
aclName='acl_wallet_submit' />
|
||||
aclName='acl_wallet_submit'
|
||||
hideFooter />
|
||||
<Route
|
||||
path='collection'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(CylandPieceList)}
|
||||
headerTitle='COLLECTION'
|
||||
disableOn='noPieces' />
|
||||
<Route path='editions/:editionId' component={EditionContainer} />
|
||||
<Route path='coa_verify' component={CoaVerifyContainer} />
|
||||
<Route path='pieces/:pieceId' component={CylandPieceContainer} />
|
||||
<Route path='*' component={ErrorNotFoundPage} />
|
||||
disableOn='noPieces'
|
||||
hideFooter />
|
||||
<Route
|
||||
path='editions/:editionId'
|
||||
component={EditionContainer}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='coa_verify'
|
||||
component={CoaVerifyContainer}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='pieces/:pieceId'
|
||||
component={CylandPieceContainer}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='*'
|
||||
component={ErrorNotFoundPage}
|
||||
hideFooter />
|
||||
</Route>
|
||||
),
|
||||
'cc': (
|
||||
<Route path='/' component={WalletApp}>
|
||||
<Route
|
||||
path='login'
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(LoginContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(LoginContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='logout'
|
||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='signup'
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='password_reset'
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='settings'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(SettingsContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(SettingsContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='contract_settings'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(ContractSettings)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(ContractSettings)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='register_piece'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(CCRegisterPiece)}
|
||||
headerTitle='+ NEW WORK' />
|
||||
headerTitle='+ NEW WORK'
|
||||
hideFooter />
|
||||
<Route
|
||||
path='collection'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(PieceList)}
|
||||
headerTitle='COLLECTION'
|
||||
disableOn='noPieces' />
|
||||
<Route path='pieces/:pieceId' component={PieceContainer} />
|
||||
<Route path='editions/:editionId' component={EditionContainer} />
|
||||
<Route path='coa_verify' component={CoaVerifyContainer} />
|
||||
<Route path='*' component={ErrorNotFoundPage} />
|
||||
disableOn='noPieces'
|
||||
hideFooter />
|
||||
<Route
|
||||
path='pieces/:pieceId'
|
||||
component={PieceContainer}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='editions/:editionId'
|
||||
component={EditionContainer}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='coa_verify'
|
||||
component={CoaVerifyContainer}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='*'
|
||||
component={ErrorNotFoundPage}
|
||||
hideFooter />
|
||||
</Route>
|
||||
),
|
||||
'ikonotv': (
|
||||
<Route path='/' component={WalletApp}>
|
||||
<IndexRoute component={IkonotvLanding} />
|
||||
<IndexRoute
|
||||
component={IkonotvLanding}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='login'
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(LoginContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(LoginContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='logout'
|
||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='signup'
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='password_reset'
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='settings'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(SettingsContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(SettingsContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='contract_settings'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(ContractSettings)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(ContractSettings)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='request_loan'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(SendContractAgreementForm)}
|
||||
headerTitle='SEND NEW CONTRACT'
|
||||
aclName='acl_create_contractagreement' />
|
||||
aclName='acl_create_contractagreement'
|
||||
hideFooter />
|
||||
<Route
|
||||
path='register_piece'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(IkonotvRegisterPiece)}
|
||||
headerTitle='+ NEW WORK'
|
||||
aclName='acl_wallet_submit' />
|
||||
aclName='acl_wallet_submit'
|
||||
hideFooter />
|
||||
<Route
|
||||
path='collection'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(IkonotvPieceList)}
|
||||
headerTitle='COLLECTION'
|
||||
disableOn='noPieces' />
|
||||
disableOn='noPieces'
|
||||
hideFooter />
|
||||
<Route
|
||||
path='contract_notifications'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(IkonotvContractNotifications)} />
|
||||
<Route path='pieces/:pieceId' component={IkonotvPieceContainer} />
|
||||
<Route path='editions/:editionId' component={EditionContainer} />
|
||||
<Route path='coa_verify' component={CoaVerifyContainer} />
|
||||
<Route path='*' component={ErrorNotFoundPage} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(IkonotvContractNotifications)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='pieces/:pieceId'
|
||||
component={IkonotvPieceContainer}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='editions/:editionId'
|
||||
component={EditionContainer}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='coa_verify'
|
||||
component={CoaVerifyContainer}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='*'
|
||||
component={ErrorNotFoundPage}
|
||||
hideFooter />
|
||||
</Route>
|
||||
),
|
||||
'lumenus': (
|
||||
<Route path='/' component={WalletApp}>
|
||||
<IndexRoute component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(LumenusLanding)} />
|
||||
<IndexRoute
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(LumenusLanding)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='login'
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(LoginContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(LoginContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='logout'
|
||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='signup'
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='password_reset'
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='settings'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(SettingsContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(SettingsContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='contract_settings'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(ContractSettings)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(ContractSettings)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='register_piece'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(MarketRegisterPiece)}
|
||||
headerTitle='+ NEW WORK'
|
||||
aclName='acl_wallet_submit' />
|
||||
aclName='acl_wallet_submit'
|
||||
hideFooter />
|
||||
<Route
|
||||
path='collection'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(MarketPieceList)}
|
||||
headerTitle='COLLECTION'
|
||||
disableOn='noPieces' />
|
||||
<Route path='pieces/:pieceId' component={MarketPieceContainer} />
|
||||
<Route path='editions/:editionId' component={MarketEditionContainer} />
|
||||
<Route path='coa_verify' component={CoaVerifyContainer} />
|
||||
<Route path='*' component={ErrorNotFoundPage} />
|
||||
disableOn='noPieces'
|
||||
hideFooter />
|
||||
<Route
|
||||
path='pieces/:pieceId'
|
||||
component={MarketPieceContainer}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='editions/:editionId'
|
||||
component={MarketEditionContainer}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='coa_verify'
|
||||
component={CoaVerifyContainer}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='*'
|
||||
component={ErrorNotFoundPage}
|
||||
hideFooter />
|
||||
</Route>
|
||||
),
|
||||
'23vivi': (
|
||||
<Route path='/' component={WalletApp}>
|
||||
<IndexRoute component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(Vivi23Landing)} />
|
||||
<IndexRoute component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(Vivi23Landing)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='login'
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(LoginContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(LoginContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='logout'
|
||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/', when: 'loggedOut'}))(LogoutContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='signup'
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(SignupContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='password_reset'
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='settings'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(SettingsContainer)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(SettingsContainer)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='contract_settings'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(ContractSettings)} />
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(ContractSettings)}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='register_piece'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(MarketRegisterPiece)}
|
||||
headerTitle='+ NEW WORK'
|
||||
aclName='acl_wallet_submit' />
|
||||
aclName='acl_wallet_submit'
|
||||
hideFooter />
|
||||
<Route
|
||||
path='collection'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(Vivi23PieceList)}
|
||||
headerTitle='COLLECTION'
|
||||
disableOn='noPieces' />
|
||||
<Route path='pieces/:pieceId' component={MarketPieceContainer} />
|
||||
<Route path='editions/:editionId' component={MarketEditionContainer} />
|
||||
<Route path='coa_verify' component={CoaVerifyContainer} />
|
||||
<Route path='*' component={ErrorNotFoundPage} />
|
||||
disableOn='noPieces'
|
||||
hideFooter />
|
||||
<Route
|
||||
path='pieces/:pieceId'
|
||||
component={MarketPieceContainer}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='editions/:editionId'
|
||||
component={MarketEditionContainer}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='coa_verify'
|
||||
component={CoaVerifyContainer}
|
||||
hideFooter />
|
||||
<Route
|
||||
path='*'
|
||||
component={ErrorNotFoundPage}
|
||||
hideFooter />
|
||||
</Route>
|
||||
)
|
||||
};
|
||||
|
10
js/routes.js
10
js/routes.js
@ -6,7 +6,7 @@ import { Route } from 'react-router';
|
||||
import getPrizeRoutes from './components/whitelabel/prize/prize_routes';
|
||||
import getWalletRoutes from './components/whitelabel/wallet/wallet_routes';
|
||||
|
||||
import App from './components/ascribe_app';
|
||||
import AscribeApp from './components/ascribe_app';
|
||||
|
||||
import PieceList from './components/piece_list';
|
||||
import PieceContainer from './components/ascribe_detail/piece_container';
|
||||
@ -29,14 +29,14 @@ import { ProxyHandler, AuthRedirect } from './components/ascribe_routes/proxy_ha
|
||||
|
||||
|
||||
const COMMON_ROUTES = (
|
||||
<Route path='/' component={App}>
|
||||
<Route path='/' component={AscribeApp}>
|
||||
<Route
|
||||
path='login'
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(LoginContainer)} />
|
||||
<Route
|
||||
path='register_piece'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(RegisterPiece)}
|
||||
headerTitle='+ NEW WORK'/>
|
||||
headerTitle='+ NEW WORK' />
|
||||
<Route
|
||||
path='collection'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(PieceList)}
|
||||
@ -55,10 +55,10 @@ const COMMON_ROUTES = (
|
||||
component={ProxyHandler(AuthRedirect({to: '/collection', when: 'loggedIn'}))(PasswordResetContainer)} />
|
||||
<Route
|
||||
path='settings'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(SettingsContainer)}/>
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(SettingsContainer)} />
|
||||
<Route
|
||||
path='contract_settings'
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(ContractSettings)}/>
|
||||
component={ProxyHandler(AuthRedirect({to: '/login', when: 'loggedOut'}))(ContractSettings)} />
|
||||
<Route path='coa_verify' component={CoaVerifyContainer} />
|
||||
<Route path='*' component={ErrorNotFoundPage} />
|
||||
</Route>
|
||||
|
@ -2,7 +2,6 @@ $pr--nav-fg-prim-color: black;
|
||||
$pr--button-color: $pr--nav-fg-prim-color;
|
||||
|
||||
.client--portfolioreview {
|
||||
|
||||
.btn-wide,
|
||||
.btn-default {
|
||||
background-color: $pr--button-color;
|
||||
|
@ -68,5 +68,3 @@
|
||||
padding: 0.7em;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -51,16 +51,12 @@
|
||||
}
|
||||
}
|
||||
|
||||
.client--sluice .ascribe-footer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.client--sluice .icon-ascribe-search{
|
||||
.client--sluice .icon-ascribe-search {
|
||||
color: $simple-prize--button-color;
|
||||
}
|
||||
|
||||
.client--sluice .ascribe-piece-list-toolbar .btn-ascribe-add{
|
||||
.client--sluice .ascribe-piece-list-toolbar .btn-ascribe-add {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
@ -13,6 +13,7 @@ $vivi23--highlight-color: #de2600;
|
||||
/** Landing page **/
|
||||
.route--landing {
|
||||
display: table;
|
||||
min-height: 100vh;
|
||||
|
||||
> .container {
|
||||
display: table-cell;
|
||||
@ -252,10 +253,6 @@ $vivi23--highlight-color: #de2600;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ascribe-footer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ascribe-accordion-list-table-toggle:hover {
|
||||
color: $vivi23--fg-color;
|
||||
}
|
||||
|
@ -55,16 +55,11 @@ $cc--button-color: $cc--nav-fg-prim-color;
|
||||
}
|
||||
}
|
||||
|
||||
.client--cc .ascribe-footer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
|
||||
.client--cc .icon-ascribe-search{
|
||||
.client--cc .icon-ascribe-search {
|
||||
color: $cc--button-color;
|
||||
}
|
||||
|
||||
.client--cc .ascribe-piece-list-toolbar .btn-ascribe-add{
|
||||
.client--cc .ascribe-piece-list-toolbar .btn-ascribe-add {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@ -223,4 +218,4 @@ $cc--button-color: $cc--nav-fg-prim-color;
|
||||
|
||||
.client--cc .upload-button-wrapper > span {
|
||||
color: $cc--button-color;
|
||||
}
|
||||
}
|
||||
|
@ -56,10 +56,6 @@ $cyland--button-sec-color: #515151;
|
||||
}
|
||||
}
|
||||
|
||||
.client--cyland .ascribe-footer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.client--cyland .icon-ascribe-search {
|
||||
color: $cyland--button-color;
|
||||
}
|
||||
@ -171,6 +167,7 @@ $cyland--button-sec-color: #515151;
|
||||
.client--cyland {
|
||||
.route--landing {
|
||||
display: table;
|
||||
min-height: 100vh;
|
||||
|
||||
> .container {
|
||||
display: table-cell;
|
||||
|
@ -108,24 +108,36 @@ $ikono--font: 'Helvetica Neue', 'Helvetica', sans-serif !important;
|
||||
}
|
||||
|
||||
|
||||
.client--ikonotv {
|
||||
.route--landing,
|
||||
.route--login,
|
||||
.route--signup {
|
||||
background-color: $ikono--landing-bg-color;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.route--login,
|
||||
.route--signup {
|
||||
.ascribe-form-bordered {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.client--ikonotv .route--landing {
|
||||
background-color: $ikono--landing-bg-color;
|
||||
animation: color-loop 20s;
|
||||
-o-animation: color-loop 20s infinite;
|
||||
-ms-animation: color-loop 20s infinite;
|
||||
-moz-animation: color-loop 20s infinite;
|
||||
-webkit-animation: color-loop 20s infinite;
|
||||
|
||||
|
||||
margin: 0;
|
||||
width: 100%;
|
||||
padding: 5em 1em;
|
||||
}
|
||||
|
||||
|
||||
.client--ikonotv .route--login,
|
||||
.client--ikonotv .route--signup {
|
||||
background-color: $ikono--landing-bg-color;
|
||||
|
||||
.btn-wide {
|
||||
display: block;
|
||||
margin: 50px auto 0;
|
||||
@ -209,27 +221,11 @@ $ikono--font: 'Helvetica Neue', 'Helvetica', sans-serif !important;
|
||||
}
|
||||
|
||||
|
||||
.client--ikonotv {
|
||||
.route--login,
|
||||
.route--signup {
|
||||
.ascribe-form-bordered {
|
||||
border: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.client--ikonotv .ascribe-login-wrapper {
|
||||
}
|
||||
|
||||
.client--ikonotv .ascribe-footer {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.client--ikonotv .icon-ascribe-search{
|
||||
.client--ikonotv .icon-ascribe-search {
|
||||
color: $ikono--button-color;
|
||||
}
|
||||
|
||||
.client--ikonotv .ascribe-piece-list-toolbar .btn-ascribe-add{
|
||||
.client--ikonotv .ascribe-piece-list-toolbar .btn-ascribe-add {
|
||||
display: none;
|
||||
}
|
||||
|
||||
@ -560,4 +556,4 @@ $ikono--font: 'Helvetica Neue', 'Helvetica', sans-serif !important;
|
||||
|
||||
.client--ikonotv .upload-button-wrapper > span {
|
||||
color: $ikono--button-color;
|
||||
}
|
||||
}
|
||||
|
@ -5,7 +5,6 @@
|
||||
|
||||
.ascribe-wallet-app {
|
||||
border-radius: 0;
|
||||
min-height: 100vh;
|
||||
padding-top: 70px;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user