ran format

This commit is contained in:
JJ Kasper
2018-11-04 01:29:26 -06:00
parent 31321e635a
commit 73f05ce4a3
4 changed files with 88 additions and 60 deletions

View File

@@ -26,14 +26,35 @@ export default class MyDocument extends Document {
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<link rel="apple-touch-icon" sizes="180x180" href={getUrl("/apple-touch-icon.png")}/>
<link rel="icon" type="image/png" sizes="32x32" href={getUrl("/favicon-32x32.png")}/>
<link rel="icon" type="image/png" sizes="16x16" href={getUrl("/favicon-16x16.png")}/>
<link rel="manifest" href={getUrl("/site.webmanifest")}/>
<link rel="mask-icon" href={getUrl("/safari-pinned-tab.svg")} color="#00d1b2"/>
<meta name="msapplication-TileColor" content="#202225"/>
<meta name="theme-color" content="#202225"/>
<style dangerouslySetInnerHTML={{ __html: this.props.css }} data-glamor />
<link
rel="apple-touch-icon"
sizes="180x180"
href={getUrl('/apple-touch-icon.png')}
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href={getUrl('/favicon-32x32.png')}
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href={getUrl('/favicon-16x16.png')}
/>
<link rel="manifest" href={getUrl('/site.webmanifest')} />
<link
rel="mask-icon"
href={getUrl('/safari-pinned-tab.svg')}
color="#00d1b2"
/>
<meta name="msapplication-TileColor" content="#202225" />
<meta name="theme-color" content="#202225" />
<style
dangerouslySetInnerHTML={{ __html: this.props.css }}
data-glamor
/>
<script
dangerouslySetInnerHTML={{
__html: 'window.kbConf=' + JSON.stringify(app.get('kbConf')),

View File

@@ -1,5 +1,5 @@
import { css } from 'glamor'
import theme from '../styles/theme';
import theme from '../styles/theme'
const style = {
textAlign: 'center',
@@ -8,11 +8,11 @@ const style = {
'& p': {
marginBottom: 0,
}
},
}
const Footer = () => (
<footer className={ css(style) }>
<footer className={css(style)}>
<p>
Powered by{' '}
<a

View File

@@ -63,7 +63,7 @@ const style = {
margin: 0,
cursor: 'pointer',
padding: '15px 20px',
}
},
},
'@media screen and (max-width: 840px)': {
@@ -92,9 +92,9 @@ const style = {
width: '100%',
padding: '5px 0',
textAlign: 'center',
}
}
}
},
},
},
}
const NavLink = ({ children, href, active }) => {
@@ -127,7 +127,11 @@ class Header extends Component {
const expandClass = this.state.open ? ' active' : ''
const { user } = this.props
return (
<nav className={ "navbar " + css(style) } role="navigation" aria-label="main navigation">
<nav
className={'navbar ' + css(style)}
role="navigation"
aria-label="main navigation"
>
<div className="navbar-brand">
<NavLink href="/">
<h3 onClick={this.hideNav}>MYKB</h3>

View File

@@ -15,10 +15,13 @@ const CodeMirrorSkel = () => (
<textarea style={{ height: 'calc(300px - 1.2rem)', margin: 0 }} />
</div>
)
const CodeMirror = dynamic(typeof window !== 'undefined' && import('../components/CodeMirror'), {
loading: CodeMirrorSkel,
ssr: false,
})
const CodeMirror = dynamic(
typeof window !== 'undefined' && import('../components/CodeMirror'),
{
loading: CodeMirrorSkel,
ssr: false,
}
)
const initState = {
name: '',
dir: '',