-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): migrate file handler service to Typescript, update fr…
…ontend test framework and lint (#1243) * feat(FileHandlerSvc): add initial file * ref(EditFieldsModal): use FileHandlerService instead of old client * ref(EditStartPage): use FileHandlerService instead of old client * ref(FieldAttachments): use shared utils instead of FileHandler * feat: remove file-handler.client.service * test: update frontend test runner to allow for typescript * feat: allow cancellation when fetching presigned data * feat: export uploadFile for testing * chore: update eslint rules for testing * chore: add jest-mock-axios package * test(FileHandlerService): add unit tests * chore: remove crypto-js package * fix(FileHandlerSvc): update JSDoc * test: manually instantiate mock axios instead of using a manual mock * fix(FileHandlerSvc): base64 encode md5 before returning also make the code more performant on larger files * ref(FileHandlerSvc): mark uploadImage/Logo functions as async * chore(eslint): fix projected path of tsconfig.json
- Loading branch information
Showing
17 changed files
with
581 additions
and
242 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.