fix nofollow
This commit is contained in:
@@ -118,7 +118,6 @@ const videoList = [
|
||||
{ vimeoId: '350927537', title: 'Fym Action', adTitle: 'Promoteur des ventes en alimentaire (H/F)', link: '/Offre/81-Fym-Action-Caudan' }
|
||||
]
|
||||
|
||||
|
||||
class ShortVideoHooker extends Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
|
||||
+20
-13
@@ -1,4 +1,4 @@
|
||||
import React, { Component } from 'react'
|
||||
import React, { Component, Fragment } from 'react'
|
||||
import Router from 'next/router'
|
||||
import { connect } from "react-redux";
|
||||
import { withStyles } from '@material-ui/core/styles';
|
||||
@@ -6,28 +6,29 @@ import setAuthorizationHeader from "../data/setAuthorizationHeader";
|
||||
import Loader from './../components/templates/loader'
|
||||
import { userLoggedIn, requestLoginFailure } from "../actions/auth";
|
||||
|
||||
import Head from 'next/head'
|
||||
|
||||
const styles = theme => ({
|
||||
container: {
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
height: '100%',
|
||||
},
|
||||
|
||||
|
||||
});
|
||||
|
||||
class AuthRouter extends Component {
|
||||
|
||||
componentDidMount()
|
||||
{
|
||||
componentDidMount() {
|
||||
let JWT = this.props.JWT;
|
||||
if( JWT === null){
|
||||
if (JWT === null) {
|
||||
//free token
|
||||
setAuthorizationHeader()
|
||||
localStorage.setItem('ttJWT','')
|
||||
localStorage.setItem('ttJWT', '')
|
||||
this.props.requestLoginFailure('JWT absent')
|
||||
Router.push('/Login');}
|
||||
else
|
||||
{
|
||||
Router.push('/Login');
|
||||
}
|
||||
else {
|
||||
localStorage.setItem('ttJWT', JWT)
|
||||
//set token to axios headers
|
||||
setAuthorizationHeader(JWT)
|
||||
@@ -38,25 +39,31 @@ class AuthRouter extends Component {
|
||||
|
||||
this.props.userLoggedIn()
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<Fragment>
|
||||
<Head>
|
||||
<title key="title">OAuth authentification router</title>
|
||||
<meta key="robots" name="robots" content="noindex, nofollow"></meta>
|
||||
</Head>
|
||||
<div>
|
||||
<Loader />
|
||||
</div>
|
||||
</Fragment>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
AuthRouter.getInitialProps = function (context) {
|
||||
const { JWT } = context.query
|
||||
|
||||
return {JWT:JWT};
|
||||
|
||||
return { JWT: JWT };
|
||||
}
|
||||
|
||||
|
||||
|
||||
export default withStyles(styles)(connect(null, {userLoggedIn, requestLoginFailure})(AuthRouter));
|
||||
export default withStyles(styles)(connect(null, { userLoggedIn, requestLoginFailure })(AuthRouter));
|
||||
|
||||
|
||||
@@ -295,6 +295,7 @@ class Reponse extends React.Component {
|
||||
<Head>
|
||||
<title>Candidature vidéo</title>
|
||||
<meta name="description" content="Talent's tube, postulez en video." />
|
||||
<meta key="robots" name="robots" content="noindex, nofollow"></meta>
|
||||
<link rel="canonical" href="https://app.talentstube.com" />
|
||||
</Head>
|
||||
{/* https://codesandbox.io/s/ii0us */}
|
||||
|
||||
@@ -12,7 +12,7 @@ const styles = theme => ({
|
||||
flexDirection: 'column',
|
||||
position: 'relative',
|
||||
height: '100%',
|
||||
padding: theme.spacing(1,3),
|
||||
padding: theme.spacing(1, 3),
|
||||
},
|
||||
bottomContainer: {
|
||||
display: 'flex',
|
||||
@@ -56,19 +56,18 @@ const styles = theme => ({
|
||||
class VerifyEmail extends Component {
|
||||
render() {
|
||||
const { classes, email } = this.props;
|
||||
console.log("render")
|
||||
console.log(this.props)
|
||||
return (
|
||||
<Layout text="Inscription" height="fixed">
|
||||
<Head>
|
||||
<title key="title">Vérification d'email</title>
|
||||
</Head>
|
||||
<Head>
|
||||
<title key="title">Vérification d'email</title>
|
||||
<meta key="robots" name="robots" content="noindex, nofollow"></meta>
|
||||
</Head>
|
||||
<div className={classes.container}>
|
||||
<Typography gutterBottom align="center" className={classes.title}>
|
||||
Consultez vos e-mails
|
||||
</Typography>
|
||||
<Typography gutterBottom align="left" className={classes.text}>
|
||||
Un e-mail a été envoyé à l'adresse <span className={ classes.email }>{email}</span>
|
||||
Un e-mail a été envoyé à l'adresse <span className={classes.email}>{email}</span>
|
||||
</Typography>
|
||||
<Typography gutterBottom align="left" className={classes.text}>
|
||||
Cliquez sur le lien dans l'e-mail que nous vous avons envoyé pour activer votre compte.
|
||||
@@ -93,10 +92,10 @@ console.log(this.props)
|
||||
}
|
||||
|
||||
VerifyEmail.getInitialProps = async function (context) {
|
||||
const {email} = context.query;
|
||||
const { email } = context.query;
|
||||
console.log("email")
|
||||
console.log(email)
|
||||
return {email}
|
||||
return { email }
|
||||
}
|
||||
|
||||
export default withStyles(styles)(VerifyEmail)
|
||||
@@ -18,7 +18,7 @@ class Error extends React.Component {
|
||||
<p>
|
||||
{this.props.statusCode
|
||||
? `Une erreur ${this.props.statusCode} est survenue sur le serveur.`
|
||||
: 'Une erreur est survenue sur le client'}
|
||||
: 'Une erreur est survenue dans l\'application.'}
|
||||
</p>
|
||||
</LayoutBack>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user