20 Commits

Author SHA1 Message Date
vvvvvv1vvvvvv
61d657ecf0 chore: rm firefox from autobuild (#2974)
* chore: rm firefox from autobuild

* feat: update default support chain list
2025-05-23 16:12:07 +08:00
hz002
aeeaca9ee5 Feat/firefox (#2568)
* feat: test for firefox

* fix: post message transfer

* fix: remove dev code

* feat: vary manifest for firefox and chrome.

* chore: upgrade rabby-api, rabby-sign

* fix: default MANIFEST_TYPE

* fix: replace sw offscreen

* fix: revert iframe import offscreen html

* fix: remove dev code

* fix: reset mv2 manifest

* fix: hide ledger

* fix: split chunk for firefox extension

* fix: split chunk only for firefox

* fix: transform message only for firefox

* feat: tip for ledger in firefox

* fix: option use nav usb

* fix: option use nav usb

* fix: hover icon

* feat: hover tooltip for ledger disable

* fix: get creds promisfy

* feat: build for firefox

fix: clean dist

feat: revert lark notify

* fix: webpack split chunk

* chore: update version

* Update src/constant/index.ts

---------

Co-authored-by: richardo2016x <richardo2016x@gmail.com>
Co-authored-by: heisenberg <heisenberg-2077@outlook.com>
Co-authored-by: vvvvvv1vvvvvv <galennnnnnn@gmail.com>
Co-authored-by: vvvvvv1vvvvvv <86296331+vvvvvv1vvvvvv@users.noreply.github.com>
2024-12-12 10:58:46 +08:00
vvvvvv1vvvvvv
40f56ee483 Revert "build: normalize packgae workflow. (#2611)" (#2664)
This reverts commit 1021612fe0.
2024-12-06 18:58:20 +08:00
richardo2016x
1021612fe0 build: normalize packgae workflow. (#2611)
* build: normalize packgae workflow.

* chore: code cleanup.

* fix: ci.

* build: change package root path from './dist' to './'

* build: do release commit before build & package.

* build: add tag on release.
2024-12-06 18:43:49 +08:00
heisenberg
b857c87d01 chore: ensure build the is reproducible (#2429)
* chore: ensure build the is reproducible

* chore: lock

* chore: disable sourcemap

* fix: gulp version

* fix: make sure input for `getIdFromNode` stable

* build: test stable zip.

* build: use bash to avoid shellscript syntax error on Linux, cleanup.

* fix: get md5 on linux.

* build: trial.

* chore: update lock file

---------

Co-authored-by: vvvvvv1vvvvvv <galennnnnnn@gmail.com>
Co-authored-by: richardo2016x <richardo2016x@gmail.com>
2024-10-25 16:14:19 +08:00
richardo2016x
c28663da58 feat: support revoke permit2 (#2425)
* style: basic layout for permit2 highlight

* fix: layout.

* feat: upgrade

* chore: code cleanup.

* feat: show correct count of txs woulde be created.

* feat: support call `lockdown` of permit2

* fix: vary permit2 contract id from different chains.

* feat: tip user batch-packed permit2 signatures.

* feat: action of batch revoke permit2

* fix: no change

* fix: literals.

* fix: match contract spender

* Update BatchRevokePermit2.tsx

* Update index.tsx

* feat: trust value api

* fix: spender

* fix: new contract trust value.

* fix: distinct revoke item by `permit2Id`

* fix: sort of contract trust value.

* feat: literals.

* feat: adjust.

* chore: cleanup.

* fix: index spenderHost by spender, fix batch-revoke behaviors.

* chore: cleanup.

* build: allow set notify_lark

* fix: literals.

* style: tuning.

* fix: select item in RevokeApprovalModal

* style: tuning.

* feat: show loading for revoke button.

* fix: contractTrustValueTip

* build: fix.

* chore: upgrade.

---------

Co-authored-by: heisenberg <heisenberg-2077@outlook.com>
2024-08-01 15:56:22 +08:00
richardo2016x
b67b86ef50 chore: cleanup. (#2430)
* build: ensure memory usage on build.

* chore: log before upload.

* build: revert.
2024-07-25 16:54:12 +08:00
vvvvvv1vvvvvv
4bb3fe422c Revert "chore: ensure build the is reproducible (#2406)" (#2428)
This reverts commit c81b9b3e27.
2024-07-23 18:41:45 +08:00
heisenberg
c81b9b3e27 chore: ensure build the is reproducible (#2406)
* chore: ensure build the is reproducible

* chore: lock

* chore: disable sourcemap

---------

Co-authored-by: vvvvvv1vvvvvv <galennnnnnn@gmail.com>
2024-07-23 14:21:19 +08:00
richardo2016x
c9743b232e build: support auto-build (#2417)
* build: support auto-build

* feat: add time to upload path.

* chore: code cleanup.

* build: upgrade node version.

* chore: rename action.
2024-07-22 12:14:52 +08:00
richardo2016x
59e06afc72 feat: gather the debug-only items in more popup together. (#2294)
* feat: highlight the debug-only items in more popup, add build-hash item.

* style: refactor.

* chore: cleanup.

* build: show git committish on packed debug zip.
2024-06-04 16:23:05 +08:00
richardo2016x
060abacc4d feat: support standalone add token entry. (#2227)
* feat: support standalone add token entry.

* build: shellscript executable.

* feat: adjust operation.

* chore: i18n.

* fix: style & behaviors.

* style: tuning.

* feat: robust change.

* feat: filter out core token, style tuning.

* style: tuning.
2024-04-26 19:36:13 +08:00
Hodor
1e88d5878d feat: support custom testnet (#2112)
* wip

* wip

* wip: ts update

* wip

* wip

* feat: testnet asset list

* wip: sendToken

* feat: send token

* fix: submit

* fix

* select chain

* fix: chain

* fix: chain

* feat: update rabby-api

* fix: signTypedData

* chore: fix some bugs

* feat: sync mainnet

* feat: fix sign

* feat: signTypedData

* feat: i18n

* chore: fix some bugs

* chore: fix some bugs

* fix: merge

* chore: fix tips

* chore: remove console

* fix: testnet openapi

* chore: fix some bugs

* chore: fix some bugs

* feat: update rabby-api

* chore: fix some bugs

* fix: scan link

* fix: sync mainnet list

* feat: lock

* fix: gas

* fix: tooltip

* feat: alarm sync chain

* fix: sync chain

* fix: sync mainnet chain list

* feat: update rabby-api

* fix: sign

* chore: fix some bugs

* fix: findChain

* feat: debug

* fix: findChain

* chore: i18n

* feat: update page-provider

* feat: hide custom rpc for testnet

* feat: + changelog

* fix: custom rpc

---------

Co-authored-by: vvvvvv1vvvvvv <galennnnnnn@gmail.com>
2024-03-29 14:20:38 +08:00
richardo2016x
72d7cc7a16 style: fix some darkmode issues. (#1941)
* style: fix some darkmode issues.

* feat: support darkmode on Welcome/CreatePassword page.

* build: add script ./pack-debug.sh

* style: fix some issues.

* style: dark mode tuning for popup/page of hardware wallet.
2023-12-29 10:19:26 +08:00
richardo2016x
bb194cb797 feat: partial support dark mode on debug. (#1840)
* style: add dark mode about css vars.

* feat: support reactive theme mode.

* feat: try to apply dark mode on dashboard/send-token.

* feat: support dark mode for NFTView.

* feat: checkout partial from bg-state-hooks feature to support reactive theme mode.

* feat: basic support dark mode for More.

* feat: only enable dark mode on DEBUG.

* feat: basic support dark mode for Current Address.

* feat: basic support of dark mode for address-management about workflow

* feat: basic dark mode support for entry of hardware wallet connect.

* feat: parital support of dark mode for send-token about workflow.

* style: for themMode, swap light's value with system's.

* feat: parital support of dark mode for approval.

* fix: some icons' size, normalize all default value of `--r-neutral-foot` as light mode.

* fix: props assigned to svg component.

* feat: parital support of dark mode for entry of swap & signature.

* style: tuning styles for address/txs/send about UI.

* style: tuning style for swap about UIs.

* style: tuning for Token Selector

* style: tuning for Swap Quotes.

* style: tuning for Sort Address popup.

* fix: normalize isDarkOnSystem for both css/icon.

* feat: support dark mode for all sub popup/pages from 'More'(Settings)

* style: little fix.

* fix: darkmode support for NFT UIs

* style: darkmode tuning for Add-an-address & ChainSelector-button

* style: update icon's color on More popup.

* style: support dark mode for import-my-metamask

* style: tuning darkmode for signText approval.

* style: tuning darkmode for addr management.

* style: tuning darkmode for complex sign approval.

* style: fix some style on darkmode.

* style: support darkmode for asset list in dashboard.

* style: fix some cases on darkmode.

* chore: little fix.

* chore: robust change.

* feat: support darkmode on Unlock page.

* fix: constant.

* fix: darkmode support for safe type address.

* feat: changelog and pending approval modal

* fix: dork mode for safe and cobo safe

* fix: safe nonce selector

* fix: input style in Unlock page.

* fix: wallet brand logo's display on manage-address header & del-address-modal.

* fix: keystone icon

* style: dark mode tuning.

* feat: lock to light mode for Tab page on production.

* style: dark mode tuning.

* style: dark mode fix.

* chore: style tuning.

* style: update most colors to opaque version.

* chore: style tuning.

* feat: coinbase keyring

* chore: update keyring

* fix: border width

* fix: make linter happy

* fix: connected

* fix: remove resetConnect

* chore: update keyring

* fix: connect

* chore: update keyring

* fix: coinbase light icon

* style: dark mode tuning.

* feat: enable theme switch entry.

* chore: code cleanup.

* style: fix and dark mode tuning.

* chore: style tuning.

* style: tuning style for security level.

* fix: sign waiting style on darkmode.

* style: fix.

* style: fix style on dark mode.

* style: dark mode tuning.

* chore: style tuning.

* feat: + changelog

---------

Co-authored-by: vvvvvv1vvvvvv <galennnnnnn@gmail.com>
Co-authored-by: heisenberg <heisenberg-2077@outlook.com>
2023-12-01 20:35:32 +08:00
richardo2016x
c4b15706ab feat: start support dark mode on debug. (#1846)
* style: add dark mode about css vars.

* feat: support reactive theme mode.

* feat: try to apply dark mode on dashboard/send-token.

* feat: checkout partial from bg-state-hooks feature to support reactive theme mode.

* feat: checkout necessary changes from developing branch.

* feat: only enable dark mode on DEBUG.

* fix: locales.

* feat: Revert style changes on all UI components.

* style: also support css var prefix `--rabby-`.
2023-11-03 18:27:06 +08:00
richardo2016x
80dffd6d65 feat: style color normalization stage 1. (#1651)
* feat: basic normalized palette.

* style: batch replace `#8697ff` with `#7084ff`.

* style: batch replace `@primary-color`, `@primary-text-color` with css var in less file.

* style: batch replace `@primary-color`, `@primary-text-color` with css var in js file

* chore: cleanup.

* style: batch replace `rgba(134, 151, 255, 0.1)` with `var(--blue-light, #eef1ff)`.

* style: batch replace `rgba(134, 151, 255, 0.4)` with `var(--blue-disable, rgba(112, 132, 255, 0.5))`.

* feat: generate css vars automatically.

* style: replace `--brand-default` with `--blue-default`.

* build: rename script.

* feat: support tailwind css atomics equals to the css values in css-vars.

* fix: tailwind atomics group/name.

* feat: avoid namespace conflicts with old namespace, fix cssvars value.

* style: tuning.

* style: rename cssvar.
2023-08-28 16:17:24 +08:00
richardo2016x
4c968b15bb fix: trim CRLF on windows for make-vars.js (#1097) 2022-11-11 18:52:35 +08:00
Hodor
47fc207df2 feat: signTx add listNFT type (#1038)
* feat: signTx add listNFT type

* fix: nft amount

* feat: explain typedData

* feat: nft typedData

* chore: nft typedData style

* feat: use NFTList

* chore: style

* fix: fraction digits

* feat: add tooltip

* chore: change some style

* feat: SignTypedData add view raw; pre style

* chore: change parsedMessage font-family

* chore: parsedMessage height

Co-authored-by: DMY <147dmy@gmail.com>
2022-10-19 13:59:26 +08:00
richardo2016x
4bd9b5c680 feat: improve user experience & workflow robust about create/import mnemonics. (#783)
* feat: add typo annotations for AddAddressOptions to clarify biz logic.

* feat: typo enhancement for `useWalletRequest`.

* feat: add `EntryImportAddress` between add-address and real action pages.

* feat: introduce `styled-components` to improve style injection pattern.

* fix: use title if provided for `ImportSuccess`.

* feat: always allow to create mnemonices, add risk-check before the creating action.

* feat: support multiple mnemonics

* feat: support mnemonics import twice

* feat: ui update about `import*` component, support autocomplete in `ImportMnemonics`

* chore: remove console

* fix: literal text change.

* feat: update eth-hd-keyring

* fix: little fix.

* feat: support confirm-mnemonics before importing it.

* chore: code clean, let `useCurrentBalance` standalone.

* fix: disable import a exist seed phrase

* fix: style fix.

* fix: only auto select 1st address on 1st page.

* feat: mnemonics -> seed parse

* fix: style fix.

* chore: code clean.

* chore: simplify & robust change.

* feat: keyringId start from 1

* chore: code clean.

* feat: only import 1st address on confirm-mnemonics

* fix: mnemonics counter naming logic.

* fix: fixup params on submit confirm pages

* chore: code clean.

* feat: use better naming rules for imported mnemonics.

* fix: typo fix.

* chore: folder normalization.

* fix: make `MultiSelectAddressList` controllable.

* feat: finish co-work of confirm-mnmmonics & import-more-addresses

* fix: add `selectedAddressesIndexes` to work with `draftIndexes`

* chore: move init address alias into background (#791)

* chore: background part of this function

* chore: do not init alias name in addressItem

* chore: make linter happy

* feat: alias

* feat: wallet export cache alias method

* feat: wallet export cache alias method

* feat: update @rabby-wallet/eth-hd-keyring

* fix: generateAliasName

* feat: use background to manage alias cache.

* chore: code clean.

Co-authored-by: cs1707 <lost1q84@gmail.com>
Co-authored-by: vvvvvv1vvvvvv <galennnnnnn@gmail.com>
Co-authored-by: vvvvvv1vvvvvv <86296331+vvvvvv1vvvvvv@users.noreply.github.com>
2022-06-06 18:08:55 +08:00