Skip to content
This repository has been archived by the owner on Mar 7, 2018. It is now read-only.

Commit

Permalink
Merge pull request #100 from CatalystCode/remove-unused-facts-code
Browse files Browse the repository at this point in the history
Remove unused facts code
  • Loading branch information
c-w committed Oct 18, 2017
2 parents 3b3abdf + f37af4e commit a5852b8
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 312 deletions.
209 changes: 0 additions & 209 deletions src/components/Facts/FactDetail.js

This file was deleted.

2 changes: 0 additions & 2 deletions src/index.js
@@ -1,5 +1,4 @@
import {DataStore} from './stores/DataStore';
import {FactsStore} from './stores/FactsStore';
import {AdminStore} from './stores/AdminStore';
import {methods as DashboardActions} from './actions/Dashboard';
import {methods as AdminActions} from './actions/Admin';
Expand All @@ -17,7 +16,6 @@ let userProfile = constants.USER_PROFILE;

let stores = {
DataStore: new DataStore(userProfile),
FactsStore: new FactsStore(),
AdminStore: new AdminStore(),
};

Expand Down
13 changes: 0 additions & 13 deletions src/routes/FactDetailPage.js

This file was deleted.

17 changes: 14 additions & 3 deletions src/routes/FactsPage.js
@@ -1,13 +1,24 @@
import React from 'react';
import createReactClass from 'create-react-class';
import Fluxxor from 'fluxxor';
import { FactsList } from '../components/Facts/FactsList';
import '../styles/Facts/Facts.css';

export class FactsPage extends React.Component {
const FluxMixin = Fluxxor.FluxMixin(React);
const StoreWatchMixin = Fluxxor.StoreWatchMixin("DataStore");

export const FactsPage = createReactClass({
mixins: [FluxMixin, StoreWatchMixin],

getStateFromFlux() {
return this.getFlux().store("DataStore").getState();
},

render() {
return (
<div className="report">
<FactsList {...this.props.params} />
<FactsList {...this.getStateFromFlux()} />
</div>
);
}
}
});
3 changes: 0 additions & 3 deletions src/routes/routes.js
Expand Up @@ -2,7 +2,6 @@ import { Route } from 'react-router'
import {AppPage} from './AppPage';
import {EntryPage} from './EntryPage';
import {FactsPage} from './FactsPage';
import {FactDetailPage} from './FactDetailPage';
import {PredictionsPage} from './PredictionsPage';
import {AdminPage} from './AdminPage';
import React from 'react';
Expand All @@ -11,8 +10,6 @@ export const routes = (
<Route path="/" component={AppPage} linkLabel="My App" icon="fa fa-share-alt-square fa">
<Route path="site/:siteKey" component={EntryPage} />
<Route path="site/:siteKey/facts" component={FactsPage} />
<Route path="site/:siteKey/facts/tags(/:tags)" component={FactsPage} />
<Route path="site/:siteKey/facts/detail/:factId" component={FactDetailPage} />
<Route path="site/:siteKey/predictions" component={PredictionsPage} />
<Route path="site/:siteKey/admin" component={AdminPage} />
</Route>
Expand Down
82 changes: 0 additions & 82 deletions src/stores/FactsStore.js

This file was deleted.

0 comments on commit a5852b8

Please sign in to comment.