lbry-desktop/ui/modal
infinite-persistence 4267c1ccf7
Un-authenticated resolve (#341)
* apiCall: add option to not send the auth header

## Why
Want an option to make un-authenticated `resolve` calls where appropriate, to improve caching.

## How
All `apiCall`s are authenticated by default, but when clients add NO_AUTH to the params, `apiCall` will exclude the X_LBRY_AUTH_TOKEN. It will also strip NO_AUTH from the param object before sending it out.

* Add hook for 'resolve' and 'claim_search' to check and skip auth...

... if the params does not contain anything that requires the wallet.

* doResolveUri, doClaimSearch: let clients decide when to include_my_output

- No more hardcoding 'include_purchase_receipt' and 'include_is_my_output'
- doResolveUri: include these params when opening a file page. This was the only place that was doing that prior to this PR.

* is_my_output: use the signing_channel as alternative

## Notes
`is_my_output` is more expensive to resolve, so it is not being requested all the time.

## Change
Looking at the signing channel as the additional fallback, on top of `myClaimIds`.

## Aside
I think using `myClaimIds` here is redundant, as it is usually populated from `is_my_ouput`. But leaving as is for now...
2021-11-24 09:33:34 -05:00
..
modalAffirmPurchase Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalAutoGenerateThumbnail Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalAutoUpdateDownloaded
modalBlockChannel Un-authenticated resolve (#341) 2021-11-24 09:33:34 -05:00
modalClaimCollectionAdd
modalCommentAcknowledgement
modalConfirm General-purpose "Confirm" modal 2021-10-29 13:36:27 +08:00
modalConfirmAge Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalConfirmThumbnailUpload Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalConfirmTransaction Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalDownloading
modalError TUS: Skip logging "423/409 concurrent upload" errors. 2021-11-23 09:30:55 +08:00
modalFileSelection Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalFileTimeout Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalFirstReward
modalFirstSubscription
modalImageUpload Thumbnail upload fixes (#6860) 2021-08-24 20:28:23 -04:00
modalIncompatibleDaemon
modalMassTipUnlock FAQ stuff (#109) 2021-10-21 16:21:51 -04:00
modalMobileSearch
modalOpenExternalResource Odysee specific changes and other misc improvements (#219) 2021-11-03 15:47:19 -04:00
modalPasswordUnsave
modalPhoneCollection
modalPublish Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalPublishPreview Kill makeSelectClientSetting 2021-11-23 12:29:53 +08:00
modalRemoveCard Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalRemoveCollection selectClaimIsMineForUri to replace makeSelectClaimIsMine 2021-11-10 16:49:12 +08:00
modalRemoveComment Allow moderators to delete comment (#235) 2021-11-08 12:22:40 -05:00
modalRemoveFile Simplify makeSelectTitleForUri 2021-11-16 12:23:18 +08:00
modalRevokeClaim Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalRewardCode FAQ stuff (#109) 2021-10-21 16:21:51 -04:00
modalRouter Fix crash with ModalError 2021-11-03 10:09:01 +08:00
modalSendTip
modalSetReferrer Odysee specific changes and other misc improvements (#219) 2021-11-03 15:47:19 -04:00
modalSignOut
modalSocialShare
modalSupportsLiquidate Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalSyncEnable
modalTransactionFailed copy 2021-07-19 17:39:59 -04:00
modalUpgrade Fix scrollbar in upgrade modal (#7076) 2021-09-13 11:35:26 -04:00
modalViewImage
modalWalletDecrypt Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalWalletEncrypt Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalWalletUnlock Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalYoutubeWelcome yt welcome recon 2021-07-19 17:33:23 -04:00
modal.jsx