This repository has been archived by the owner on Dec 11, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 970
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14143 from brave/tor/0.23.x
tor frontend changes for 0.23.x
- Loading branch information
1 parent
5484f49
commit 70d4f51
Showing
81 changed files
with
7,721 additions
and
4,476 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
runtime = electron | ||
target_arch = x64 | ||
brave_electron_version = 7.0.6 | ||
brave_electron_version = 7.1.3 | ||
chromedriver_version = 2.37 | ||
target = v7.0.6 | ||
target = v7.1.3 | ||
disturl=https://brave-laptop-binaries.s3.amazonaws.com/atom-shell/dist/ | ||
build_from_source = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this file, | ||
* You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
'use strict' | ||
|
||
const filtering = require('../../filtering') | ||
const appConstants = require('../../../js/constants/appConstants') | ||
|
||
const torReducer = (state, action) => { | ||
switch (action.actionType) { | ||
case appConstants.APP_RESTART_TOR: | ||
filtering.relaunchTor() | ||
break | ||
case appConstants.APP_SET_TOR_NEW_IDENTITY: | ||
filtering.setTorNewIdentity(action.url, action.tabId) | ||
break | ||
case appConstants.APP_ON_TOR_INIT_ERROR: | ||
state = state.setIn(['tor', 'initializationError'], action.message) | ||
break | ||
case appConstants.APP_ON_TOR_INIT_SUCCESS: | ||
state = state.setIn(['tor', 'initializationError'], false).setIn(['tor', 'percentInitialized'], null) | ||
break | ||
case appConstants.APP_ON_TOR_INIT_PERCENTAGE: | ||
state = state.setIn(['tor', 'percentInitialized'], action.percentage) | ||
break | ||
} | ||
return state | ||
} | ||
|
||
module.exports = torReducer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.