make production build
This commit is contained in:
25
client/dashboard/layout/layout.js
Normal file
25
client/dashboard/layout/layout.js
Normal 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;
|
||||
6
client/dashboard/layout/layout.rt
Normal file
6
client/dashboard/layout/layout.rt
Normal file
@@ -0,0 +1,6 @@
|
||||
<div>
|
||||
<select onChange="{this.setView}">
|
||||
<option value="savings">Savings</option>
|
||||
<option value="production">Production</option>
|
||||
</select>
|
||||
</div>
|
||||
5
client/dashboard/layout/layout.rt.js
Normal file
5
client/dashboard/layout/layout.rt.js
Normal 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')));
|
||||
};
|
||||
9
client/dashboard/layout/layout.scss
Normal file
9
client/dashboard/layout/layout.scss
Normal file
@@ -0,0 +1,9 @@
|
||||
#layout {
|
||||
h1 {
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
// needless comment
|
||||
#yada {
|
||||
div { padding: 200px; }
|
||||
}
|
||||
Reference in New Issue
Block a user