Commit Graph

75 Commits

Author SHA1 Message Date
Jaco
607f4b3e3b
2022 (#957) 2022-01-01 09:26:35 +02:00
Jaco
344091d48b
Adjust metadata loop with allMap (#953)
* Adjust metadata loop with allMap

* Remove debug log
2021-12-30 12:59:20 +02:00
Jaco
45a6e18fc2
Only apply knownGenesis once for metadata (#949)
* Only apply knownGenesis once for metadata

* Adjust

* Clear old known metadata entries

* Add missing dep
2021-12-28 16:18:57 +02:00
Jaco
fc76a8c4b6
Rename *.test.ts -> *.spec.ts (#948)
* Rename *.test.ts -> *.spec.ts

* *.test.tsx -> *.spec.tsx
2021-12-28 11:59:17 +02:00
Jaco
2884060027
Add tsconfig references (#929)
* Add tsconfig references

* Adjust

* tesconfig.eslint.json

* lint includes

* test paths
2021-12-14 08:44:38 +02:00
Jaco
686f344a38
Adjust import to polyfill for non-Chrome (#917)
* Adjust import to polyfill for non-Chrome

* Update packages/extension-ui/src/index.ts

* Remove spurious console.log

* Dedupe error log

* Update error log catch

* Adjust

* Update packages/extension-ui/src/components/Address.tsx

* linting

* Adjust
2021-12-10 12:49:32 +02:00
Jaco
9e9911dc8a
Allow for creation via QR seed (#918) 2021-12-10 10:19:29 +02:00
Antoine Estienne
ecb15976a8
Add eth test for extension signature (#909)
* add eth test for extension signature

* cleanup
2021-12-07 18:48:38 +02:00
Andrei Eres
675303c848
Add extension prefix (#891) 2021-12-07 15:03:55 +02:00
Jaco
cf503c6662
Correctly use chain type in account creation (#882)
* Correctly use chain type in account creation

* CHANGELOG
2021-11-08 12:09:50 +02:00
Jaco
1783054288
Bump deps (#878)
* Bump deps

* linting type fixes
2021-11-06 20:51:57 +02:00
Jaco
c41566c461
Bump dev (w/ eslint 8 & fixes) (#855) 2021-10-18 08:11:26 +03:00
Jaco
6e0992ac46
Ensure site authorization toggle is saved (#842) 2021-09-27 16:33:33 +02:00
Jaco
76d8953e45
Use wrapBytes for @polkadot/util (#829)
* Use wrapBytes for @polkadot/util

* Bump util
2021-09-17 15:29:03 +02:00
Jaco
5b61139bc8
Pass notification settings to background (#819)
* Pass notification settings to background

* Feedback
2021-09-15 07:39:16 +02:00
Shawn Tabrizi
e3221ca3ed
Add configurable notifications (#767)
* initial

* bump ui-keyring

* update names

* lint

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2021-09-06 10:57:36 +02:00
Jaco
af3c43f29f
Cater for # in urls (#803) 2021-08-30 12:10:38 +02:00
Jaco
e4ce268b1c
Wrap all raw signed bytes inside <Bytes> (#743)
* Wrap all raw signed bytes inside <RawBytes>

* Use u8aToU8a

* Update packages/extension-base/src/background/RequestBytesSign.ts

* Also wrap Qr signing

* Update packages/extension-base/src/utils/wrapRawBytes.ts

* Update packages/extension-base/src/utils/wrapRawBytes.ts

* empty wrap test

* Additional tests

* Update CHANGELOG

* Expose {wrap, unwrap}Bytes utils in extension-dapp

* Update yarn.lock

* Fix build alias
2021-06-10 21:13:46 +02:00
Jaco
fb7dfb3ddc
Bump deps, update tests (#728)
* Bump deps, update tests

* Update stale.yml

* void handlers
2021-05-29 10:34:51 +02:00
Jaco
3073277b61
Bump API to latest (#717)
* Bump API to latest

* Linting

* External deps

* typing updates
2021-05-11 09:31:01 +02:00
Thibaut Sardan
5a45e1daea
Use file-saver to export accounts (#701)
* use file-saver

* bring back the fake implementation

* we never know

* fix background test
2021-04-22 14:34:14 +02:00
Remon Nashid
7f06f4a260
Prevent unauthorized apps from abusing pub(authorize.tab) request (#686) 2021-04-20 15:14:02 +02:00
Minh Ha
f50e4b7b7e
✨ allows background handler to handle custom extention port name (#685) 2021-03-25 21:38:19 +01:00
KarishmaBothara
82d0019b12
Added code to support custom signed extension/user extension (#670)
* Added code to support custom signed extension/user extension

* fix lint issues

* added test

* as per review comment

* fix lint

* as per review suggestion

* fix lint

* as per review comments

* fix lint
2021-03-22 10:21:08 +01:00
雪霁
e37fdcf6f9
Batch export (#666)
* .

* finish export all

* finish export all

* .

* fix linting errors (warning is pending on password decision)

* .

* resolve conflicts

* .

* .
2021-03-16 15:14:28 +01:00
carumusan
1a6be158f1
Support ipfs and ipns urls (#667)
Brave browser has native support for ipfs:// and ipns:// urls but this assertion is currently blocking. Updated to support them. Untested.
2021-03-04 21:57:53 +01:00
Jaco Greeff
a14651ab7f
0.37.2 (#661)
* 0.37.2

* Update CHANGELOG.md

* Update CHANGELOG.md

* Build packageInfo

* autolint
2021-02-28 15:16:02 +01:00
Jaco Greeff
e4f9f9b2f3
Phishing redirect, tab check (#650) 2021-02-09 18:04:15 +01:00
Thibaut Sardan
e1391128dd
show malicious website on the landing page (#648) 2021-02-09 10:37:57 +01:00
Thibaut Sardan
8d351e06c4
Ledger nano support (#624)
* networks

* bump

* wip

* settings checkbox

* add @polkadot/networks and hw-ledger

* bump

* wip

* better error

* cleanup

* icon, cannot change genesis, tests for address and account

* clean workflow with refresh

* bump keyring

* I said bump keyring

* Add siging - unexpected call index

* can sign

* refactor

* refactor useLedger

* better error

* first time flow in a new window

* stray comments

* cleanup

* useless rerendering because of t :|

* Apply suggestions from code review

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* number casting after select

* Apply suggestions from code review

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* address comment

* parenthesis

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2021-01-21 15:22:28 +01:00
Jaco Greeff
297b2af14c
2021 (#605) 2021-01-03 11:33:53 +01:00
Thibaut Sardan
57635016a6
Prevent eth accounts to be selected for derivation (#595)
* prevent eth accounts to be selected

* stray log

* use type && [ed25519, sr25519, ecdsa].includes(type)

* use utils

* fix test

* proper testing for eth

* fix derive test (will change these soon anyway)
2020-12-18 15:18:06 +01:00
Thibaut Sardan
3c43132cf0
Support ethereum accounts (#560)
* refactor restoration

* support eth icon

* hack with as any

* remove hack

* bump keyring

* recode and correctly import Json

* create and restore by seed

* lint

* glitch

* cleanup

* remove restoration and creation

* fix yarn.lock

* round icons

Co-authored-by: Github Actions <action@github.com>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-12-18 11:44:31 +01:00
Thibaut Sardan
722fc4bf1a
Website access management (#589)
* list websites

* persist in local storage

* with filter and styling

* cleanup

* styling for long list

* fix icon alignment and lint

* Apply suggestions from code review

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* add return ( )

* lint

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-12-17 14:02:53 +01:00
Thibaut Sardan
5df2f974d7
Add a flag to get any account type for InjectedAccounts interface (#572)
* add getAll and deprecate get

* using a withTypes flag

* change for anyType and add filtering

Co-authored-by: Github Actions <action@github.com>
2020-12-10 14:51:51 +01:00
Jaco Greeff
d40100ce07
Bump deps (#568) 2020-12-09 12:36:15 +01:00
Jaco Greeff
dec07f6e96
Bump dev (import sorting) (#564)
* Bump dev (import sorting)

* Bump dev
2020-12-08 11:20:57 +01:00
Thibaut Sardan
b3145fc862
leverage the phishing list caching - Move phishing check to background script (#561)
* cache phishing list

* Update packages/extension-base/src/page/index.ts

* remove xml and pdf check

* remove cache

Co-authored-by: Github Actions <action@github.com>
2020-12-04 16:20:03 +01:00
Thibaut Sardan
3b4c01ac5d
refactor restoration (#554)
Co-authored-by: Github Actions <action@github.com>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-12-03 15:25:22 +01:00
Jaco Greeff
58b1320d41
Use type import (#556)
* Use type import

* Small updates
2020-12-01 14:18:19 +01:00
Thibaut Sardan
0731e3593d
Add a dedicated notification index (#542)
* back to 600px

* add dedicated notification index

Co-authored-by: Github Actions <action@github.com>
2020-11-24 12:09:40 +01:00
Thibaut Sardan
372dd54cff
Window height back to 621 and set 100% (#541)
* back to 621 and set 100%

* not nedeed on root html element

Co-authored-by: Github Actions <action@github.com>
2020-11-23 18:49:09 +01:00
Thibaut Sardan
b4df4ad269
set popup window to 600px (#520)
Co-authored-by: Github Actions <action@github.com>
2020-10-23 19:42:46 +02:00
Thibaut Sardan
154a836e00
Password caching refactoring (#489)
* refactor password caching

* use an update cache function

* rename update -> refresh

* reject when password expired

* refactor the refactoring without messaging

* lint

* Update packages/extension-base/src/defaults.ts

* use timeout in popup

Co-authored-by: Github Actions <action@github.com>
Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-10-15 11:57:47 +02:00
Thibaut Sardan
ae9227ef6d
Add phishing site detection, redirection and information (#488)
* missing type declarations for @polkadot/phishing

* phishing landing page

* Update packages/extension-base/src/background/types.ts

* wording make it short

* fix build

* add test for xml pdf utils

* fix export

* Update packages/extension-base/src/utils/isXmlOrPdf.ts

* use Trans from i18n

* alpha ordering

* i18nKey

* lint

* move pdf and xml detection to enable to prevent unwanted redirection

* styled component refactoring

* import odering

* remove a css hack :)

Co-authored-by: Github Actions <action@github.com>
2020-10-13 14:14:55 +02:00
Thibaut Sardan
7c01b9e658
Refactor open window (#473)
* add mnemonic redirect like json

* undefined not allowed because request is a defined object

* Apply suggestions from code review

Co-authored-by: Jaco Greeff <jacogr@gmail.com>

* remove redirect

Co-authored-by: Jaco Greeff <jacogr@gmail.com>
2020-10-01 16:13:47 +02:00
Thibaut Sardan
68ec6f7c13
Share PASSWORD_EXPIRY default between components (#463)
* generic time

* share expiry minutes and ms

* edit translation
2020-09-22 12:12:46 +02:00
Jaco Greeff
bc4e57e353
SPDX (#459) 2020-09-17 16:12:32 +02:00
Remon Nashid
6704c8d8e6
add pri(accounts.changePassword) message (#450) 2020-09-10 08:31:41 +02:00
Jaco Greeff
78905d8140
Bump deps (#433)
* Bump deps

* rewrite

* Linting

* linting
2020-09-05 07:51:29 +02:00