refactor: rename & add tracker source
This commit is contained in:
@@ -11,8 +11,8 @@ import {
|
||||
import {
|
||||
EMPTY_STRING,
|
||||
APP_RUN_MODE,
|
||||
TRACKERS_ALL_URL,
|
||||
TRACKERS_ALL_IP_URL
|
||||
NGOSANG_TRACKERS_ALL_URL,
|
||||
NGOSANG_TRACKERS_ALL_IP_URL
|
||||
} from '@shared/constants'
|
||||
|
||||
export default class ConfigManager {
|
||||
@@ -33,7 +33,9 @@ export default class ConfigManager {
|
||||
* https://aria2.github.io/manual/en/html/aria2c.html
|
||||
*
|
||||
* Best bt trackers
|
||||
* https://github.com/ngosang/trackerslist
|
||||
* @see https://github.com/ngosang/trackerslist
|
||||
*
|
||||
* @see https://github.com/XIU2/TrackersListCollection
|
||||
*/
|
||||
initSystemConfig () {
|
||||
this.systemConfig = new Store({
|
||||
@@ -91,8 +93,8 @@ export default class ConfigManager {
|
||||
'task-notification': true,
|
||||
'theme': 'auto',
|
||||
'tracker-source': [
|
||||
TRACKERS_ALL_IP_URL,
|
||||
TRACKERS_ALL_URL
|
||||
NGOSANG_TRACKERS_ALL_IP_URL,
|
||||
NGOSANG_TRACKERS_ALL_URL
|
||||
],
|
||||
'update-channel': 'latest',
|
||||
'use-proxy': false,
|
||||
@@ -112,8 +114,8 @@ export default class ConfigManager {
|
||||
|
||||
if (this.getUserConfig('tracker-source').length === 0) {
|
||||
this.setUserConfig('tracker-source', [
|
||||
TRACKERS_ALL_IP_URL,
|
||||
TRACKERS_ALL_URL
|
||||
NGOSANG_TRACKERS_ALL_IP_URL,
|
||||
NGOSANG_TRACKERS_ALL_URL
|
||||
])
|
||||
}
|
||||
}
|
||||
|
||||
+14
-5
@@ -8,11 +8,20 @@ export const APP_RUN_MODE = {
|
||||
MENU_BAR: 2
|
||||
}
|
||||
|
||||
// https://github.com/ngosang/trackerslist
|
||||
export const TRACKERS_BEST_URL = 'https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_best.txt'
|
||||
export const TRACKERS_BEST_IP_URL = 'https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_best_ip.txt'
|
||||
export const TRACKERS_ALL_URL = 'https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt'
|
||||
export const TRACKERS_ALL_IP_URL = 'https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all_ip.txt'
|
||||
/**
|
||||
* @see https://github.com/ngosang/trackerslist
|
||||
*/
|
||||
export const NGOSANG_TRACKERS_BEST_URL = 'https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_best.txt'
|
||||
export const NGOSANG_TRACKERS_BEST_IP_URL = 'https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_best_ip.txt'
|
||||
export const NGOSANG_TRACKERS_ALL_URL = 'https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt'
|
||||
export const NGOSANG_TRACKERS_ALL_IP_URL = 'https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all_ip.txt'
|
||||
|
||||
/**
|
||||
* @see https://github.com/XIU2/TrackersListCollection
|
||||
*/
|
||||
export const XIU2_TRACKERS_BEST_URL = 'https://raw.githubusercontent.com/XIU2/TrackersListCollection/master/best.txt'
|
||||
export const XIU2_TRACKERS_ALL_URL = 'https://raw.githubusercontent.com/XIU2/TrackersListCollection/master/all.txt'
|
||||
export const XIU2_TRACKERS_OTHER_URL = 'https://raw.githubusercontent.com/XIU2/TrackersListCollection/master/other.txt'
|
||||
|
||||
// One Week
|
||||
export const AUTO_CHECK_UPDATE_INTERVAL = 7 * 24 * 60 * 60 * 1000
|
||||
|
||||
Reference in New Issue
Block a user