Skip to content

Commit

Permalink
refactor: Integrate bootstrap less directly
Browse files Browse the repository at this point in the history
This will allow for easier modification and styling of
bootstrap variables
  • Loading branch information
dignifiedquire committed Jan 1, 2016
1 parent 9cd87b3 commit ae006e0
Show file tree
Hide file tree
Showing 9 changed files with 1,289 additions and 368 deletions.
2 changes: 2 additions & 0 deletions app/scripts/main.js → app/scripts/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import ReactDOM from 'react-dom'
import Router from 'react-router'
import routes from './routes'

require('../styles/app.less')

if (process.env.NODE_ENV !== 'production') {
window.uiDebug = require('debug')
}
Expand Down
2 changes: 0 additions & 2 deletions app/scripts/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import ConfigPage from './pages/config'
import LogPage from './pages/logs'
import NotFoundPage from './pages/notfound'

require('../styles/bundle.less')

export default (
<Route handler={Page} path='/'>
<DefaultRoute name='home' handler={HomePage} />
Expand Down
4 changes: 2 additions & 2 deletions app/scripts/views/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default React.createClass({

getInitialState: function () {
return {
body: JSON.stringify(this.props.config, null, '\t'),
body: JSON.stringify(this.props.config, null, ' '),
error: null,
saving: false,
saved: false
Expand All @@ -20,7 +20,7 @@ export default React.createClass({

reset: function () {
this.setState({
body: JSON.stringify(this.props.config, null, '\t'),
body: JSON.stringify(this.props.config, null, ' '),
error: null
})
},
Expand Down
3 changes: 3 additions & 0 deletions app/styles/app.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@import "./bootstrap";
@import "./base";
@import "../../node_modules/font-awesome/less/font-awesome";
Loading

0 comments on commit ae006e0

Please sign in to comment.