1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00
🦊 Minimalized version of MetaMask for my own personal use.
Go to file
Dan J Miller c757366355
Metametrics (#6171)
* Add metametrics provider and util.

* Add backend api and state for participating in metametrics.

* Add frontend action for participating in metametrics.

* Add metametrics opt-in screen.

* Add metametrics events to first time flow.

* Add metametrics events for route changes

* Add metametrics events for send and confirm screens

* Add metametrics events to dropdowns, transactions, log in and out, settings, sig requests and main screen

* Ensures each log in is measured as a new visit by metametrics.

* Ensure metametrics is called with an empty string for dimensions params if specified

* Adds opt in metametrics modal after unlock for existing users

* Adds settings page toggle for opting in and out of MetaMetrics

* Switch metametrics dimensions to page level scope

* Lint, test and translation fixes for metametrics.

* Update design for metametrics opt-in screen

* Complete responsive styling of metametrics-opt-in modal

* Use new chart image on metrics opt in screens

* Incorporate the metametrics opt-in screen into the new onboarding flow

* Update e2e tests to accomodate metametrics changes

* Mock out metametrics network requests in integration tests

* Fix tx-list integration test to support metametrics provider.

* Send number of tokens and accounts data with every metametrics event.

* Update metametrics event descriptor schema and add new events.

* Fix import tos bug and send gas button bug due to metametrics changes.

* Various small fixes on the metametrics branch.

* Add origin custom variable type to metametrics.util

* Fix names of onboarding complete actions (metametrics).

* Fix names of Metrics Options actions (metametrics).

* Clean up code related to metametrics.

* Fix bad merge conflict resolution and improve promise handling in sendMetaMetrics event and confrim tx base

* Don't send a second metrics event if user has gone back during first time flow.

* Collect metametrics on going back from onboarding create/import.

* Add missing custom variable constants for metametrics

* Fix metametrics provider

* Make height of opt-in modal responsive.

* Adjust text content for opt-in modal.

* Update metametrics event names and clean up code in opt-in-modal

* Put phishing warning step next to last in onboarding flow

* Link terms of service on create and import screens of first time flow

* Add subtext to options on the onboarding select action screen.

* Fix styling of bullet points on end of onboarding screen.

* Combine phishing warning and congratulations screens.

* Fix placement of users if unlocking after an incomplete onboarding import flow.

* Fix capitalization in opt-in screen

* Fix last onboarding screen translations

* Add link to 'Learn More' on the last screen of onboarding

* Code clean up: metametrics branch

* Update e2e tests for phishing warning step removal

* e2e tests passing on metametrics branch

* Different tracking urls for metametrics on development and prod
2019-03-05 12:15:01 -03:30
.circleci Remove unused CI jobs, rename e2e beta jobs 2019-02-20 14:20:39 -03:30
.github Update UI codeowners 2019-01-30 10:32:04 -03:30
.storybook Merge branch 'develop' into i3725-refactor-send-component- 2018-05-14 11:44:50 -02:30
app Metametrics (#6171) 2019-03-05 12:15:01 -03:30
development Metametrics (#6171) 2019-03-05 12:15:01 -03:30
docs Feature Flag + Mobile Sync (#5955) 2019-02-25 15:40:13 -03:30
mascara Feature Flag + Mobile Sync (#5955) 2019-02-25 15:40:13 -03:30
notices EIP-1102 updates (#6006) 2019-01-30 10:27:33 -08:00
test Metametrics (#6171) 2019-03-05 12:15:01 -03:30
ui Metametrics (#6171) 2019-03-05 12:15:01 -03:30
.babelrc Minimum Browsers Supported (#4873) 2018-08-22 20:20:24 -02:30
.dockerignore
.editorconfig
.eslintignore Merge pull request #5797 from MetaMask/trezor-v6 2018-11-21 14:45:55 -05:00
.eslintrc ESLint fixes (#5775) 2018-11-16 14:54:55 -10:00
.gitattributes
.gitignore Add html reporter to test coverage output 2018-09-11 09:39:16 -07:00
.nvmrc nvm: Bump Node version to 8.13 2018-11-21 15:47:57 -03:30
.stylelintignore
.stylelintrc
auto-changelog.sh detect os 2018-11-15 10:12:11 -08:00
CHANGELOG.md Version 6.1.0 RC1 2019-02-19 12:22:01 -08:00
CONTRIBUTING.md update contributing.md 2018-07-05 17:52:26 -04:00
docker-compose.yml
Dockerfile
fonts
gentests.js fix gentests.js 2018-07-02 19:36:26 -04:00
gulpfile.js Feature Flag + Mobile Sync (#5955) 2019-02-25 15:40:13 -03:30
images
ISSUE_TEMPLATE
LICENSE License 2018-06-22 16:28:54 -04:00
MISSION.md Mission v2 2018-05-29 09:30:59 -07:00
package-lock.json bump trezor-connect to v7 (#6224) 2019-03-04 10:17:44 -08:00
package.json bump trezor-connect to v7 (#6224) 2019-03-04 10:17:44 -08:00
README.md Remove outdated ui dev and ui mock docs 2019-02-20 14:18:46 -03:30
USER_AGREEMENT.md fix tos link; 2018-07-12 16:24:13 -04:00

MetaMask Browser Extension

Build Status Coverage Status Stories in Ready

You can find the latest version of MetaMask on our official website. For help using MetaMask, visit our User Support Site.

For up to the minute news, follow our Twitter or Medium pages.

To learn how to develop MetaMask-compatible applications, visit our Developer Docs.

To learn how to contribute to the MetaMask project itself, visit our Internal Docs.

Building locally

  • Install Node.js version 8 and the latest available npm@6
    • If you are using nvm (recommended) running nvm use will automatically choose the right node version for you.
    • If you install Node.js manually, ensure you're using npm@6
      • Install npm@6 using npm install -g npm@6
  • Install dependencies: npm install
    • If you have issues with node-sass compilation, try npm rebuild node-sass
  • Install gulp globally with npm install -g gulp-cli.
  • Build the project to the ./dist/ folder with gulp build.
  • Optionally, to rebuild on file changes, run gulp dev.
  • To package .zip files for distribution, run gulp zip, or run the full build & zip with gulp dist.

Uncompressed builds can be found in /dist, compressed builds can be found in /builds once they're built.

Contributing

You can read our internal docs here.

You can re-generate the docs locally by running npm run doc, and contributors can update the hosted docs by running npm run publish-docs.

Running Tests

Requires mocha installed. Run npm install -g mocha.

Then just run npm test.

You can also test with a continuously watching process, via npm run watch.

You can run the linter by itself with gulp lint.

Architecture

Architecture Diagram

Development

npm install
npm start

Build for Publishing

npm run dist

Writing Browser Tests

To write tests that will be run in the browser using QUnit, add your test files to test/integration/lib.

Other Docs