Commit Graph

499 Commits

Author SHA1 Message Date
Kyle Spearrin 79aca025d0 convert totp service to jslib 2018-01-09 17:45:17 -05:00
Kyle Spearrin cfbd67060a convert user service to jslib 2018-01-09 17:37:40 -05:00
Kyle Spearrin 56bde82b41 convert api, appid, and token services to jslib 2018-01-09 16:20:15 -05:00
Kyle Spearrin f51bebd99a import ts through node_modules alias 2018-01-09 14:26:20 -05:00
Kyle Spearrin bb98c7e4da converted cryptoservice to jslib 2018-01-08 15:37:11 -05:00
Kyle Spearrin e68f7a1141 convert domain models to jslib 2018-01-08 15:23:36 -05:00
Kyle Spearrin 5d39030e05 convert data models to jslib 2018-01-08 15:12:09 -05:00
Kyle Spearrin a78b8ec79c convert request/response models to jslib 2018-01-08 14:45:34 -05:00
Kyle Spearrin fd931c23d1 attach/read container service to window 2018-01-07 00:15:12 -05:00
Kyle Spearrin 03258e50f7 Refactor for barrels. Utils service to jslib 2018-01-06 22:13:48 -05:00
Kyle Spearrin c018f096b4 moved service abstractions to jslib 2018-01-06 15:47:46 -05:00
Kyle Spearrin dc15edcd4d moved all enums to jslib 2018-01-06 14:22:55 -05:00
Kyle Spearrin cbf8b00b33 rename to browser platform utils 2018-01-05 16:38:50 -05:00
Kyle Spearrin 4a08bf6b71 rename browser utils to platform utils 2018-01-05 16:30:15 -05:00
Kyle Spearrin 01cf48bbed rename browserType to deviceType 2018-01-05 11:13:24 -05:00
Kyle Spearrin 2ef937f333 IdleBackground, clean up lock service chrome refs 2018-01-04 17:04:26 -05:00
Kyle Spearrin 2986bd1e29 browserUtilsService.isViewOpen 2018-01-04 16:49:58 -05:00
Kyle Spearrin 701d81a2eb rename storage service implementation 2018-01-04 16:15:06 -05:00
Kyle Spearrin d39c5b37dc abstract MessagingService 2018-01-04 16:06:00 -05:00
Kyle Spearrin 0fbbc4a0b9 static ContainerService for edge case dependencies 2018-01-04 14:16:40 -05:00
Kyle Spearrin 0dd711471b separated BrowserUtils from generic Utils 2018-01-04 12:32:10 -05:00
Kyle Spearrin ac0126b210 abstract storage service 2018-01-04 10:51:21 -05:00
Kyle Spearrin 596e7b8a3b added german username field labels 2017-12-29 16:12:57 -05:00
Kyle Spearrin a2f2e6cfc5 add browser type support for vivaldi and safari 2017-12-18 14:21:22 -05:00
Kyle Spearrin 5ce3a4ae37 `.toString()` all device-type headers 2017-12-15 11:12:13 -05:00
Kyle Spearrin 58481633eb added device type header to requests 2017-12-15 09:58:26 -05:00
Kyle Spearrin 21963cb9d3 add support for "post-code" autofilling 2017-12-13 08:52:07 -05:00
Kyle Spearrin 6f2163ef4c moved more apis to runtime.background 2017-12-07 15:36:24 -05:00
Kyle Spearrin 142e33eb05 explicitly set boolean autofill value to false
resolves #422
2017-12-07 14:01:27 -05:00
Kyle Spearrin 4e17b74d2b lint fix 2017-12-06 22:36:11 -05:00
Kyle Spearrin e340396ce1 logout callback is always available 2017-12-06 22:35:21 -05:00
Kyle Spearrin 81c01de641 resolving this contexts 2017-12-06 22:28:33 -05:00
Kyle Spearrin a4127f2571 dont allow shorthand property assignments 2017-12-06 14:23:34 -05:00
Kyle Spearrin a5add2c6f9 pass utilsService to i18n function 2017-12-06 14:05:49 -05:00
Oscar Hinton 81fcfb4f6f [TypeScript] Convert background entry script to TypeScript (#419)
* Convert background entry file to typescript. Remove global forge & tldjs variables.

* Minor cleanup.
2017-12-06 13:51:49 -05:00
Kyle Spearrin 97b509e1f6 support fuzzy fill other labels. `hasValue` helper 2017-12-06 11:11:52 -05:00
Kyle Spearrin 41d615a8fe support for label left/top and more intel. selects 2017-12-06 09:11:37 -05:00
Kyle Spearrin 09f6b36bbb i18nService is passed in 2017-12-05 20:51:22 -05:00
Kyle Spearrin eab83a9756 fixes to generation service 2017-12-05 12:14:45 -05:00
Kyle Spearrin 184a3db7c8 convert password history to ts. added clear option 2017-12-05 11:56:13 -05:00
Kyle Spearrin 9822f95938 various fixes for generator history 2017-12-05 11:33:12 -05:00
Kyle Spearrin 4b820bb7bd set default options for password generator 2017-12-05 10:58:40 -05:00
Kyle Spearrin 61fb18ec4b delay i18n load on edge for constants 2017-12-04 09:06:49 -05:00
Kyle Spearrin b6a5180a6a dont throw error on none found 2017-11-29 10:06:02 -05:00
Kyle Spearrin b297c4279a postal code has higher priority than city/state 2017-11-24 23:47:04 -05:00
Oscar Hinton a45f2c2fd7 More tests (#395)
* Test UtilsService.newGuid

* Replace UtilsService.extendObject with Object.assign.

* Test getBrowser.

* Replace var with const.
2017-11-24 18:14:03 -05:00
Kyle Spearrin 2b042da237 additional logic for cc month filling 2017-11-24 15:49:13 -05:00
Kyle Spearrin b3d34e86fd preserve collection ids on save 2017-11-23 22:33:08 -05:00
Kyle Spearrin 2e9b3d0943 view grouping of ciphers for a collection 2017-11-22 21:55:48 -05:00
Kyle Spearrin 2d81466d25 add support for syncing collections 2017-11-22 13:17:59 -05:00
Kyle Spearrin 197200b840 ignore readonly and disabled fields 2017-11-22 08:31:22 -05:00
Kyle Spearrin 4ceac37849 resolve shadow warning 2017-11-20 09:06:36 -05:00
Oscar Hinton 4531846ff8 Add support for running unit tests (#381)
* Add test runner.

* Fix tests. Add tests for UtilsService.getDomain

* Test getHostname.

* Add two missing test cases and fix getDomain.
2017-11-17 16:33:58 -05:00
Kyle Spearrin f9b00c6871 edge hates `for of` loops :( 2017-11-16 12:49:23 -05:00
Kyle Spearrin cd4c2d6d10 handle api error cases better 2017-11-16 11:12:41 -05:00
Kyle Spearrin a166dc65b1 handle server errors for attachment save 2017-11-15 22:36:20 -05:00
Kyle Spearrin 3b6e9d7b0b int events again each time page changes 2017-11-15 14:27:30 -05:00
Kyle Spearrin 2f7b6790db fixes for edge 2017-11-15 14:27:30 -05:00
Kyle Spearrin bed28aebaa interface cryptoservice 2017-11-13 16:12:23 -05:00
Kyle Spearrin 11f392b036 interfaced utilsservice for popup and dependencies 2017-11-13 15:37:38 -05:00
Kyle Spearrin 907247b3a7 allow csv field names as well 2017-11-13 14:09:45 -05:00
Kyle Spearrin 745b17fe95 support regex in custom field names 2017-11-13 13:07:59 -05:00
Kyle Spearrin 202d008cb0 only autofill viewable fields for card/identities 2017-11-11 22:25:16 -05:00
Kyle Spearrin c6274dd1dc hasOwnProperty continue 2017-11-11 08:10:58 -05:00
Kyle Spearrin 12851a6e80 autofill improvements for cards and identities 2017-11-10 23:47:42 -05:00
Kyle Spearrin 594f2114a7 move tools component html 2017-11-10 21:23:50 -05:00
Kyle Spearrin 0f7a7c56dc fixes for initListSectionItemListeners 2017-11-09 21:58:46 -05:00
Kyle Spearrin 9fe4b29a1c convert initListSectionItemListeners to js
Removed jQuery from background
2017-11-09 17:16:41 -05:00
Kyle Spearrin f937fca917 vendors for background. clean out gulp. 2017-11-08 10:22:26 -05:00
Kyle Spearrin 1cd192a398 delete old cipher service 2017-11-07 23:05:36 -05:00
Kyle Spearrin bc98c82303 always set new tokens on refreshes 2017-11-07 10:43:02 -05:00
Kyle Spearrin 5a905bb4c1 convert lock service to ts 2017-11-07 08:24:10 -05:00
Kyle Spearrin e5fec1fc9a move copy to clipboard to static 2017-11-06 21:57:15 -05:00
Kyle Spearrin 9c5a9da9f5 delete old autofill service 2017-11-06 14:21:34 -05:00
Kyle Spearrin 7bf681c291 totp settings fix 2017-11-06 14:20:59 -05:00
Kyle Spearrin 530ed94d3c autofill service to ts 2017-11-06 14:16:06 -05:00
Kyle Spearrin 942d98d798 convert sync service to ts 2017-11-06 11:55:17 -05:00
Kyle Spearrin b05426f953 convert cipher service to ts 2017-11-06 10:58:32 -05:00
Kyle Spearrin 38e235302c fix __edgeMessages 2017-11-04 23:46:15 -04:00
Kyle Spearrin 4fb2d879ec fetch edge messages 2017-11-04 23:35:46 -04:00
Kyle Spearrin bd109f4ed9 fixes and cleanup 2017-11-04 23:18:38 -04:00
Kyle Spearrin bdd40d8755 move domain models to ts 2017-11-04 22:43:07 -04:00
Kyle Spearrin 8e998ff179 lint fixes 2017-11-04 21:37:35 -04:00
Kyle Spearrin 11edb0261b folder service to ts 2017-11-04 21:09:26 -04:00
Oscar Hinton 45a269a5f0 Fix initListSectionItemListeners (#355) 2017-11-03 17:21:07 -04:00
Kyle Spearrin 6d89cc91f7 fix callback for setUserIdAndEmail 2017-11-03 15:56:22 -04:00
Kyle Spearrin 58bf65168e remove old api service 2017-11-03 15:45:35 -04:00
Kyle Spearrin e3dea4084f fix callbacks for user service methods 2017-11-03 15:40:19 -04:00
Kyle Spearrin 2211c569d7 settings service to ts 2017-11-03 15:33:29 -04:00
Kyle Spearrin ee11bb5137 user service to ts 2017-11-03 15:12:49 -04:00
Kyle Spearrin 0c878d78f3 totp service to ts 2017-11-03 13:50:03 -04:00
Kyle Spearrin 8d60c6c824 call into static methods from utils service 2017-11-03 12:36:26 -04:00
Kyle Spearrin 43ef921886 environment service to ts 2017-11-03 12:33:34 -04:00
Kyle Spearrin 6ae7b2e035 convert api service to ts with fetch 2017-11-03 11:59:45 -04:00
Kyle Spearrin 9f9e3245de convert token service to ts 2017-11-02 20:50:00 -04:00
Kyle Spearrin bf38ca9578 convert token service to ts 2017-11-02 17:49:00 -04:00
Kyle Spearrin eb8c4063ca lint fixes 2017-11-02 16:33:54 -04:00
Kyle Spearrin b94a55f655 remove old appid service 2017-11-02 16:32:19 -04:00
Kyle Spearrin 5fd850929d convert appid service to ts 2017-11-02 15:51:05 -04:00
Kyle Spearrin 8eeb5821f0 password generation service to ts 2017-11-02 12:33:43 -04:00
Kyle Spearrin c586349014 cleanup crypto service a bit 2017-11-02 11:07:45 -04:00
Kyle Spearrin 177b97ff97 move some methods to utils and static 2017-11-02 09:30:28 -04:00
Kyle Spearrin fbba9b673d fixes during crypto service testing 2017-11-02 09:17:53 -04:00
Kyle Spearrin c3704c3dfd convert methods to promises 2017-11-02 08:54:40 -04:00
Kyle Spearrin 54a909ab24 tslint fixes 2017-11-02 08:45:31 -04:00
Kyle Spearrin e415a659ad migrate crypto service to ts 2017-11-01 23:40:39 -04:00
Kyle Spearrin c073d74e04 utils service additions 2017-11-01 23:39:42 -04:00
Kyle Spearrin 7f45fd02c0 added static props so we can start using them 2017-11-01 15:48:24 -04:00
Kyle Spearrin acbfac6df3 convert constants service to ts 2017-11-01 15:46:03 -04:00
Kyle Spearrin 9ffbd0bb69 lint fixes 2017-11-01 13:40:38 -04:00
Kyle Spearrin 51f2c9a30c formatting 2017-11-01 11:41:39 -04:00
Kyle Spearrin d94c6de6f1 formatting 2017-11-01 11:41:12 -04:00
Oscar Hinton 4b68163cbd Convert utilService to typescript. (#342) 2017-11-01 09:18:05 -04:00
Oscar Hinton 59754cd530 Setup Webpack & TypeScript (#316)
* TypeScript and WebPack.

* Minor cleanup.

* Add background.js as entry point to webpack.

* Use downloaded fonts for better performance.
Remove google-fonts-webpack-plugin.

* Add the remaining entry points and setup notification bar.

* Update readme for webpack.

* Convert CipherItems to TypeScript to demonstrate how a component looks in TS.

* Fix edge requirering a custom angular version.

* Rewrite gulp tasks for packaging releases.

* Re-add the webpack gulp plugin.

* Remove unessesary line in analytics.
2017-10-28 22:14:14 -04:00
Kyle Spearrin a2480bf2df fixes for keys 2017-10-26 08:32:04 -04:00
Kyle Spearrin 1c3143867b cleanup autofill service a bit 2017-10-25 21:55:52 -04:00
Kyle Spearrin 0c90d9dba2 set icons server environment url 2017-10-23 23:05:24 -04:00
Duc Hoang Nguyen 37907fbf42 firefox: show popup when click "vault is locked" (#314)
* small lint error

* show popup when click "vault is locked"

* moved to loadNoLoginsContextMenuOptions
2017-10-19 08:38:33 -04:00
Kyle Spearrin 74eeb1a3c1 fixes from refactors 2017-10-18 14:56:59 -04:00
Kyle Spearrin 1443e4d74a change state, province, and country names to codes 2017-10-18 13:05:54 -04:00
Kyle Spearrin f4e72aae8a autofill card expiration 2017-10-18 11:50:21 -04:00
Kyle Spearrin cd878c75b2 proper autocomplete prop 2017-10-18 11:07:25 -04:00
Kyle Spearrin 966e4fc69b delete cipher fix 2017-10-18 11:07:05 -04:00
Kyle Spearrin 95c0a5ace2 return results even when domain is not parsable 2017-10-17 23:54:19 -04:00
Kyle Spearrin dadecf2f4d autofill identity 2017-10-17 23:44:12 -04:00
Kyle Spearrin e75fee5278 generate autofill script for card 2017-10-17 22:53:26 -04:00
Kyle Spearrin 3d45cfc7b8 fields are for all types 2017-10-17 21:35:27 -04:00
Kyle Spearrin 0e692d8c86 restructure autofill class for fillscripts by type 2017-10-17 21:30:30 -04:00
Kyle Spearrin a0b953208d only copy totp on login types 2017-10-17 21:10:44 -04:00
Kyle Spearrin 5b6158c0b7 back everywhere, a few password history touch-ups 2017-10-17 17:09:48 -04:00
Oscar Hinton f1262147a3 History of generated passwords (#310)
* Save last 5 passwords.

* Move password history to seperate page.

* Use the util helpers for accessing the local storage.

* Change close to back for password history. Remove unused html.

* Change orderBy to use the date instead of magic array.

* Move historyService to background.

* Add passwords generated from shortcut and contextmenu to history.

* Fix return to edit/add not working in password generator history.

* Change password icon to clipboard.

* Change link to password history to use on-click.

* Clear password generator history on logout.

* Code style fix.

* Add new .wrap class for wrapping long text. Fix password icon.
2017-10-17 16:42:05 -04:00
Kyle Spearrin 0c8ae91d83 revert api screw up 2017-10-17 15:22:40 -04:00
Kyle Spearrin e87f9e268a autofill ui for other types. autofill fixes 2017-10-17 15:22:16 -04:00
Kyle Spearrin 09c340bbe5 Q shorthand 2017-10-17 12:23:32 -04:00
Kyle Spearrin 999689cf7e more promise/utils helper conversions 2017-10-17 12:22:50 -04:00
Kyle Spearrin 0fdee0f13b promise conversions 2017-10-17 09:25:22 -04:00
Kyle Spearrin 1b66b255f3 folder save fixes 2017-10-17 09:07:36 -04:00
Kyle Spearrin ec3f0b25f6 save with server fixes 2017-10-17 09:00:01 -04:00
Kyle Spearrin ba4e2eae15 refactor out callbacks from folderService 2017-10-17 00:03:27 -04:00
Kyle Spearrin ea1ef54c95 rename sorts 2017-10-16 23:21:12 -04:00
Kyle Spearrin 6722793087 rename loginService to cipherService 2017-10-16 23:11:32 -04:00
Kyle Spearrin ad285a7605 action buttons component 2017-10-16 14:45:47 -04:00
Kyle Spearrin fd146afb69 more fixes 2017-10-16 10:20:46 -04:00
Kyle Spearrin 176b9a8ed0 add/edit/view fixes for ciphers 2017-10-16 10:09:17 -04:00
Kyle Spearrin 355a58f67c service fixes for ciphers 2017-10-14 14:29:10 -04:00
Kyle Spearrin 5a1bf8299f vault listing page fixes 2017-10-13 23:11:42 -04:00
Kyle Spearrin b5c70c4941 encrypt cipher data 2017-10-13 22:34:36 -04:00
Kyle Spearrin 925102a86b fcall to just Q() 2017-10-13 21:39:31 -04:00
Kyle Spearrin 2b5915b257 convert to promises. loginService cipher refactor 2017-10-13 17:07:20 -04:00
Kyle Spearrin 44f5812a36 build models for cipher types 2017-10-13 14:04:03 -04:00
Oscar Hinton a99ce875ca Website icons (#285)
* Initial attempt at adding favicons.

* Cache the favicons for 30 days.

* Refactor faviconService, remove unused faviconDirective.

* Change icon url to icons.bitwarden.com. Update style to support dynamic size of icon.

* Use hostname instead of domain.

* Fix getFavicon throwing an exception if the uri is not a valid url.

* Add enabled property to faviconService to prevent slow calls to storage. Fixed chrome not displaying chrome://favicon properly.

* Fix chrome disable favicon not working as expected.

* Add default icon.

* Fix jshint errors.

* Cleanup of faviconService, removed caching related code. Add faviconComponent for handling favicons.

* Remove faviconService, moved functionallity into faviconComponent.

* Fix faviconComponent not updating when uri changes.

* Rename favicon to icon.

* Improve whitelist.
2017-10-12 14:48:29 -04:00
Kyle Spearrin 5a6c43e46e dont skip totp copy if from autofill command 2017-10-11 22:52:46 -04:00
Kyle Spearrin 847c3df7df remove query string from manifest popup 2017-10-11 22:30:47 -04:00
Kyle Spearrin 41c3007821 expand vault uses a popup instead of a new tab 2017-10-10 12:42:24 -04:00
Kyle Spearrin 22e1c7d58d only skip username only fill when from autofiller 2017-10-07 13:17:43 -04:00
Kyle Spearrin 7561ae4996 skip autofill username option 2017-10-07 13:10:04 -04:00
Kyle Spearrin 79f20f09cb lint fixes 2017-10-06 10:36:45 -04:00
Kyle Spearrin d4cf0fe338 manage ui location for popup app 2017-10-06 00:05:08 -04:00
Kyle Spearrin 311a18a307 add site form and autofill detection improvements 2017-10-05 22:30:46 -04:00
Kyle Spearrin 9aaf080716 autofill adjustments 2017-09-29 15:12:23 -04:00
Kyle Spearrin 714b166035 sidebar is only available in newer ff versions 2017-09-29 09:13:21 -04:00
Kyle Spearrin 3ce2fb484a fix remember bug and auto-focus on lock screen 2017-09-28 11:03:41 -04:00
Kyle Spearrin 6fa5582883 added support for sidebar 2017-09-28 10:39:31 -04:00
Kyle Spearrin 068fd5d06c add/edit login custom fields 2017-09-25 10:20:26 -04:00
Kyle Spearrin eace0f32f0 copy totp to clipboard from popup document in ff 2017-09-22 15:31:31 -04:00
Kyle Spearrin 5089cbded6 autofill fixes 2017-09-22 15:11:30 -04:00
Kyle Spearrin 19621accaa Auto-fill additions/improvements
- Auto0fill custom fields
- Smarter auto-fill detection for usernames
- Auto-fill username even if no password on screen
2017-09-22 12:10:19 -04:00
Kyle Spearrin 835bb6ffa7 login custom fields view/edit 2017-09-21 22:45:24 -04:00
Kyle Spearrin 56e1f6c25b cipher request login subclass, sync fixes 2017-09-21 10:43:33 -04:00
Kyle Spearrin 8a1e8678f8 move from login to cipher apis 2017-09-20 17:13:38 -04:00
Kyle Spearrin b48c86a572 remove debug logging from sync operations 2017-09-20 12:33:18 -04:00
Kyle Spearrin fd538494c0 convert to using new sync api 2017-09-20 12:28:41 -04:00
Kyle Spearrin d1fb388ea3 switch back to forge decrypt implementation (perf) 2017-09-19 12:47:52 -04:00
Kyle Spearrin 9ee016251a move jwt token to authorization header 2017-09-14 13:21:00 -04:00
Kyle Spearrin e9e0abd792 log sync service 2017-09-08 13:39:14 -04:00
Kyle Spearrin f36c046a36 doRefreshToken to its own function 2017-09-07 23:56:05 -04:00
Kyle Spearrin 41c32f3874 auto-fill basic auth prompts 2017-09-07 23:26:56 -04:00
Kyle Spearrin 01e48377e9 combine token refresh methods. added api logging 2017-09-07 13:21:49 -04:00
Kyle Spearrin ff0fde161e rebuild tokenrequest obj on login api 2017-09-06 15:52:06 -04:00
Kyle Spearrin 4641240d47 refactor custom env urls, cleanup bg script a bit 2017-09-04 12:09:11 -04:00
Kyle Spearrin 1f8e30b5cd catch security error when setting env urls 2017-09-03 12:58:42 -04:00
Kyle Spearrin 19a59e6177 remove old auth bearer code. move sync methods 2017-08-31 14:17:52 -04:00
Kyle Spearrin 43c27387fc use access_token3 still for now 2017-08-30 13:00:43 -04:00
Kyle Spearrin de097eaacf fix this reference to sort method 2017-08-30 08:43:06 -04:00
Kyle Spearrin ae6c609c91 move sort to service 2017-08-30 08:35:34 -04:00
Kyle Spearrin e01f3fd40c sort fixes when never used 2017-08-29 13:03:08 -04:00
Kyle Spearrin 518585cfb5 track last used autofill for priority filling 2017-08-29 12:52:11 -04:00
Kyle Spearrin 8804cc5a96 lint fixes 2017-08-29 12:49:44 -04:00
Kyle Spearrin 69abbdaf8d fixes for edge 2017-08-28 22:27:29 -04:00
Kyle Spearrin c66803ce1f web vault url environment for U2F 2017-08-28 18:08:08 -04:00
Kyle Spearrin ad544e5240 refactor autofill. add auto-fill on page load 2017-08-28 13:00:46 -04:00
Kyle Spearrin c40465f292 handle revision api failure case 2017-08-28 11:24:14 -04:00
Kyle Spearrin 220703a9d7 environment settings 2017-08-22 12:01:17 -04:00
Kyle Spearrin 966927fe3c revert to single access token param 2017-08-10 10:16:26 -04:00
Kyle Spearrin 3ee9b1bba1 makeEncKey to use UInt8Array 2017-08-04 15:29:44 -04:00
Kyle Spearrin dedd64b82a added missing two-step login i18n strings 2017-07-31 09:54:52 -04:00
Kyle Spearrin a6ee05ef93 added option to disable auto totp copying 2017-07-22 23:09:01 -04:00
Kyle Spearrin 592b14149f copy totp to clipboard when autofilling 2017-07-22 23:09:01 -04:00
Kyle Spearrin e4baa19232 lint fixes 2017-07-14 15:34:05 -04:00
Kyle Spearrin cf850838b5 lint fixes 2017-07-14 15:09:41 -04:00