<commit_before>/** Created by hhj on 1/12/16. */
/* eslint-disable react/no-multi-comp */
import React, { PropTypes } from 'react'
import { LinkContainer, IndexLinkContainer } from 'react-router-bootstrap'
import { Navbar, Nav, NavItem, NavDropdown, MenuItem, NavbarBrand } from 'react-bootstrap'
import MyIcon from '@hhjcz/react-lib/lib/MyIcon'
import '@hhjcz/react-lib/lib/icons.css'
import Logout from './Logout'

class ColoredIcon extends React.Component {
  static propTypes = {
    children: PropTypes.any,
  };

  render() {
    return <MyIcon color="grey" {...this.props}>{this.props.children}</MyIcon>
  }
}

export default class Navigation extends React.Component {
  static propTypes = {
    logout: PropTypes.func.isRequired,
  };

  render() {
    return (
      <Navbar>
        <Navbar.Header>
          <NavbarBrand>
            {/* <i className="fa fa-music text-success" style={{ fontSize: '1em' }} /> */}
            Dohlestr ({process.env.NODE_ENV})
          </NavbarBrand>
        </Navbar.Header>
        <Navbar.Collapse>
          <Nav bsStyle="tabs">
            <IndexLinkContainer to="/">
              <NavItem title="Domů">
                <ColoredIcon>home</ColoredIcon>
              </NavItem>
            </IndexLinkContainer>
            <LinkContainer to="/zarizeni">
              <NavItem title="Seznam zařízení">
                <ColoredIcon>devices</ColoredIcon>
              </NavItem>
            </LinkContainer>
            <LinkContainer to="/lokalita">
              <NavItem title="Seznam lokalit">
                <ColoredIcon>place</ColoredIcon>
              </NavItem>
            </LinkContainer>
            <LinkContainer to="/udalost">
              <NavItem title="Události">
                <ColoredIcon>history</ColoredIcon>
              </NavItem>
            </LinkContainer>
            <LinkContainer to="/udrzba/zarizeni_ke_slouceni">
              <NavItem title="Zařízení ke sloučení">
                <ColoredIcon>merge</ColoredIcon>
              </NavItem>
            </LinkContainer>
            <NavDropdown title={<ColoredIcon title="Orion">stars</ColoredIcon>} id="nav-orion">
              <LinkContainer to="/orion/cp2type">
                <MenuItem title="Custom pollers to machine type map">
                  {'CP \u2194 Type'}
                </MenuItem>
              </LinkContainer>
            </NavDropdown>
            <LinkContainer to="/hriste">
              <NavItem title="Hřiště"><commit_msg>fix: navigation icon<commit_after>/** Created by hhj on 1/12/16. */
/* eslint-disable react/no-multi-comp */
import React, { PropTypes } from 'react'
import { LinkContainer, IndexLinkContainer } from 'react-router-bootstrap'
import { Navbar, Nav, NavItem, NavDropdown, MenuItem, NavbarBrand } from 'react-bootstrap'
import MyIcon from '@hhjcz/react-lib/lib/MyIcon'
import '@hhjcz/react-lib/lib/icons.css'
import Logout from './Logout'

class ColoredIcon extends React.Component {
  static propTypes = {
    children: PropTypes.any,
  };

  render() {
    return <MyIcon color="grey" {...this.props}>{this.props.children}</MyIcon>
  }
}

export default class Navigation extends React.Component {
  static propTypes = {
    logout: PropTypes.func.isRequired,
  };

  render() {
    return (
      <Navbar>
        <Navbar.Header>
          <NavbarBrand>
            {/* <i className="fa fa-music text-success" style={{ fontSize: '1em' }} /> */}
            Dohlestr ({process.env.NODE_ENV})
          </NavbarBrand>
        </Navbar.Header>
        <Navbar.Collapse>
          <Nav bsStyle="tabs">
            <IndexLinkContainer to="/">
              <NavItem title="Domů">
                <ColoredIcon>home</ColoredIcon>
              </NavItem>
            </IndexLinkContainer>
            <LinkContainer to="/zarizeni">
              <NavItem title="Seznam zařízení">
                <ColoredIcon>devices</ColoredIcon>
              </NavItem>
            </LinkContainer>
            <LinkContainer to="/lokalita">
              <NavItem title="Seznam lokalit">
                <ColoredIcon>place</ColoredIcon>
              </NavItem>
            </LinkContainer>
            <LinkContainer to="/udalost">
              <NavItem title="Události">
                <ColoredIcon>history</ColoredIcon>
              </NavItem>
            </LinkContainer>
            <LinkContainer to="/udrzba/zarizeni_ke_slouceni">
              <NavItem title="Zařízení ke sloučení">
                <ColoredIcon>call_merge</ColoredIcon>
              </NavItem>
            </LinkContainer>
            <NavDropdown title={<ColoredIcon title="Orion">stars</ColoredIcon>} id="nav-orion">
              <LinkContainer to="/orion/cp2type">
                <MenuItem title="Custom pollers to machine type map">
                  {'CP \u2194 Type'}
                </MenuItem>
              </LinkContainer>
            </NavDropdown>
            <LinkContainer to="/hriste">
              <NavItem title="Hřiště">
{'fraction_non_alphanumeric': 0.12901284109149277, 'fraction_numerical': 0.004414125200642055, 'mean_word_length': 1.993993993993994, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 103, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1659144', 'n_tokens_mistral': 1475, 'n_tokens_neox': 1446, 'n_words': 283}