var cloudflare = require('./cloudflare'); var React = require('react'); var ReactMiniRouter = require('react-mini-router'); var DomainList = require('./ui/DomainList'); var RecordList = require('./ui/RecordList'); var Settings = require('./ui/Settings'); var App = React.createClass({ mixins: [ReactMiniRouter.RouterMixin], routes: { '/': 'home', '/:domain': 'domain', '/:domain/settings': 'settings' }, render: function() { return this.renderCurrentRoute(); }, main: function(domain, settings) { var title; var content = []; if(domain) { title = domain; content.push(
); if(settings) { content.push(Select a domain from the sidebar
); } return (