Commit graph

3292 commits

Author SHA1 Message Date
Sean Yesmunt
d47d55098e add immediately spendable balance inline wherever credits are used 2021-02-04 18:02:04 -05:00
Jarred Kennedy
b4dd6f3bfa Do not propogate double click event on search input 2021-02-04 10:41:22 -05:00
johnspirit
e95896fd08 fix wrong word to 2021-02-03 23:39:40 -05:00
Franco Montenegro
0423d30a4e Add fallback thumbnail for streams 2021-02-03 17:02:58 -05:00
Franco Montenegro
6aae5987e6 Use fallback image for broken thumbnails 2021-02-03 17:02:58 -05:00
zeppi
11931d4037 provide ad blacklisting 2021-02-02 21:18:13 -05:00
infiinte-persistence
64874c773b Search: Get uris with same query as doSearch
## Issue
2731: Searches with forward slashes returns no results

## Change
The slash-removal came from (0db20834f9).

Removing the 2 `replace(/\//, ' ')` from lbry-desktop fixes it, but this PR assumes the slash-removal is intentional to cover something else. So, we'll make the Search side do the same thing to match what's happening in `doSearch`.

A little bit ugly, but there's already a comment about this in `makeSelectSearchUris`, so it'll probably get cleaned up in the future.
2021-02-02 15:08:52 -05:00
infiinte-persistence
0699c55229 videojs: make control bar slightly transparent.
## Issue
Closes #5392 better support for non-standard resolution videos

It's not actually cropped -- the control bar was opaque.

## Change
Use 0.80 opacity to somewhat see the full picture.

