|
|
@ -26,7 +26,7 @@ export const StylesheetLink = ({ theme }) => {
|
|
|
|
href = `/static/themes/${theme}.min.css`
|
|
|
|
href = `/static/themes/${theme}.min.css`
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
const themeDef = THEMES_HASH[theme]
|
|
|
|
const themeDef = THEMES_HASH[theme]
|
|
|
|
href = `//cdnjs.cloudflare.com/ajax/libs/codemirror/5.47.0/theme/${themeDef &&
|
|
|
|
href = `//cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.2/theme/${themeDef &&
|
|
|
|
(themeDef.link || themeDef.id)}.min.css`
|
|
|
|
(themeDef.link || themeDef.id)}.min.css`
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -34,7 +34,7 @@ export const StylesheetLink = ({ theme }) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export const CodeMirrorLink = () => (
|
|
|
|
export const CodeMirrorLink = () => (
|
|
|
|
<Link href="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.47.0/codemirror.min.css" />
|
|
|
|
<Link href="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.2/codemirror.min.css" />
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
const title = 'Carbon'
|
|
|
|
const title = 'Carbon'
|
|
|
@ -65,13 +65,13 @@ export const MetaTags = React.memo(() => (
|
|
|
|
export const MetaLinks = React.memo(() => {
|
|
|
|
export const MetaLinks = React.memo(() => {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<React.Fragment>
|
|
|
|
<React.Fragment>
|
|
|
|
<Link href="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.47.0/theme/seti.min.css" />
|
|
|
|
<Link href="//cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.2/theme/seti.min.css" />
|
|
|
|
<CodeMirrorLink />
|
|
|
|
<CodeMirrorLink />
|
|
|
|
{LOCAL_STYLESHEETS.map(id => (
|
|
|
|
{LOCAL_STYLESHEETS.map(id => (
|
|
|
|
<Link key={id} href={`/static/themes/${id}.min.css`} />
|
|
|
|
<Link key={id} href={`/static/themes/${id}.min.css`} />
|
|
|
|
))}
|
|
|
|
))}
|
|
|
|
{CDN_STYLESHEETS.map(themeDef => {
|
|
|
|
{CDN_STYLESHEETS.map(themeDef => {
|
|
|
|
const href = `//cdnjs.cloudflare.com/ajax/libs/codemirror/5.47.0/theme/${themeDef &&
|
|
|
|
const href = `//cdnjs.cloudflare.com/ajax/libs/codemirror/5.48.2/theme/${themeDef &&
|
|
|
|
(themeDef.link || themeDef.id)}.min.css`
|
|
|
|
(themeDef.link || themeDef.id)}.min.css`
|
|
|
|
return <Link key={themeDef.id} href={href} />
|
|
|
|
return <Link key={themeDef.id} href={href} />
|
|
|
|
})}
|
|
|
|
})}
|
|
|
|