{"size": 2144, "ext": "js", "max_stars_repo_path": "ui/src/components/ScrapyDoNav.js", "max_stars_repo_name": "jccastiblancor/scrapy-do", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "ui/src/components/ScrapyDoNav.js", "max_issues_repo_name": "jccastiblancor/scrapy-do", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "ui/src/components/ScrapyDoNav.js", "max_forks_repo_name": "jccastiblancor/scrapy-do", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 36.9655172414, "max_line_length": 82, "alphanum_fraction": 0.4561567164}
//------------------------------------------------------------------------------
// Author: Lukasz Janyst <lukasz@jany.st>
// Date: 29.01.2018
//
// Licensed under the 3-Clause BSD License, see the LICENSE file for details.
//------------------------------------------------------------------------------

import React, { Component } from 'react';

import { FaChartLine, FaBlender, FaBolt, FaRegCheckSquare } from 'react-icons/fa';
import Nav from 'react-bootstrap/Nav';
import Navbar from 'react-bootstrap/Navbar';
import { LinkContainer } from 'react-router-bootstrap';

//------------------------------------------------------------------------------
// The navigation bar
//------------------------------------------------------------------------------
class ScrapyDoNav extends Component {

  //----------------------------------------------------------------------------
  // Render the component
  //----------------------------------------------------------------------------
  render() {
    return (
      <Navbar bg='dark' variant='dark' collapseOnSelect expand='md'>
        <LinkContainer to="/">
          <Navbar.Brand>
            Scrapy Do
          </Navbar.Brand>
        </LinkContainer>
        <Navbar.Toggle aria-controls="navbar" />
        <Navbar.Collapse id="navbar">
          <Nav className="mr-auto" />
          <Nav>
            <LinkContainer to="/dashboard">
              <Nav.Link><FaChartLine /> Dashboard</Nav.Link>
            </LinkContainer>
            <LinkContainer to="/project-list">
              <Nav.Link><FaBlender /> Projects</Nav.Link>
            </LinkContainer>
            <LinkContainer to="/job-list/active">
              <Nav.Link><FaBolt /> Active Jobs</Nav.Link>
            </LinkContainer>
            <LinkContainer to="/job-list/completed">
              <Nav.Link><FaRegCheckSquare /> Completed Jobs</Nav.Link>
            </LinkContainer>
            <LinkContainer to="/summary">
              <Nav.Link><FaRegCheckSquare /> Summary</Nav.Link>
            </LinkContainer>
          </Nav>
        </Navbar.Collapse>
      </Navbar>
    );
  }
}

export default ScrapyDoNav;
