Commit graph

293 commits

Author SHA1 Message Date
infinite-persistence
9f9d0a651b Moderation: resolve chan name or URL instead of using Lighthouse.
While Lighthouse allows looser searching like "Tom from LBRY", it doesn't show the expected results when direct channel name with partial ID is entered to disambiguate.
2021-06-19 17:11:45 +08:00
infinite-persistence
fbcb740dc9 Move 'Download' and 'Report Content' into overflow menu.
## Issue
6236 Add context menu to file page

## Notes
The download button actually handles a lot of things -- generating 'streamingUrl', differences between Web and Desktop, download progress for Desktop, etc.  A simpler fix would be to put something else (maybe "Share") into the overflow menu instead.

Anyway, went ahead to do it per 6236, but retained the item for Desktop since we need a progress label.
2021-06-18 15:50:13 -04:00
zeppi
9b7c8fd642 sharing with lId, fix autoplay bump, 2021-06-10 17:47:02 -04:00
zeppi
ca116ba010 wip
wip

wip - everything but publish, autoplay, and styling

collection publishing

add channel to collection publish

cleanup

wip

bump

clear mass add after success

move collection item management controls

redirect replace to published collection id

bump

playlist selector on create

bump

use new collection add ui element

bump

wip

gitignore

add content json

wip

bump

context add to playlist

basic collections page style pass wip

wip: edits, buttons, styles...

change fileAuthor to claimAuthor

update, pending bugfixes, delete modal progress, collection header, other bugfixes

bump

cleaning

show page bugfix

builtin collection headers

no playlists, no grid title

wip

style tweaks

use normal looking claim previews for collection tiles

add collection changes

style library previews

collection menulist for delete/view on library

delete modal works for unpublished

rearrange collection publish tabs

clean up collection publishing and items

show on odysee

begin collectoin edit header and css renaming

better thumbnails

bump

fix collection publish redirect

view collection in menu does something

copy and thumbs

list previews, pending, context menus, list page

enter to add collection, lists page empty state

playable lists only, delete feature, bump

put fileListDownloaded back

better collection titles

improve collection claim details

fix horiz more icon

fix up channel page

style, copy, bump

refactor preview overlay properties,
fix reposts showing as floppydisk
add watch later toast,
small overlay properties on wunderbar results,
fix collection actions buttons

bump

cleanup

cleaning, refactoring

bump

preview thumb styling, cleanup

support discover page lists search

sync, bump

bump, fix sync more

enforce builtin order for now

new lists page empty state

try to indicate unpublished edits in lists

bump

fix autoplay and linting

consts, fix autoplay

bugs

fixes

cleanup

fix, bump

lists experimental ui, fixes

refactor listIndex out

hack in collection fallback thumb

