Skip to content
Permalink
Browse files

feat: add locker and storage (#2)

  • Loading branch information...
paulobmarcos committed Mar 7, 2019
1 parent a1f9e67 commit 4505e000493e3b251dd8b0423ea2ea0f608682e6
Showing with 18,988 additions and 0 deletions.
  1. +3 −0 .eslintignore
  2. +1 −0 demo/.env
  3. +22 −0 demo/.gitignore
  4. +68 −0 demo/README.md
  5. +16,153 −0 demo/package-lock.json
  6. +25 −0 demo/package.json
  7. BIN demo/public/favicon.ico
  8. +41 −0 demo/public/index.html
  9. +15 −0 demo/public/manifest.json
  10. +33 −0 demo/src/App.css
  11. +17 −0 demo/src/App.js
  12. +9 −0 demo/src/App.test.js
  13. +1 −0 demo/src/idm-wallet
  14. +14 −0 demo/src/index.css
  15. +13 −0 demo/src/index.js
  16. +7 −0 demo/src/logo.svg
  17. +135 −0 demo/src/serviceWorker.js
  18. +57 −0 demo/src/shared/components/lock-screen/LockScreen.js
  19. +51 −0 demo/src/shared/components/setup-locker/SetupLocker.js
  20. +55 −0 demo/src/shared/components/setup-locker/steps/SetupIdleTimer.js
  21. +103 −0 demo/src/shared/components/setup-locker/steps/SetupMasterLock.js
  22. +48 −0 demo/src/shared/components/timer/Timer.js
  23. +62 −0 demo/src/shared/components/wallet/Wallet.js
  24. +62 −0 demo/src/shared/components/wallet/wallet-content/WalletContent.css
  25. +81 −0 demo/src/shared/components/wallet/wallet-content/WalletContent.js
  26. +33 −0 package-lock.json
  27. +8 −0 package.json
  28. +24 −0 src/__tests__/index.test.js
  29. +14 −0 src/index.js
  30. +120 −0 src/locker/__tests__/idle-timer.test.js
  31. +276 −0 src/locker/__tests__/index.test.js
  32. +99 −0 src/locker/__tests__/secret.test.js
  33. +71 −0 src/locker/idle-timer.js
  34. +115 −0 src/locker/index.js
  35. +31 −0 src/locker/locks/__tests__/index.test.js
  36. +112 −0 src/locker/locks/__tests__/mocks/index.js
  37. +282 −0 src/locker/locks/__tests__/passphrase.test.js
  38. +57 −0 src/locker/locks/base.js
  39. +29 −0 src/locker/locks/index.js
  40. +193 −0 src/locker/locks/passphrase.js
  41. +156 −0 src/locker/locks/util/passphrase-strength.js
  42. +58 −0 src/locker/secret.js
  43. +22 −0 src/storage/__tests__/index.test.js
  44. +152 −0 src/storage/__tests__/local-storage.test.js
  45. +11 −0 src/storage/index.js
  46. +49 −0 src/storage/local-storage.js
@@ -0,0 +1,3 @@
coverage/
demo/
lib/
@@ -0,0 +1 @@
SKIP_PREFLIGHT_CHECK=true
@@ -0,0 +1,22 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
@@ -0,0 +1,68 @@
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).

## Available Scripts

In the project directory, you can run:

### `npm start`

Runs the app in the development mode.<br>
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.

The page will reload if you make edits.<br>
You will also see any lint errors in the console.

### `npm test`

Launches the test runner in the interactive watch mode.<br>
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.

### `npm run build`

Builds the app for production to the `build` folder.<br>
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.<br>
Your app is ready to be deployed!

See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.

### `npm run eject`

**Note: this is a one-way operation. Once you `eject`, you can’t go back!**

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

## Learn More

You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).

To learn React, check out the [React documentation](https://reactjs.org/).

### Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

### Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

### Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

### Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

### Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

### `npm run build` fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

0 comments on commit 4505e00

Please sign in to comment.
You can’t perform that action at this time.