-
Notifications
You must be signed in to change notification settings - Fork 54
/
constants.js
108 lines (102 loc) · 2.66 KB
/
constants.js
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
import ideaIcon from "@jetbrains/logos/intellij-idea/intellij-idea.svg";
import appcodeIcon from "@jetbrains/logos/appcode/appcode.svg";
import clionIcon from "@jetbrains/logos/clion/clion.svg";
import pycharmIcon from "@jetbrains/logos/pycharm/pycharm.svg";
import phpstormIcon from "@jetbrains/logos/phpstorm/phpstorm.svg";
import rubymineIcon from "@jetbrains/logos/rubymine/rubymine.svg";
import webstormIcon from "@jetbrains/logos/webstorm/webstorm.svg";
import riderIcon from "@jetbrains/logos/rider/rider.svg";
import golandIcon from "@jetbrains/logos/goland/goland.svg";
import rustroverIcon from "@jetbrains/logos/rustrover/rustrover.svg";
export const DEFAULT_LANGUAGE = "java";
export const SUPPORTED_LANGUAGES = {
[DEFAULT_LANGUAGE]: ["idea"],
kotlin: ["idea"],
groovy: ["idea"],
scala: ["idea"],
javascript: ["webstorm", "phpstorm", "idea"],
coffeescript: ["webstorm", "phpstorm", "idea"],
typescript: ["webstorm", "phpstorm", "idea"],
dart: ["webstorm", "phpstorm", "idea"],
go: ["goland", "idea"],
css: ["webstorm", "phpstorm", "idea"],
html: ["webstorm", "phpstorm", "idea"],
python: ["pycharm", "idea"],
"jupyter notebook": ["pycharm", "idea"],
php: ["phpstorm", "idea"],
"c#": ["rider"],
"f#": ["rider"],
"c++": ["clion"],
c: ["clion"],
ruby: ["rubymine", "idea"],
rust: ["rustrover", "clion", "idea"],
puppet: ["rubymine", "idea"],
"objective-c": ["appcode"],
swift: ["appcode"],
};
export const SUPPORTED_TOOLS = {
idea: {
name: "IntelliJ IDEA",
tag: "idea",
icon: ideaIcon,
},
appcode: {
name: "AppCode",
tag: "appcode",
icon: appcodeIcon,
},
clion: {
name: "CLion",
tag: "clion",
icon: clionIcon,
},
pycharm: {
name: "PyCharm",
tag: "pycharm",
icon: pycharmIcon,
},
phpstorm: {
name: "PhpStorm",
tag: "php-storm",
icon: phpstormIcon,
},
rubymine: {
name: "RubyMine",
tag: "rubymine",
icon: rubymineIcon,
},
webstorm: {
name: "WebStorm",
tag: "web-storm",
icon: webstormIcon,
},
rider: {
name: "Rider",
tag: "rd",
icon: riderIcon,
},
goland: {
name: "GoLand",
tag: "goland",
icon: golandIcon,
},
rustrover: {
name: "RustRover",
tag: "rustrover",
icon: rustroverIcon,
},
};
export const USAGE_THRESHOLD = 0.05;
export const USAGE_THRESHOLD_PERCENT = 5;
export const HUNDRED_PERCENT = 100;
export const MIN_VALID_HTTP_STATUS = 200;
export const MAX_VALID_HTTP_STATUS = 299;
export const DEFAULT_LANGUAGE_SET = { [DEFAULT_LANGUAGE]: HUNDRED_PERCENT };
export const CLONE_PROTOCOLS = {
HTTPS: "HTTPS",
SSH: "SSH",
};
export const BROWSERS = {
CHROME: "chrome",
FIREFOX: "firefox",
};