Commit b33f25ef authored by Eugen Rochko's avatar Eugen Rochko

Fix eslint warnings

parent 484ac399
......@@ -84,7 +84,7 @@ const apps = {
const renderApp = ({ name, icon, paid, url }) => (
<div className='app-grid__item' key={name}>
<a href={url} target='_blank'>
<a href={url} target='_blank' rel='noopener noreferrer'>
<img src={icon} alt={name} className='app-grid__item__icon' />
<div className='app-grid__item__text'>
......
......@@ -12,7 +12,7 @@ export default class Dropdown extends PureComponent {
return (
<div className='dropdown__menu'>
{options.map(option => asLinks ? (
<a href={option.value} className='dropdown__option' target='_blank'>
<a href={option.value} className='dropdown__option' target='_blank' rel='noopener noreferrer'>
{option.label}
</a>
) : (
......
......@@ -20,7 +20,7 @@ const Features = () => (
<i className='xs-show ion-md-lock' />
<h2><FormattedMessage id='features.safety2' defaultMessage='Safer social media experience' /></h2>
<p><FormattedMessage id='features.safety_text2' defaultMessage="Mastodon comes with <strong>effective anti-abuse tools</strong> to help protect yourself. Thanks to the network's spread out and independent nature there are <strong>more moderators</strong> who you can approach for personal help, and <strong>servers with strict codes of conduct</strong>." /></p>
<a href='https://blog.joinmastodon.org/2018/07/cage-the-mastodon/' className='link-button' target='_blank'><FormattedMessage id='features.read_more' defaultMessage='Read more' /> <i className='ion-ios-arrow-forward' /></a>
<a href='https://blog.joinmastodon.org/2018/07/cage-the-mastodon/' className='link-button' target='_blank' rel='noopener noreferrer'><FormattedMessage id='features.read_more' defaultMessage='Read more' /> <i className='ion-ios-arrow-forward' /></a>
</div>
</div>
......
import React, { PureComponent, Fragment } from 'react';
import React, { PureComponent } from 'react';
import PropTypes from 'prop-types';
import { injectIntl, FormattedHTMLMessage as FormattedMessage } from 'react-intl';
import { FormattedHTMLMessage as FormattedMessage } from 'react-intl';
import { HashLink as Link } from 'react-router-hash-link';
import AnchorLink from './AnchorLink';
import Modal from 'react-responsive-modal';
......@@ -170,7 +170,7 @@ export default class Home extends PureComponent {
<h3><FormattedMessage id='home.install_your_own' defaultMessage='Install your own' /></h3>
<p><FormattedMessage id='home.install_your_own_text' defaultMessage='If you are interested in running your own instance &mdash; for your friends, family or organization &mdash; you can get started by reading the installation documentation. You only host your own users and the content that they subscribe to, which means it&apos;s quite scalable and resource-efficient.' /></p>
<a href='https://github.com/tootsuite/documentation#running-mastodon' className='cta button'><FormattedMessage id='home.read_the_docs' defaultMessage='Read the docs' /></a>
<a href='https://masto.host/' target='_blank' rel='nofollow' className='cta button alt'><FormattedMessage id='home.hosting' defaultMessage='Fully-managed Mastodon hosting' /></a>
<a href='https://masto.host/' target='_blank' rel='noopener noreferrer' className='cta button alt'><FormattedMessage id='home.hosting' defaultMessage='Fully-managed Mastodon hosting' /></a>
</div>
</div>
......
......@@ -90,16 +90,16 @@ const Sponsorship = () => (
<li><a href='https://mastodon.art'><img src={avatarGlocal} alt='' /> <span><strong>glocal</strong><span>https://mastodon.art</span></span></a></li>
<li><a href='https://cloudfleet.io'><img src={avatarCloudfleet} alt='' /> <span><strong>CloudFleet</strong><span>https://cloudfleet.io</span></span></a></li>
<li><a href='https://sudoJames.com'><img src={avatarJamesMWright} alt='' /> <span><strong>James Wright</strong><span>https://sudoJames.com</span></span></a></li>
<li><a href='#'><img src={noAvatar} alt='' /> <span><strong>Martin Seeger</strong><span>-</span></span></a></li>
<li><a href='https://joinmastodon.org/sponsors'><img src={noAvatar} alt='' /> <span><strong>Martin Seeger</strong><span>-</span></span></a></li>
<li><a href='https://eightballoon.com/'><img src={noAvatar} alt='' /> <span><strong>Takanori Yamada</strong><span>https://eightballoon.com/</span></span></a></li>
<li><a href='https://identi.ca/evan'><img src={avatarEvan} alt='' /> <span><strong>Evan Prodromou</strong><span>https://identi.ca/evan</span></span></a></li>
<li><a href='#'><img src={noAvatar} alt='' /> <span><strong>Blaine Cook</strong><span>-</span></span></a></li>
<li><a href='https://joinmastodon.org/sponsors'><img src={noAvatar} alt='' /> <span><strong>Blaine Cook</strong><span>-</span></span></a></li>
<li><a href='https://www.whatisseo.com/'><img src={avatarVJ} alt='' /> <span><strong>VJ</strong><span>https://www.whatisseo.com/</span></span></a></li>
<li><a href='https://inanna.xyz/'><img src={avatarIanna} alt='' /> <span><strong>Inanna</strong><span>https://inanna.xyz/</span></span></a></li>
<li><a href='https://about.me/markatwood'><img src={avatarMarkAtwood} alt='' /> <span><strong>Mark Atwood</strong><span>https://about.me/markatwood</span></span></a></li>
<li><a href='https://dtp-mstdn.jp'><img src={avatarNoellabo} alt='' /> <span><strong>noellabo</strong><span>https://dtp-mstdn.jp</span></span></a></li>
<li><a href='https://werd.io'><img src={avatarBenWerdmuller} alt='' /> <span><strong>Ben Werdmuller</strong><span>https://werd.io</span></span></a></li>
<li><a href='#'><img src={noAvatar} alt='' /> <span><strong>Ms Miller</strong><span>-</span></span></a></li>
<li><a href='https://joinmastodon.org/sponsors'><img src={noAvatar} alt='' /> <span><strong>Ms Miller</strong><span>-</span></span></a></li>
<li><a href='https://mastodon.gamedev.place/@aras'><img src={avatarArasPranckevicius} alt='' /> <span><strong>Aras Pranckevicius</strong><span>https://mastodon.gamedev.place/@aras</span></span></a></li>
<li><a href='https://www.pickfu.com/'><img src={avatarPickfu} alt='' /> <span><strong>PickFu</strong><span>https://www.pickfu.com/</span></span></a></li>
<li><a href='https://github.com/igorcferreira'><img src={avatarIgorFerreira} alt='' /> <span><strong>Igor Ferreira</strong><span>https://github.com/igorcferreira</span></span></a></li>
......
......@@ -153,7 +153,7 @@ class Wizard extends React.PureComponent {
</div>
<div>
<a target='_blank' href='https://bridge.joinmastodon.org' className='cta button' style={{ marginBottom: 0 }}>
<a target='_blank' rel='noopener noreferrer' href='https://bridge.joinmastodon.org' className='cta button' style={{ marginBottom: 0 }}>
<FormattedMessage id='wizard.find_twitter_friends' defaultMessage='Find Twitter friends' />
</a>
</div>
......
......@@ -38,7 +38,7 @@ const WizardRow = ({ instance, intl }) => {
const populationSpan = <FormattedMessage id='wizard_row.user_count' defaultMessage='{population} {count, plural, one {person} other {people}}' values={{ population, count: instance.users }} />;
return (
<a href={`https://${instance.name}/about`} target='_blank' rel='noopener' className={classNames('wizard-row', { offline: !instance.up })}>
<a href={`https://${instance.name}/about`} target='_blank' rel='noopener noreferrer' className={classNames('wizard-row', { offline: !instance.up })}>
<div className='wizard-row__thumbnail'>
<div>
<img src={instance.thumbnail_proxy} alt='' />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment