lbry-desktop/ui/constants
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
..
abandon_states.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
action_types.js Support resume-able upload via tus (#186) 2021-11-10 13:16:16 -05:00
claim.js Odysee specific changes and other misc improvements (#219) 2021-11-03 15:47:19 -04:00
claim_search.js Channel Page: enable filters; add "sort by" filter (#7069) 2021-09-13 11:23:53 -04:00
classnames.js Fix linked-comment auto scroll 2021-09-01 16:02:54 +08:00
collections.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
comment.js List own comments (#7171) 2021-10-01 08:10:27 -04:00
daemon_settings.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
email.js simpler email regex 2019-11-18 14:50:29 -05:00
emotes.js Stickers/emojis fall out / improvements (#220) 2021-11-05 15:31:51 -04:00
errors.js Odysee specific changes and other misc improvements (#219) 2021-11-03 15:47:19 -04:00
file_render_modes.js Enable PDF Viewer in App 2021-01-28 10:21:35 -05:00
form-field.js some recon (#6532) 2021-07-18 13:06:52 -04:00
icons.js Stickers/emojis fall out / improvements (#220) 2021-11-05 15:31:51 -04:00
keycodes.js Consolidate keycode constants 2021-09-10 09:00:44 +08:00
language-migrations.js Revert "Simplify language lists" 2021-04-06 15:42:27 -04:00
languages.js Tagalog Language Fix (#6951) 2021-08-25 10:19:16 -04:00
licenses.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
livestream.js WIP: live stream kill switch (#209) 2021-11-03 17:52:18 -04:00
modal_types.js General-purpose "Confirm" modal 2021-10-29 13:36:27 +08:00
moonpay.js moonpay 2020-06-03 14:16:43 -04:00
navigation.js Fill in remaining Recsys fields 2021-08-03 09:34:36 -04:00
notifications.js Skin fiat-tip notification 2021-07-08 11:21:58 +08:00
pages.js improve playlists display (#232) 2021-11-05 21:00:27 -04:00
pageTitles.js Odysee references revamp, part1 2021-10-08 15:22:07 -04:00
publish_types.js livestream related publish fixes 2021-04-22 10:59:03 -04:00
reactions.js creator only like reactions 2020-10-27 12:27:30 -04:00
report_content.js Rick constants 2021-04-21 10:49:31 -04:00
search.js Recommended changes (#7089) 2021-09-16 16:00:44 -04:00
searchable_languages.js claim-search by language 2020-10-29 15:20:18 -04:00
settings.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
shape_shift.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
shared_preferences.js Post-merge updates and fixes 2021-10-19 20:40:07 +08:00
sort_options.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
speech_urls.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
stickers.js new Stickers! (#248) 2021-11-08 18:07:55 -05:00
stripe.js Chore desktop cleanup (#6896) 2021-08-17 18:34:16 -04:00
subscriptions.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
supported_browser_languages.js Restore lost languages (#5972) 2021-04-28 20:27:04 -04:00
supported_languages.js Tagalog Language Fix (#6951) 2021-08-25 10:19:16 -04:00
supported_sub_languages.js support brazilian portugese 2021-04-16 11:16:25 -04:00
tags.js support embed preference (#7114) 2021-09-18 10:23:30 -04:00
themes.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
thumbnail_upload_statuses.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
token.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
transaction_list.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
transaction_types.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
txo_list.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
user.js wip 2021-06-08 13:25:52 -04:00
youtube.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00