src/components/atoms/CodeBox/languages.ts
last analyzed

Complexity

Total Complexity 0
Complexity/F 0

Size

Lines of Code 38
Function Count 0

Duplication

Duplicated Lines 0
Ratio 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 0
eloc 26
mnd 0
bc 0
fnc 0
dl 0
loc 38
ccs 1
cts 1
cp 1
bpm 0
cpm 0
noi 0
c 0
b 0
f 0
1
/**
2
 * Supported environment when parsing code string. Every environment contains its specific colors for some specific code word (like `import`)
3
 *
4
 * @author Cataldo Cianciaruso <https://github.com/CianciarusoCataldo>
5
 *
6
 * @copyright 2022 Cataldo Cianciaruso
7
 */
8 1
export const CODE_LANGUAGES = {
9
  common: {
10
    DEFAULT_VALUE: "#FFFFF",
11
    STRING: "#f6713c",
12
  },
13
  javascript: {
14
    import: "#d81313",
15
    from: "#d81313",
16
    if: "#d81313",
17
    else: "#d81313",
18
    try: "#d81313",
19
    catch: "#d81313",
20
    while: "#d81313",
21
    export: "#d81313",
22
    default: "#3b82f6",
23
    const: "#2432f5",
24
    COMPONENT_DECLARATION: "#3b82f6",
25
  },
26
  python: {
27
    pip: "#5b9306",
28
  },
29
  terminal: {
30
    sh: "#5b9306",
31
    npm: "#5b9306",
32
    node: "#5b9306",
33
    git: "#5b9306",
34
    "gh-pages": "#5b9306",
35
    docker: "#5b9306",
36
  },
37
};
38