src/components/StyleComponent.js   A
last analyzed

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 28
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
cc 0
wmc 0
c 2
b 0
f 0
nc 1
mnd 0
bc 0
fnc 0
dl 0
loc 28
rs 10
bpm 0
cpm 0
noi 0
1
export const styleMap = {
2
  CODE: {
3
    backgroundColor: 'rgba(0, 0, 0, 0.05)',
4
    fontFamily: '"Inconsolata", "Menlo", "Consolas", monospace',
5
    fontSize: 16,
6
    padding: 2
7
  }
8
};
9
10
export const BLOCK_TYPES = [
11
  {label: 'H1', style: 'header-one'},
12
  {label: 'H2', style: 'header-two'},
13
  {label: 'H3', style: 'header-three'},
14
  {label: 'H4', style: 'header-four'},
15
  {label: 'H5', style: 'header-five'},
16
  {label: 'H6', style: 'header-six'},
17
  {label: 'Blockquote', style: 'blockquote'},
18
  {label: 'UL', style: 'unordered-list-item'},
19
  {label: 'OL', style: 'ordered-list-item'},
20
  {label: 'Code Block', style: 'code-block'}
21
];
22
23
export const INLINE_STYLES = [
24
  {label: 'Bold', style: 'BOLD'},
25
  {label: 'Italic', style: 'ITALIC'},
26
  {label: 'Underline', style: 'UNDERLINE'},
27
  {label: 'Monospace', style: 'CODE'}
28
];
29