-
Notifications
You must be signed in to change notification settings - Fork 898
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Brave VPN card widget in NTP (uplift to 1.74.x) (#26680)
* Merge pull request #26189 from brave/brave_vpn_ntp_widget_demo Brave VPN card widget in NTP * Merge pull request #26496 from brave/follow_up_brave_vpn_card F/U vpn card widgets in NTP * Merge pull request #26689 from brave/vpn_card_group_policy Hide NTP VPN card when its group policy is disabled * Merge pull request #26743 from brave/update_vpn_card_option_image Updated vpn card option image in NTP * Merge pull request #26745 from brave/update_vpn_product_title Update VPN product title at vpn panel * Merge pull request #26746 from brave/update_trial_url_from_vpn_card Updated trial url from vpn card * Merge pull request #26765 from brave/fix_vpn_icon_size_vpn_card Fixed bottom of vpn icon of vpn card was clipped
- Loading branch information
Showing
51 changed files
with
937 additions
and
43 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
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
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,21 @@ | ||
// Copyright (c) 2024 The Brave Authors. All rights reserved. | ||
// 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 https://mozilla.org/MPL/2.0/. | ||
|
||
import { createAction } from 'redux-act' | ||
import * as BraveVPN from '../api/braveVpn' | ||
|
||
export const initialize = createAction<BraveVPN.PurchasedState>('initialize') | ||
export const toggleConnection = createAction('toggleConnection') | ||
export const launchVPNPanel = createAction('launchVPNPanel') | ||
export const openVPNAccountPage = createAction('openVPNAccountPage') | ||
export const purchasedStateChanged = createAction<BraveVPN.PurchasedState>( | ||
'purchasedStateChanged' | ||
) | ||
export const connectionStateChanged = createAction<BraveVPN.ConnectionState>( | ||
'connectionStateChanged' | ||
) | ||
export const selectedRegionChanged = createAction<BraveVPN.Region>( | ||
'connectionStateChanged' | ||
) |
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,12 @@ | ||
// Copyright (c) 2024 The Brave Authors. All rights reserved. | ||
// 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 https://mozilla.org/MPL/2.0/. | ||
|
||
import * as BraveVPN from 'gen/brave/components/brave_vpn/common/mojom/brave_vpn.mojom.m.js' | ||
// Provide access to all the generated types | ||
export * from 'gen/brave/components/brave_vpn/common/mojom/brave_vpn.mojom.m.js' | ||
|
||
export default function getVPNServiceHandler () { | ||
return BraveVPN.ServiceHandler.getRemote() | ||
} |
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.