|
|
|
@ -13,7 +13,7 @@ export const FONTS = [
|
|
|
|
|
{ id: 'Monoid', name: 'Monoid' },
|
|
|
|
|
{ id: 'Source Code Pro', name: 'Source Code Pro' },
|
|
|
|
|
{ id: 'Space Mono', name: 'Space Mono' },
|
|
|
|
|
{ id: 'Ubuntu Mono', name: 'Ubuntu Mono' }
|
|
|
|
|
{ id: 'Ubuntu Mono', name: 'Ubuntu Mono' },
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
export const HIGHLIGHT_KEYS = [
|
|
|
|
@ -28,7 +28,7 @@ export const HIGHLIGHT_KEYS = [
|
|
|
|
|
'number',
|
|
|
|
|
'string',
|
|
|
|
|
'comment',
|
|
|
|
|
'meta'
|
|
|
|
|
'meta',
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
export const THEMES = [
|
|
|
|
@ -47,8 +47,8 @@ export const THEMES = [
|
|
|
|
|
number: '#a16a94',
|
|
|
|
|
string: '#fded02',
|
|
|
|
|
comment: '#cdab53',
|
|
|
|
|
meta: '#555'
|
|
|
|
|
}
|
|
|
|
|
meta: '#555',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'a11y-dark',
|
|
|
|
@ -66,8 +66,8 @@ export const THEMES = [
|
|
|
|
|
string: '#ffd700',
|
|
|
|
|
comment: '#d4d0ab',
|
|
|
|
|
meta: '#d4d0ab',
|
|
|
|
|
tag: '#dcc6e0'
|
|
|
|
|
}
|
|
|
|
|
tag: '#dcc6e0',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'blackboard',
|
|
|
|
@ -85,8 +85,8 @@ export const THEMES = [
|
|
|
|
|
string: '#61CE3C',
|
|
|
|
|
comment: '#AEAEAE',
|
|
|
|
|
meta: '#D8FA3C',
|
|
|
|
|
tag: '#8DA6CE'
|
|
|
|
|
}
|
|
|
|
|
tag: '#8DA6CE',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'base16-dark',
|
|
|
|
@ -104,8 +104,8 @@ export const THEMES = [
|
|
|
|
|
string: '#f4bf75',
|
|
|
|
|
comment: '#8f5536',
|
|
|
|
|
meta: '#555',
|
|
|
|
|
tag: '#ac4142'
|
|
|
|
|
}
|
|
|
|
|
tag: '#ac4142',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'base16-light',
|
|
|
|
@ -124,8 +124,8 @@ export const THEMES = [
|
|
|
|
|
string: '#f4bf75',
|
|
|
|
|
comment: '#8f5536',
|
|
|
|
|
meta: '#555',
|
|
|
|
|
tag: '#ac4142'
|
|
|
|
|
}
|
|
|
|
|
tag: '#ac4142',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'cobalt',
|
|
|
|
@ -143,8 +143,8 @@ export const THEMES = [
|
|
|
|
|
string: '#3ad900',
|
|
|
|
|
comment: '#08f',
|
|
|
|
|
meta: '#ff9d00',
|
|
|
|
|
tag: '#9effff'
|
|
|
|
|
}
|
|
|
|
|
tag: '#9effff',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'dracula',
|
|
|
|
@ -162,8 +162,8 @@ export const THEMES = [
|
|
|
|
|
string: '#f1fa8c',
|
|
|
|
|
comment: '#6272a4',
|
|
|
|
|
meta: '#f8f8f2',
|
|
|
|
|
tag: '#ff79c6'
|
|
|
|
|
}
|
|
|
|
|
tag: '#ff79c6',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'duotone-dark',
|
|
|
|
@ -181,8 +181,8 @@ export const THEMES = [
|
|
|
|
|
string: '#ffb870',
|
|
|
|
|
comment: '#6c6783',
|
|
|
|
|
meta: '#555',
|
|
|
|
|
tag: '#eeebff'
|
|
|
|
|
}
|
|
|
|
|
tag: '#eeebff',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'hopscotch',
|
|
|
|
@ -200,8 +200,8 @@ export const THEMES = [
|
|
|
|
|
string: '#fdcc59',
|
|
|
|
|
comment: '#b33508',
|
|
|
|
|
meta: '#555',
|
|
|
|
|
tag: '#dd464c'
|
|
|
|
|
}
|
|
|
|
|
tag: '#dd464c',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'lucario',
|
|
|
|
@ -219,8 +219,8 @@ export const THEMES = [
|
|
|
|
|
string: '#E6DB74',
|
|
|
|
|
comment: '#5c98cd',
|
|
|
|
|
meta: '#f8f8f2',
|
|
|
|
|
tag: '#ff6541'
|
|
|
|
|
}
|
|
|
|
|
tag: '#ff6541',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'material',
|
|
|
|
@ -238,8 +238,8 @@ export const THEMES = [
|
|
|
|
|
string: '#C3E88D',
|
|
|
|
|
comment: '#546E7A',
|
|
|
|
|
meta: '#80CBC4',
|
|
|
|
|
tag: 'rgba(255, 83, 112, 1)'
|
|
|
|
|
}
|
|
|
|
|
tag: 'rgba(255, 83, 112, 1)',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'monokai',
|
|
|
|
@ -257,8 +257,8 @@ export const THEMES = [
|
|
|
|
|
string: '#e6db74',
|
|
|
|
|
comment: '#75715e',
|
|
|
|
|
meta: '#555',
|
|
|
|
|
tag: '#bc6283'
|
|
|
|
|
}
|
|
|
|
|
tag: '#bc6283',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'night-owl',
|
|
|
|
@ -275,8 +275,8 @@ export const THEMES = [
|
|
|
|
|
number: '#F78C6C',
|
|
|
|
|
string: '#ecc48d',
|
|
|
|
|
comment: '#5c6370',
|
|
|
|
|
meta: '#7fdbca'
|
|
|
|
|
}
|
|
|
|
|
meta: '#7fdbca',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'nord',
|
|
|
|
@ -294,8 +294,8 @@ export const THEMES = [
|
|
|
|
|
string: '#A3BE8C',
|
|
|
|
|
comment: '#4C566A',
|
|
|
|
|
meta: '#81A1C1',
|
|
|
|
|
tag: '#81A1C1'
|
|
|
|
|
}
|
|
|
|
|
tag: '#81A1C1',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'oceanic-next',
|
|
|
|
@ -313,8 +313,8 @@ export const THEMES = [
|
|
|
|
|
string: '#99C794',
|
|
|
|
|
comment: '#65737E',
|
|
|
|
|
meta: '#555',
|
|
|
|
|
tag: '#C594C5'
|
|
|
|
|
}
|
|
|
|
|
tag: '#C594C5',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'one-light',
|
|
|
|
@ -333,8 +333,8 @@ export const THEMES = [
|
|
|
|
|
string: '#50a14f',
|
|
|
|
|
comment: '#a0a1a7',
|
|
|
|
|
meta: '#383a42',
|
|
|
|
|
tag: '#e45649'
|
|
|
|
|
}
|
|
|
|
|
tag: '#e45649',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'one-dark',
|
|
|
|
@ -352,8 +352,8 @@ export const THEMES = [
|
|
|
|
|
string: '#98c379',
|
|
|
|
|
comment: '#5c6370',
|
|
|
|
|
meta: '#abb2bf',
|
|
|
|
|
tag: '#e06c75'
|
|
|
|
|
}
|
|
|
|
|
tag: '#e06c75',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'panda-syntax',
|
|
|
|
@ -371,8 +371,8 @@ export const THEMES = [
|
|
|
|
|
string: '#19F9D8',
|
|
|
|
|
comment: '#676B79',
|
|
|
|
|
meta: '#b084eb',
|
|
|
|
|
tag: '#ff2c6d'
|
|
|
|
|
}
|
|
|
|
|
tag: '#ff2c6d',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'paraiso-dark',
|
|
|
|
@ -390,8 +390,8 @@ export const THEMES = [
|
|
|
|
|
string: '#fec418',
|
|
|
|
|
comment: '#e96ba8',
|
|
|
|
|
meta: '#555',
|
|
|
|
|
tag: '#ef6155'
|
|
|
|
|
}
|
|
|
|
|
tag: '#ef6155',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'seti',
|
|
|
|
@ -409,8 +409,8 @@ export const THEMES = [
|
|
|
|
|
string: '#55b5db',
|
|
|
|
|
comment: '#41535b',
|
|
|
|
|
meta: '#55b5db',
|
|
|
|
|
tag: '#55b5db'
|
|
|
|
|
}
|
|
|
|
|
tag: '#55b5db',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'shades-of-purple',
|
|
|
|
@ -428,8 +428,8 @@ export const THEMES = [
|
|
|
|
|
string: '#A5FF90',
|
|
|
|
|
comment: '#B362FF',
|
|
|
|
|
meta: '#FF9D00',
|
|
|
|
|
tag: '#9EFFFF'
|
|
|
|
|
}
|
|
|
|
|
tag: '#9EFFFF',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'solarized dark',
|
|
|
|
@ -448,8 +448,8 @@ export const THEMES = [
|
|
|
|
|
string: '#859900',
|
|
|
|
|
comment: '#586e75',
|
|
|
|
|
meta: '#859900',
|
|
|
|
|
tag: '#93a1a1'
|
|
|
|
|
}
|
|
|
|
|
tag: '#93a1a1',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'solarized light',
|
|
|
|
@ -469,8 +469,8 @@ export const THEMES = [
|
|
|
|
|
string: '#859900',
|
|
|
|
|
comment: '#586e75',
|
|
|
|
|
meta: '#859900',
|
|
|
|
|
tag: '#93a1a1'
|
|
|
|
|
}
|
|
|
|
|
tag: '#93a1a1',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'synthwave-84',
|
|
|
|
@ -488,8 +488,8 @@ export const THEMES = [
|
|
|
|
|
string: '#ff8b39',
|
|
|
|
|
comment: '#6d77b3',
|
|
|
|
|
meta: '#ff8b39',
|
|
|
|
|
tag: '#f92aad'
|
|
|
|
|
}
|
|
|
|
|
tag: '#f92aad',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'twilight',
|
|
|
|
@ -507,8 +507,8 @@ export const THEMES = [
|
|
|
|
|
string: '#8f9d6a',
|
|
|
|
|
comment: '#777',
|
|
|
|
|
meta: '#f7f7f7',
|
|
|
|
|
tag: '#997643'
|
|
|
|
|
}
|
|
|
|
|
tag: '#997643',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'verminal',
|
|
|
|
@ -526,8 +526,8 @@ export const THEMES = [
|
|
|
|
|
string: '#98c379',
|
|
|
|
|
comment: '#5c6370',
|
|
|
|
|
meta: '#abb2bf',
|
|
|
|
|
tag: '#e06c75'
|
|
|
|
|
}
|
|
|
|
|
tag: '#e06c75',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'vscode',
|
|
|
|
@ -545,8 +545,8 @@ export const THEMES = [
|
|
|
|
|
string: '#CE9178',
|
|
|
|
|
comment: '#6A9955',
|
|
|
|
|
meta: '#D4D4D4',
|
|
|
|
|
tag: '#569cd6'
|
|
|
|
|
}
|
|
|
|
|
tag: '#569cd6',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'yeti',
|
|
|
|
@ -565,8 +565,8 @@ export const THEMES = [
|
|
|
|
|
string: '#96c0d8',
|
|
|
|
|
comment: '#d4c8be',
|
|
|
|
|
meta: '#96c0d8',
|
|
|
|
|
tag: '#96c0d8'
|
|
|
|
|
}
|
|
|
|
|
tag: '#96c0d8',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 'zenburn',
|
|
|
|
@ -584,9 +584,9 @@ export const THEMES = [
|
|
|
|
|
string: '#cc9393',
|
|
|
|
|
comment: '#7f9f7f',
|
|
|
|
|
meta: '#f0dfaf',
|
|
|
|
|
tag: '#93e0e3'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
tag: '#93e0e3',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
export const THEMES_HASH = toHash(THEMES)
|
|
|
|
@ -594,404 +594,404 @@ export const THEMES_HASH = toHash(THEMES)
|
|
|
|
|
export const LANGUAGES = [
|
|
|
|
|
{
|
|
|
|
|
name: 'Auto',
|
|
|
|
|
mode: 'auto'
|
|
|
|
|
mode: 'auto',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Apache',
|
|
|
|
|
mode: 'apache',
|
|
|
|
|
mime: 'text/apache',
|
|
|
|
|
custom: true,
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Bash',
|
|
|
|
|
mode: 'shell',
|
|
|
|
|
mime: 'application/x-sh',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Plain Text',
|
|
|
|
|
mode: 'text'
|
|
|
|
|
mode: 'text',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'C',
|
|
|
|
|
mode: 'clike',
|
|
|
|
|
mime: 'text/x-csrc',
|
|
|
|
|
short: 'c'
|
|
|
|
|
short: 'c',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'C++',
|
|
|
|
|
mode: 'clike',
|
|
|
|
|
mime: 'text/x-c++src',
|
|
|
|
|
short: 'cpp',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'C#',
|
|
|
|
|
mode: 'clike',
|
|
|
|
|
mime: 'text/x-csharp',
|
|
|
|
|
short: 'cs',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Clojure',
|
|
|
|
|
mode: 'clojure',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'COBOL',
|
|
|
|
|
mode: 'cobol'
|
|
|
|
|
mode: 'cobol',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'CoffeeScript',
|
|
|
|
|
mode: 'coffeescript',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Crystal',
|
|
|
|
|
mode: 'crystal',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'CSS',
|
|
|
|
|
mode: 'css',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'D',
|
|
|
|
|
mode: 'd',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Dart',
|
|
|
|
|
mode: 'dart',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Diff',
|
|
|
|
|
mode: 'diff',
|
|
|
|
|
mime: 'text/x-diff',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Django',
|
|
|
|
|
mode: 'django',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Docker',
|
|
|
|
|
mode: 'dockerfile',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Elixir',
|
|
|
|
|
mode: 'elixir',
|
|
|
|
|
custom: true,
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Elm',
|
|
|
|
|
mode: 'elm',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Erlang',
|
|
|
|
|
mode: 'erlang',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Fortran',
|
|
|
|
|
mode: 'fortran',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Gherkin',
|
|
|
|
|
mode: 'gherkin',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'GraphQL',
|
|
|
|
|
mode: 'graphql',
|
|
|
|
|
custom: true
|
|
|
|
|
custom: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Go',
|
|
|
|
|
mode: 'go',
|
|
|
|
|
mime: 'text/x-go',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Groovy',
|
|
|
|
|
mode: 'groovy',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Handlebars',
|
|
|
|
|
mode: 'handlebars',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Haskell',
|
|
|
|
|
mode: 'haskell',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'HTML/XML',
|
|
|
|
|
mode: 'htmlmixed'
|
|
|
|
|
mode: 'htmlmixed',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Java',
|
|
|
|
|
mode: 'clike',
|
|
|
|
|
mime: 'text/x-java',
|
|
|
|
|
short: 'java',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'JavaScript',
|
|
|
|
|
mode: 'javascript',
|
|
|
|
|
short: 'javascript',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'JSON',
|
|
|
|
|
mode: 'javascript',
|
|
|
|
|
mime: 'application/json',
|
|
|
|
|
short: 'json',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'JSX',
|
|
|
|
|
mode: 'jsx',
|
|
|
|
|
short: 'jsx'
|
|
|
|
|
short: 'jsx',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Julia',
|
|
|
|
|
mode: 'julia',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Kotlin',
|
|
|
|
|
mode: 'clike',
|
|
|
|
|
mime: 'text/x-kotlin',
|
|
|
|
|
short: 'kotlin',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'LaTeX',
|
|
|
|
|
mode: 'stex'
|
|
|
|
|
mode: 'stex',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Lisp',
|
|
|
|
|
mode: 'commonlisp'
|
|
|
|
|
mode: 'commonlisp',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Lua',
|
|
|
|
|
mode: 'lua',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Markdown',
|
|
|
|
|
mode: 'markdown',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Mathematica',
|
|
|
|
|
mode: 'mathematica',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'MATLAB/Octave',
|
|
|
|
|
mode: 'octave',
|
|
|
|
|
mime: 'text/x-octave'
|
|
|
|
|
mime: 'text/x-octave',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'MySQL',
|
|
|
|
|
mode: 'sql',
|
|
|
|
|
mime: 'text/x-mysql',
|
|
|
|
|
short: 'mysql'
|
|
|
|
|
short: 'mysql',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'N-Triples',
|
|
|
|
|
mode: 'ntriples',
|
|
|
|
|
mime: 'application/n-triples'
|
|
|
|
|
mime: 'application/n-triples',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'NGINX',
|
|
|
|
|
mode: 'nginx',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Nim',
|
|
|
|
|
mode: 'nimrod',
|
|
|
|
|
custom: true,
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Objective C',
|
|
|
|
|
mode: 'clike',
|
|
|
|
|
mime: 'text/x-objectivec',
|
|
|
|
|
short: 'objectivec',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'OCaml/F#',
|
|
|
|
|
mode: 'mllike'
|
|
|
|
|
mode: 'mllike',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Pascal',
|
|
|
|
|
mode: 'pascal'
|
|
|
|
|
mode: 'pascal',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Perl',
|
|
|
|
|
mode: 'perl',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'PHP',
|
|
|
|
|
mode: 'php',
|
|
|
|
|
mime: 'text/x-php',
|
|
|
|
|
short: 'php',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'PowerShell',
|
|
|
|
|
mode: 'powershell',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Python',
|
|
|
|
|
mode: 'python',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'R',
|
|
|
|
|
mode: 'r',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'RISC-V',
|
|
|
|
|
mode: 'riscv',
|
|
|
|
|
custom: true
|
|
|
|
|
custom: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Ruby',
|
|
|
|
|
mode: 'ruby',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Rust',
|
|
|
|
|
mode: 'rust',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Sass',
|
|
|
|
|
mode: 'sass'
|
|
|
|
|
mode: 'sass',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Scala',
|
|
|
|
|
mode: 'clike',
|
|
|
|
|
mime: 'text/x-scala',
|
|
|
|
|
short: 'scala',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Smalltalk',
|
|
|
|
|
mode: 'smalltalk',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Solidity',
|
|
|
|
|
mode: 'solidity',
|
|
|
|
|
custom: true
|
|
|
|
|
custom: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'SPARQL',
|
|
|
|
|
mode: 'sparql',
|
|
|
|
|
mime: 'application/sparql-query'
|
|
|
|
|
mime: 'application/sparql-query',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'SQL',
|
|
|
|
|
mode: 'sql',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Stylus',
|
|
|
|
|
mode: 'stylus',
|
|
|
|
|
mime: 'stylus',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Swift',
|
|
|
|
|
mode: 'swift',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'TCL',
|
|
|
|
|
mode: 'tcl',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'TOML',
|
|
|
|
|
mode: 'toml'
|
|
|
|
|
mode: 'toml',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Turtle',
|
|
|
|
|
mode: 'turtle',
|
|
|
|
|
mime: 'text/turtle'
|
|
|
|
|
mime: 'text/turtle',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'TypeScript',
|
|
|
|
|
mode: 'javascript',
|
|
|
|
|
mime: 'application/typescript',
|
|
|
|
|
short: 'typescript',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'TSX',
|
|
|
|
|
mode: 'jsx',
|
|
|
|
|
mime: 'text/typescript-jsx',
|
|
|
|
|
short: 'tsx'
|
|
|
|
|
short: 'tsx',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Twig',
|
|
|
|
|
mode: 'twig',
|
|
|
|
|
mime: 'text/x-twig',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'VB.NET',
|
|
|
|
|
mode: 'vb'
|
|
|
|
|
mode: 'vb',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Verilog',
|
|
|
|
|
mode: 'verilog',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'VHDL',
|
|
|
|
|
mode: 'vhdl',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'Vue',
|
|
|
|
|
mode: 'vue'
|
|
|
|
|
mode: 'vue',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'XQuery',
|
|
|
|
|
mode: 'xquery',
|
|
|
|
|
highlight: true
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: 'YAML',
|
|
|
|
|
mode: 'yaml',
|
|
|
|
|
highlight: true
|
|
|
|
|
}
|
|
|
|
|
highlight: true,
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
export const EXPORT_SIZES = [
|
|
|
|
|
{ id: '1x', name: '1x', value: 1 },
|
|
|
|
|
{ id: '2x', name: '2x', value: 2 },
|
|
|
|
|
{ id: '4x', name: '4x', value: 4 }
|
|
|
|
|
{ id: '4x', name: '4x', value: 4 },
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
export const EXPORT_SIZES_HASH = toHash(EXPORT_SIZES)
|
|
|
|
@ -1015,7 +1015,7 @@ export const COLORS = {
|
|
|
|
|
PURPLE: '#C198FB',
|
|
|
|
|
DARK_PURPLE: '#55436F',
|
|
|
|
|
RED: '#ff5f56',
|
|
|
|
|
BLUE: '#57b5f9'
|
|
|
|
|
BLUE: '#57b5f9',
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const DEFAULT_CODE = `const pluckDeep = key => obj => key.split('.').reduce((accum, key) => accum[key], obj)
|
|
|
|
@ -1053,14 +1053,14 @@ export const DEFAULT_SETTINGS = {
|
|
|
|
|
exportSize: '2x',
|
|
|
|
|
watermark: false,
|
|
|
|
|
squaredImage: false,
|
|
|
|
|
hiddenCharacters: false
|
|
|
|
|
hiddenCharacters: false,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const DEFAULT_PRESETS = [
|
|
|
|
|
{
|
|
|
|
|
...DEFAULT_SETTINGS,
|
|
|
|
|
icon: '/static/presets/4.png',
|
|
|
|
|
id: 'preset:4'
|
|
|
|
|
id: 'preset:4',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
...DEFAULT_SETTINGS,
|
|
|
|
@ -1070,7 +1070,7 @@ export const DEFAULT_PRESETS = [
|
|
|
|
|
fontFamily: 'Fira Code',
|
|
|
|
|
lineHeight: '152%',
|
|
|
|
|
icon: '/static/presets/7.png',
|
|
|
|
|
id: 'preset:7'
|
|
|
|
|
id: 'preset:7',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
...DEFAULT_SETTINGS,
|
|
|
|
@ -1080,7 +1080,7 @@ export const DEFAULT_PRESETS = [
|
|
|
|
|
fontFamily: 'Fira Code',
|
|
|
|
|
lineHeight: '152%',
|
|
|
|
|
icon: '/static/presets/8.png',
|
|
|
|
|
id: 'preset:8'
|
|
|
|
|
id: 'preset:8',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
...DEFAULT_SETTINGS,
|
|
|
|
@ -1090,7 +1090,7 @@ export const DEFAULT_PRESETS = [
|
|
|
|
|
windowTheme: 'bw',
|
|
|
|
|
lineHeight: '152%',
|
|
|
|
|
icon: '/static/presets/9.png',
|
|
|
|
|
id: 'preset:9'
|
|
|
|
|
id: 'preset:9',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
...DEFAULT_SETTINGS,
|
|
|
|
@ -1102,7 +1102,7 @@ export const DEFAULT_PRESETS = [
|
|
|
|
|
fontSize: '14px',
|
|
|
|
|
lineHeight: '143%',
|
|
|
|
|
icon: '/static/presets/0.png',
|
|
|
|
|
id: 'preset:0'
|
|
|
|
|
id: 'preset:0',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
...DEFAULT_SETTINGS,
|
|
|
|
@ -1110,7 +1110,7 @@ export const DEFAULT_PRESETS = [
|
|
|
|
|
theme: 'one-light',
|
|
|
|
|
lineHeight: '143%',
|
|
|
|
|
icon: '/static/presets/1.png',
|
|
|
|
|
id: 'preset:1'
|
|
|
|
|
id: 'preset:1',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
...DEFAULT_SETTINGS,
|
|
|
|
@ -1120,7 +1120,7 @@ export const DEFAULT_PRESETS = [
|
|
|
|
|
lineHeight: '143%',
|
|
|
|
|
windowControls: false,
|
|
|
|
|
icon: '/static/presets/2.png',
|
|
|
|
|
id: 'preset:2'
|
|
|
|
|
id: 'preset:2',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
...DEFAULT_SETTINGS,
|
|
|
|
@ -1129,7 +1129,7 @@ export const DEFAULT_PRESETS = [
|
|
|
|
|
fontFamily: 'IBM Plex Mono',
|
|
|
|
|
lineHeight: '143%',
|
|
|
|
|
icon: '/static/presets/3.png',
|
|
|
|
|
id: 'preset:3'
|
|
|
|
|
id: 'preset:3',
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
@ -1137,7 +1137,7 @@ export const DEFAULT_PRESETS = [
|
|
|
|
|
backgroundColor: 'rgba(222,171,99,1)',
|
|
|
|
|
theme: 'duotone-dark',
|
|
|
|
|
icon: '/static/presets/5.png',
|
|
|
|
|
id: 'preset:5'
|
|
|
|
|
id: 'preset:5',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
...DEFAULT_SETTINGS,
|
|
|
|
@ -1147,6 +1147,6 @@ export const DEFAULT_PRESETS = [
|
|
|
|
|
theme: 'solarized light',
|
|
|
|
|
windowTheme: 'sharp',
|
|
|
|
|
icon: '/static/presets/6.png',
|
|
|
|
|
id: 'preset:6'
|
|
|
|
|
}
|
|
|
|
|
id: 'preset:6',
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|