Commit Graph
14 Commits
Author SHA1 Message Date
Pete Miller d90b4a49d6 Integrate brave's webui additions into chromium's typescript build process (settings, bookmarks, extensions), remove chrome://brave-resources
- Convert lots of JS to typescript,  although marked a lot of it as ts-nocheck as adding types would take a very very long time. To be done separately, hopefully with help!
- Upgrade many modules to polymer3
- Use chromium's build target for everything instead of duplicating a lot of build processes
- Do the same for everything that was served by chrome://brave-resources, now that it's easier to have the build system for chrome://resources take our additional files
TODO: Bring back manrope substitution for ru|el languages from brave_shared_resources_data_source.cc
2022-10-13 16:51:36 -04:00
Taher 01ce087773 Added Speedreader and friends interfaces in C++/Mojom 2022-09-07 07:38:19 -07:00
Nick von PentzandWilliam Muli 0f0777abff Add market data tab in wallet frontend and add ratios API for coingecko coin markets data (#12510)
* Market data tab

* chore: add license header

* chore: lock fusejs version

* chore: format file

* chore: revert to ed24c2ccf7

* Revert "Remove market display chrome-untrusted webui boilerplate"

This reverts commit 9567e47ffa6d9d66ac15f378cc20d8e3aa2140b2.

* feat: move market data ui to chrome-unstrusted

* feat: send tradable assets to market display iframe using postmessage

* chore: format

* chore: fix tests, remove switch statement

* chore: fix rebase errors

* chore: fomat files

* chore: fix tests

* chore: add usecallback

* Address feedback: use VLOG(0) then LOG(ERROR)

* Address feedback: use AppendQueryParameter

* chore: fixes after rebase

* chore: lint

* chore: remove empty line

* feedback: Change image CSP to allow only images from brave proxy

* feedback: use assets.cgproxy.com for image urls

* feedback: use assets.cgproxy.com for image urls

Co-authored-by: William Muli <willi.wambu@gmail.com>
2022-08-19 08:57:18 +03:00
zenparsing 26eb2c6988 Add bubble for enabling cookie consent blocking 2022-08-04 13:13:40 -04:00
William Muli 0b6165ff9d NFT Details Screen (#13370)
* Add NFT details screen

* chore: remove console.log

* chore: remove chrome://image prefix

* chore: fix loading of nft asset use url params

* chore: add skeleton loader for nft image

* chore: check token id when deleting assets

* chore: remove redundant lines

* chore: add tokenId to dep list

* feat: display visible asset modal asset icon in chrome-untrusted

* chore: trim url

* chore: add tokenId check when removing asset from visible assets list

* chore: fix tokenBalanceRegistry keys to avoid duplicates for erc721 tokens

* chore: refactor nft details screen

* chore: add border-radius to nft image

* feat: create react app for rendering nft details in a chrome-untrusted tab

* Add string to access via loadTimeData object

* Add configurations nft ui untrusted tab

* Update build requirements for nft ui untrusted tab

* Send message to nft iframe to update state

* Added iframe component

* Create components for diplaying nft content in chrome untrusted tab

* Added utilities for communicating with nft chrome untrusted tab using postmessage

* chore: remove unused component

* chore: validate url to avoid xss attack

* feat: change nft icon display from query parameter(imageUrl) to postmessage api

* use specific targetOrigin in postMessage

* chore: remove console.log

* chore: fix feedback

* chore: feedback

* chore: add license header and documentation

* Revert "chore: add tokenId check when removing asset from visible assets list"

This reverts commit 440134d27366c9e08a483b00b7878c8649496595. This will be fixed in https://github.com/brave/brave-browser/issues/24238

* chore: fix unstable test behaviour

* chore: fix tests

* chore: rename function

* chore: refactor to avoid adding unnecessary string

* chore: change copyright year

* chore: add braveWalletLedgerBridgeUrl string

* chore: use getWalletPageProxy

* chore: useCallback
2022-07-28 20:01:14 +03:00
Nick von Pentz fcd4653b66 Move Solana Ledger integration to untrusted iframe
The Solana Ledger JS libraries are now accessed by the chrome://wallet
and chrome://wallet-panel contexts via postMessage calls to an iframe
whose origin is chrome-untrusted://ledger-bridge.

If we detect that user needs to grant the Wallet permssion to access a
Ledger device, an 'Authorize' button is displayed *within* the untrusted
frame so that the permission dialog (which requires a user gesture to be
displayed) screen is shown.

When permission is granted, the chrome-untrusted://ledger-bridge sends a
postMessage to the parent (trusted) context instructing it to continue the flow.
2022-07-25 12:09:20 -06:00
sangwoo.ko 60f912d93d Wire playlist webui 2022-07-19 15:01:15 +09:00
zenparsing 964b84c8d9 Remove dependency on the Rewards extension 2022-07-07 10:14:45 -04:00
Taher a5a12771e2 Added Brave Search box in private and tor windows 2022-06-21 22:23:13 -07:00
Claudio DeSouza 0f1e0342af Fixing Grit's update_resource_ids arguments
Chromium change:
https://chromium.googlesource.com/chromium/src/+/4ad0ea2a806d6241a9fbbae0515727bde0879ad5

commit 4ad0ea2a806d6241a9fbbae0515727bde0879ad5
Author: dpapad <dpapad@chromium.org>
Date:   Tue Apr 19 17:15:07 2022 +0000

    Grit: Migrate update_resource_ids from getopt to argparse.ArgumentParser

    This is in preparation of passing grit_defines to update_resource_ids,
    which requires more complex command line parsing (recurring arguments),
    and is easier to consume via ArgumentParser's action='append' feature.

    Bug: 1316544
2022-06-10 05:58:23 -04:00
Aleksey Khoroshilov f8de850fc8 Use grit generator properly to generate non-overlapped resource IDs. 2022-05-14 12:37:59 +01:00
Brian R. Bondy 43c4fcbc94 Add create_dist and symbol build config 2018-02-09 13:45:46 -05:00
AlexeyBarabash 6b2310de87 Revert "Add create_dist and symbol build config"
This reverts commit 10819c1926.
2018-02-08 19:54:27 +02:00
Brian R. Bondy 10819c1926 Add create_dist and symbol build config 2018-02-06 22:20:05 -05:00