ran format
This commit is contained in:
@@ -26,14 +26,35 @@ export default class MyDocument extends Document {
|
|||||||
name="viewport"
|
name="viewport"
|
||||||
content="width=device-width, initial-scale=1, shrink-to-fit=no"
|
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
|
||||||
<link rel="icon" type="image/png" sizes="32x32" href={getUrl("/favicon-32x32.png")}/>
|
rel="apple-touch-icon"
|
||||||
<link rel="icon" type="image/png" sizes="16x16" href={getUrl("/favicon-16x16.png")}/>
|
sizes="180x180"
|
||||||
<link rel="manifest" href={getUrl("/site.webmanifest")}/>
|
href={getUrl('/apple-touch-icon.png')}
|
||||||
<link rel="mask-icon" href={getUrl("/safari-pinned-tab.svg")} color="#00d1b2"/>
|
/>
|
||||||
<meta name="msapplication-TileColor" content="#202225"/>
|
<link
|
||||||
<meta name="theme-color" content="#202225"/>
|
rel="icon"
|
||||||
<style dangerouslySetInnerHTML={{ __html: this.props.css }} data-glamor />
|
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
|
<script
|
||||||
dangerouslySetInnerHTML={{
|
dangerouslySetInnerHTML={{
|
||||||
__html: 'window.kbConf=' + JSON.stringify(app.get('kbConf')),
|
__html: 'window.kbConf=' + JSON.stringify(app.get('kbConf')),
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { css } from 'glamor'
|
import { css } from 'glamor'
|
||||||
import theme from '../styles/theme';
|
import theme from '../styles/theme'
|
||||||
|
|
||||||
const style = {
|
const style = {
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
@@ -8,11 +8,11 @@ const style = {
|
|||||||
|
|
||||||
'& p': {
|
'& p': {
|
||||||
marginBottom: 0,
|
marginBottom: 0,
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
const Footer = () => (
|
const Footer = () => (
|
||||||
<footer className={ css(style) }>
|
<footer className={css(style)}>
|
||||||
<p>
|
<p>
|
||||||
Powered by{' '}
|
Powered by{' '}
|
||||||
<a
|
<a
|
||||||
|
|||||||
@@ -63,7 +63,7 @@ const style = {
|
|||||||
margin: 0,
|
margin: 0,
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
padding: '15px 20px',
|
padding: '15px 20px',
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
'@media screen and (max-width: 840px)': {
|
'@media screen and (max-width: 840px)': {
|
||||||
@@ -92,9 +92,9 @@ const style = {
|
|||||||
width: '100%',
|
width: '100%',
|
||||||
padding: '5px 0',
|
padding: '5px 0',
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
const NavLink = ({ children, href, active }) => {
|
const NavLink = ({ children, href, active }) => {
|
||||||
@@ -127,7 +127,11 @@ class Header extends Component {
|
|||||||
const expandClass = this.state.open ? ' active' : ''
|
const expandClass = this.state.open ? ' active' : ''
|
||||||
const { user } = this.props
|
const { user } = this.props
|
||||||
return (
|
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">
|
<div className="navbar-brand">
|
||||||
<NavLink href="/">
|
<NavLink href="/">
|
||||||
<h3 onClick={this.hideNav}>MYKB</h3>
|
<h3 onClick={this.hideNav}>MYKB</h3>
|
||||||
|
|||||||
@@ -15,10 +15,13 @@ const CodeMirrorSkel = () => (
|
|||||||
<textarea style={{ height: 'calc(300px - 1.2rem)', margin: 0 }} />
|
<textarea style={{ height: 'calc(300px - 1.2rem)', margin: 0 }} />
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
const CodeMirror = dynamic(typeof window !== 'undefined' && import('../components/CodeMirror'), {
|
const CodeMirror = dynamic(
|
||||||
|
typeof window !== 'undefined' && import('../components/CodeMirror'),
|
||||||
|
{
|
||||||
loading: CodeMirrorSkel,
|
loading: CodeMirrorSkel,
|
||||||
ssr: false,
|
ssr: false,
|
||||||
})
|
}
|
||||||
|
)
|
||||||
const initState = {
|
const initState = {
|
||||||
name: '',
|
name: '',
|
||||||
dir: '',
|
dir: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user