|
|
|
@ -26,7 +26,7 @@ export const StylesheetLink = ({ theme }) => {
|
|
|
|
|
href = `/static/themes/${theme}.min.css`
|
|
|
|
|
} else {
|
|
|
|
|
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`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -34,7 +34,7 @@ export const StylesheetLink = ({ theme }) => {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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'
|
|
|
|
@ -65,13 +65,13 @@ export const MetaTags = React.memo(() => (
|
|
|
|
|
export const MetaLinks = React.memo(() => {
|
|
|
|
|
return (
|
|
|
|
|
<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 />
|
|
|
|
|
{LOCAL_STYLESHEETS.map(id => (
|
|
|
|
|
<Link key={id} href={`/static/themes/${id}.min.css`} />
|
|
|
|
|
))}
|
|
|
|
|
{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`
|
|
|
|
|
return <Link key={themeDef.id} href={href} />
|
|
|
|
|
})}
|
|
|
|
|