2019-02-18 01:05:40 +00:00
|
|
|
// NOTE: this list must be up-to-date with browsers listed in
|
|
|
|
// test/acceptance/useragentstrings.yml
|
2019-04-18 14:09:16 +00:00
|
|
|
export const BROWSER_ALIASES_MAP = {
|
2019-02-26 02:23:55 +00:00
|
|
|
'Amazon Silk': 'amazon_silk',
|
2019-02-18 01:05:40 +00:00
|
|
|
'Android Browser': 'android',
|
|
|
|
Bada: 'bada',
|
2019-03-09 22:27:28 +00:00
|
|
|
BlackBerry: 'blackberry',
|
2019-02-18 01:05:40 +00:00
|
|
|
Chrome: 'chrome',
|
|
|
|
Chromium: 'chromium',
|
|
|
|
Epiphany: 'epiphany',
|
|
|
|
Firefox: 'firefox',
|
|
|
|
Focus: 'focus',
|
|
|
|
Generic: 'generic',
|
2019-09-25 11:44:58 +00:00
|
|
|
'Google Search': 'google_search',
|
2019-02-18 01:05:40 +00:00
|
|
|
Googlebot: 'googlebot',
|
|
|
|
'Internet Explorer': 'ie',
|
2019-02-26 02:23:55 +00:00
|
|
|
'K-Meleon': 'k_meleon',
|
2019-02-18 01:05:40 +00:00
|
|
|
Maxthon: 'maxthon',
|
|
|
|
'Microsoft Edge': 'edge',
|
|
|
|
'MZ Browser': 'mz',
|
|
|
|
'NAVER Whale Browser': 'naver',
|
|
|
|
Opera: 'opera',
|
2019-02-26 02:23:55 +00:00
|
|
|
'Opera Coast': 'opera_coast',
|
2019-03-09 22:27:28 +00:00
|
|
|
PhantomJS: 'phantomjs',
|
2019-02-18 01:05:40 +00:00
|
|
|
Puffin: 'puffin',
|
2019-03-09 22:27:28 +00:00
|
|
|
QupZilla: 'qupzilla',
|
2019-09-18 08:34:14 +00:00
|
|
|
QQ: 'qq',
|
|
|
|
QQLite: 'qqlite',
|
2019-02-18 01:05:40 +00:00
|
|
|
Safari: 'safari',
|
|
|
|
Sailfish: 'sailfish',
|
2019-04-12 18:43:09 +00:00
|
|
|
'Samsung Internet for Android': 'samsung_internet',
|
2019-03-09 22:27:28 +00:00
|
|
|
SeaMonkey: 'seamonkey',
|
2019-02-18 01:05:40 +00:00
|
|
|
Sleipnir: 'sleipnir',
|
|
|
|
Swing: 'swing',
|
|
|
|
Tizen: 'tizen',
|
|
|
|
'UC Browser': 'uc',
|
|
|
|
Vivaldi: 'vivaldi',
|
2019-03-09 22:27:28 +00:00
|
|
|
'WebOS Browser': 'webos',
|
|
|
|
WeChat: 'wechat',
|
2019-03-09 22:29:34 +00:00
|
|
|
'Yandex Browser': 'yandex',
|
2019-07-07 09:55:53 +00:00
|
|
|
Roku: 'roku',
|
2019-04-18 11:50:17 +00:00
|
|
|
};
|
2019-05-20 07:33:10 +00:00
|
|
|
|
|
|
|
export const BROWSER_MAP = {
|
|
|
|
amazon_silk: 'Amazon Silk',
|
|
|
|
android: 'Android Browser',
|
|
|
|
bada: 'Bada',
|
|
|
|
blackberry: 'BlackBerry',
|
|
|
|
chrome: 'Chrome',
|
|
|
|
chromium: 'Chromium',
|
|
|
|
epiphany: 'Epiphany',
|
|
|
|
firefox: 'Firefox',
|
|
|
|
focus: 'Focus',
|
|
|
|
generic: 'Generic',
|
|
|
|
googlebot: 'Googlebot',
|
2019-09-25 11:44:58 +00:00
|
|
|
google_search: 'Google Search',
|
2019-05-20 07:33:10 +00:00
|
|
|
ie: 'Internet Explorer',
|
|
|
|
k_meleon: 'K-Meleon',
|
|
|
|
maxthon: 'Maxthon',
|
|
|
|
edge: 'Microsoft Edge',
|
|
|
|
mz: 'MZ Browser',
|
|
|
|
naver: 'NAVER Whale Browser',
|
|
|
|
opera: 'Opera',
|
|
|
|
opera_coast: 'Opera Coast',
|
|
|
|
phantomjs: 'PhantomJS',
|
|
|
|
puffin: 'Puffin',
|
|
|
|
qupzilla: 'QupZilla',
|
2019-09-18 08:34:14 +00:00
|
|
|
qq: 'QQ Browser',
|
|
|
|
qqlite: 'QQ Browser Lite',
|
2019-05-20 07:33:10 +00:00
|
|
|
safari: 'Safari',
|
|
|
|
sailfish: 'Sailfish',
|
|
|
|
samsung_internet: 'Samsung Internet for Android',
|
|
|
|
seamonkey: 'SeaMonkey',
|
|
|
|
sleipnir: 'Sleipnir',
|
|
|
|
swing: 'Swing',
|
|
|
|
tizen: 'Tizen',
|
|
|
|
uc: 'UC Browser',
|
|
|
|
vivaldi: 'Vivaldi',
|
|
|
|
webos: 'WebOS Browser',
|
|
|
|
wechat: 'WeChat',
|
|
|
|
yandex: 'Yandex Browser',
|
|
|
|
};
|
|
|
|
|
|
|
|
export const PLATFORMS_MAP = {
|
|
|
|
tablet: 'tablet',
|
|
|
|
mobile: 'mobile',
|
|
|
|
desktop: 'desktop',
|
|
|
|
tv: 'tv',
|
|
|
|
};
|
|
|
|
|
|
|
|
export const OS_MAP = {
|
|
|
|
WindowsPhone: 'Windows Phone',
|
|
|
|
Windows: 'Windows',
|
|
|
|
MacOS: 'macOS',
|
|
|
|
iOS: 'iOS',
|
|
|
|
Android: 'Android',
|
|
|
|
WebOS: 'WebOS',
|
|
|
|
BlackBerry: 'BlackBerry',
|
|
|
|
Bada: 'Bada',
|
|
|
|
Tizen: 'Tizen',
|
|
|
|
Linux: 'Linux',
|
|
|
|
ChromeOS: 'Chrome OS',
|
|
|
|
PlayStation4: 'PlayStation 4',
|
2019-07-07 09:55:53 +00:00
|
|
|
Roku: 'Roku',
|
2019-05-20 07:33:10 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export const ENGINE_MAP = {
|
|
|
|
EdgeHTML: 'EdgeHTML',
|
|
|
|
Blink: 'Blink',
|
|
|
|
Trident: 'Trident',
|
|
|
|
Presto: 'Presto',
|
|
|
|
Gecko: 'Gecko',
|
|
|
|
WebKit: 'WebKit',
|
|
|
|
};
|