forked from JetBrains/toolbox-browser-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.js
97 lines (92 loc) · 2.6 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
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';
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: ['clion', 'idea'],
puppet: ['rubymine', 'idea'],
'objective-c': ['appcode'],
swift: ['appcode']
};
export const SUPPORTED_TOOLS = {
idea: {
name: 'IntelliJ IDEA',
tag: 'idea',
icon: chrome.runtime.getURL(ideaIcon)
},
appcode: {
name: 'AppCode',
tag: 'appcode',
icon: chrome.runtime.getURL(appcodeIcon)
},
clion: {
name: 'CLion',
tag: 'clion',
icon: chrome.runtime.getURL(clionIcon)
},
pycharm: {
name: 'PyCharm',
tag: 'pycharm',
icon: chrome.runtime.getURL(pycharmIcon)
},
phpstorm: {
name: 'PhpStorm',
tag: 'php-storm',
icon: chrome.runtime.getURL(phpstormIcon)
},
rubymine: {
name: 'RubyMine',
tag: 'rubymine',
icon: chrome.runtime.getURL(rubymineIcon)
},
webstorm: {
name: 'WebStorm',
tag: 'web-storm',
icon: chrome.runtime.getURL(webstormIcon)
},
rider: {
name: 'Rider',
tag: 'rd',
icon: chrome.runtime.getURL(riderIcon)
},
goland: {
name: 'GoLand',
tag: 'goland',
icon: chrome.runtime.getURL(golandIcon)
}
};
export const USAGE_THRESHOLD = 0.05;
export const HUNDRED_PERCENT = 100;
export const MAX_DECIMALS = 2;
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'
};