2018-08-30 14:25:33 +00:00
|
|
|
export const R_URL_REQUIRES_PROTOCOL = /^https?:\/\/\w[\w_\-.]*\.[a-z]{2,8}[^\s]*$/;
|
2018-12-12 15:12:51 +00:00
|
|
|
export const R_IPV4 = /^(?:(?:^|\.)(?:2(?:5[0-5]|[0-4]\d)|1?\d?\d)){4}$/g;
|
2019-05-22 14:59:57 +00:00
|
|
|
export const R_MAC = /^((([a-fA-F0-9][a-fA-F0-9]+[-]){5}|([a-fA-F0-9][a-fA-F0-9]+[:]){5})([a-fA-F0-9][a-fA-F0-9])$)|(^([a-fA-F0-9][a-fA-F0-9][a-fA-F0-9][a-fA-F0-9]+[.]){2}([a-fA-F0-9][a-fA-F0-9][a-fA-F0-9][a-fA-F0-9]))$/g;
|
2018-10-12 12:23:21 +00:00
|
|
|
|
|
|
|
export const STATS_NAMES = {
|
2018-11-09 06:51:28 +00:00
|
|
|
avg_processing_time: 'average_processing_time',
|
2018-10-12 12:23:21 +00:00
|
|
|
blocked_filtering: 'Blocked by filters',
|
|
|
|
dns_queries: 'DNS queries',
|
2018-11-09 06:51:28 +00:00
|
|
|
replaced_parental: 'stats_adult',
|
|
|
|
replaced_safebrowsing: 'stats_malware_phishing',
|
|
|
|
replaced_safesearch: 'enforced_save_search',
|
2018-10-12 12:23:21 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export const STATUS_COLORS = {
|
|
|
|
blue: '#467fcf',
|
|
|
|
red: '#cd201f',
|
|
|
|
green: '#5eba00',
|
|
|
|
yellow: '#f1c40f',
|
|
|
|
};
|
2018-10-14 20:24:11 +00:00
|
|
|
|
|
|
|
export const REPOSITORY = {
|
2018-10-15 13:02:19 +00:00
|
|
|
URL: 'https://github.com/AdguardTeam/AdGuardHome',
|
2019-05-22 14:59:57 +00:00
|
|
|
TRACKERS_DB:
|
|
|
|
'https://github.com/AdguardTeam/AdGuardHome/tree/master/client/src/helpers/trackers/adguard.json',
|
2018-10-14 20:24:11 +00:00
|
|
|
};
|
2018-11-21 08:43:55 +00:00
|
|
|
|
2019-04-17 12:03:25 +00:00
|
|
|
export const PRIVACY_POLICY_LINK = 'https://adguard.com/privacy/home.html';
|
|
|
|
|
2018-11-21 08:43:55 +00:00
|
|
|
export const LANGUAGES = [
|
|
|
|
{
|
|
|
|
key: 'en',
|
|
|
|
name: 'English',
|
|
|
|
},
|
|
|
|
{
|
2018-11-26 12:00:56 +00:00
|
|
|
key: 'es',
|
|
|
|
name: 'Español',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'fr',
|
|
|
|
name: 'Français',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'pt-br',
|
|
|
|
name: 'Português (BR)',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'sv',
|
|
|
|
name: 'Svenska',
|
2018-11-21 08:43:55 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'vi',
|
|
|
|
name: 'Tiếng Việt',
|
|
|
|
},
|
2019-03-07 09:38:17 +00:00
|
|
|
{
|
|
|
|
key: 'bg',
|
|
|
|
name: 'Български',
|
|
|
|
},
|
2018-11-26 12:00:56 +00:00
|
|
|
{
|
|
|
|
key: 'ru',
|
|
|
|
name: 'Русский',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
key: 'ja',
|
|
|
|
name: '日本語',
|
|
|
|
},
|
2019-01-03 09:55:15 +00:00
|
|
|
{
|
|
|
|
key: 'zh-tw',
|
|
|
|
name: '正體中文',
|
|
|
|
},
|
2019-03-12 08:02:19 +00:00
|
|
|
{
|
|
|
|
key: 'zh-cn',
|
|
|
|
name: '简体中文',
|
|
|
|
},
|
2018-11-21 08:43:55 +00:00
|
|
|
];
|
2019-01-18 17:17:48 +00:00
|
|
|
|
|
|
|
export const INSTALL_FIRST_STEP = 1;
|
|
|
|
export const INSTALL_TOTAL_STEPS = 5;
|
2019-01-22 14:17:33 +00:00
|
|
|
|
|
|
|
export const SETTINGS_NAMES = {
|
|
|
|
filtering: 'filtering',
|
|
|
|
safebrowsing: 'safebrowsing',
|
|
|
|
parental: 'parental',
|
|
|
|
safesearch: 'safesearch',
|
|
|
|
};
|
2019-02-04 14:13:59 +00:00
|
|
|
|
|
|
|
export const STANDARD_DNS_PORT = 53;
|
2019-02-06 14:32:32 +00:00
|
|
|
export const STANDARD_WEB_PORT = 80;
|
2019-02-20 08:36:24 +00:00
|
|
|
export const STANDARD_HTTPS_PORT = 443;
|
2019-02-19 16:19:40 +00:00
|
|
|
|
2019-02-18 13:06:27 +00:00
|
|
|
export const EMPTY_DATE = '0001-01-01T00:00:00Z';
|
2019-02-19 15:56:13 +00:00
|
|
|
|
2019-02-19 16:19:40 +00:00
|
|
|
export const DEBOUNCE_TIMEOUT = 300;
|
|
|
|
export const CHECK_TIMEOUT = 1000;
|
|
|
|
export const STOP_TIMEOUT = 10000;
|
|
|
|
|
2019-02-19 15:56:13 +00:00
|
|
|
export const UNSAFE_PORTS = [
|
|
|
|
1,
|
|
|
|
7,
|
|
|
|
9,
|
|
|
|
11,
|
|
|
|
13,
|
|
|
|
15,
|
|
|
|
17,
|
|
|
|
19,
|
|
|
|
20,
|
|
|
|
21,
|
|
|
|
22,
|
|
|
|
23,
|
|
|
|
25,
|
|
|
|
37,
|
|
|
|
42,
|
|
|
|
43,
|
|
|
|
53,
|
|
|
|
77,
|
|
|
|
79,
|
|
|
|
87,
|
|
|
|
95,
|
|
|
|
101,
|
|
|
|
102,
|
|
|
|
103,
|
|
|
|
104,
|
|
|
|
109,
|
|
|
|
110,
|
|
|
|
111,
|
|
|
|
113,
|
|
|
|
115,
|
|
|
|
117,
|
|
|
|
119,
|
|
|
|
123,
|
|
|
|
135,
|
|
|
|
139,
|
|
|
|
143,
|
|
|
|
179,
|
|
|
|
389,
|
|
|
|
465,
|
|
|
|
512,
|
|
|
|
513,
|
|
|
|
514,
|
|
|
|
515,
|
|
|
|
526,
|
|
|
|
530,
|
|
|
|
531,
|
|
|
|
532,
|
|
|
|
540,
|
|
|
|
556,
|
|
|
|
563,
|
|
|
|
587,
|
|
|
|
601,
|
|
|
|
636,
|
|
|
|
993,
|
|
|
|
995,
|
|
|
|
2049,
|
|
|
|
3659,
|
|
|
|
4045,
|
|
|
|
6000,
|
|
|
|
6665,
|
|
|
|
6666,
|
|
|
|
6667,
|
|
|
|
6668,
|
|
|
|
6669,
|
|
|
|
];
|
2019-03-29 13:24:59 +00:00
|
|
|
|
|
|
|
export const ALL_INTERFACES_IP = '0.0.0.0';
|
2019-04-04 13:34:46 +00:00
|
|
|
|
2019-04-05 11:32:56 +00:00
|
|
|
export const DHCP_STATUS_RESPONSE = {
|
2019-04-04 13:34:46 +00:00
|
|
|
YES: 'yes',
|
|
|
|
NO: 'no',
|
|
|
|
ERROR: 'error',
|
|
|
|
};
|
2019-05-22 14:59:57 +00:00
|
|
|
|
|
|
|
export const MODAL_TYPE = {
|
|
|
|
ADD: 'add',
|
|
|
|
EDIT: 'edit',
|
|
|
|
};
|
|
|
|
|
|
|
|
export const CLIENT_ID = {
|
|
|
|
MAC: 'mac',
|
|
|
|
IP: 'ip',
|
|
|
|
};
|