-
Notifications
You must be signed in to change notification settings - Fork 320
/
constants.js
63 lines (56 loc) · 2.94 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
/**
* @file
* This file is part of AdGuard Browser Extension (https://github.com/AdguardTeam/AdguardBrowserExtension).
*
* AdGuard Browser Extension is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* AdGuard Browser Extension is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with AdGuard Browser Extension. If not, see <http://www.gnu.org/licenses/>.
*/
// TODO: generate tools/bundle/manifest.common.json with this constants
export const WEB_ACCESSIBLE_RESOURCES_OUTPUT = 'web-accessible-resources';
export const BACKGROUND_OUTPUT = 'pages/background';
export const OPTIONS_OUTPUT = 'pages/options';
export const POPUP_OUTPUT = 'pages/popup';
export const FILTERING_LOG_OUTPUT = 'pages/filtering-log';
export const FILTER_DOWNLOAD_OUTPUT = 'pages/filter-download';
export const FULLSCREEN_USER_RULES_OUTPUT = 'pages/fullscreen-user-rules';
export const SAFEBROWSING_OUTPUT = 'pages/safebrowsing';
export const DOCUMENT_BLOCK_OUTPUT = 'pages/ad-blocked';
export const SUBSCRIBE_OUTPUT = 'pages/subscribe';
export const CONTENT_SCRIPT_START_OUTPUT = 'pages/content-script-start';
export const CONTENT_SCRIPT_END_OUTPUT = 'pages/content-script-end';
export const THANKYOU_OUTPUT = 'pages/thankyou';
export const ASSISTANT_INJECT_OUTPUT = 'pages/assistant-inject';
export const EDITOR_OUTPUT = 'shared/editor';
export const REACT_VENDOR_OUTPUT = 'vendors/react';
export const MOBX_VENDOR_OUTPUT = 'vendors/mobx';
export const XSTATE_VENDOR_OUTPUT = 'vendors/xstate';
export const TSURLFILTER_VENDOR_OUTPUT = 'vendors/tsurlfilter';
export const AGTREE_VENDOR_OUTPUT = 'vendors/agtree';
export const CSS_TOKENIZER_VENDOR_OUTPUT = 'vendors/css-tokenizer';
export const TSWEBEXTENSION_VENDOR_OUTPUT = 'vendors/tswebextension';
export const TEXT_ENCODING_POLYFILL_VENDOR_OUTPUT = 'vendors/text-encoding-polyfill';
// Placed here to use in the node environment and in the browser
// Important: extensions '.js' used for correct work of Cloudflare cache, but
// real format of these files is JSON.
// See AG-1901 for details.
export const REMOTE_METADATA_FILE_NAME = 'filters.js';
export const REMOTE_I18N_METADATA_FILE_NAME = 'filters_i18n.js';
// But locally we prefer to use '.json' extension.
export const LOCAL_METADATA_FILE_NAME = 'filters.json';
export const LOCAL_I18N_METADATA_FILE_NAME = 'filters_i18n.json';
/**
* List of AdGuard filters IDs.
*
* `12` is absent because Safari filter if obsolete and not used anymore.
*/
export const ADGUARD_FILTERS_IDS = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 224];