1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-24 11:01:41 +01:00
metamask-extension/ui/app/css/itcss/components
Mark Stacey f763979bed
Add support for one-click onboarding (#7017)
* Add support for one-click onboarding

MetaMask now allows sites to register as onboarding the user, so that
the user is redirected back to the initiating site after onboarding.
This is accomplished through the use of the `metamask-onboarding`
library and the MetaMask forwarder.

At the end of onboarding, a 'snackbar'-stype component will explain to the
user they are about to be moved back to the originating dapp, and it will
show the origin of that dapp. This is intended to help prevent phishing
attempts, as it highlights that a redirect is taking place to an untrusted
third party.

If the onboarding initiator tab is closed when onboarding is finished,
the user is redirected to the onboarding originator as a fallback.

Closes #6161

* Add onboarding button to contract test dapp

The `contract-test` dapp (run with `yarn dapp`, used in e2e tests) now
uses a `Connect` button instead of connecting automatically. This
button also serves as an onboarding button when a MetaMask installation
is not detected.

* Add new static server for test dapp

The `static-server` library we were using for the `contract-test` dapp
didn't allow referencing files outside the server root. This should
have been possible to work around using symlinks, but there was a bug
that resulted in symlinks crashing the server.

Instead it has been replaced with a simple static file server that
will serve paths starting with `node_modules` from the project root.
This will be useful in testing the onboarding library without vendoring
it.

* Add `@metamask/onboarding` and `@metamask/forwarder`

Both libraries used to test onboarding are now included as dev
dependencies, to help with testing. A few convenience scripts
were added to help with this (`yarn forwarder` and `yarn dapp-forwarder`)
2019-11-22 13:03:51 -04:00
..
pages EIP-1102: updated implementation 2018-11-05 15:07:09 -08:00
account-details-dropdown.scss Added account options on home screen 2018-10-09 19:43:41 -07:00
account-dropdown.scss Targets base inputs and only prevents outline if user uses a mouse (#6871) 2019-07-16 22:58:00 -02:30
alert.scss added new global alert 2018-07-19 02:31:02 -04:00
confirm.scss Change font weight from 300 to 400 2018-05-05 15:12:41 -07:00
currency-display.scss Targets base inputs and only prevents outline if user uses a mouse (#6871) 2019-07-16 22:58:00 -02:30
editable-label.scss Fix input border rendering on mobile 2017-10-26 12:23:24 -07:00
footer.scss Organize app components scss 2017-08-06 13:24:13 -07:00
gas-slider.scss Adds the content of the advanced tab - w/o chart or dynamic content - to gas customize modal. 2018-12-04 00:06:04 -03:30
index.scss Add support for one-click onboarding (#7017) 2019-11-22 13:03:51 -04:00
loading-overlay.scss Refactor first time flow, remove seed phrase from state (#5994) 2019-01-23 11:55:34 -03:30
menu.scss Wrap smaller custom block explorer url text (#6714) 2019-06-17 08:32:12 -02:30
modal.scss Remove unused modals (#7184) 2019-09-18 10:09:41 -03:00
network.scss MetaMorph - Spacing and Typeface on Extension Main view (#6584) 2019-06-12 19:56:04 -07:00
new-account.scss Refactor new-account.js (#7312) 2019-10-29 12:12:41 -04:00
newui-sections.scss Right-to-left CSS (using module for conversion) (#7072) 2019-09-03 14:47:54 -03:00
request-signature.scss Remove AccountDropdownMini component (#6906) 2019-07-25 08:55:43 -03:00
sections.scss Right-to-left CSS (using module for conversion) (#7072) 2019-09-03 14:47:54 -03:00
send.scss Address book send plus contact list (#6914) 2019-07-31 17:26:44 -02:30
simple-dropdown.scss Update settings screen to new UI 2017-10-22 22:40:03 -07:00
tab-bar.scss Right-to-left CSS (using module for conversion) (#7072) 2019-09-03 14:47:54 -03:00
token-list.scss Ensures token list amount is in its own row. 2018-07-05 08:07:41 -02:30
tooltip.scss [NewUI] Use tooltip for copy to clipboard helper text on main screen. (#3120) 2018-01-31 16:27:35 -08:00
transaction-list.scss Fix e2e tests 2018-08-23 16:45:27 -07:00
wallet-balance.scss Update ETH logo, update deposit Ether logo height and width (#7239) 2019-10-02 10:15:44 -06:00