Reference:
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-target-blank.md
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>
if (linkUrl[0] === '/') {
valueNode = <Link to={linkUrl} className={classes.link}>{uuid}</Link>;
} else {
if (linkUrl[0] === '/') {
valueNode = <Link to={linkUrl} className={classes.link}>{uuid}</Link>;
} else {
- valueNode = <a href={linkUrl} className={classes.link} target='_blank'>{uuid}</a>;
+ valueNode = <a href={linkUrl} className={classes.link} target='_blank' rel="noopener noreferrer">{uuid}</a>;
- valueNode = <a href={link} className={classes.link} target='_blank'>{value}</a>;
+ valueNode = <a href={link} className={classes.link} target='_blank' rel="noopener noreferrer">{value}</a>;
} else {
valueNode = value;
}
} else {
valueNode = value;
}
style={{ textDecoration: 'none' }}
href={props.href}
target="_blank"
style={{ textDecoration: 'none' }}
href={props.href}
target="_blank"
+ rel="noopener noreferrer"
onClick={props.onClick}>
<ListItem button>
<ListItemIcon>
onClick={props.onClick}>
<ListItem button>
<ListItemIcon>
{
links.map(link =>
<MenuItem key={link.title}>
{
links.map(link =>
<MenuItem key={link.title}>
- <a href={link.link} target="_blank" className={classes.link}>
+ <a href={link.link} target="_blank" rel="noopener noreferrer" className={classes.link}>
<ImportContactsIcon className={classes.icon} />
<Typography className={classes.linkTitle}>{link.title}</Typography>
</a>
<ImportContactsIcon className={classes.icon} />
<Typography className={classes.linkTitle}>{link.title}</Typography>
</a>
lines={[snippetText(props.data.uuidPrefix)]} />
<Typography variant='body1' className={props.classes.spacing}>
See also:
lines={[snippetText(props.data.uuidPrefix)]} />
<Typography variant='body1' className={props.classes.spacing}>
See also:
- <div><a href="https://doc.arvados.org/user/getting_started/ssh-access-unix.html" className={props.classes.link} target="_blank">SSH access</a></div>
- <div><a href="https://doc.arvados.org/user/tutorials/tutorial-firstscript.html" className={props.classes.link} target="_blank">Writing a Crunch Script</a></div>
+ <div><a href="https://doc.arvados.org/user/getting_started/ssh-access-unix.html" className={props.classes.link} target="_blank" rel="noopener noreferrer">SSH access</a></div>
+ <div><a href="https://doc.arvados.org/user/tutorials/tutorial-firstscript.html" className={props.classes.link} target="_blank" rel="noopener noreferrer">Writing a Crunch Script</a></div>
</Typography>
</DialogContent>
<DialogActions>
</Typography>
</DialogContent>
<DialogActions>
<DetailsAttribute
label='Internet address'
<DetailsAttribute
label='Internet address'
- value={<a href={winDav.toString()} target="_blank">{winDav.toString()}</a>}
+ value={<a href={winDav.toString()} target="_blank" rel="noopener noreferrer">{winDav.toString()}</a>}
copyValue={winDav.toString()} />
<DetailsAttribute
copyValue={winDav.toString()} />
<DetailsAttribute
<TabPanel index={0} value={activeTab}>
<DetailsAttribute
label='Server'
<TabPanel index={0} value={activeTab}>
<DetailsAttribute
label='Server'
- value={<a href={cyberDavStr} target="_blank">{cyberDavStr}</a>}
+ value={<a href={cyberDavStr} target="_blank" rel="noopener noreferrer">{cyberDavStr}</a>}
copyValue={cyberDavStr} />
<DetailsAttribute
copyValue={cyberDavStr} />
<DetailsAttribute
{virtualMachineSendRequest(props)}
</div>
<div className={props.classes.icon}>
{virtualMachineSendRequest(props)}
</div>
<div className={props.classes.icon}>
- <a href="https://doc.arvados.org/user/getting_started/vm-login-with-webshell.html" target="_blank" className={props.classes.linkIcon}>
+ <a href="https://doc.arvados.org/user/getting_started/vm-login-with-webshell.html" target="_blank" rel="noopener noreferrer" className={props.classes.linkIcon}>
<Tooltip title="Access VM using webshell">
<HelpIcon />
</Tooltip>
<Tooltip title="Access VM using webshell">
<HelpIcon />
</Tooltip>
{command}
</TableCell>
{props.webShell !== "" && <TableCell>
{command}
</TableCell>
{props.webShell !== "" && <TableCell>
- <a href={`${props.webShell}${it.href}/webshell/${username}`} target="_blank" className={props.classes.link}>
+ <a href={`${props.webShell}${it.href}/webshell/${username}`} target="_blank" rel="noopener noreferrer" className={props.classes.link}>
Log in as {username}
</a>
</TableCell>}
Log in as {username}
</a>
</TableCell>}