bump
2021-06-08 13:25:52 -04:00
infinite-persistence
3abaed0f17
Sort all language dropdowns, not just in the Settings Page. 2021-06-07 10:15:07 +08:00
saltrafael
2852138c3a
allow sending directly to a channel or content address (#5990)
* allow sending directly to a channel or content address
2021-05-20 15:30:40 -04:00
saltrafael
31a84828cc
improve logic for own comments showing first (#6073) 2021-05-17 15:55:23 -04:00
infinite-persistence
c85d7f12c8
Livestream-only query cleanup. (#6036)
This completes the change in c24c016e, covering ClaimListDiscover as well.
2021-05-15 01:52:24 -04:00
saltrafael
e5795baa10
own comments show first in controversial / best #5905 (#5939)
* own comments show first in controversial / best #5905

* workaround to place my recent comment at the top

* only most recent comment

* lint fix

Co-authored-by: Thomas Zarebczan <thomas.zarebczan@gmail.com>
2021-05-15 00:56:58 -04:00
Thomas Zarebczan
420f2c957e
Encode additional special characters 2021-05-13 15:21:21 -04:00
Sean Yesmunt
6d89f0df7e hyperchats 2021-04-23 16:20:17 -04:00
infinite-persistence
fe885ae6de Util to get list of countries 2021-04-21 10:49:31 -04:00
Sean Yesmunt
e4a3e54613 move lazy loading effect into effects/ 2021-04-14 15:25:19 -04:00
Louis Sandoval
a7cb0e240e Fix #5795 - Claim images not lazy loaded 2021-04-14 15:25:19 -04:00
infinite-persistence
855ae15a27 Search: infinite scroll 2021-04-07 12:08:17 -04:00
infinite-persistence
a9cae23d87 getSearchQueryString: add "time_filter" option 2021-04-07 12:08:17 -04:00
infinite-persistence
2cc049bb83 getSearchQueryString: add "exact" option to include surrounding quotes. 2021-04-07 12:08:17 -04:00
infinite-persistence
dc06e2da99 getSearchQueryString: add "sort_by" options 2021-04-07 12:08:17 -04:00
infinite-persistence
1ee05d1f7f getSearchQueryString: customizations for SIMPLE_SITE.
- This change makes it work for both Desktop and Odysee. When merging back to Odysee, just take the file from `master` (barring any changes from someone else).

- Given that we'll be opening up the search filter for Odysee, the only "simple site" customization that was back-ported is `free_only=true`.
2021-04-07 12:08:17 -04:00
seanyesmunt
0d41e6d88d Revert "Simplify language lists"
This reverts commit 27d43b2b41.
2021-04-06 15:42:27 -04:00
infinite-persistence
81e4730037 Simplify language lists
- SUPPORTED_SUB_LANGUAGE_CODES[] that I introduced was pretty redundant when SUPPORTED_LANGUAGES[] already hold the information. The logic to ignore sub-languages (i.e. reduce the locale's "en-GB" to "en" is now located in getDefaultLanguage()).

- SUPPORTED_BROWSER_LANGUAGES[] and SUPPORTED_LANGUAGES[] look so similar and hard to tell what the former is for at first glance. The functionality to map 'zh-CN' to 'zh-Hans' is now handled by resolveLanguageAlias(), which makes the intention clearer.

This leaves us with a single list -- SUPPORTED_LANGUAGES[], whose key also tells us the desired language code to use.
Also, clients now need to call `resolveLanguageAlias` to map any language code aliases, as they differ depending on how it is queried (e.g. `navigator.language` vs. `app.getLocal()` uses different standards).

I think we no longer need to explicitly migrate existing user's 'zh-CN' into 'zh-Hans' because the rest of the system will always use the desired language code as long as 'resolveLanguageAlias' is called appropriately. e.g. the system uses `selectLanguage` and `selectLanguage` calls `resolveLanguageAlias`.
2021-04-04 22:54:33 -04:00
infinite-persistence
a33087440c Fix timestamp regex error
## Issue
https://discord.com/channels/362322208485277697/363087331475062785/817972023347249153

## Change
Open up the range as per YT, indirectly fixing the regex mistake.
2021-03-09 16:05:00 -05:00
Sean Yesmunt
6345549c88 increase file thumbnail size in cdn url 2021-03-05 16:51:38 -05:00
Sean Yesmunt
ea74a66dbd
New moderation tools: block & mute (#5572)
* initial support for block/mute

* hide blocked + muted content everywhere

* add info message for blocked/muted characteristics

* sort blocked list by most recent block first

* add 'blocked' message on channel page for channels that you have blocked

* cleanup

* delete unused files

* always pass mute/block list to claim_search on homepage

* PR cleanup
2021-03-03 13:50:16 -05:00
Sean Yesmunt
d71f977a55 Revert "Remove hack in Timestamp parser now that 'remark-breaks' has addressed the original problem."
This reverts commit 02792b8f0c.
2021-02-20 18:23:52 -05:00
infiinte-persistence
9e9183aa95 Clear dev-web warnings and lint 2021-02-19 14:18:44 -05:00
infiinte-persistence
b0cc1d7f51 Add context-menu to report claims directly from Preview/Tile 2021-02-19 14:18:44 -05:00
infiinte-persistence
2f7880a697 Remove 'Copy' from Claim context-menu; Do nothing when menu is blank.
'Copy' is always disabled for the case of Claim previews since no text is selected. User cannot select text anyway since a left-up event would invoke the Claim's `click` event. 'Copy' is there simply because of re-using `openContextMenu`.
2021-02-19 14:18:44 -05:00
infiinte-persistence
cf832d14b4 Make both claimPreview and claimPreviewTile use the same context-menu function.
Consolidated into `openClaimPreviewMenu`. We'll only update that function next time for context-menu additions.
2021-02-19 14:18:44 -05:00
Franco Montenegro
ddae2e8ac5 Disable claim type search if filtering by channel 2021-02-19 13:50:13 -05:00
Franco Montenegro
62c7216b43 Fix mediaType filter parameter in search 2021-02-19 13:50:13 -05:00
infiinte-persistence
02792b8f0c Remove hack in Timestamp parser now that 'remark-breaks' has addressed the original problem.
## Issue
Closes 5523: timestamps not interpreted in some cases

## Notes
`remark-breaks` previously kept repeating the same index in the loop, causing some corner-cases to be parsed oddly. I added code to address that.

Later, `remark-breaks` fixed the problem and we recently just bumped up the componnent version. My hack is no longer necesary.
2021-02-16 17:11:07 -05:00
Sean Yesmunt
1f117e43bd add initial support for comment API outside of SDK 2021-02-11 10:45:34 -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
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
Sean Yesmunt
5420a6a887 show total balance on wallet page/header 2021-01-22 11:46:27 -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
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
zeppi
3de290f04f fix search 2020-12-22 14:11:07 -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
0cc3af28a3 flow fixes 2020-12-16 10:52:22 -05:00
Sean Yesmunt
73dea00e41 revert encode share url 2020-12-15 19:44:37 -05:00
Sean Yesmunt
62dfaf0709 use thumbnail cdn for cover photos 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
d3f0e471e5 Revert "Tokenize and format timestamps in Markdown"
This reverts commit 93709fbeb8.
2020-12-14 22:31:18 -05:00
infiinte-persistence
93709fbeb8 Tokenize and format timestamps in Markdown
1. Find and tokenize timestamps, i.e. "XX:XX:XX" strings.
2. Transform 'timestamp' nodes to Links.
2020-12-14 12:12:50 -05:00
zeppi
d7856b7618 settings use null when matching current browser language
default language functions

bugfix1

bugfix2

bugfix4
2020-11-23 14:12:31 -05:00
zeppi
fff599d56a delete util/homepage 2020-11-11 10:47:47 -05:00
Sean Yesmunt
8f7c16cc39 fix 'best' comment sort 2020-11-02 17:15:53 -05:00
Sean Yesmunt
e198caffd7 make sure comments with 0 likes are sorted to bottom 2020-10-28 14:45:04 -04:00
Sean Yesmunt
172e918de5 pass to 2020-10-13 15:31:07 -04:00
Sean Yesmunt
6d4a92ad27 format reaction count to include commas 2020-10-08 14:19:21 -04:00
Sean Yesmunt
761b93d811 add style for comments with is_pinned=true 2020-10-08 11:48:32 -04:00
Sean Yesmunt
5d2d6d2a94 always show your own comments at the top 2020-10-07 17:11:22 -04:00
Sean Yesmunt
85e2ee28a3 add referral code to embed links 2020-10-07 16:23:53 -04:00
Sean Yesmunt
00c05437ca add comment sorting and improve comment focus styles 2020-10-06 16:04:52 -04:00
Sean Yesmunt
4e1076e01b make category header clickable 2020-09-29 17:12:32 -04:00
Sean Yesmunt
c1e6e90896 large claim-grid header text + optional icon 2020-09-29 17:12:32 -04:00
Sean Yesmunt
19fb7d7f06 new layout 🕺 2020-09-29 17:12:32 -04:00
jessop
ee217404da provide share domain url configuration 2020-08-31 11:51:25 -04:00
infiinte-persistence
de780a1fd8 Remove strings with trailing spaces as it's not obvious in Transifex.
## Issue
Fixes 4665 `Translated strings with trailing spaces not shown correctly`

## Changes
While there are other strings with trailing spaces, "Trending for " was the only one that mattered. The rest are standalone paragragphs or used in a single line, so it doesn't matter if the translation included the space or not.
2020-08-27 13:58:44 -04:00
Sean Yesmunt
fd778adf99 remove 2020protests from the homepage 2020-08-20 11:31:35 -04:00
Sean Yesmunt
84084a7c41 use limit_claims_per_channel on homepage 2020-08-20 11:31:35 -04:00
Sean Yesmunt
3b4ac976b6 Revert "full width homepage"
This reverts commit 0018fdaebc.
2020-08-18 12:53:07 -04:00
Sean Yesmunt
0018fdaebc full width homepage 2020-08-18 09:25:36 -04:00
Sean Yesmunt
2f995be794 use new buffer analytics api 2020-08-07 22:54:29 -04:00
jessopb
bc6cbfd5ee Revert "add imhere row at top"
This reverts commit 8e73a02863.
2020-08-01 16:55:01 -04:00
Sean Yesmunt
8e73a02863 add imhere row at top 2020-07-30 17:13:01 -04:00
Sean Yesmunt
0df388280e add search code from lbry-redux 2020-07-27 16:37:36 -04:00
jessop
d9bf72a351 all settings constants come from redux
sync settings

backout nav cases and anon preference key

more robust backout header

put notificationSettings under backout bar

review changes
2020-07-27 11:53:14 -04:00
jessop
5399c1941c allow signin on local using non-production SameSite=Lax 2020-07-24 16:48:05 -04:00
Sean Yesmunt
90327a72ed add comments behind a flag 2020-07-23 11:03:00 -04:00
infiinte-persistence
bc19503419 Allow zooming on Desktop
## Issue
Closes 4501 `Font size`

## New behavior
The Desktop app can now zoom the same way as browsers:
- Zoom In: "Ctrl+=" or "Ctrl+numpadPlus" or "Ctrl+WheelUp"
- Zoom Out: "Ctrl+-" or "Ctrl+numpadMinus" or "Ctrl+WheelDown"
- Zoom Reset: "Ctrl+0" or "Ctrl+numpad0"

## Code changes
(1) Electron provides this functionality through the `zoomIn|zoomOut|resetZoom` roles in the Menu, so it would have been a quick job.

However, given that Electron currently does not support having multiple accelerators for one item, we can't add `Ctrl+WheelUp` to the mix and would have to implement our own handler and use `webFrame`.

Given that we need to add code anyways, we handle both keyboard and mouse cases through the same handler, hence the existence of `zoomWindow.js`.  It also provides the opportunity to few a few quirks with Electron's default implementation (e.g. stuck at both extremes)

(2) I recall there is another Issue for adding keyboard shortcuts.  Given that these shortcuts are universally used in browsers, they are probably "reserved", so shouldn't clash with that task.
2020-07-14 16:08:24 -04:00
Sean Yesmunt
259f51abd6 style pass for channel edit
clean up sections and improve navigation handling

cleanup + image upload modal styling
2020-07-01 22:04:23 -04:00
Jeremy Kauffman
c54832c335
meh 2020-07-01 17:45:04 -04:00
Sean Yesmunt
15dec5398b update list of youtubers on homepage 2020-07-01 12:03:32 -04:00
Sean Yesmunt
7a588ccecf sort by release_time for youtube row on homepage 2020-06-29 17:29:58 -04:00
Sean Yesmunt
06ea8bf932 update homepage order 2020-06-29 16:02:21 -04:00
Sean Yesmunt
258a3e636a update homepage - remove lbrytvpaidbeta 2020-06-29 16:02:21 -04:00
Thomas Zarebczan
17b8aa0202
add @MH to paid content beta 2020-06-02 10:50:34 -04:00
Jeremy Kauffman
2c61f1dd2b update homepage 2020-05-31 09:45:44 -04:00
TigerxWood
a89efd981b Made texts translatable
All the strings will be translated now
2020-05-29 16:49:56 -04:00
Sean Yesmunt
21b26ea34f add channel to list of official paid beta channels 2020-05-27 17:08:49 -04:00
Sean Yesmunt
d20217a228 fix typo 2020-05-27 15:40:25 -04:00
Sean Yesmunt
9f317de5b6 increase paid content to 4 rows for users with more than 6 followed channels 2020-05-26 14:14:09 -04:00
jessop
e3c2919373 rename lbrytv to web
language and API consts

improve customization
custom homepages
get config from .env.default
custom title and logo

small changes

add pinned item to sidebar

rebase?
2020-05-25 17:21:02 -04:00
Baltazar Gomez
ca4bbf53df
Support drag-and-drop file publishing (#4170) 2020-05-25 10:27:36 -04:00
Jeffrey Fisher
c539ab91c0 Fix code review issues 2020-05-08 14:00:59 -04:00
Jeffrey Fisher
8fe9cfafbc Allow video sharing with start timestamp
Closes #3122
2020-05-08 14:00:59 -04:00
Sean Yesmunt
c0b4fff5d5 remove dynamic streaming url generation 2020-05-07 10:57:00 -04:00
Sean Yesmunt
2677cd17d8
new signin/signup (#3960)
* new signin/signup

* cleanup and password reset

* new flow working

* cleanup

* add 'autoComplete' props

* fix prop

* try to call email/confirm before resetting password

* Dont use password reset token for email confirmation.

* add password reset

* password manager improvements

* update lbryinc

* cleanup

* slightly improve close button on sign up page

* moar fixes

* fix password autofil

Co-authored-by: Mark Beamer Jr <markbeamerjr@gmail.com>
2020-04-13 15:16:07 -04:00
Sean Yesmunt
d94610acb1 initial fix for #3723 2020-04-08 15:20:27 -04:00
Sean Yesmunt
7218b78746 fetch continent cookie on server-side and clean up video effects 2020-04-08 15:12:22 -04:00
Sean Yesmunt
7401a590cc Revert "fix streamUrl creation"
This reverts commit 338f7be78e.
2020-04-08 13:43:39 -04:00
Sean Yesmunt
338f7be78e fix streamUrl creation 2020-04-08 13:29:34 -04:00
Sean Yesmunt
6f07f63960 use SameSite=None for auth_token cookie 2020-04-07 18:25:40 -04:00
Sean Yesmunt
dbdef22f46 clean up links 2020-03-30 09:40:23 -04:00
Sean Yesmunt
419b3890cd improve share modal 2020-03-30 09:40:23 -04:00
Sean Yesmunt
baa73c7329 fix download links on lbry.tv 2020-03-25 17:51:22 -04:00
Sean Yesmunt
db438bc979 get back on master branch for lbryinc 2020-03-24 16:38:59 -04:00
seanyesmunt
1984ee585f second attempt at localized player 2020-03-18 10:04:05 -04:00
Sean Yesmunt
48a441aae8 Revert "Localized player urls for lbry.tv" 2020-03-17 13:47:15 -04:00
Niko Storni
6d12e0da06 use only supported continents 2020-03-17 18:25:49 +01:00
Sean Yesmunt
7afaeb8333 demo with dynamic player url 2020-03-17 18:25:49 +01:00
Niko Storni
2b2607df61 drop usage of async 2020-03-17 18:25:49 +01:00
Niko Storni
167b591d21 make player url dynamic 2020-03-17 18:25:49 +01:00
seanyesmunt
b005ed76fe add 10 second timeout to lbrytv status call 2020-03-16 17:59:24 -04:00
Sean Yesmunt
d85a1dc67c update name 2020-03-12 12:10:42 -04:00
Sean Yesmunt
878ad61fd1 update cookies to remove leading "." in domain value 2020-03-12 12:10:42 -04:00
Dalton
5e38108e3d update to initial analytics url 2020-02-14 17:28:48 -05:00
Michael Tintiuc
8ec2032c7a Fixes #3603. Allow browser context menu 2020-02-03 09:22:37 -05:00
Sean Yesmunt
e1dd28fff6 use new player api for streaming 2020-01-24 11:26:19 -05:00
Sean Yesmunt
5c906df371 cleanup 2020-01-21 09:50:16 -05:00
Thomas Zarebczan
939a7d7689 feat: app image + cookie
fix: password stuff
2020-01-21 09:50:16 -05:00
Sean Yesmunt
978871a927 enable downloads on lbry.tv 2020-01-13 12:42:24 -05:00
Yamboy1
c6d8e4c098 Fix logic 2020-01-02 23:57:51 -05:00
Yamboy1
4a23ba525f Allow parentheses in certain links
Only links with either matching, or open LEFT parentheses are allowed. These are the same rules that github use for this as well.

https://cdn.discordapp.com/attachments/363049725374758921/662487292564340766/unknown.png
2020-01-02 23:57:51 -05:00
Sean Yesmunt
78f2df0022 fix sign up not completing because it's waiting for the password 2019-12-20 19:07:59 -05:00
Sean Yesmunt
86cfa746de mobile view 2019-12-20 15:03:18 -05:00
jessop
2cf7eef9d7 correctly checks savedPassword based on keychain 2019-12-20 12:06:37 -05:00
Sean Yesmunt
662cf9c906 fix tray icons, download icons, and fix embed route 2019-12-20 11:43:26 -05:00
Alex Grintsvayg
4ffdb34230
fix autolaunch after changing linux cmd capitalization 2019-12-17 13:38:09 -05:00
Sean Yesmunt
50bea913ec use custom endpoint for lbry.tv embeds 2019-12-17 00:57:13 -05:00
Sean Yesmunt
6d2c414363 fix formatInAppUrl function for open.lbry.com links 2019-12-09 14:42:54 -05:00
Sean Yesmunt
2944ed3664 add open in app link 2019-12-06 16:16:14 -05:00
Sean Yesmunt
d7d8b2f39a Revert "move upgrade prompt to a <Nag />"
This reverts commit 0c125ed2b9.
2019-12-06 16:05:10 -05:00
Sean Yesmunt
0c125ed2b9 move upgrade prompt to a <Nag /> 2019-12-06 15:59:05 -05:00
Sean Yesmunt
3a9e215357 respond to PR feedback 2019-12-03 13:25:17 -05:00
Sean Yesmunt
6a69ffe0fb remove LBRY_INC_DOMAINS list 2019-12-03 13:25:17 -05:00
Sean Yesmunt
bf512e8338 use same code for handling open links on lbry.tv and desktop 2019-12-03 13:25:17 -05:00
Sean Yesmunt
befc3f9660 fix: auth_cookie on localhost now being set 2019-11-27 10:18:43 -05:00
Sean Yesmunt
15815e5071 remove [data-mode='dark'] 2019-11-22 16:45:33 -05:00
Sean Yesmunt
600792884e try to delete old cookies too 2019-11-22 10:32:25 -05:00
Sean Yesmunt
1fb7229aa1 add domain to deleteCookie function 2019-11-22 10:06:23 -05:00
Sean Yesmunt
a87470126a use SameSite=Lax instead of Strict so cookies aren't lost when opening links 2019-11-20 16:01:50 -05:00
Sean Yesmunt
8e89a144cf disable captcha for returning users 2019-11-19 22:22:24 -05:00
Jessop
8cb4208282 autoLaunch on startup 2019-11-18 15:00:00 -05:00
Sean Yesmunt
6ad31a3ce9 refactor lbrytv web server 2019-11-11 13:27:29 -05:00