feat(client/worker): support web work in frontend with fallback (#31)

* feat(client/web): add upload mgr

* feat(uploader): move uploader to worker

* feat(upload_mgr): use native worker for uploading

* fix(upload_mgr): fix uploading stop not working

* chore(client/web): cleanups

* test(upload.worker): add unit test for upload.worker

* feat(worker): add foreground upload worker

* chore(uploader): turn down the speedup
This commit is contained in:
Hexxa 2021-01-26 22:25:15 +08:00 committed by GitHub
parent 67c07cc81f
commit 31e4850344
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
27 changed files with 1192 additions and 265 deletions

View file

@ -29,6 +29,7 @@
"@types/deep-diff": "^1.0.0",
"@types/jest": "^24.0.12",
"assert": "^2.0.0",
"babel-loader": "^8.2.2",
"css-loader": "^2.1.1",
"deep-diff": "^1.0.2",
"html-webpack-plugin": "^4.0.0-beta.5",
@ -38,14 +39,16 @@
"terser-webpack-plugin": "^1.3.0",
"ts-jest": "^26.4.4",
"ts-loader": "^6.0.0",
"ts-mockito": "^2.6.1",
"ts-node": "^8.2.0",
"tslint": "^5.16.0",
"typescript": "^3.4.3",
"typescript": "^4.1.3",
"uglifyjs-webpack-plugin": "^2.1.3",
"webpack": "^5.0.0-rc.6",
"webpack-bundle-analyzer": "^3.3.2",
"webpack-cli": "^4.2.0",
"webpack-merge": "^4.2.1"
"webpack-merge": "^4.2.1",
"worker-loader": "^3.0.7"
},
"dependencies": {
"@types/axios": "^0.14.0",
@ -62,7 +65,8 @@
"react-copy-to-clipboard": "^5.0.1",
"react-dom": "^16.8.6",
"react-svg": "^8.0.6",
"throttle-debounce": "^2.1.0"
"throttle-debounce": "^2.1.0",
"worker-loader": "^3.0.7"
},
"jest": {
"testMatch": [