Commit graph

451 commits

Author SHA1 Message Date
Alex Liebowitz
f424e2e439 Show Download link only if file is not published by user 2017-01-16 23:27:14 -05:00
Alex Liebowitz
64d7b680c3 Add propTypes and getDefaultProps() to FileTile 2017-01-16 23:27:14 -05:00
Alex Liebowitz
97f6f3bdf8 Style and formatting fixes in FileTile 2017-01-16 23:27:14 -05:00
Alex Liebowitz
efa1a29d4f Rename SearchResultRow to FileTile and convert styles to CSS
Also moves the component to its own file (file-tile.js) so it can be
used outside the Discover page.
2017-01-16 23:27:14 -05:00
Jeremy Kauffman
9f9a1b66c2 Merge pull request #129 from lbryio/always-use-flash
Bypass check for Flash being installed in MediaElement.js
2017-01-13 17:54:12 -05:00
Alex Liebowitz
9f5c57f93a Add ARIA labels for all modals 2017-01-13 17:05:09 -05:00
Alex Liebowitz
5fa158f771 Remove startup notice code
The API method for this (get_start_notice()) is now deprecated
2017-01-13 16:58:46 -05:00
Alex Liebowitz
35a09dff0f Bypass check for Flash being installed in MediaElement.js
Needed because Safari now reports that Flash isn't installed, even
when it is: https://webkit.org/blog/6589/next-steps-for-legacy-plug-ins
2017-01-12 21:56:39 -05:00
Jeremy Kauffman
4db3211855 always make lbry globally available 2017-01-05 17:30:36 -05:00
Alex Liebowitz
c3e08809c2 Check if Thumbnail is still mounted before confirming its image loaded 2017-01-04 15:50:20 -05:00
alexliebowitz
a6b7b3de5a Merge pull request #125 from lbryio/fix-null-search
Fix search on pages other than Discover
2017-01-04 15:28:10 -05:00
Alex Liebowitz
160c6fd407 DiscoverPage: pass query into handleSearchChanged() on mount 2017-01-04 11:53:30 -05:00
alexliebowitz
5b5318e100 Merge pull request #123 from lbryio/my-files-fix-date-sort
My Files: fix "Date" sorting in Published tab
2017-01-03 22:04:53 -05:00
alexliebowitz
536b8d83dc Merge pull request #122 from lbryio/fix-mediaelement-import
Import MediaElement with <script> tag
2017-01-03 22:04:20 -05:00
Alex Liebowitz
863758ba54 My Files: Preserve order of claims returned by daemon 2017-01-03 19:41:32 -05:00
Alex Liebowitz
304b53e994 Simplify sorting logic in My Files 2017-01-03 19:09:46 -05:00
Alex Liebowitz
a2f7f150db Import MediaElement with <script> tag
Needed because MediaElement doesn't fully support ES6 modules yet
2017-01-03 18:10:03 -05:00
alexliebowitz
5a9d095a44 Merge pull request #121 from lbryio/master
Sync development with fixes in Master
2017-01-03 13:39:13 -05:00
Job Evers
e23cce81dc fix LoadScreen import on watch page 2017-01-02 20:21:23 -06:00
Jeremy Kauffman
2c760ca2dd Merge pull request #118 from lbryio/bug-report
Update Report Bug page
2017-01-02 15:47:21 -05:00
Alex Liebowitz
ff61fbbf7a Update lbry.reportBug() to use new report_bug daemon method 2017-01-02 15:43:34 -05:00
Alex Liebowitz
0ccc8ca809 Report: fix imports 2017-01-02 15:42:53 -05:00
Alex Liebowitz
70953710a8 Help: show Web UI version 2017-01-02 14:23:47 -05:00
Jeremy Kauffman
fa469253a3 Merge pull request #114 from lbryio/fix-dewey-decimals
Restore Dewey Decimals message in searches
2017-01-02 11:26:38 -05:00
Alex Liebowitz
7e86cccd6c Restore Dewey Decimals message
The "no results found" message was showing instead due to some tricky
state management stuff.
2016-12-30 08:21:24 -05:00
Alex Liebowitz
ed38e2ea75 Add import for BusyMessage to discover.js 2016-12-30 07:40:07 -05:00
alexliebowitz
cadb901209 Merge pull request #109 from lbryio/development
Merge development into master
2016-12-29 16:59:40 -05:00
Alex Liebowitz
5bcf095600 Refactor lighthouse.js and add support for custom servers
- Adds support for custom servers
 - Some light refactoring; mainly moving the logic for retrying queries
   into lbry.call() instead of leaving it up to the individual methods
