Commit graph

145 commits

Author SHA1 Message Date
jessopb
4cf9309ee1
facilitate admin temp files (#313) 2021-11-17 13:28:36 -05:00
Dan Peterson
cb104017ad
adjust livestream interval (#294) 2021-11-15 12:34:21 -06:00
Dan Peterson
1d8753e2ba
Revert claim preview + fix small css issue + export named function 2021-11-10 08:21:16 +08:00
Dan Peterson
60f06dac52
Fix livestream state issues. Create unified long polling mechanism. 2021-11-10 08:21:15 +08:00
Dan Peterson
704452732a
Add hints if an error occurs subscribing to notifications (#143)
* Add hints if an error occurs subscribing to notifications

* Update import (type/linting issue)

* disable optimization for debugging

* Revert "disable optimization for debugging"

This reverts commit 5b837f94e97b7488a7dc565e7f74d399e19c286f.

* improve detection of notification support + improve ux / ui surrounding that

* update translations
2021-11-01 14:51:23 -04:00
Dan Peterson
762bddb158
Don't instantiate messaging SDK if service worker is unavailable (Firefox/Private) (#142) 2021-10-27 13:34:50 -04:00
Dan Peterson
03f69eff86
Browser push notifications (#133)
* fix type error

fix is subscribed check

- Persist subscription data locally
- add / remove subscription during log in / out
- Use store directly in hook

Add toast error if subscription fails

Revert removal of v2

hotfix linting issue

Add custom notification handler

- fix isSupported flag
- make icon color compatible with light/dark theme
- fix icon on notifications blocked banner

wip: add push notification banner to notifications page.

- ignore failed deletions via internal API
- add ua parsing package
- add more robust meta data to token save

refactor naming + add push toggle to notification button

shift some code around

update css naming o proper BEM notation

update notifications UI

remove now unneeded util function

Update push notification system to sue firebase sdk

separate service worker webpack bundling

update service worker to use firebase sdk

Add firebase config

Add firebase and remove filemanager

Stub out the basics for browser push notifications.

* fix safari

* try smaller image for badge

* add token validation with server, refactor code

* remove param

* add special icon for web notification badge

* add translations

* add missing trans for toast error

* add pushRequest method that will not prompt users who have subscribed but since disabled notifications in the settings.
2021-10-27 10:38:10 -04:00
Merge
30023422b8
Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
Thomas Zarebczan
02a8099514
Take 99 2021-10-12 22:30:05 -04:00
Thomas Zarebczan
9dbee19961
Add test embed domain to rule out cards 2021-10-12 20:55:33 -04:00
Thomas Zarebczan
b49fed4cf5
fix config for thumbs
whoops

Fix encoded URLs
2021-10-12 20:31:10 -04:00
Thomas Zarebczan
2b5d32c313
Use cards.odysee.com (#56) 2021-10-12 19:16:39 -04:00
Thomas Zarebczan
1bb491857e
lint fix, return url always
fix lint
2021-10-08 11:06:51 -04:00
Thomas Zarebczan
3077c778c3
Test more twitter thumbnail stuff 2021-10-08 10:44:22 -04:00
Thomas Zarebczan
88794761d0
use thumbnails.odysee.com
f
2021-10-07 16:38:59 -04:00
infinite-persistence
5ed9e3e3ae
OG: Technology category missing due to rename
- 'technology' was renamed to 'tech'.
- Leave both entries there for now. Not sure if other homepages still use the old link or not.
2021-10-04 11:21:13 +08:00
infinite-persistence
5757eb7036
OG: fix url for categories
## Issue
Category cards are showing up as "odysee.com" cards in Facebook.

## Change
- `og:url` is supposed to be the canonical URL. It was hardcoded to "odysee.com", so every category was being redirected when the card is being generated.
- Removed `twitter:url`. The documentation says it will fall back to `og:url`, so there is not need to define both if it's the same.
2021-10-04 10:27:49 +08:00
infinite-persistence
4f07867f8f
Corrected meta for "description" (patch for #7206)
It should be `name`, not `property`. Copy-paste error from the OG version.
2021-10-02 08:42:19 +08:00
infinite-persistence
dac8d711d1
Prevent random description in Google Search results for "odysee" (#7206)
## Issue
7166 improve search metadata

Depending on the search term and timing, Google extracts data from the sidebar or page content to use as the search-result description.

## Change
Defined `description` (on top of the existing `og:description` and `twitter:description`.

While I couldn't find a definitive doc saying that this is the solution, this is present in all other sites (and matches their description in a Google Search results).
2021-10-01 08:08:39 -04:00
Thomas Zarebczan
3e8172af13
force mp3 extension vs mpga 2021-09-27 12:40:06 -04:00
zeppi
3b94ecaf80 redirect activate page 2021-08-31 15:46:20 -04:00
infinite-persistence
90c469454a
Fix Category-Metadata path parsing
## Issue
6849 category metadata shows in place of creator channel when using vanity URL
2021-08-30 12:51:01 +08:00
infinite-persistence
1124125578
Fix Facebook meta warnings (#6965) 2021-08-25 15:10:00 -04:00
Baltazar Gomez
926d76de07 fix lint: operator '=' must be spaced 2021-08-10 13:47:15 -04:00
Baltazar Gomez
5e239f48c9 fix lint 2021-08-10 13:47:15 -04:00
Baltazar Gomez
017ec11737 fix og error ( truncated unicode character ) - closes #6839 2021-08-10 13:47:15 -04:00
Thomas Zarebczan
7312badc18
use website URL if exists for RSS 2021-08-10 12:56:23 -04:00
Baltazar Gomez
dbaa702888
fix wrong embed og metadata: #6814 2021-08-08 09:10:01 +08:00
btzr-io
c85e448499
fix redirection and normalization of claim urls 2021-08-07 19:23:14 +08:00
btzr-io
68e4684ccd
use better resolve url 2021-08-07 19:23:00 +08:00
btzr-io
2c812da785
fix embed claim url 2021-08-07 10:16:10 +08:00
btzr-io
722f933052
use value.release_time 2021-08-07 10:16:09 +08:00
btzr-io
45fcf0d518
use value.audio for google video metadata 2021-08-07 10:16:08 +08:00
Baltazar Gomez
6d91d1c799
use resolve for og metadata 2021-08-07 10:16:07 +08:00
Thomas Zarebczan
6db75f8a66 rss tests
Various fixes and improvements to work with Apple Podcasts

f

f

image support
2021-08-06 17:05:36 -04:00
infinite-persistence
f2e583f314 RSS: change from 'download' to 'stream' url to pass Media Test
This apparently ensures the media is playable across all devices and apps.
2021-08-04 12:07:14 -04:00
infinite-persistence
0af1dfe282 RSS: podcast support
## Issue
`https://github.com/lbryio/lbry-desktop/issues/6369#issuecomment-882081892`

## Changes
- Replace 'feed' with 'node-rss' for itunes spec support.
- Replace content type from 'rss+xml' to 'xml' so that the browser will display it nicely using the document tree without us having to re-format it ('node-rss' does not). Seems like all feeds that I found does it this way.
- There is no need to escape characters now that 'node-rss' does it. Nice.
2021-08-04 12:07:14 -04:00
infinite-persistence
4156e83f57 Fix: OG messed up if $" is in title
## Issue
5951: OG messed up if `$"` is in title

The replacement string would contain `...$&quot...`. The character `$&` has special meaning in `replace`, so the output was messed up.

## Approach
Use a direct slice approach. A bit less elegant.
2021-08-03 11:36:26 -04:00
zeppi
1e9dabe6e2 favicon custom
html fav tag remove

basic meta favi

missing favicon

recon
2021-07-23 17:12:18 -04:00
Thomas Zarebczan
26e2dc16ec
Reinstate music category metadata 2021-07-23 11:49:44 -04:00
infinite-persistence
47c41b436d RSS: Add enclosure for media
- Moved the thumbnail from 'enclosure' to 'description' by appending the thumbnail in front.
- Generate enclosure for media. It's up to readers on how they will handle it. Some will display the inline video player, some will just provide a download link.
2021-07-20 15:27:24 -04:00
zeppi
d612b86a8c homepages v2
homepages served without cache

error catching

memo homepagedata

support auto limit

no more config pins
2021-07-14 14:09:46 -04:00
infinite-persistence
ad1c826f2c RSS: Use canonical_url (with ':') instead of slicing to 2 characters.
## Changes
- Change to canonical_url (with ':').
- The old format of 'claimName/claimId' needs to be supported still, since we shipped with it.

## Notes
- It would be nice to use regex instead of 2 separate paths, but I couldn't figure out how to make the koa variables work.
2021-07-12 17:06:03 -04:00
infinite-persistence
249f06bd21
w3c validation 2021-07-09 22:16:28 +08:00
infinite-persistence
e7bed19391
Shorten the RSS URL
This will be backward compatible with existing format that uses the full claim_id.
2021-07-09 21:54:44 +08:00
infinite-persistence
f6641ee045
Bump from 50 to 500 latest entries per creation_timestamp 2021-07-09 21:54:43 +08:00
zeppi
22d9495b8d fix rss, add icon 2021-07-02 13:03:24 -04:00
infinite-persistence
c84d820b09
RSS: Switch from ChainQuery to SDK
## Issue
3779 RSS feed for channels
2021-07-02 13:03:22 +08:00
infinite-persistence
49046c9d25
RSS feed for channels
## Issue
3779 RSS feed for channels

## Initial implementation details
- RSS only (not atom)
- Grabs latest 10 entries (Beamer have concerns)

## Credit
Referenced the community version mentioned in 3779
2021-07-02 13:03:21 +08:00
Anthony
7eeb3d3c55 check against domain to see if pwa manifest should be added 2021-06-08 13:44:08 -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
Anthony
32772c679b fix eslint and change theme colour 2021-06-04 12:05:23 -04:00
Anthony
78f2307982 bugfix renaming of function 2021-06-04 12:05:23 -04:00
Anthony
42c319702a conditionally add metatags only if site title is odysee 2021-06-04 12:05:23 -04:00
Thomas Zarebczan
b90066b3f5
Update finance 2021-06-01 15:51:54 -04:00
Thomas Zarebczan
fd2f664870
last fix for metadata 2021-05-27 17:50:02 -04:00
Thomas Zarebczan
97a4f5fcab
Fix metadata and make thumbs work 2021-05-27 17:00:19 -04:00
Thomas Zarebczan
4694cadef6
Update category metadata 2021-05-27 13:18:23 -04:00
infinite-persistence
8493b1e3df GoogleVideoSearch: fix blank description; invalid thumbnails
## Issue
Closes 5923 video metadata issues

## Notes
For thumbnails, future claims should have correct thumbnails after `5925 Fix thumbnail-checking and block 'data:image'`. For existing claims, we'll just skip the metadata to avoid the crawler error. Users can easily update their thumbnails.

For the `OlivOliv` thumbnail url case, I wasn't sure whether to go all out to fetch and verify each thumbnail. I ended up just checking whether it starts with `http(s)`
2021-04-21 10:49:57 -04:00
infinite-persistence
e4c1f107bd GoogleVideoSearch: fix duration
Forgot that `moment.duration()` takes in ms.
2021-04-19 14:35:27 -04:00
infinite-persistence
166d2f9049 Add Google Video Search metadata
## Issue
5870: Add metadata for google video search
2021-04-16 11:24:25 -04:00
Sean Yesmunt
be7ca41235 check for og image in config before falling back to default og image 2021-04-13 15:26:16 -04:00
Thomas Zarebczan
bb766211f9
Julian's category changes (#5878) 2021-04-13 14:22:14 -04:00
Sean Yesmunt
3c51e699f6 comment out unused categories 2021-03-19 11:11:02 -04:00
infinite-persistence
605d33331b Support for Category-Page Metadata definition.
## Issue
Part of 4786: Add support for web metadata on category pages

## Note
Remaining task: `category-metadata.js` needs to be filled first.
2021-03-19 11:11:02 -04:00
Franco Montenegro
d7f9d7ef7f Remove markdown from og and description header tags 2021-01-29 10:09:11 -05:00
Thomas Zarebczan
58fc61ac0f
Fix vanity claim resolution
We have a CQ hack to include spent claims (CQ bug), but this broke vanity names.
2020-12-28 16:00:16 -05:00
Sean Yesmunt
f93a40aa18 quickly fix embed redirecting 2020-12-22 21:39:40 -05:00
Thomas Zarebczan
01ee79b022
Fix syntax in SQL 2020-12-21 16:16:05 -05:00
Thomas Zarebczan
9a5d0954df
Workaround CQ spent bug 2020-12-21 15:42:55 -05:00
Sean Yesmunt
0cc3af28a3 flow fixes 2020-12-16 10:52:22 -05:00
Sean Yesmunt
d9acb034e1 odysee alignment 2020-10-05 14:55:52 -04:00
Sean Yesmunt
faa4e7364f alignment with odysee branch 2020-10-01 17:10:42 -04:00
jessop
ba0c22e080 copy custom robots_txt in webpack on compile 2020-09-29 12:10:30 -04:00
Sean Yesmunt
5447e334dc use dynamic js bundle urls 2020-08-19 17:14:31 -04:00
Sean Yesmunt
34b0bfc315 Revert "use dynamic js bundle urls"
This reverts commit cb8a801d4a.
2020-08-18 23:34:06 -04:00
Sean Yesmunt
cb8a801d4a use dynamic js bundle urls 2020-08-18 22:22:57 -04:00
Newbyte
2525dcf983 Implement OpenSearch support 2020-08-12 13:35:49 -04:00
Thomas Zarebczan
e092ae3231
Fix SQL for previews 2020-08-12 08:59:31 -04:00
Thomas Zarebczan
b14f3c87f1
Fix vanity + bid state for URLs
This ensures controlling is returned first.
2020-08-11 18:07:49 -04:00
Brad Kimmel
e5809b8b13 Add more metadata to content pages.
This adds the following metadata to content pages:

  - Channel name: og:video:series
  - Duration/Audio Duration: og:video:duration
  - Release time: og:video:release_date
2020-08-03 09:44:53 -04:00
Sean Yesmunt
ad9b98389f fix html metadata for collisions and redirect reposted claims serverside 2020-07-29 10:31:13 -04:00
Sean Yesmunt
0a60d93c71 Revert "redirect to reposted claims serverside"
This reverts commit c9c98501af.
2020-07-28 15:14:59 -04:00
Sean Yesmunt
43a9393dca Revert "fix metadata for claims with canonical collision"
This reverts commit 61d55604a4.
2020-07-28 15:14:59 -04:00
Sean Yesmunt
26f460d2ae Revert "update arguments order"
This reverts commit de15a56ed8.
2020-07-28 15:14:59 -04:00
Sean Yesmunt
de15a56ed8 update arguments order 2020-07-28 12:39:45 -04:00
Sean Yesmunt
61d55604a4 fix metadata for claims with canonical collision 2020-07-28 12:39:45 -04:00
Sean Yesmunt
c9c98501af redirect to reposted claims serverside 2020-07-28 12:39:45 -04:00
Sean Yesmunt
cec1e288f9 fix typo 2020-07-08 16:15:55 -04:00
Sean Yesmunt
6a38f944a6 don't read html file on every html request 2020-07-08 14:24:47 -04:00
Sean Yesmunt
a8bbb95cc0 fix for new clones with no dist folder 2020-07-08 13:30:49 -04:00
jessop
50d8bfbfce rel canonical, new vars 2020-07-07 09:21:45 -04:00
jessop
984b5d5661 review changes, simpilify env 2020-07-06 13:09:38 -04:00
jessop
96f6f66ace build custom metadata from config 2020-07-06 13:09:36 -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