initial entry points up

This commit is contained in:
Berkeley Martinez
2015-07-01 15:14:10 -07:00
parent fb244aa165
commit e3acbe01a9
4 changed files with 10 additions and 6 deletions

View File

@ -2,7 +2,7 @@ import BrowserHistory from 'react-router/lib/BrowserHistory';
import debugFactory from 'debug'; import debugFactory from 'debug';
import { Cat } from 'thundercats'; import { Cat } from 'thundercats';
import app$ from '../common/app/app$.jsx'; import { app$ } from '../common/app';
const debug = debugFactory('fcc:client'); const debug = debugFactory('fcc:client');
const DOMContianer = document.getElemenetById('#fCC'); const DOMContianer = document.getElemenetById('#fCC');

View File

@ -3,13 +3,13 @@ import React from 'react';
import { Route, Router } from 'react-router'; import { Route, Router } from 'react-router';
// components // components
import App from './App.jsx'; import { App } from './App.jsx';
import Jobs from './routes/Jobs'; import { Jobs } from './routes/Jobs';
import NotFound from './components/NotFound'; import { NotFound } from './components/NotFound';
const router$ = Rx.Observable.fromNodeCallback(Router.run, Router); const router$ = Rx.Observable.fromNodeCallback(Router.run, Router);
export const routes = ( const routes = (
<Route handler={ App }> <Route handler={ App }>
<Route <Route
component={ Jobs } component={ Jobs }

1
common/app/index.js Normal file
View File

@ -0,0 +1 @@
export { default as app$ } from './app-stream.jsx';

View File

@ -1,8 +1,11 @@
import debugFactory from 'debug'; import debugFactory from 'debug';
import app$ from '../common/app/app-stream.jsx'; import { app$ } from '../common/app';
import { Cat } from 'thundercats'; import { Cat } from 'thundercats';
const debug = debugFactory('freecc:servereact'); const debug = debugFactory('freecc:servereact');
// add routes here as they slowly get reactified
// remove their individual controllers
const routes = [ const routes = [
'/jobs' '/jobs'
]; ];