Using 0.5 or less would be even better, but due to the default tiny size of the control bar, the text becomes unreadable (it's readable if you zoom the browser to get larger text). Don't want to mess with sizing for now, so using 0.80 to get the best of both worlds.
2021-02-01 17:06:49 -05:00
infiinte-persistence
44458c2b8c Fix 5438: Keep floating player in view area
## Issue
5438: Keep floating player in view area

## Changes
- Restore correct z-index
    -  The bug came as a side effect of cbac2174. Redo cbac2174 to cover both close button and floating player.

- Remove wobbling when dragging to bottom-right.
    -  The extra gap introduced is fighting against react-draggable. If gaps are needed, handle it entire ourselves or do it somewhere in react-draggable; neither is worth the effort, so the gap was removed.
2021-02-01 14:51:04 -05:00
Sean Yesmunt
19275f8f3d flowfixme 2021-02-01 13:50:16 -05:00
DispatchCommit
599f9e106e use smooth scrolling
Tells browser to use smooth scrolling to animate scroll
https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo
2021-02-01 13:50:16 -05:00
Daniela Narvaez
1698ca8775 Small change based on code review 2021-02-01 10:58:37 -05:00
Daniela Narvaez
1f66132cd2 Small change based on code review 2021-02-01 10:58:37 -05:00
Daniela Narvaez
ec875a6cdf "Fix Long commenter name issue" 2021-02-01 10:58:37 -05:00
Franco Montenegro
77d90b807e Display default image for channel thumbnail on error 2021-01-29 14:50:36 -05:00
Dispatch
b27395607c Add all proper react lifecycle hooks
Fixes 1 of 52 linting warnings
2021-01-29 14:49:12 -05:00
Sean Yesmunt
f28707504a Revert "Make dropdown menus actually dropdown"
This reverts commit a2046be0ee.
2021-01-29 11:54:39 -05:00
Sean Yesmunt
5314100714 Revert "use variable for header height"
This reverts commit b68600d978.
2021-01-29 11:54:39 -05:00
Sean Yesmunt
17f0997ec3 Revert "animate in from top instead of bottom"
This reverts commit 153ebbca63.
2021-01-29 11:54:39 -05:00
zeppi
6a16d8e0cd fix bad lighthouse results 2021-01-28 15:35:15 -05:00
Jeffrey Fisher
4c97cb4ba4 Enable PDF Viewer in App
Closes #2903
2021-01-28 10:21:35 -05:00
Sean Yesmunt
8c21ec30e8 prevent caching on streaming url requests
Fixes an issue where the browser still thought a file wasn't transcoded because it was serving the cached response
2021-01-27 14:27:27 -05:00
Sean Yesmunt
99d7487bc2 fix quality selector not showing up 2021-01-27 14:27:27 -05:00
DispatchCommit
9a395a0284 remove leftover console log 2021-01-27 12:50:40 -05:00
DispatchCommit
d6e5df540e remove unused player reference 2021-01-27 12:50:40 -05:00
DispatchCommit
3d38739be1 adds vjs player reference to component state 2021-01-27 12:50:40 -05:00
infiinte-persistence
1f48dab312 Remove unnecessary 'reload' at the return statement.
We no longer need to re-render the whole thing..
2021-01-27 12:50:40 -05:00
infiinte-persistence
84bba58d64 Update broken 'Retry' button after videojs refactoring. 2021-01-27 12:50:40 -05:00
infiinte-persistence
33f880758a Thumbnail: Display the same label (recommended ratio) for both URL and UPLOAD.
- Fix i18n concat problem for some languages.
- Display the same label (specifically, the recommended aspect ratio) for both URL and UPLOAD. I think the string "File to upload" can be omitted, but I left it as-is.
- Remove old/unused strings.
2021-01-27 10:21:59 -05:00
infiinte-persistence
7419fefa2d Zoomable image viewer in Markdown (posts and comments)
## Issue
4899: Ability to expand images in markdown posts for viewing
2021-01-27 10:06:31 -05:00
Sean Yesmunt
153ebbca63 animate in from top instead of bottom 2021-01-27 10:05:02 -05:00
DispatchCommit
b68600d978 use variable for header height 2021-01-27 10:05:02 -05:00
DispatchCommit
a2046be0ee Make dropdown menus actually dropdown 2021-01-27 10:05:02 -05:00
Dispatch
4cf9a455bc
add autoplay logic for embedded player (#5399)
Add autoplay logic when player is embedded.

Adds new `autoplay` prop to `VideoJs` component for specifying autoplay value.
2021-01-27 08:49:30 -05:00
zeppi
d04b0f09ba fix ad areas and drivers 2021-01-26 19:39:22 -05:00
Daniela Narvaez
e9d28918cd Add type definition for new prop in comment component 2021-01-26 16:34:50 -05:00
Daniela Narvaez
0a2f9fa0be Fixing inline videos in comments 2021-01-26 16:34:50 -05:00
Franco Montenegro
10a83bbfe9 Fix first claim nsfw result being hidden even if nsfw is enabled 2021-01-26 16:31:01 -05:00
Sean Yesmunt
3d58c4eca6 fix typo 2021-01-26 11:19:18 -05:00
DispatchCommit
52f883be4e fix linting errors 2021-01-26 11:00:41 -05:00
DispatchCommit
ee28648852 remove console.log statements 2021-01-26 11:00:41 -05:00
DispatchCommit
d8564cda5a hack-y solution to losing player context
use a global window variable to store the reference to the current video.js instance.
2021-01-26 11:00:41 -05:00
DispatchCommit
68ae2d571f only react to source prop updates 2021-01-26 11:00:41 -05:00
DispatchCommit
7c8383f2dc attempt to persist a single video.js instance
Continually recreating video.js instance on render is bad.
Instead, persist a single instance, and simply update the source and poster on the existing instance.
2021-01-26 11:00:41 -05:00
infiinte-persistence
912489cce0 Make zoom level persistent on Desktop
- uses local storage.
- for 'web', the browser is already handling that.
2021-01-26 10:20:59 -05:00
Sean Yesmunt
0c8c4938d9 move channel selection to top of publish form 2021-01-25 17:51:58 -05:00
Sean Yesmunt
6903836ebe add 'immediately spendable' balance on header balance hover 2021-01-25 14:24:57 -05:00
Sean Yesmunt
7152f9b04f call install/new after users select privacy options 2021-01-25 14:24:57 -05:00
Sean Yesmunt
d7f95ddd43 fix desktop build 2021-01-25 14:24:57 -05:00
Sean Yesmunt
513e239771 encode embed url too 2021-01-25 13:58:12 -05:00
Sean Yesmunt
26ece81da8 manually encode ' because encodeURIComponent doesn't encode it 2021-01-25 13:58:12 -05:00
zeppi
2adfa8b6b6 sync again 2021-01-25 10:39:40 -05:00
infiinte-persistence
855d13e735 Add "t" as shortcut for Theather Mode 2021-01-25 10:38:25 -05:00
zeppi
a8a26fabd8 simplesite always ads
theme based related ads

test ad layout

logic
2021-01-24 17:32:51 -05:00
zeppi
61ace3566a gads on master 2021-01-23 12:57:09 -05:00
Sean Yesmunt
8552515e34 string cleanup + add available balance to publish/channel create 2021-01-22 11:46:27 -05:00
Jeremy Kauffman
18f1f983ae contribute -> boost 2021-01-22 11:46:27 -05:00
Jeremy Kauffman
79a85db7e4 potential language changes 2021-01-22 11:46:27 -05:00
Sean Yesmunt
5420a6a887 show total balance on wallet page/header 2021-01-22 11:46:27 -05:00
jessopb
2f1fae23cf
vanity referrals (#5353) 2021-01-22 10:47:21 -05:00
infiinte-persistence
b767fc4db1 Fix 'Annoymous Reposted' split string. 2021-01-21 14:31:31 -05:00
infiinte-persistence
2bf4a96d09 String fix for 'Support Repost'
- Added to json
- Don't need the context note for this case.
2021-01-21 14:31:31 -05:00
DispatchCommit
bb3354581a fix overrideNative option for vjs
resolves https://github.com/lbryio/lbry-desktop/issues/5323
2021-01-20 21:49:08 -05:00
Sean Yesmunt
21cbb64001 Revert "Add Chromecast support on Google Chrome."
This reverts commit 65ce47a7d1.
2021-01-20 15:14:00 -05:00
Sean Yesmunt
c166060f0d Revert "Pass the title and channel name to Chromecast."
This reverts commit bb828385d0.
2021-01-20 15:14:00 -05:00
zeppi
6ed103b33f shorter timeout 2021-01-19 13:41:10 -05:00
zeppi
a2d93bc7cc fix embed loading hang 2021-01-19 13:41:10 -05:00
infiinte-persistence
bb828385d0 Pass the title and channel name to Chromecast.
I'm a bit wary of adding props to this component due to the 'dispose' call, but I think 'source' and 'claim' will update together, so it shouldn't be an issue?
2021-01-19 10:29:28 -05:00
infiinte-persistence
65ce47a7d1 Add Chromecast support on Google Chrome. 2021-01-19 10:29:28 -05:00
infiinte-persistence
95b4f89e50 Make 'playback rate' persistent
## Issue
5308: Ability to choose default play speed and theatre mode or regular playback size

## Comments
Initially, I used the local storage, as per 'muted' and 'volume' -- I thought that would be appropriate.
Later, I saw that Theater Mode is already using Client Settings, so I re-did everything to match that.

Also, there is an accompanying commit in lbyr-redux.
2021-01-19 10:16:46 -05:00
zeppi
a8cc17624c make clear supporting repost 2021-01-15 10:43:27 -05:00
zeppi
6211c243dd support repost bugfix 2021-01-15 10:43:27 -05:00
zeppi
ccd13f2233 put auth in progress back with timeout 2021-01-15 10:40:34 -05:00
Sean Yesmunt
80a7cbe16f add quality selector to transcoded videos 2021-01-15 10:34:41 -05:00
Sean Yesmunt
ee0bdf3a82 encode claim name in embed url 2021-01-14 11:48:42 -05:00
Sean Yesmunt
72ac5a5437 encode share url parts 2021-01-14 11:48:42 -05:00
Franco Montenegro
d9b8f0310a Fix nsfw parameter in search page 2021-01-13 14:56:12 -05:00
zeppi
93834fb281 redirect to source after repost 2021-01-13 12:47:46 -05:00
Sean Yesmunt
45bc5182ce don't call sync/set for exisitng users that signed in in a different tab
this was causing users to lose their subs before the page refreshed
2021-01-13 11:59:36 -05:00
zeppi
5435dc88d4 langmig 2021-01-13 11:11:58 -05:00
jessopb
e94d4bcd28
repost ui (#5293) 2021-01-13 10:44:44 -05:00
Sean Yesmunt
55182e0b94 remove bad CSS rules 2021-01-13 10:25:40 -05:00
zeppi
554ca1a4f4 two digits and up smaller notif bubble txt 2021-01-12 10:12:28 -05:00
zeppi
eac7e100cc notifications 20+ 2021-01-12 10:12:28 -05:00
jessopb
6cb2377266
Merge pull request #5296 from lbryio/authInProgressTemp
disable authinprogress for now
2021-01-11 18:40:48 -05:00
zeppi
ae032cb557 disable authinprogress for now 2021-01-11 18:39:54 -05:00
zeppi
68de0a8107 language map fix 2021-01-11 18:14:42 -05:00
Sean Yesmunt
65709e1139 Revert "Fix nsfw parameter in search page"
This reverts commit 4f1bd23442.
2021-01-11 15:01:40 -05:00
Sean Yesmunt
148fa4f4cd call user/signout on signout
fixes sync issues for users with multiple accounts signed in to multiple tabs
2021-01-11 14:31:01 -05:00
Franco Montenegro
4f1bd23442 Fix nsfw parameter in search page 2021-01-11 10:32:14 -05:00
zeppi
72945b45c5 cleaner 2021-01-11 10:30:26 -05:00
zeppi
6fb345dbbc zh languages
bugfix

bugfix3

publish

add zh back for homepage selector

test

revert i18n file

DRY publish language
2021-01-11 10:30:26 -05:00
Sean Yesmunt
b65934cc7f fix reposts not showing up as winning claim in search suggestions 2021-01-08 09:31:25 -07:00
Sean Yesmunt
d43c4d053e add video theater mode button 2021-01-08 08:27:41 -07:00
Franco Montenegro
b43593a996 When a new reward is acquired, only close modals if the reward comes from reward_code 2021-01-08 08:16:41 -07:00
Daniela Narvaez
a65162c204 Change list style in comments to be inside. 2021-01-08 08:10:43 -07:00
Sean Yesmunt
eb398c419a turn it back on but head 2021-01-06 23:03:23 -05:00
Sean Yesmunt
d92f6d3e18 comment out redirect handling for transcoded streams 2021-01-06 18:40:38 -05:00
Thomas Zarebczan
09decf796a
String! 2021-01-06 01:28:16 -05:00
zeppi
65d524dfdf buffer id 2021-01-05 16:29:04 -05:00
jessopb
f538ab3670
Merge pull request #5259 from lbryio/feat-consolidateUtxosRebase
Feat consolidate utxos rebase
2021-01-05 14:33:45 -05:00
zeppi
1b3bc0f4e3 support consolidating txos
improvements

actual values

bump

bump

devtools revert

bugfix

bump
2021-01-05 12:38:55 -05:00
Sean Yesmunt
2436c3eb70 add extra check for video source response 2021-01-04 15:19:54 -05:00
Sean Yesmunt
f59cdb1929 fix for hls support 2021-01-04 15:04:36 -05:00
Sean Yesmunt
3317d32ae2 fix weird search suggestion behavior 2020-12-30 23:03:46 -05:00
infiinte-persistence
d0f42ce6b3 Desktop: Enable 'Alt+Left/Right' for history navigation.
## Why
- Consistent behavior across Web and Desktop.
2020-12-30 14:55:24 -05:00
infiinte-persistence
cbac21746f FloatingPlayer: Fix close button not working when AutoplayCountdown is visible.
## Issue
5221: floating player won't close during autoplay countdown

## Change
Change the z-index when hover to ensure it is really on top of everything.
2020-12-30 14:35:11 -05:00
zeppi
e4eb8f4a26 review test 2020-12-28 15:00:15 -05:00
zeppi
ad420670a7 changes, bump 2020-12-28 15:00:15 -05:00
zeppi
30a9bb010f show loading while searching
fixes

bump

bump
2020-12-28 15:00:15 -05:00
Sean Yesmunt
a8cb4d7d57 update videojs import to include http-streaming module
so we can support hls streams
2020-12-28 13:44:38 -05:00
zeppi
5fa57e1859 no resolve undefined pls 2020-12-28 13:16:37 -05:00
zeppi
91f25abf2c email spam reminder 2020-12-23 16:51:41 -05:00
zeppi
cbe4cb1cf1 i18n homepage sections 2020-12-23 09:45:45 -05:00
zeppi
3de290f04f fix search 2020-12-22 14:11:07 -05:00
Sean Yesmunt
53d3efe895 update youtube sync text for channels that don't qualify 2020-12-21 22:12:21 -05:00
Sean Yesmunt
a0123c2a6f fix earnings per view style 2020-12-21 22:12:21 -05:00
Baltazar Gomez
a09216da76 remove typo 2020-12-21 14:08:52 -05:00
btzr-io
35653bb115 prevent front-matter render on markdown 2020-12-21 14:08:52 -05:00
infiinte-persistence
49abbecbd7 mobile-ui: Fix missing chromecast button in Android-Chrome
## Issue:
5119 "Video: Mobile UI + overlay for keyboard shortcut feedback" was disabled because the feature broke the chromecast button in Android Chrome
2020-12-21 12:15:45 -05:00
infiinte-persistence
4a4247180f Revert "comment out mobileUI function until chromecast bug is fixed"
This reverts commit d8c4ff62cb.
2020-12-21 12:15:45 -05:00
infiinte-persistence
4b03a30121 Fix initial pause state for the Autoplay Countdown
## Issue
5204: Don't autoplay when commenting/video off screen

## Change
Previously, the checking was only done during a scroll event. We also need to check if the user has already scroll down before the component was invoked.
2020-12-21 12:14:31 -05:00
infiinte-persistence
0d374725d6 i18n update 2020-12-21 12:11:59 -05:00
Sean Yesmunt
5d1b1f5293 update placeholder 2020-12-21 10:36:55 -05:00
Sean Yesmunt
187cbd9695 fix doSetPlayingUri arguments 2020-12-21 10:31:34 -05:00
infiinte-persistence
a0ec5097d9 Enable tile layout for 'Your Tags' page
## Why
- Something I miss every time I switch to lbry.tv.
- Consistent with other search pages like Discover.
2020-12-18 14:02:50 -05:00
infiinte-persistence
4760f00050 Fix "Not Now"
## Issue:
https://discord.com/channels/362322208485277697/646840786662719488/788694493532520458

## Change:
It's either adding the non-capitalized "Not now" to the list, or change the usage to "Not Now".

Chose the latter since the rest of the modal (and other usage) is using the capitalized format.
2020-12-18 14:02:18 -05:00
infiinte-persistence
267c019d7a Timestamp: Handle Safari + better parsing
## Issue
- The previous regex uses lookback (I think ES2018?) which Safari has yet to implement.
- There were a few bugs in the previous regex too, like missing out multiple timestamps in a line, or parsing "62:02" as "2:02" (although YT does this as well).
- The previous method searched too deep (matchAll) on each 'locate' call, which was wasteful.
2020-12-18 11:35:47 -05:00
infiinte-persistence
897128a168 Restore "Handle timestamp in Markdown."
This reverts the revertion in:
- 85f8965d44.
- d3f0e471e5.
2020-12-18 11:35:47 -05:00
Sean Yesmunt
b9f8fd73f1 fix sidebar for mobile 2020-12-17 13:55:58 -05:00
Sean Yesmunt
77739c971a slightly improve mobile style on top page 2020-12-16 14:58:30 -05:00
Sean Yesmunt
047e84ac8c winning claim style pass 2020-12-16 14:58:30 -05:00
Sean Yesmunt
1aefdba5ab fix wunderbar suggestions spacing 2020-12-16 14:58:30 -05:00
Sean Yesmunt
cc568fb8cf working 2020-12-16 10:52:22 -05:00
Sean Yesmunt
0cc3af28a3 flow fixes 2020-12-16 10:52:22 -05:00
zeppi
f825533afa cleanup 2020-12-16 10:28:57 -05:00
zeppi
99ab165a8f New repost flow
Clearer display of takeover amounts
Repost from empty search result, from top page, or from claim

review changes

final touches

bump

empty comment copy

they

emptier

validation cleanup

extra
2020-12-16 09:47:28 -05:00
Sean Yesmunt
73dea00e41 revert encode share url 2020-12-15 19:44:37 -05:00
Sean Yesmunt
d8c4ff62cb comment out mobileUI function until chromecast bug is fixed 2020-12-15 17:03:32 -05:00
Sean Yesmunt
87d54d9c88 show 'SITE_NAME view reward' message on txo list table 2020-12-15 16:22:40 -05:00
Sean Yesmunt
e6b502dd4a hide duplicate purchase page link on sidebar 2020-12-15 16:22:40 -05:00
Sean Yesmunt
0d4659472b remove old ads code and disable videojs mobile plugin 2020-12-15 14:10:57 -05:00
Sean Yesmunt
62dfaf0709 use thumbnail cdn for cover photos 2020-12-15 13:59:08 -05:00
Sean Yesmunt
71b948f2fc redirect to channel creation page when reacting to comment with no channel 2020-12-15 13:59:08 -05:00
Sean Yesmunt
dd582f4009 encode lbry url when shared from modal 2020-12-15 13:59:08 -05:00
Sean Yesmunt
664e969730 don't search if term is empty 2020-12-15 13:59:08 -05:00
Sean Yesmunt
540a527a61 swap seen & read notification behavior 2020-12-15 13:59:08 -05:00
Sean Yesmunt
138d84155b fix opening files externally on desktop 2020-12-15 13:58:27 -05:00
Sean Yesmunt
d3f0e471e5 Revert "Tokenize and format timestamps in Markdown"
This reverts commit 93709fbeb8.
2020-12-14 22:31:18 -05:00
Sean Yesmunt
85f8965d44 Revert "Handle timestamp in Markdown."
This reverts commit 3f1913e5f4.
2020-12-14 22:31:18 -05:00