Commit Graph

20 Commits

Author SHA1 Message Date
Thomas Rittson b68b8b3aab Add typing 2022-06-29 14:00:05 +10:00
Thomas Rittson da7e692f3e Misc test tidy up 2022-06-29 13:42:15 +10:00
Thomas Rittson a9d7d4712e Refactor tests 2022-06-29 13:23:53 +10:00
Thomas Rittson 2115c5c76a Remove helper methods 2022-06-29 10:23:01 +10:00
Thomas Rittson d9f2dc2b90 Fix test 2022-06-28 12:18:06 +10:00
Thomas Rittson 83e0db5163 Resolve merge conflicts and fix cryptoKey handling 2022-06-28 11:59:37 +10:00
Thomas Rittson 2df751f607 Merge remote-tracking branch 'origin/master' into EC-281-web-workers-add-de-serialization-methods-to-view-objects 2022-06-28 11:48:00 +10:00
Thomas Rittson ee62be63f1 Fix mocks 2022-06-28 11:46:29 +10:00
Thomas Rittson 880d4ec15f CipherView tests 2022-06-28 11:36:45 +10:00
Thomas Rittson a85b6c2bb4 Add secureNoteView test and WIP cipherView 2022-06-28 11:04:23 +10:00
Thomas Rittson 3bdefcd0e8 Update test folder structure 2022-06-28 10:28:26 +10:00
Thomas Rittson 580ef99e47 Tests for all nested objects 2022-06-28 10:25:29 +10:00
Thomas Rittson 888a60edc2 First tests 2022-06-28 09:42:35 +10:00
Matt Gibson 399b8c2b34
PS-813 Add memory storage to state service (#2892)
* Use abstract methods and generics in StorageService

* Prepend `Abstract` to abstract classes

* Create session browser storage service

* Use memory storage service for state memory

* Inject memory storage service

* Maintain filename extensions to help ide formatting

* Preserve state if it's still in memory

* Use jslib's memory storage service

* linter

* Create prototypes on stored objects

* standardize package scripts

* Add type safety to `withPrototype` decorators

* webpack notify manifest version

* Fix desktop

* linter

* Fix script

* Improve prototye application

* do not change prototype if it already matches desired
* fix error with object values prototype application

* Handle null state

* Apply prototypes to browser-specific state

* Add angular language server to recommended extensions

* Improve browser state service tests

* Start testing state Service

* Fix abstract returns

* Move test setup files to not be picked up by default glob matchers

* Add key generation service

* Add low-dependency encrypt service

* Back crypto service with encrypt service.

We'll want to work items that don't require state over to encrypt service

* Add new storage service and tests

* Properly init more stored values

* Fix reload issues when state service is recovering state from session storage

Co-authored-by: Thomas Avery <Thomas-Avery@users.noreply.github.com>
Co-authored-by: Justin Baur <admin@justinbaur.com>

* Simplify encrypt service

* Do not log mac failures for local-backed session storage

* `content` changed to `main` in #2245

* Fix CLI

* Remove loggin

* PR feedback

* Merge remote-tracking branch 'origin/master' into add-memory-storage-to-state-service

* Fix desktop

* Fix decrypt method signature

* Minify if not development

* Key is required

Co-authored-by: Thomas Avery <Thomas-Avery@users.noreply.github.com>
Co-authored-by: Justin Baur <admin@justinbaur.com>
2022-06-27 12:38:12 -05:00
Thomas Rittson 3d240c05ce Separate Utils helper methods 2022-06-24 10:11:59 +10:00
Thomas Rittson 4ecc522102 Rename method and fix types 2022-06-24 09:54:23 +10:00
Thomas Rittson 661edc85a9 Create and return target obj if none provided 2022-06-24 09:18:02 +10:00
Thomas Rittson 6de06aedd4 Add Utils.copyProperties and tests 2022-06-24 09:11:02 +10:00
Oscar Hinton bc639688e8
Use NPM workspace (#2874) 2022-06-14 17:10:53 +02:00
Hinton d7492e3cf3 Move to libs 2022-06-03 16:24:40 +02:00