make production build

This commit is contained in:
Eric Hulburd
2016-02-08 18:23:40 -06:00
parent 3cb2320300
commit 109ad432bb
31 changed files with 330 additions and 1387 deletions

View File

@@ -0,0 +1,25 @@
import layoutRt from './layout.rt.js';
var Layout = React.createClass({
getInitialState: function() {
},
handleResize: function(e) {
this.setState({windowWidth: window.innerWidth});
},
componentDidMount: function() {
window.addEventListener('resize', this.handleResize);
},
setView: function(event) {
var layout = this;
layout.setState({view: event.target.value});
},
render: function() {
return layoutRt.bind(this);
}
});
export default Layout;

View File

@@ -0,0 +1,6 @@
<div>
<select onChange="{this.setView}">
<option value="savings">Savings</option>
<option value="production">Production</option>
</select>
</div>

View File

@@ -0,0 +1,5 @@
import React from 'react/addons';
import _ from 'lodash';
export default function () {
return React.createElement('div', {}, React.createElement('select', { 'onChange': this.setView }, React.createElement('option', { 'value': 'savings' }, 'Savings'), React.createElement('option', { 'value': 'production' }, 'Production')));
};

View File

@@ -0,0 +1,9 @@
#layout {
h1 {
color: red;
}
}
// needless comment
#yada {
div { padding: 200px; }
}