How to use the react-bootstrap.Nav function in react-bootstrap

To help you get started, we’ve selected a few react-bootstrap examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Dearkano / TrueResume / Components / Header.js View on Github external
}
        var userCenter = null;
        if (localStorage.getItem("HCAccount") == "manager") {
            userCenter = React.createElement(react_bootstrap_1.NavItem, { eventKey: 1, href: "/usercenter" }, "\u4E2A\u4EBA\u4E2D\u5FC3");
        }
        return React.createElement("div", null,
            React.createElement(react_bootstrap_1.Navbar, { inverse: true, collapseOnSelect: true },
                React.createElement(react_bootstrap_1.Navbar.Header, null,
                    React.createElement(react_bootstrap_1.Navbar.Brand, null,
                        React.createElement("a", { href: "/" }, "\u7B80\u5386\u9A8C\u8BC1\u5E73\u53F0")),
                    React.createElement(react_bootstrap_1.Navbar.Toggle, null)),
                React.createElement(react_bootstrap_1.Navbar.Collapse, null,
                    React.createElement(react_bootstrap_1.Nav, null,
                        React.createElement(react_bootstrap_1.NavItem, { eventKey: 1, href: "/myresume" }, "\u6211\u7684\u7B80\u5386"),
                        React.createElement(react_bootstrap_1.NavItem, { eventKey: 2, href: "/verify" }, "\u9A8C\u8BC1\u7B80\u5386")),
                    React.createElement(react_bootstrap_1.Nav, { pullRight: true },
                        userCenter,
                        React.createElement(react_bootstrap_1.NavItem, { eventKey: 2, href: isLogin ? "/logout" : "/login" }, isLogin ? name + "/注销" : "登录")))));
    };
    return Header;
github coodict / coodict.com / app / app.jsx View on Github external
var Square        = require('./views/square.jsx');
var Profile       = require('./views/profile.jsx');

var Callback      = require('./views/callback.jsx');
var Login         = require('./views/login.jsx');

var Create        = require('./views/createSpell.jsx');
var Edit          = require('./views/createSpell.jsx');
var Spell         = require('./views/spell.jsx');
var Notfound      = require('./views/p404.jsx');
var Footer        = require('./components/footer.jsx');

var userStore     = require('./stores/userStore');
var actions       = require('./actions/actions');

var Nav           = BS.Nav;
var NavItem       = BS.NavItem;
var Navbar        = BS.Navbar;
var Grid          = BS.Grid;
var Row           = BS.Row;
var Col           = BS.Col;

require('brace/theme/github');

