Skip to content

Commit

Permalink
project verified boilerplate works
Browse files Browse the repository at this point in the history
  • Loading branch information
jermspeaks committed Nov 6, 2015
1 parent 3cd6014 commit 6d05df9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 19 deletions.
2 changes: 1 addition & 1 deletion app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = generators.Base.extend({

// Source Directory
this.template('src/*.js', appDir);
this.template('src/*/*.*', appDir);
this.template('src/**/*.*', appDir);

// Tools Directory
this.template('tools/*.js', toolDir);
Expand Down
16 changes: 0 additions & 16 deletions app/templates/src/common/components/Footer/Footer.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,13 @@
import React, { PropTypes, Component } from 'react';
import styles from './Footer.scss';
import withStyles from '../../../common/decorators/withStyles';
import withViewport from '../../../common/decorators/withViewport';

@withViewport
class Footer extends Component {

static propTypes = {
viewport: PropTypes.shape({
width: PropTypes.number.isRequired,
height: PropTypes.number.isRequired
}).isRequired
};

render() {
// This is just an example how one can render CSS
let { width, height } = this.props.viewport;
this.renderCss(`.Footer-viewport:after {content:' ${width}x${height}';}`);

return (
<div className="Footer">
<div className="Footer-container">
<span className="Footer-text">React & Redux Generator, 2015</span>
<span className="Footer-spacer"> | </span>
<span ref="viewport" className="Footer-viewport Footer-text Footer-text--muted">Viewport:</span>
</div>
</div>
);
Expand Down
4 changes: 2 additions & 2 deletions app/templates/src/routes.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react';
import {Route, DefaultRoute, IndexRoute} from 'react-router';
import App from './containers/App';
import Dashboard from './containers/Dashboard';
import LandingPage from './containers/LandingPage';
import AboutPage from './containers/AboutPage';
import NotFoundPage from './containers/NotFoundPage';

export default (
<Route path='/' component={App}>
<IndexRoute name='dashboard' component={Dashboard} />
<IndexRoute name='LandingPage' component={LandingPage} />
<Route name='about' path='about' component={AboutPage} />
{ /* Error Handling - Must Be Last */ }
<Route path='*' component={NotFoundPage}/>
Expand Down

0 comments on commit 6d05df9

Please sign in to comment.