var React = require('react') var ReactDOM = require('react-dom') var Router = require('react-router').Router var Route = require('react-router').Route var IndexRoute = require('react-router').IndexRoute // Load CSS require('normalize.css') require('skeleton.css') require('style.css') require('raleway.css') // Load Components var BoardsWrapper = require('boardsapiwrapper.js') var boards = new BoardsWrapper() var Icon = require('icon.jsx') // Load pages var Navbar = require('navbar.jsx')(boards) var Users = require('users.jsx')(boards) var Settings = require('settings.jsx')(boards) var Profile = require('profile.jsx')(boards) var Board = require('board.jsx')(boards) var PostPage = require('postpage.jsx')(boards) var CommentPage = require('commentpage.jsx')(boards) var ProfileEditor = require('profile-editor.jsx')(boards) var BoardEditor = require('board-editor.jsx')(boards) // Define Main Components var Container = React.createClass({ render () { return (
{this.props.children}
) } }) var App = React.createClass({ render () { return (
{this.props.children}
) } }) // Static pages var Static = React.createClass({ html () { return { __html: this.props.content } }, render () { if (this.props.content) { return
} else { return } } }) var Homepage = React.createClass({ render () { return } }) var NotFound = React.createClass({ render () { return (

Sorry, there's nothing here!

) } }) // Start ReactDOM.render( , document.getElementById('root') )