fix app thumbnail viewing on spee.ch #513
No reviewers
Labels
No labels
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
dependencies
Epic
good first issue
hacktoberfest
help wanted
icebox
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
Osprey
priority: blocker
priority: high
priority: low
priority: medium
protocol dependent
resilience
Tom's Wishlist
type: bug
type: discussion
type: error handling
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/spee.ch#513
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "507-app-thumbnails"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR fixes the issue where spee.ch was showing a page with a broken link instead of the asset. This issues seems to have been a result of cloudflare caching the page document and serving that instead of the image or video.
image/jpeg
on file servingspee.ch/asset/<name>/<claimid>
route which is specific for serving the asset itself, thus avoiding the confusion which lead to cloudflare serving the document from the cache@ -21,3 +21,3 @@
thumbnail = _ref$claimData.thumbnail;
var directSourceLink = "".concat(claimId, "/").concat(name, ".").concat(fileExt);
var directSourceLink = "asset/".concat(name, "/").concat(claimId);
var showUrlLink = "/".concat(claimId, "/").concat(name);
not a stopper, but it would be ideal to stick with single or double quotes, I see some mixed formatting
@ -84,3 +84,3 @@
className: "asset-image",
src: "/".concat(claimId, "/").concat(name, ".").concat(fileExt),
src: "/asset/".concat(name, "/").concat(claimId),
alt: name
Using concat on strings is a little different that common convention, does it have a negative performance impact?
You could also use template literals
@ -21,3 +21,3 @@
thumbnail = _ref$claimData.thumbnail;
var directSourceLink = "".concat(claimId, "/").concat(name, ".").concat(fileExt);
var directSourceLink = "asset/".concat(name, "/").concat(claimId);
var showUrlLink = "/".concat(claimId, "/").concat(name);
@billbitt I saw #405 was closed but if you add Prettier I believe this will never be an issue again.
@ -21,3 +21,3 @@
thumbnail = _ref$claimData.thumbnail;
var directSourceLink = "".concat(claimId, "/").concat(name, ".").concat(fileExt);
var directSourceLink = "asset/".concat(name, "/").concat(claimId);
var showUrlLink = "/".concat(claimId, "/").concat(name);
We should add Prettier (I reopened #405), but these files are the build result from babel transpiling the es6 code.
I'd like to avoid checking the built code into version control, but we have to include it at this point so that it can be imported by other packages like
lbryio/www.spee.ch
. I'd like mergelbryio/www.spee.ch
andlbryio/spee.ch
(#516) which should result in being able to have one build process that does not need to check built code into version control.@ -84,3 +84,3 @@
className: "asset-image",
src: "/".concat(claimId, "/").concat(name, ".").concat(fileExt),
src: "/asset/".concat(name, "/").concat(claimId),
alt: name
see above, but this is the result of babel