// Load CSS
require('normalize.css')
require('skeleton.css')
require('raleway.css')
// Start
document.getElementById('root').innerHTML = `
Loading
Gathering components
`
require.ensure('react', _ => {
var React = require('react')
// Load CSS
require('style.css')
require('font-awesome.min.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)
var PostEditor = require('post-editor.jsx')(boards)
var Status = require('status.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!
)
}
})
var RootComponent = React.createClass({
getInitialState () {
return {}
},
componentDidMount () {
require.ensure(['react-router'], _ => {
this.setState(require('react-router'))
})
},
render () {
if (this.state.Router) {
var Router = this.state.Router
var IndexRoute = this.state.IndexRoute
var Route = this.state.Route
return
} else {
return
}
}
})
require.ensure('react-dom', _ => {
var ReactDOM = require('react-dom')
ReactDOM.render(
, document.getElementById('root')
)
})
})