var CobbleApp = React.createClass({
  mixins: [
    Router.Navigation,
    Reflux.listenTo(userStore, 'updateUser')
  ],
  getInitialState: function() {
    return {
      user: userStore.getUser(),
github aclindsa / moneygo / js / components / MoneyGoApp.js View on Github external
var React = require('react');
var ReactDOM = require('react-dom');

var ReactBootstrap = require('react-bootstrap');
var Jumbotron = ReactBootstrap.Jumbotron;
var Tabs = ReactBootstrap.Tabs;
var Tab = ReactBootstrap.Tab;
var Nav = ReactBootstrap.Nav;
var NavDropdown = ReactBootstrap.NavDropdown;
var NavItem = ReactBootstrap.NavItem;
var Col = ReactBootstrap.Col;
var Row = ReactBootstrap.Row;
var Modal = ReactBootstrap.Modal;
var FormControl = ReactBootstrap.FormControl;
var InputGroup = ReactBootstrap.InputGroup;
var Button = ReactBootstrap.Button;
var Glyphicon = ReactBootstrap.Glyphicon;

var MenuItem = ReactBootstrap.MenuItem;
var SplitButton = ReactBootstrap.SplitButton;

var TopBarContainer = require('../containers/TopBarContainer');
var NewUserModalContainer = require('../containers/NewUserModalContainer');
var AccountSettingsModalContainer = require('../containers/AccountSettingsModalContainer');
github Tschaul / twister-react / js / Postboard.js View on Github external
var ReactBootstrap = require('react-bootstrap')
  , NavItem = ReactBootstrap.NavItem
  , Nav = ReactBootstrap.Nav
  , ListGroup = ReactBootstrap.ListGroup
  , ListGroupItem = ReactBootstrap.ListGroupItem
  , Panel = ReactBootstrap.Panel
  , Glyphicon = ReactBootstrap.Glyphicon
  , Button = ReactBootstrap.Button

var React = require('react/addons');

var ReactCSSTransitionGroup = React.addons.CSSTransitionGroup;

var Post = require("./Post.js");

module.exports = Postboard = React.createClass({displayName: "Postboard",
  render: function() {
    var posts = this.props.data.map(function(post, index) {
      return (
github zapier / formatic / old-docs / components / plugins-page.js View on Github external
'use strict';

var React = require('react');
var createReactClass = require('create-react-class');
var NavMain = require('./nav-main');
var Header = require('./header');
var Footer = require('./footer');
var Snippet = require('./snippet');
var ReactPlayground = require('./react-playground');
var Bootstrap = require('react-bootstrap');
var Affix = Bootstrap.Affix;
var Nav = Bootstrap.Nav;
var NavItem = Bootstrap.NavItem;
var fs = require('fs');
var path = require('path');

module.exports = createReactClass({

  getInitialState: function () {
    return {
      activeNavItemHref: null,
      navOffsetTop: null
    };
  },

  handleNavItemSelect: function (key, href) {
    this.setState({
      activeNavItemHref: href
github CrowdTruth / CrowdTruth / app / assets / javascripts / stavros-viz / react-components / Visualizations / VizNavbar.js View on Github external
var React = require('react');
var Bootstrap = require('react-bootstrap');
var Navbar = Bootstrap.Navbar;
var Nav = Bootstrap.Nav;
var NavItem = Bootstrap.NavItem;
var VizNavbar = React.createClass({displayName: "VizNavbar",


  gotoProjects: function(){
    this.transitionTo('projects');
  },

  render: function(){
    return (
      React.createElement(Navbar, {brand: "CrowdTruth"}, 
        React.createElement(Nav, {key: 1}, 
          React.createElement(NavItem, {eventKey: 1}, "To be Added"), 
          React.createElement(NavItem, {eventKey: 2, href: "#/projects"}, " Projects")
        )
github scaphold-io / react-apollo-starter-kit / lib / js / components / Home / Header.js View on Github external
{ style: styles.navbar },
        _react2.default.createElement(
          _reactBootstrap.Navbar.Header,
          null,
          _react2.default.createElement(
            _reactBootstrap.Navbar.Brand,
            null,
            _react2.default.createElement(
              _reactRouter.Link,
              { to: '/home' },
              'Scaphold'
            )
          )
        ),
        _react2.default.createElement(
          _reactBootstrap.Nav,
          { pullRight: true },
          _react2.default.createElement(
            _reactBootstrap.NavItem,
            { onClick: this.goHome },
            'Home'
          ),
          _react2.default.createElement(
            _reactBootstrap.NavItem,
            { onClick: this.goToGraphiQL },
            'GraphiQL'
          ),
          _react2.default.createElement(
            _reactBootstrap.NavItem,
            null,
            loggedInUser
          ),
github williamcotton / universal-react / src / jsx / root-component.jsx View on Github external
var React = require('react')

var Bootstrap = require('react-bootstrap')

var Navbar = Bootstrap.Navbar
var Nav = Bootstrap.Nav
var NavItem = Bootstrap.NavItem

var RootComponent = React.createClass({
  propTypes: {
    user: React.PropTypes.object,
    content: React.PropTypes.element
  },
  render: function () {
    var content = this.props.content

    const navRight = this.props.user ? [
      Logout
    ] : [
      Login,
      Signup
    ]
github Tschaul / twister-react / build-buffer / home / Home.js View on Github external
var React = require('react');
var Postboard = require("../common/Postboard.js");
var NewPostModalButton = require("../home/NewPostModalButton.js");
var SetIntervalMixin = require("../common/SetIntervalMixin.js");
var StreamMixin = require("../common/StreamMixin.js");
var SafeStateChangeMixin = require('../common/SafeStateChangeMixin.js');
var EventListenerMixin = require('../common/EventListenerMixin.js');
var AppSettingsMixin = require('../common/AppSettingsMixin.js');


var ReactBootstrap = require('react-bootstrap')
  , NavItem = ReactBootstrap.NavItem
  , Nav = ReactBootstrap.Nav
  , ListGroup = ReactBootstrap.ListGroup
  , ListGroupItem = ReactBootstrap.ListGroupItem
  , Panel = ReactBootstrap.Panel
  , Glyphicon = ReactBootstrap.Glyphicon
  , Button = ReactBootstrap.Button

module.exports = Home = React.createClass({displayName: "Home",
    
  mixins: [
    AppSettingsMixin,
    StreamMixin,
    SetIntervalMixin,
    SafeStateChangeMixin,
    EventListenerMixin('scrolledtobottom'),
    EventListenerMixin('newpostbyuser')
  ],
github vstakhov / rspamd-interface / src / components / app.jsx View on Github external
var React = require('react');
var Common = require('../common.js');
var Router = require('react-router'),
  RouteHandler = Router.RouteHandler,
  Route = Router.Route;

var ReactBootstrap = require('react-bootstrap'),
  Nav = ReactBootstrap.Nav,
  Navbar = ReactBootstrap.Navbar,
  NavItem = ReactBootstrap.NavItem,
  ListGroup = ReactBootstrap.ListGroup;

var ReactRouterBootstrap = require('react-router-bootstrap'),
  NavItemLink = ReactRouterBootstrap.NavItemLink,
  ButtonLink = ReactRouterBootstrap.ButtonLink,
  ListGroupItemLink = ReactRouterBootstrap.ListGroupItemLink;
var LoginForm = require('./login.jsx')
var Dashboard = require('./dashboard.jsx')

var App = React.createClass({
  getInitialState: function() {
    return Common.getAuthCredentials();
  },