/* eslint-disable max-len */ import React from 'react'; import { render } from 'react-dom'; import { Router, Route, IndexRoute, browserHistory } from 'react-router'; import { Meteor } from 'meteor/meteor'; import App from '../../ui/layouts/App.js'; import Documents from '../../ui/pages/Documents.js'; import NewDocument from '../../ui/pages/NewDocument.js'; import EditDocument from '../../ui/containers/EditDocument.js'; import ViewDocument from '../../ui/containers/ViewDocument.js'; import Index from '../../ui/pages/Index.js'; import Login from '../../ui/pages/Login.js'; import NotFound from '../../ui/pages/NotFound.js'; import RecoverPassword from '../../ui/pages/RecoverPassword.js'; import ResetPassword from '../../ui/pages/ResetPassword.js'; import Signup from '../../ui/pages/Signup.js'; const requireAuth = (nextState, replace) => { if (!Meteor.loggingIn() && !Meteor.userId()) { replace({ pathname: '/login', state: { nextPathname: nextState.location.pathname }, }); } }; Meteor.startup(() => { render( , document.getElementById('react-root') ); });