This repository has been archived by the owner on Jan 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconstants.js
107 lines (98 loc) · 2.4 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
const ICONS_PATH = "/img/icons/";
const getFullIconURL = (iconName) => {
return chrome.runtime.getURL(ICONS_PATH + iconName);
};
const showJetbrainsButtons = () => {
return new Promise((resolve) => {
chrome.storage.sync.get(
{
showJetbrainsButtons: true,
},
(items) => {
resolve(items.showJetbrainsButtons);
}
);
});
};
const MINIMUM_PERCENTAGE = 5.0;
const DEFAULT_LANGUAGE = "java";
const LANGUAGE_REGEX = /([a-zA-Z+-+]*) ([0-9.]*)/;
const JETBRAINS_CLONE_URL =
"jetbrains://{tag}/checkout/git?checkout.repo={url}&idea.required.plugins.id=Git4Idea";
const ICONS = {
github: getFullIconURL("github-icon.png"),
vscode: getFullIconURL("vscode-icon.png"),
codesandbox: getFullIconURL("codesandbox-icon.png"),
};
const JETBRAINS_TOOLS = {
appcode: {
name: "AppCode",
tag: "appcode",
icon: getFullIconURL("appcode-icon.png"),
},
clion: {
name: "CLion",
tag: "clion",
icon: getFullIconURL("clion-icon.png"),
},
goland: {
name: "GoLand",
tag: "goland",
icon: getFullIconURL("goland-icon.png"),
},
idea: {
name: "IntelliJ IDEA",
tag: "idea",
icon: getFullIconURL("idea-icon.png"),
},
phpstorm: {
name: "PhpStorm",
tag: "php-storm",
icon: getFullIconURL("phpstorm-icon.png"),
},
pycharm: {
name: "PyCharm",
tag: "pycharm",
icon: getFullIconURL("pycharm-icon.png"),
},
rider: {
name: "Rider",
tag: "rd",
icon: getFullIconURL("rider-icon.png"),
},
rubymine: {
name: "RubyMine",
tag: "rubymine",
icon: getFullIconURL("rubymine-icon.png"),
},
webstorm: {
name: "WebStorm",
tag: "web-storm",
icon: getFullIconURL("webstorm-icon.png"),
},
};
const IDE_LANGUAGES = {
java: ["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: ["clion", "idea"],
puppet: ["rubymine", "idea"],
"objective-c": ["appcode"],
swift: ["appcode"],
};