fix(link): lint and format links

This commit is contained in:
Mrugesh Mohapatra
2019-02-21 20:55:36 +05:30
committed by Stuart Taylor
parent 4fb112e87f
commit 65288de39a
14 changed files with 75 additions and 261 deletions

View File

@ -1,11 +1,11 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import { Link } from 'gatsby';
import Media from 'react-media'; import Media from 'react-media';
import FCCSearch from 'react-freecodecamp-search'; import FCCSearch from 'react-freecodecamp-search';
import NavLogo from './components/NavLogo'; import NavLogo from './components/NavLogo';
import UserState from './components/UserState'; import UserState from './components/UserState';
import { Link } from '../helpers';
import './header.css'; import './header.css';
@ -61,14 +61,14 @@ class Header extends Component {
<Link to='/learn'>Learn</Link> <Link to='/learn'>Learn</Link>
</li> </li>
<li> <li>
<a href='/forum' rel='noopener noreferrer' target='_blank'> <Link external={true} to='/forum'>
Forum Forum
</a> </Link>
</li> </li>
<li> <li>
<a href='/news' rel='noopener noreferrer' target='_blank'> <Link external={true} to='/news'>
News News
</a> </Link>
</li> </li>
<li className='user-state-link'> <li className='user-state-link'>
<UserState disableSettings={disableSettings} /> <UserState disableSettings={disableSettings} />

View File

@ -1,4 +1,3 @@
/* eslint-disable max-len */
import React, { Fragment } from 'react'; import React, { Fragment } from 'react';
import Helmet from 'react-helmet'; import Helmet from 'react-helmet';
import { Grid, Col, Row, Table } from '@freecodecamp/react-bootstrap'; import { Grid, Col, Row, Table } from '@freecodecamp/react-bootstrap';

View File

@ -14,7 +14,7 @@ import {
import Helmet from 'react-helmet'; import Helmet from 'react-helmet';
import { createSelector } from 'reselect'; import { createSelector } from 'reselect';
import { ButtonSpacer, Spacer } from '../components/helpers'; import { ButtonSpacer, Spacer, Link } from '../components/helpers';
import { acceptTerms, userSelector } from '../redux'; import { acceptTerms, userSelector } from '../redux';
import createRedirect from '../components/createRedirect'; import createRedirect from '../components/createRedirect';
@ -103,13 +103,9 @@ class AcceptPrivacyTerms extends Component {
onChange={this.createHandleChange('termsOfService')} onChange={this.createHandleChange('termsOfService')}
> >
I accept the{' '} I accept the{' '}
<a <Link external={true} to='/terms-of-service'>
href='https://www.freecodecamp/terms'
rel='noopener noreferrer'
target='_blank'
>
terms of service terms of service
</a>{' '} </Link>{' '}
(required) (required)
</Checkbox> </Checkbox>
</FormGroup> </FormGroup>
@ -125,13 +121,9 @@ class AcceptPrivacyTerms extends Component {
onChange={this.createHandleChange('privacyPolicy')} onChange={this.createHandleChange('privacyPolicy')}
> >
I accept the{' '} I accept the{' '}
<a <Link external={true} to='/privacy-policy'>
href='https://www.freecodecamp/privacy'
rel='noopener noreferrer'
target='_blank'
>
privacy policy privacy policy
</a>{' '} </Link>{' '}
(required) (required)
</Checkbox> </Checkbox>
</FormGroup> </FormGroup>

View File

@ -1,4 +1,3 @@
/* eslint-disable max-len */
import React, { Fragment } from 'react'; import React, { Fragment } from 'react';
import Helmet from 'react-helmet'; import Helmet from 'react-helmet';
import { Grid, Col, Row } from '@freecodecamp/react-bootstrap'; import { Grid, Col, Row } from '@freecodecamp/react-bootstrap';

View File

@ -1,11 +1,9 @@
/* eslint-disable max-len */
import React, { Component, Fragment } from 'react'; import React, { Component, Fragment } from 'react';
import Helmet from 'react-helmet'; import Helmet from 'react-helmet';
import { Link } from 'gatsby';
import { Grid, Col, Row } from '@freecodecamp/react-bootstrap'; import { Grid, Col, Row } from '@freecodecamp/react-bootstrap';
import ReactGA from '../analytics/index.js'; import ReactGA from '../analytics/index.js';
import Spacer from '../components/helpers/Spacer'; import { Link, Spacer } from '../components/helpers';
const paypalMonthlyDonations = [ const paypalMonthlyDonations = [
{ {

View File

@ -1,4 +1,3 @@
/* eslint-disable max-len */
import React, { Component, Fragment } from 'react'; import React, { Component, Fragment } from 'react';
import Helmet from 'react-helmet'; import Helmet from 'react-helmet';
import { StripeProvider, Elements } from 'react-stripe-elements'; import { StripeProvider, Elements } from 'react-stripe-elements';

View File

@ -1,5 +1,6 @@
import React, { Fragment } from 'react'; import React, { Fragment } from 'react';
import Helmet from 'react-helmet'; import Helmet from 'react-helmet';
import { Link } from '../components/helpers';
function Index() { function Index() {
return ( return (
@ -13,10 +14,9 @@ function Index() {
</Helmet> </Helmet>
<h2>freeCodeCamp Guide</h2> <h2>freeCodeCamp Guide</h2>
<p> <p>
{'This website is full of articles about all things related to ' + This website is full of articles about all things related to
'programming. You can use the search bar above to find something ' + programming. You can use the search bar above to find something would
'you would like to learn about, or use the navigation to explore ' + like to learn about, or use the navigation to explore the content.
'the content.'}
</p> </p>
<p>There are articles on:</p> <p>There are articles on:</p>
<ul> <ul>
@ -29,29 +29,18 @@ function Index() {
</ul> </ul>
<h3>Not sure where to start?</h3> <h3>Not sure where to start?</h3>
<p> <p>
{"If you want to learn programming but you're not sure where to " + If you want to learn programming but you're not sure where to start,
'start, check out '} check out <Link to='https://freecodecamp.org'>freeCodeCamp.org</Link>.
<a It has a curriculum that starts from zero and helps you learn to code.
href='https://freecodecamp.org'
rel='noopener noreferrer'
target='_blank'
>
freeCodeCamp.org
</a>
{'. It has a curriculum that starts from zero and helps you learn' +
' to code.'}
</p> </p>
<h3>Contribute to the Guide</h3> <h3>Contribute to the Guide</h3>
<p> <p>
{'This site and the articles on it are '} This site and the articles on it are{' '}
<a <Link to='https://github.com/freeCodeCamp/freeCodeCamp'>
href='https://github.com/freeCodeCamp/freeCodeCamp' {' '}
rel='noopener noreferrer' open source{' '}
target='_blank' </Link>{' '}
> . Your help in making it better is greatly appreciated!
open source
</a>
{'. Your help in making it better is greatly appreciated!'}
</p> </p>
<hr /> <hr />
<p>Happy coding!</p> <p>Happy coding!</p>

View File

@ -12,7 +12,7 @@ import {
import { faDatabase } from '@fortawesome/free-solid-svg-icons'; import { faDatabase } from '@fortawesome/free-solid-svg-icons';
import Helmet from 'react-helmet'; import Helmet from 'react-helmet';
import { Spacer } from '../components/helpers'; import { Link, Spacer } from '../components/helpers';
import Login from '../components/Header/components/Login'; import Login from '../components/Header/components/Login';
import './index.css'; import './index.css';
@ -227,14 +227,9 @@ const IndexPage = () => (
<p className='large-p'> <p className='large-p'>
Donations to freeCodeCamp go toward our education initiatives, and help Donations to freeCodeCamp go toward our education initiatives, and help
pay for servers, services, and staff. You can{' '} pay for servers, services, and staff. You can{' '}
<a <Link className='large-p underlined-link' external={true} to='/donate'>
className='large-p underlined-link'
href='/donate'
rel='noopener noreferrer'
target='_blank'
>
make a tax-deductible donation here make a tax-deductible donation here
</a> </Link>
</p> </p>
.<Spacer /> .<Spacer />
<BigCallToAction /> <BigCallToAction />

View File

@ -1,7 +1,7 @@
/* eslint-disable max-len */ /* eslint-disable max-len */
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import { Link, graphql } from 'gatsby'; import { graphql } from 'gatsby';
import Helmet from 'react-helmet'; import Helmet from 'react-helmet';
import { connect } from 'react-redux'; import { connect } from 'react-redux';
@ -12,7 +12,7 @@ import {
} from '../redux/propTypes'; } from '../redux/propTypes';
import LearnLayout from '../components/layouts/Learn'; import LearnLayout from '../components/layouts/Learn';
import Spacer from '../components/helpers/Spacer'; import { Link, Spacer } from '../components/helpers';
import Map from '../components/Map'; import Map from '../components/Map';
import './learn.css'; import './learn.css';
@ -49,9 +49,9 @@ const IndexPage = ({
<p> <p>
And yes - all of this is 100% free, thanks to the thousands of campers And yes - all of this is 100% free, thanks to the thousands of campers
who{' '} who{' '}
<a href='/donate' rel='noopener noreferrer' target='_blank'> <Link external={true} to='/donate'>
donate donate
</a>{' '} </Link>{' '}
to our nonprofit. to our nonprofit.
</p> </p>
<p> <p>

View File

@ -1,4 +1,3 @@
/* eslint-disable max-len */
import React, { Fragment } from 'react'; import React, { Fragment } from 'react';
import Helmet from 'react-helmet'; import Helmet from 'react-helmet';
import { Grid, Col, Row } from '@freecodecamp/react-bootstrap'; import { Grid, Col, Row } from '@freecodecamp/react-bootstrap';

View File

@ -3,7 +3,7 @@ import { Grid } from '@freecodecamp/react-bootstrap';
import Helmet from 'react-helmet'; import Helmet from 'react-helmet';
import FullWidthRow from '../components/helpers/FullWidthRow'; import FullWidthRow from '../components/helpers/FullWidthRow';
import { Spacer } from '../components/helpers'; import { Spacer, Link } from '../components/helpers';
function SoftwareResourcesForNonProfits() { function SoftwareResourcesForNonProfits() {
return ( return (
@ -26,287 +26,129 @@ function SoftwareResourcesForNonProfits() {
<h3>Skills-based Volunteer Organizations:</h3> <h3>Skills-based Volunteer Organizations:</h3>
<ul> <ul>
<li> <li>
<a <Link to='http://givecamp.org/'>Give Camp</Link>
href='http://givecamp.org/'
rel='noopener noreferrer'
target='_blank'
>
Give Camp
</a>
</li> </li>
<li> <li>
<a <Link to='http://www.volunteermatch.com'>
href='http://www.volunteermatch.com'
rel='noopener noreferrer'
target='_blank'
>
Volunteer Match.com Volunteer Match.com
</a> </Link>
</li> </li>
<li> <li>
<a <Link to='http://www.catchafire.org'>Catchafire</Link>
href='http://www.catchafire.org'
rel='noopener noreferrer'
target='_blank'
>
Catchafire
</a>
</li> </li>
<li> <li>
<a <Link to='http://anyonecanhaveawebsite.com'>
href='http://anyonecanhaveawebsite.com'
rel='noopener noreferrer'
target='_blank'
>
Anyone Can Have A Website Anyone Can Have A Website
</a> </Link>
</li> </li>
</ul> </ul>
<h3>Building a website:</h3> <h3>Building a website:</h3>
<ul> <ul>
<li> <li>
<a <Link to='https://www.youtube.com/watch?v=4AXDKWuY9QM'>
href='https://www.youtube.com/watch?v=4AXDKWuY9QM'
rel='noopener noreferrer'
target='_blank'
>
How to build and deploy a website without writing any code for How to build and deploy a website without writing any code for
free free
</a> </Link>
</li> </li>
<li> <li>
<a <Link to='http://www.wix.com/'>Wix</Link>
href='http://www.wix.com/'
rel='noopener noreferrer'
target='_blank'
>
Wix
</a>
</li> </li>
<li> <li>
<a <Link to='https://www.squarespace.com/'>Square Space</Link>
href='https://www.squarespace.com/'
rel='noopener noreferrer'
target='_blank'
>
Square Space
</a>
</li> </li>
<li> <li>
<a <Link to='https://wordpress.com/'>WordPress</Link>
href='https://wordpress.com/'
rel='noopener noreferrer'
target='_blank'
>
WordPress
</a>
</li> </li>
<li> <li>
<a <Link to='https://xprs.imcreator.com'>Imcreator.com</Link>
href='https://xprs.imcreator.com'
rel='noopener noreferrer'
target='_blank'
>
Imcreator.com
</a>
</li> </li>
</ul> </ul>
<h3>Donor and Volunteer Management Systems:</h3> <h3>Donor and Volunteer Management Systems:</h3>
<ul> <ul>
<li> <li>
<a <Link to='http://causesignal.com'>Cause Signal</Link>
href='http://causesignal.com'
rel='noopener noreferrer'
target='_blank'
>
Cause Signal
</a>
</li> </li>
<li> <li>
<a <Link to='https://www.thedatabank.com/'>The Data Bank</Link>
href='https://www.thedatabank.com/'
rel='noopener noreferrer'
target='_blank'
>
The Data Bank
</a>
</li> </li>
<li> <li>
<a <Link to='http://www.donorsnap.com/'>Donor Snap</Link>
href='http://www.donorsnap.com/'
rel='noopener noreferrer'
target='_blank'
>
Donor Snap
</a>
</li> </li>
<li> <li>
<a <Link to='http://www.donorperfect.com/'>Donor Perfect</Link>
href='http://www.donorperfect.com/'
rel='noopener noreferrer'
target='_blank'
>
Donor Perfect
</a>
</li> </li>
<li> <li>
<a <Link
href={ to={
'https://www.blackbaud.com/fundraising-crm/etapestry-donor' + 'https://www.blackbaud.com/fundraising-crm/etapestry-donor' +
'-management' '-management'
} }
rel='noopener noreferrer'
target='_blank'
> >
E Tapestry E Tapestry
</a> </Link>
</li> </li>
<li> <li>
<a <Link to='http://www.z2systems.com'>Z2 Systems</Link>
href='http://www.z2systems.com'
rel='noopener noreferrer'
target='_blank'
>
Z2 Systems
</a>
</li> </li>
<li> <li>
<a <Link to='http://www.regpacks.com/volunteer-management'>
href='http://www.regpacks.com/volunteer-management'
rel='noopener noreferrer'
target='_blank'
>
Reg Packs Reg Packs
</a> </Link>
</li> </li>
<li> <li>
<a <Link to='http://sumac.com'>Sumac</Link>
href='http://sumac.com'
rel='noopener noreferrer'
target='_blank'
>
Sumac
</a>
</li> </li>
<li> <li>
<a <Link to='http://www.volgistics.com'>Volgistics</Link>
href='http://www.volgistics.com'
rel='noopener noreferrer'
target='_blank'
>
Volgistics
</a>
</li> </li>
</ul> </ul>
<h3>Inventory Management Systems:</h3> <h3>Inventory Management Systems:</h3>
<ul> <ul>
<li> <li>
<a <Link to='https://www.ordoro.com'>Ordoro</Link>
href='https://www.ordoro.com'
rel='noopener noreferrer'
target='_blank'
>
Ordoro
</a>
</li> </li>
<li> <li>
<a <Link to='http://www.unleashedsoftware.com'>
href='http://www.unleashedsoftware.com'
rel='noopener noreferrer'
target='_blank'
>
Unleashed Software Unleashed Software
</a> </Link>
</li> </li>
<li> <li>
<a <Link to='https://www.ezofficeinventory.com/industries/non-profits'>
href='https://www.ezofficeinventory.com/industries/non-profits'
rel='noopener noreferrer'
target='_blank'
>
EZ Office Inventory EZ Office Inventory
</a> </Link>
</li> </li>
</ul> </ul>
<h3>E-Learning platforms:</h3> <h3>E-Learning platforms:</h3>
<ul> <ul>
<li> <li>
<a <Link to='http://www.dokeos.com'>Dokeos</Link>
href='http://www.dokeos.com'
rel='noopener noreferrer'
target='_blank'
>
Dokeos
</a>
</li> </li>
<li> <li>
<a <Link to='http://www.efrontlearning.net/'>E Front Learning</Link>
href='http://www.efrontlearning.net/'
rel='noopener noreferrer'
target='_blank'
>
E Front Learning
</a>
</li> </li>
<li> <li>
<a <Link to='https://moodle.org/'>Moodle</Link>
href='https://moodle.org/'
rel='noopener noreferrer'
target='_blank'
>
Moodle
</a>
</li> </li>
<li> <li>
<a <Link to='https://sakaiproject.org/'>Sakai Project</Link>
href='https://sakaiproject.org/'
rel='noopener noreferrer'
target='_blank'
>
Sakai Project
</a>
</li> </li>
</ul> </ul>
<h3>Community Management:</h3> <h3>Community Management:</h3>
<ul> <ul>
<li> <li>
<a <Link to='https://civicrm.org/'>CiviCRM</Link>
href='https://civicrm.org/'
rel='noopener noreferrer'
target='_blank'
>
CiviCRM
</a>
</li> </li>
<li> <li>
<a <Link to='http://tcmgr.com/'>Total Community Manager</Link>
href='http://tcmgr.com/'
rel='noopener noreferrer'
target='_blank'
>
Total Community Manager
</a>
</li> </li>
</ul> </ul>
<h3>Electronic Forms:</h3> <h3>Electronic Forms:</h3>
<ul> <ul>
<li> <li>
<a <Link to='http://www.google.com/forms'>Google Forms</Link>
href='http://www.google.com/forms'
rel='noopener noreferrer'
target='_blank'
>
Google Forms
</a>
</li> </li>
<li> <li>
<a <Link to='http://www.typeform.com'>Typeform</Link>
href='http://www.typeform.com'
rel='noopener noreferrer'
target='_blank'
>
Typeform
</a>
</li> </li>
</ul> </ul>
</FullWidthRow> </FullWidthRow>

View File

@ -1,4 +1,3 @@
/* eslint-disable max-len */
import React, { Fragment } from 'react'; import React, { Fragment } from 'react';
import Helmet from 'react-helmet'; import Helmet from 'react-helmet';
import { Grid, Col, Row } from '@freecodecamp/react-bootstrap'; import { Grid, Col, Row } from '@freecodecamp/react-bootstrap';
@ -10,7 +9,12 @@ import './sponsors.css';
const SponsorsPage = () => { const SponsorsPage = () => {
return ( return (
<Fragment> <Fragment>
<Helmet title='Sponsors who help freeCodeCamp through financial and in-kind sponsorship | freeCodeCamp.org' /> <Helmet
title={
'Sponsors who help freeCodeCamp through financial and in-kind ' +
'sponsorship | freeCodeCamp.org'
}
/>
<Spacer /> <Spacer />
<Grid> <Grid>
<Row className='text-center'> <Row className='text-center'>

View File

@ -1,4 +1,3 @@
/* eslint-disable max-len */
import React, { Fragment } from 'react'; import React, { Fragment } from 'react';
import Helmet from 'react-helmet'; import Helmet from 'react-helmet';
import { Grid, Col, Row } from '@freecodecamp/react-bootstrap'; import { Grid, Col, Row } from '@freecodecamp/react-bootstrap';

View File

@ -1,4 +1,3 @@
/* eslint-disable max-len */
import React, { Fragment } from 'react'; import React, { Fragment } from 'react';
import Helmet from 'react-helmet'; import Helmet from 'react-helmet';
import { Grid, Col, Row } from '@freecodecamp/react-bootstrap'; import { Grid, Col, Row } from '@freecodecamp/react-bootstrap';