aboutsummaryrefslogtreecommitdiff
path: root/client/src/utils/constants.js
blob: adb01a3cf6f6a78a9e0d41bd57a91e157eec0a3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
export const CLIENT_BASE_URL = import.meta.env.VITE_CLIENT_BASE_URL;
export const SERVER_BASE_URL = import.meta.env.VITE_SERVER_BASE_URL;
export const URL_REGEX = /^(https?:\/\/)?([\w.-]+\.[a-z]{2,})(\/?[^\s]*)?$/;
export const SUPPORTED_LANGUAGES = [
  {
    value: "none",
    label: "Plain Text",
  },
  {
    value: "c",
    label: "C",
  },
  {
    value: "cpp",
    label: "C++",
  },
  {
    value: "css",
    label: "CSS",
  },
  {
    value: "git",
    label: "Git",
  },
  {
    value: "go",
    label: "Golang",
  },
  {
    value: "html",
    label: "HTML",
  },
  {
    value: "java",
    label: "Java",
  },
  {
    value: "js",
    label: "JavaScript",
  },
  {
    value: "json",
    label: "JSON",
  },
  {
    value: "jsx",
    label: "JSX",
  },
  {
    value: "kotlin",
    label: "Kotlin",
  },
  {
    value: "lua",
    label: "Lua",
  },
  {
    value: "md",
    label: "Markdown",
  },
  {
    value: "py",
    label: "Python",
  },
  {
    value: "rust",
    label: "Rust",
  },
  {
    value: "sh",
    label: "Shell",
  },
  {
    value: "sql",
    label: "SQL",
  },
  {
    value: "ts",
    label: "TypeScript",
  },
  {
    value: "tsx",
    label: "TSX",
  },
  {
    value: "url",
    label: "URL",
  },
  {
    value: "xml",
    label: "XML",
  },
];