lbry-desktop/flow-typed
infinite-persistence cb6a044584
Support resume-able upload via tus (#186)
* Publish button: use spinner instead of "Publishing..."

Looks better, plus the preview could take a while sometimes.

* Refactor `doPublish`. No functional change

This is to allow `doPublish` to accept a custom payload as an input (for resuming uploads), instead of always resolving it from the redux data.

* Add doPublishResume

* Support resume-able upload via tus

## Issue
38 Handle resumable file upload

## Notes
Since we can't serialize a File object, we'll need to the user to re-select the file to resume.

* Exclude "modified date" for Firefox/Android

## Issue
It appears that the modification date of the Android file changes when selected, so that file was deemed "different" when trying to resume upload.

## Change
Exclude modification date for now. Let's assume a smart user.

* Move 'currentUploads' to 'publish' reducer

`publish` is currently rehydrated, so we can ride on that and don't need to store the `currentUploads` in `localStorage` for persistence. This would allow us to store Markdown Post data too, as `localStorage` has a 5MB limit per app.

We could have also made `webReducer` rehydrate, but in this repo, there is no need to split it to another reducer. It also makes more sense to be part of publish anyway (at least to me).

This change is mostly moving items between files, with the exception of
1. An additional REHYDRATE in the publish reducer to clean up the tusUploader.
2. Not clearing `currentUploads` in CLEAR_PUBLISH.

* Restore v1 code for livestream replay, etc.

v2 (tus) does not handle `remote_url`, so the app still needs v1 for that. Since we'll still have v1 code, use v1 for previews as well.
2021-11-10 13:16:16 -05:00
..
npm flow fixes 2020-12-16 10:52:22 -05:00
18nj.js pr feedback 2019-10-01 01:48:43 -04:00
Blocklist.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
bluebird.js Fix Flow config 2017-12-07 17:04:19 -03:00
Claim.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
classnames.js Fix Flow config 2017-12-07 17:04:19 -03:00
CoinSwap.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
Collections.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
Comment.js Block: pass comment ID for deletion when being blocked. (#255) 2021-11-09 09:43:02 -05:00
content.js Fix floating player issues (#7073) 2021-09-13 11:24:35 -04:00
electron.js Fix Flow config 2017-12-07 17:04:19 -03:00
File.js move file actions from lbry-redux 2021-10-06 10:22:49 -04:00
formik.js Fix Flow config 2017-12-07 17:04:19 -03:00
homepage.js pinning 2021-07-22 23:24:55 -04:00
i18n.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
Lbry.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
LbryFirst.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
lbryURI.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
livestream.js Livestream category improvements (#7115) 2021-09-24 10:26:21 -04:00
location.js 0.36.0 sdk changes 2019-04-24 10:02:52 -04:00
notification.js delete duplicate flow type files (#105) 2021-10-20 13:33:31 -05:00
publish.js Support resume-able upload via tus (#186) 2021-11-10 13:16:16 -05:00
qrcode.react.js Fix Flow config 2017-12-07 17:04:19 -03:00
react-markdown.js implement app redesign 2018-03-26 14:32:43 -07:00
react-modal.js implement app redesign 2018-03-26 14:32:43 -07:00
react-paginate.js implement app redesign 2018-03-26 14:32:43 -07:00
react-simplemde-editor.js implement app redesign 2018-03-26 14:32:43 -07:00
react-transition-group.js implement app redesign 2018-03-26 14:32:43 -07:00
redux.js delete duplicate flow type files (#105) 2021-10-20 13:33:31 -05:00
Reflector.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
reportContent.js Add 'ReportContent' actions/reducers/selectors 2021-04-21 10:49:31 -04:00
reselect.js implement app redesign 2018-03-26 14:32:43 -07:00
reward.js feat: daily reward 2019-09-05 09:40:42 -04:00
search.js send recsys powered-by (#6875) 2021-08-17 10:03:25 -04:00
shapeshift.io.js Fix Flow config 2017-12-07 17:04:19 -03:00
subscription.js Feat publish replays on master (#5863) 2021-04-14 00:06:11 -04:00
Tags.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
Transaction.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
Txo.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
user.js make flow shut up 2021-07-05 10:02:03 -04:00
web-file.js fix WebFile flow type 2020-08-13 11:11:23 -04:00
web.js replace insufficient credits modal with inline ui elements 2019-04-03 00:17:00 -04:00