2016-12-29 05:15:02 -05:00
Alex Liebowitz
9e2b43c531 Implement debug mode
Exposes lbry and lighthouse modules in global scope for easy testing.
2016-12-29 04:59:29 -05:00
Alex Liebowitz
f947164164 Add Developer Settings page 2016-12-29 04:59:29 -05:00
Alex Liebowitz
a2aaf65be5 Add developer settings to lbry.js 2016-12-29 04:59:29 -05:00
Alex Liebowitz
a03b021945 Add a missing param to an inner function in lbry.getCostInfoForName() 2016-12-29 04:10:36 -05:00
Alex Liebowitz
c672528a18 Update Lighthouse servers 2016-12-28 20:59:30 -05:00
Alex Liebowitz
5d3110a295 My Files: Add import for FormField
Needed for "Sort by" dropdown now that we're on ES6 modules
2016-12-28 20:49:33 -05:00
Alex Liebowitz
ac281105ad Add Sort option to My Files page 2016-12-28 20:49:33 -05:00
Alex Liebowitz
350bc6d847 Add sorting functions to MyFilesPage 2016-12-28 20:49:33 -05:00
Alex Liebowitz
83d59da827 Refactor My Files page
- Checking for file ownership is now done by making one call to
   lbry.getMyClaims() and saving a list of txids.
 - Broke out logic for Published and Downloaded pages
 - Published page now looks up the user's claims instead of files.
   This allows published streams to be listed even if the files don't
   exist on the user's machine; also, because it looks up file info by
   txid, you will no longer see a newer claim listed if you made a
   claim and it was overtaken.
2016-12-28 02:28:13 -05:00
Alex Liebowitz
d557c09f80 Add API stubs for getting info for individual files
- lbry.getFileInfoByName()
 - lbry.getFileInfoBySdHash()
 - lbry.getFileInfoByFilename()
2016-12-26 23:51:01 -05:00
Alex Liebowitz
8456b3d3b2 Add lbry.getMyClaims() 2016-12-26 23:51:01 -05:00
Alex Liebowitz
a642806a8d Add message for when no content is published
Before, it was showing the same message as the Downloaded page
2016-12-26 23:51:01 -05:00
Alex Liebowitz
643c884f56 Fix timeout check in DownloadLink
Was checking typeof streamInfo === 'object', and typeof null is
'object' (because why not?)

I think this was previously returning false for timeouts, and now
will only return null, so the "typeof" part may not be needed anymore.
2016-12-16 17:59:15 -05:00
Alex Liebowitz
7efbccbe83 Use new lbry.getCostInfoForName() in DownloadLink and WatchLink 2016-12-16 17:56:55 -05:00
Alex Liebowitz
1cad30d188 Show: var -> const in DetailPage.render() 2016-12-14 13:27:07 -05:00
Alex Liebowitz
8b781694f2 Show: use new Lighthouse cost reporting 2016-12-14 13:24:58 -05:00
Alex Liebowitz
06de4534cd Show: rename some variables and props for clarity
- cost -> amount
 - available -> costIncludesData
 - claimInfo -> metadata (only in DetailPage for now)
2016-12-14 13:24:58 -05:00
Alex Liebowitz
34a7d41dc7 Make search result tiles use new Lighthouse cost reporting
Featured/Community Content and regular search results now calculate
cost the same way, so instead of calculating the cost in the outer
component we now do it inside <SearchResultRow /> itself.
2016-12-14 13:24:58 -05:00
Alex Liebowitz
d9a4442cc3 Add lbry.getCostInfoForName() 2016-12-14 13:24:58 -05:00
Alex Liebowitz
d59c5c2a1c Add lbry.getSizeForName() 2016-12-14 13:24:58 -05:00
Alex Liebowitz
0b58ae6e6e Add error and connection failure callbacks to Lighthouse methods 2016-12-14 13:24:58 -05:00
Alex Liebowitz
6963d877df Break lbry.getCostEstimate() into 2 separate functions
lbrynet now supports getting the total cost if you provide the "size"
param, so we break this into two functions: lbry.getKeyFee() and
lbry.getTotalCost()
2016-12-14 13:24:58 -05:00