mirror of
https://github.com/stolksdorf/homebrewery.git
synced 2025-12-22 07:01:28 +00:00
Remove chrome warnings from after rebase
This commit is contained in:
@@ -5,26 +5,6 @@ const Nav = require('naturalcrit/nav/nav.jsx');
|
||||
const Store = require('homebrewery/brew.store.js');
|
||||
|
||||
const Navbar = React.createClass({
|
||||
getInitialState: function() {
|
||||
return {
|
||||
showNonChromeWarning : false,
|
||||
};
|
||||
},
|
||||
componentDidMount: function() {
|
||||
//const isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor);
|
||||
this.setState({
|
||||
showNonChromeWarning : !isChrome,
|
||||
})
|
||||
},
|
||||
renderChromeWarning : function(){
|
||||
if(!this.state.showNonChromeWarning) return;
|
||||
return <Nav.item className='warning' icon='fa-exclamation-triangle'>
|
||||
Optimized for Chrome
|
||||
<div className='dropdown'>
|
||||
If you are experiencing rendering issues, use Chrome instead
|
||||
</div>
|
||||
</Nav.item>
|
||||
},
|
||||
render : function(){
|
||||
return <Nav.base>
|
||||
<Nav.section>
|
||||
@@ -33,8 +13,6 @@ const Navbar = React.createClass({
|
||||
<div>The Homebrewery</div>
|
||||
</Nav.item>
|
||||
<Nav.item>{`v${Store.getVersion()}`}</Nav.item>
|
||||
|
||||
{/*this.renderChromeWarning()*/}
|
||||
</Nav.section>
|
||||
{this.props.children}
|
||||
</Nav.base>
|
||||
|
||||
@@ -102,8 +102,7 @@ const BrewEditor = React.createClass({
|
||||
|
||||
this.highlightPageLines();
|
||||
|
||||
return(
|
||||
<div className='brewEditor' ref='main'>
|
||||
return<div className='brewEditor' ref='main'>
|
||||
<SnippetBar
|
||||
brew={this.props.value}
|
||||
onInject={this.handleInject}
|
||||
@@ -119,12 +118,11 @@ const BrewEditor = React.createClass({
|
||||
onCursorActivity={this.handleCursorActivty} />
|
||||
</div>
|
||||
|
||||
{/*
|
||||
/*
|
||||
<div className='brewJump' onClick={this.brewJump}>
|
||||
<i className='fa fa-arrow-right' />
|
||||
</div>
|
||||
*/}
|
||||
);
|
||||
*/
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -132,7 +132,7 @@ describe('Middleware', () => {
|
||||
.expect(200);
|
||||
});
|
||||
it('should block you if basic auth is wrong', () => {
|
||||
app.use(mw.adminAuth);
|
||||
app.use(mw.adminLogin);
|
||||
app.use(requestHandler);
|
||||
app.use(Error.expressHandler);
|
||||
return request(app).get('/')
|
||||
|
||||
Reference in New Issue
Block a user