Compare commits

..
Author SHA1 Message Date
Alex Grintsvayg 7e1ca07073 Bump version: 0.9.2rc18 → 0.9.2rc19 2017-04-12 11:05:11 -04:00
Jack Robison 8dca65f135 Bump version: 0.9.2rc17 → 0.9.2rc18 2017-04-11 19:31:05 -04:00
Jack Robison 7c2a60798c Bump version: 0.9.2rc16 → 0.9.2rc17 2017-04-11 19:31:01 -04:00
Jack Robison 60e3f3d12b Bump version: 0.9.2rc15 → 0.9.2rc16 2017-04-11 19:30:52 -04:00
Jack Robison 8e36608508 update submodules 2017-04-11 19:29:42 -04:00
alexliebowitz 4af89b4685 Merge pull request #36 from lbryio/channels
More Channels fixes
2017-04-11 00:36:26 -04:00
Alex Liebowitz a7050303c2 My Files: pass signing info into file tiles 2017-04-11 00:21:08 -04:00
Alex Liebowitz d7644c0394 My Files: include channel names in URIs 2017-04-11 00:15:50 -04:00
Alex Liebowitz 5577b436d3 Use resolve API method on splash screen 2017-04-11 00:14:52 -04:00
Alex Liebowitz c49d229eef Publish: name resolution bugfixes 2017-04-11 00:12:34 -04:00
Alex Liebowitz f64ad6e169 Fix merging error in FileActions 2017-04-10 22:42:20 -04:00
alexliebowitz 4a712c8102 Merge pull request #35 from lbryio/channels
Channels, round 3
2017-04-10 21:58:53 -04:00
Alex Liebowitz 7e8fdf625f Style fixes and cleanup
- Remove a couple of unused files from lbry.js
 - Couple of style fixes
2017-04-10 21:55:35 -04:00
Alex Liebowitz 326493c0b7 Publish: use new discover() RPC method 2017-04-10 21:55:35 -04:00
Alex Liebowitz 562f7dd399 Update Watch page for channels 2017-04-10 21:55:35 -04:00
Alex Liebowitz a80b2da5c2 Update Show page for channels 2017-04-10 21:55:34 -04:00
Alex Liebowitz f8e3eff378 Update My Files for channel compatibility 2017-04-10 21:55:34 -04:00
Alex Liebowitz 3b72938b74 Refactor file tiles to be compatible with channels 2017-04-10 21:55:34 -04:00
Alex Liebowitz af32951d1f Add uri.normalizeLbryUri() 2017-04-10 21:51:57 -04:00
Alex Liebowitz 839e629362 Fix bid position and claim sequence regexes 2017-04-10 21:51:57 -04:00
Alex Grintsvayg 96bd8285f4 build is done in lbry repo now 2017-04-10 18:02:22 -04:00
Alex Grintsvayg 5ce9319b07 switch to get_unused_address whe loading wallet page 2017-04-10 18:02:22 -04:00
Jack Robison bb6a297606 Bump version: 0.9.2rc14 → 0.9.2rc15 2017-04-10 14:36:21 -04:00
Jack Robison c070f1863b update submodules 2017-04-10 14:36:21 -04:00
Alex Grintsvayg 096659bc90 fix availability call 2017-04-10 13:19:11 -04:00
Jack Robison 7327b03c7f Bump version: 0.9.2rc13 → 0.9.2rc14 2017-04-10 11:13:13 -04:00
Jack Robison 678d02819f update submodules 2017-04-10 11:12:37 -04:00
Jack Robison 79bfeadd18 Bump version: 0.9.2rc12 → 0.9.2rc13 2017-04-10 10:05:46 -04:00
Jack Robison a1f14cefa1 update submodules 2017-04-10 10:05:46 -04:00
alexliebowitz 3edd8d837c Merge pull request #34 from lbryio/channels
Channels, round 2
2017-04-10 04:10:05 -04:00
Alex Liebowitz 797f9eafdc Publish: Add rudimentary error handling when creating new channels 2017-04-10 04:09:01 -04:00
Alex Liebowitz 6c68eb5e2b Publish: Add length check for new channel names 2017-04-10 04:08:43 -04:00
Alex Liebowitz a9cb0abcc6 Publish: Rename "None" new channel option to "Anonymous" 2017-04-10 04:07:48 -04:00
Alex Liebowitz b599e5343c Publish: wait for new channel to appear before updating list 2017-04-10 04:06:15 -04:00
Jack Robison 1963556566 Bump version: 0.9.2rc11 → 0.9.2rc12 2017-04-09 21:54:19 -04:00
Jack Robison 697d75746d update submodules 2017-04-09 21:54:08 -04:00
Jack Robison 857cd174ed Bump version: 0.9.2rc10 → 0.9.2rc11 2017-04-09 17:56:41 -04:00
Jack Robison b186f5e511 update submodules 2017-04-09 17:56:29 -04:00
Jack Robison b921e71b9e Bump version: 0.9.2rc9 → 0.9.2rc10 2017-04-09 00:04:08 -04:00
Jack Robison 846eb36adc update lbryum 2017-04-09 00:03:57 -04:00
Alex Grintsvayg 85a81d753b Bump version: 0.9.2rc8 → 0.9.2rc9 2017-04-08 19:24:24 -04:00
Alex Grintsvayg 9eecb78dad update submodules 2017-04-08 19:23:58 -04:00
Alex Grintsvayg f83ac641c6 Merge remote-tracking branch 'origin/channels'
* origin/channels:
  Publish: add ability to choose and create channels
  Add new channel auth status indicator to file tiles
  Add channel indicator component
  Add functions for building and parsing new-style URIs
2017-04-08 19:21:35 -04:00
Alex Liebowitz f91653ff2d Publish: add ability to choose and create channels 2017-04-08 08:37:27 -04:00
Alex Liebowitz 461f5f95d9 Add new channel auth status indicator to file tiles 2017-04-08 08:37:27 -04:00
Alex Liebowitz 3e2b675e7b Add channel indicator component 2017-04-08 08:37:27 -04:00
Alex Liebowitz af6981c164 Add functions for building and parsing new-style URIs 2017-04-08 08:37:03 -04:00
Alex Grintsvayg 3c380d380d Bump version: 0.9.2rc7 → 0.9.2rc8 2017-04-06 19:14:19 -04:00
Alex Grintsvayg e2b65ed3ce final touches on unifying requirements files 2017-04-06 19:11:36 -04:00
Alex Grintsvayg e4e20f4b1b Bump version: 0.9.2rc6 → 0.9.2rc7 2017-04-06 18:55:07 -04:00
Alex Grintsvayg a8a1d95762 grin is bad at powershell 2017-04-06 18:54:56 -04:00
Alex Grintsvayg 32f54f18c8 Bump version: 0.9.2rc5 → 0.9.2rc6 2017-04-06 18:39:50 -04:00
Alex Grintsvayg 487cccdc99 fixes for windows 2017-04-06 18:38:18 -04:00
Alex Grintsvayg 33dbd94402 Bump version: 0.9.2rc4 → 0.9.2rc5 2017-04-06 18:16:47 -04:00
Alex Grintsvayg 4c27cbb9b7 fix outdated daemon dependencies 2017-04-06 18:16:24 -04:00
Alex Grintsvayg 8ac55020bf Bump version: 0.9.2rc3 → 0.9.2rc4 2017-04-06 17:50:40 -04:00
Alex Grintsvayg 56e9e33e99 update submodule 2017-04-06 17:47:42 -04:00
Alex Grintsvayg 122e5ccc16 Bump version: 0.9.2rc2 → 0.9.2rc3 2017-03-29 11:10:57 -04:00
Alex Grintsvayg 500635bafb update submodules 2017-03-29 11:10:04 -04:00
Alex Grintsvayg d1314ccee1 renamed config value 2017-03-29 11:07:29 -04:00
Alex Grin 8d6337dca8 Update README.md 2017-03-28 12:05:17 -04:00
alexliebowitz b3aa61cf47 Merge pull request #14 from lbryio/publish-cache
Make publishes appear immediately in My Files
2017-03-28 02:26:45 -04:00
Alex Grintsvayg afeb3257be Merge branch 'shutdown-fixes'
* shutdown-fixes:
  Add changelog entry for shutdown improvements
  Tweak shutdown logic
  Finish Windows compatibility for shutdown process
2017-03-27 16:48:37 -04:00
Alex Liebowitz e1f9a46f33 Add changelog entry for shutdown improvements 2017-03-27 16:48:28 -04:00
Alex Liebowitz 4b11525bce Tweak shutdown logic 2017-03-27 16:48:28 -04:00
Alex Liebowitz 70da416ca2 Finish Windows compatibility for shutdown process 2017-03-27 16:48:28 -04:00
Jeremy Kauffman f409c5f3ec Merge pull request #25 from lbryio/fast_pages
make page changes fast
2017-03-27 09:46:53 -04:00
Jeremy Kauffman 2a0cf1d6db Merge branch 'master' into fast_pages 2017-03-27 09:46:47 -04:00
Alex Liebowitz b2fcdd1f9a Add changelog entry for fast publishes 2017-03-27 03:11:39 -04:00
Alex Liebowitz b8f1447b7e Don't display Downloading bar on published files
We handled this just fine until recently; not sure where the regression
happened.
2017-03-27 03:10:02 -04:00
Alex Liebowitz e523906901 Make publishes appear immediately in My Files
Uses a client side cache to simulate entries in the file manager and
claims list.

Also adds new utility functions for using Local Storage.
2017-03-27 03:10:02 -04:00
Alex Liebowitz a0903e6b4f Style tweaks 2017-03-27 01:44:13 -04:00
Jeremy Kauffman dc13de7160 make page changes fast 2017-03-26 14:30:18 -04:00
Alex Grintsvayg e19c16c1ce Bump version: 0.9.2rc1 → 0.9.2rc2 2017-03-25 10:29:07 -04:00
Alex Grintsvayg 0d0d835746 Merge branch 'upgrades-2'
* upgrades-2:
  Add code to get process IDs for daemon on Windows
  Small bugfixes and typos
  Refactor shutdown process
  Add Mac and Windows installer launching
  Minor style fixes and tweaks
  Light refactoring of upgrade process  - Use Node instead of lbrynet to get platform info  - Factor out code that picks the download URI into its own function  - Remove out-of-date code for checking old versions of MacOS
  Make upgrade process better at killing old daemons
2017-03-25 10:28:24 -04:00
Alex Liebowitz 3e33f78235 Add code to get process IDs for daemon on Windows 2017-03-25 10:27:20 -04:00
Alex Liebowitz 31e3b3006b Small bugfixes and typos 2017-03-25 10:27:20 -04:00
Alex Liebowitz 977acafb8c Refactor shutdown process 2017-03-25 10:26:50 -04:00
Alex Liebowitz dead2bdeb3 Add Mac and Windows installer launching
Also starts a detached process so the window doesn't get held open
(many GUI apps launch the interface in a new process, so xdg-open
returns immediately, but it's not guaranteed).
2017-03-25 10:26:50 -04:00
Alex Liebowitz 71e8d42b27 Minor style fixes and tweaks 2017-03-25 10:24:34 -04:00
Alex Liebowitz 052eef5f81 Light refactoring of upgrade process
- Use Node instead of lbrynet to get platform info
 - Factor out code that picks the download URI into its own function
 - Remove out-of-date code for checking old versions of MacOS
2017-03-25 10:24:34 -04:00
Alex Liebowitz f51b720e05 Make upgrade process better at killing old daemons
- Manually call xdg-open instead of using shell.openItem(), which
   doesn't reliably work from the main process
 - If there's a connection error or timeout when asking the daemon
   to close, fall back on force killing
2017-03-25 10:24:34 -04:00
Alex Grintsvayg fa4bb58c9a update submodule 2017-03-25 10:23:11 -04:00
Alex Grintsvayg 2a7a36db15 no faultstring in jsonrpc 2 2017-03-25 10:22:02 -04:00
alexliebowitz 724ad79fcb Merge pull request #21 from lbryio/fix-upgrade-filenames
Fix filenames for downloaded upgrades
2017-03-24 03:22:05 -04:00
alexliebowitz 16122216bb Fix filenames for downloaded upgrades
Windows and Linux were incorrect
2017-03-24 03:21:12 -04:00
Alex Liebowitz c086842972 Revert newest upgrade changes (need more work) 2017-03-22 07:21:48 -04:00
Alex Liebowitz 534ea2aa75 Light refactoring of upgrade process
- Use Node instead of lbrynet to get platform info
 - Factor out code that picks the download URI into its own function
 - Remove out-of-date code for checking old versions of MacOS
2017-03-22 07:17:53 -04:00
Alex Liebowitz 4958f9decf Make upgrade process better at killing old daemons
- Manually call xdg-open instead of using shell.openItem(), which
   doesn't reliably work from the main process
 - If there's a connection error or timeout when asking the daemon
   to close, fall back on force killing
2017-03-22 07:17:53 -04:00
Alex Grintsvayg 7d32c8e98f Bump version: 0.9.1 → 0.9.2rc1 2017-03-21 17:12:29 -04:00
Alex Grintsvayg 984bb05cbb broken 2017-03-21 17:09:18 -04:00
Jeremy Kauffman 8022a839cd add github issue template 2017-03-18 09:39:33 -04:00
Alex Grintsvayg 3ffaf8db4b Bump version: 0.9.1rc6 → 0.9.1 2017-03-17 18:24:20 -04:00
Alex Grintsvayg 0d5ef61944 Merge branch 'real-upgrades'
* real-upgrades:
  minor
  some progress, but needs more work
  Real update system
2017-03-17 18:23:41 -04:00
Alex Grintsvayg 5322e935a7 minor 2017-03-17 18:23:29 -04:00
Alex Grintsvayg 20064ee558 some progress, but needs more work 2017-03-17 18:05:25 -04:00
Alex Liebowitz 3c2f3abe8e Real update system
- Now asks the daemon to close, even if it wasn't started by the same
   app
 - Improved UX during upgrade process (cancel buttons, final dialog
   where you approve the update, etc.)
 - Saves updates in temp directory, closes app and launches the installer
2017-03-17 13:15:07 -04:00
Alex Grintsvayg 06f77936a3 Bump version: 0.9.1rc5 → 0.9.1rc6 2017-03-17 13:11:38 -04:00
Alex Grintsvayg 894a188918 update submodule 2017-03-17 13:11:32 -04:00
Alex Grin 1c2103511c Merge pull request #17 from lbryio/context-menu
Add context menu
2017-03-17 12:38:36 -04:00
Alex Liebowitz 0b79e49452 Add context menu
Has Cut, Copy, Paste, and when in developer mode there's also Inspect Element
2017-03-17 07:53:34 -04:00
Alex Grintsvayg b8d48d6e03 Bump version: 0.9.1rc4 → 0.9.1rc5 2017-03-16 17:56:25 -04:00
Alex Grintsvayg 0885285591 update lbry 2017-03-16 17:56:05 -04:00
Jeremy Kauffman aeaf09af6c Merge pull request #15 from lbryio/external_links
open http links in external app (probably browser)
2017-03-16 10:00:46 -04:00
Alex Grintsvayg ccfaf6af03 Bump version: 0.9.1rc3 → 0.9.1rc4 2017-03-15 21:53:37 -04:00
Alex Grintsvayg 32d67031a0 enable basic logging in cl 2017-03-15 21:53:24 -04:00
Alex Grintsvayg 0ee255ec18 Bump version: 0.9.1rc2 → 0.9.1rc3 2017-03-15 21:26:08 -04:00
Alex Grintsvayg 8a8230d202 upload cli binary, dont package languages for cli 2017-03-15 21:23:04 -04:00
Alex Grintsvayg 55cf3d5dc7 Bump version: 0.9.1rc1 → 0.9.1rc2 2017-03-15 19:59:59 -04:00
Alex Grintsvayg 75135bdf1c update lbry submodule 2017-03-15 19:59:22 -04:00
Alex Grintsvayg c4e363fbe3 attempt to build cli alongside daemon 2017-03-15 19:58:36 -04:00
Alex Grintsvayg 9f30e007c0 open http links in external app (probably browser) 2017-03-15 19:12:52 -04:00
Alex Grintsvayg ad05a8096a need pyinstaller in reqs 2017-03-15 19:12:16 -04:00
Alex Grintsvayg 9df83d7ea2 mark rc releases as prereleases in github 2017-03-15 17:44:38 -04:00
Alex Grintsvayg 08c66556a4 Bump version: 0.9.0 → 0.9.1rc1 2017-03-15 12:34:32 -04:00
Alex Grintsvayg ffb8387b95 update lbry 2017-03-15 12:33:13 -04:00
Alex Grintsvayg 6aea51ea9e Revert "Bump version: 0.9.0 → 0.9.1rc1"
This reverts commit ba09f47ea1.
2017-03-15 12:32:58 -04:00
Alex Grintsvayg ba09f47ea1 Bump version: 0.9.0 → 0.9.1rc1 2017-03-15 12:30:52 -04:00
Alex Grintsvayg c3a3859e54 no more rc0 2017-03-15 12:30:13 -04:00
Alex Grintsvayg d10c0cc297 revert on lbry 2017-03-15 11:31:47 -04:00
Alex Grintsvayg 4e8ab78e4d Revert "Bump version: 0.9.0 → 0.9.001"
This reverts commit 7bb6909493.
2017-03-15 11:31:18 -04:00
Alex Grintsvayg 7bb6909493 Bump version: 0.9.0 → 0.9.001 2017-03-15 11:19:07 -04:00
Alex Grintsvayg ead8677ca5 bah 2017-03-15 11:18:59 -04:00
Alex Grintsvayg edcdd43b0e sync app and ui versions 2017-03-15 11:14:58 -04:00
alexliebowitz b13381e9aa Merge pull request #13 from lbryio/fix-watch
Update Watch logic for new API wrapper
2017-03-14 12:34:17 -04:00
Alex Liebowitz a2af284ccf Update Watch logic for new API wrapper
Also was using some keys that are no longer available from file_list -
fixed that
2017-03-14 12:35:39 -04:00
Alex Liebowitz 5a0dc0b5c2 Fix progress bars
Wasn't calling file_list with full_status to get total bytes (won't be
needed after lbrynet DB refactor is merged)
2017-03-14 12:15:24 -04:00
Alex Grintsvayg cf3e83ee44 Bump version: 0.9.0rc17 → 0.9.0 2017-03-13 23:16:01 -04:00
Alex Grintsvayg 95c130dd7a fixing release script 2017-03-13 23:15:55 -04:00
Alex Grintsvayg bb500244fb minor simplify 2017-03-13 22:20:06 -04:00
Alex Grintsvayg 474663e2b0 update submodules 2017-03-13 18:45:59 -04:00
Alex Grintsvayg 06de73363c Revert "Bump version: 0.9.0rc17 → 0.9.1rc0"
This reverts commit 30be5b69d3.
2017-03-13 18:44:53 -04:00
Alex Grintsvayg 30be5b69d3 Bump version: 0.9.0rc17 → 0.9.1rc0 2017-03-13 18:15:37 -04:00
Alex Grintsvayg 07701d03bd update package author/email 2017-03-13 14:12:56 -04:00
Alex Grintsvayg ed755f18c8 one more spot 2017-03-13 12:54:42 -04:00
Alex Grintsvayg 9972828c2b fix windows build 2017-03-13 11:47:07 -04:00
Jeremy Kauffman a427f974b5 remove obsolete info 2017-03-13 11:44:15 -04:00
Jeremy Kauffman df71a081e8 improve install language (copy from lbry repo) 2017-03-13 11:37:49 -04:00
Alex Grintsvayg 314e01dff0 Bump version: 0.9.0rc16 → 0.9.0rc17 2017-03-10 16:30:28 -05:00
Alex Grintsvayg 0cd3fa0c75 fix reset script 2017-03-10 16:26:15 -05:00
Alex Grintsvayg f6265aab4a pull submodules 2017-03-10 16:23:34 -05:00
alexliebowitz eb37f1f6bf Merge pull request #12 from lbryio/fix-nout
Change nOut to nout
2017-03-10 15:37:38 -05:00
Alex Liebowitz 6a46ccc565 Change nOut to nout
Needed for compatibility with this lbrynet change:
https://github.com/lbryio/lbry/pull/513
2017-03-10 15:37:56 -05:00
alexliebowitz 05b8417f5f Merge pull request #10 from lbryio/new-api-wrapper
Revamp API wrapper code
2017-03-10 03:57:43 -05:00
alexliebowitz 9fedfe2b93 Merge pull request #11 from lbryio/outpoints
Use outpoints for unique IDs
2017-03-10 03:57:19 -05:00
Alex Liebowitz a5feefe294 Use updated key name in file_list (was lbry_uri, now name) 2017-03-09 17:55:17 -05:00
Alex Liebowitz 3b428c394c Convert UI to use outpoints for unique IDs
This covers *almost* everything. There are a couple of places that
still use names or SD hashes because the APIs haven't been updated
yet.
2017-03-09 17:55:17 -05:00
Alex Liebowitz cba3ec3091 Add unique ID to JSON-RPC requests 2017-03-09 17:54:46 -05:00
Alex Liebowitz 1567a2de0a Revamp API wrapper code
- Refactoring throughout JSON-RPC, lbrynet and Lighthouse logic
 - Move JSON-RPC stuff into its own module
 - Add ability to directly call API methods on the lbry and lighthouse
   modules, e.g. lbry.file_list({name: 'what'})
 - New-style API calls use promises instead of callbacks.
 - Converted some lbrynet calls and all Lighthouse calls to use the new
   style
2017-03-09 17:54:46 -05:00
Alex Grintsvayg d633c2790c missed a few spots 2017-03-09 15:41:17 -05:00
Alex Grintsvayg 787fd0cc71 Bump version: 0.9.0rc15 → 0.9.0rc16 2017-03-09 15:30:36 -05:00
Alex Grintsvayg 2bd5d3faae add build.sh for teamcity 2017-03-09 13:33:06 -05:00
Alex Grintsvayg 48a8aab292 move build stuff into its own dir 2017-03-09 13:33:06 -05:00
Alex Grintsvayg 60ed5cce14 switch from lbry-web-ui to ui 2017-03-09 12:31:40 -05:00
Alex Grintsvayg 05d4a07312 Add 'ui/' from commit 'efc28c6644b7970403e3a11523cbf6e336eee52d'
git-subtree-dir: ui
git-subtree-mainline: 3886c7bf2c
git-subtree-split: efc28c6644
2017-03-09 12:11:46 -05:00
Alex Grintsvayg 3886c7bf2c remove lbry-web-ui submodule 2017-03-09 12:07:14 -05:00
Alex Grintsvayg a021d7b200 Bump version: 0.9.0rc14 → 0.9.0rc15 2017-03-09 10:37:45 -05:00
Alex Grintsvayg efc28c6644 Bump version: 0.9.0rc14 → 0.9.0rc15 2017-03-09 10:37:42 -05:00
Alex Grintsvayg f8a2a03ae8 fix lbryum release without tag 2017-03-09 10:37:35 -05:00
alexliebowitz addfbb2acf Merge pull request #194 from lbryio/developer-menu-tweaks
Quick tweaks to developer menu
2017-03-08 18:35:18 -05:00
Alex Liebowitz 3763108cb0 Quick tweaks to developer menu
- Fix variable name of default client setting
 - Correct key combo details in change log entry
2017-03-08 18:35:00 -05:00
alexliebowitz 2ff2d12d94 Merge pull request #193 from lbryio/developer-menu
Add option in Developer Settings to enable/disable developer menu
2017-03-08 18:24:13 -05:00
alexliebowitz b71382d276 Merge pull request #9 from lbryio/menubar
Add basic menubar
2017-03-08 18:23:04 -05:00
Alex Liebowitz 9c13a03ca6 Refactor and improve menubar
- Style fixes
 - Remove some items from Edit menu
 - Add app menu on macOS
 - Make Help point to help page instead of FAQ
 - Simplify menubar logic
2017-03-08 18:23:05 -05:00
Alex Liebowitz e9fdcd1094 Tune up logic for launching developer settings
- Don't bother to return false, event.preventDefault() is enough
 - Don't respond to cmd-shift, only ctrl-shift (cmd-shift was a
   workaround for OS X, but it works fine on OS X if we use
   onMouseUp instead of onClick)
2017-03-08 18:18:42 -05:00
Alex Liebowitz 302a1029bd Simplify developer menu logic 2017-03-08 18:14:43 -05:00
Jeremy Kauffman d78aab14e8 Merge pull request #192 from lbryio/open-reveal-electron
Open and reveal files using Electron instead of daemon
2017-03-08 17:12:30 -05:00
Jeremy Kauffman 34c7da88c9 ignore venv 2017-03-08 09:55:45 -05:00
Alex Liebowitz 694eb77b0b Add option in Developer Settings to enable/disable developer menu
Also added the ability to access Developer Settings by holding
Ctrl-Shift or Cmd-Shift and clicking the LBRY logo.

https://youtu.be/pXPXMxsXT28
2017-03-08 04:37:10 -05:00
Alex Liebowitz b0d7e6497a Add basic menubar
This includes a Developer menu that can be enabled or disabled through
the UI.
2017-03-08 04:05:18 -05:00
Alex Liebowitz a6979445cc Fix "search for your first download" link on My Files page 2017-03-08 02:37:06 -05:00
Alex Liebowitz fbc1d4fe8a Open and reveal files using Electron instead of daemon 2017-03-08 02:33:42 -05:00
Alex Grintsvayg 780f9dd7c5 Bump version: 0.9.0rc13 → 0.9.0rc14 2017-03-07 16:03:19 -05:00
Alex Grintsvayg 86c1210793 Bump version: 0.9.0rc13 → 0.9.0rc14 2017-03-07 16:03:17 -05:00
Alex Grintsvayg 8f417005b5 finally working 2017-03-07 15:46:06 -05:00
Alex Grintsvayg df33156ea4 Bump version: 0.9.0rc12 → 0.9.0rc13 2017-03-06 18:15:45 -05:00
Alex Grintsvayg 9ff1ffd53e Bump version: 0.9.0rc12 → 0.9.0rc13 2017-03-06 18:15:43 -05:00
Alex Grintsvayg bb26e66d05 another fix 2017-03-06 18:00:57 -05:00
Alex Grintsvayg 9b6146cf0d Bump version: 0.9.0rc11 → 0.9.0rc12 2017-03-06 17:47:50 -05:00
Alex Grintsvayg 4a4b575d93 Bump version: 0.9.0rc11 → 0.9.0rc12 2017-03-06 17:47:46 -05:00
Alex Grintsvayg ccfb56f717 fix 2017-03-06 17:47:10 -05:00
Alex Grintsvayg a3a3769222 Revert "Change submodules url to use ssh access"
This reverts commit 4386102ba3.

It turns out that Appveyor and Teamcity choke on SSH urls.
2017-03-06 17:40:21 -05:00
Alex Grintsvayg 3c100ecf20 minor 2017-03-06 17:17:03 -05:00
Alex Grintsvayg abbcbfefd7 move more requirements into req.txt 2017-03-06 11:52:34 -05:00
jobevers 33ffb322cc add script to reset each submodule 2017-03-06 10:34:37 -06:00
jobevers 5a2de41563 update submodules 2017-03-06 10:33:54 -06:00
jobevers 9ed1ba33be check if tag already exists 2017-03-06 10:33:17 -06:00
jobevers 86e52ffcb4 Add checks for token and lbryum part
Also adds better instructions and help items
2017-03-06 08:45:41 -06:00
jobevers 4bda5ac19a update submodules 2017-03-06 07:48:07 -06:00
jobevers 4386102ba3 Change submodules url to use ssh access
This change was requested by grin. This means that the general public
won't be able to pull the repo unless they have ssh access setup on
github.  I'd suggest switching back to https at some point and having
each person that wants to use ssh authentication change their local
repo to use ssh urls

`git config submodule.lbry.url git@github.com:lbryio/lbry.git`
2017-03-06 07:43:38 -06:00
Job Evers‐Meltzer ecec1ba5c8 Merge pull request #8 from lbryio/grin
grin's attempts at getting release.py working
2017-03-06 07:29:17 -06:00
Alex Grintsvayg 565764a629 fixing release so ppl like me can do it 2017-03-02 23:37:20 -05:00
Alex Grintsvayg 666fd5a490 renamed lbrynet to lbrynet-daemon, removed some unused code, lowercased daemon release name 2017-03-02 23:37:20 -05:00
Jeremy Kauffman c2f9352466 Merge pull request #189 from lbryio/refactor-publish-page
Refactor Publish page + make styling of form fields more flexible
2017-03-02 12:19:59 -05:00
Alex Liebowitz 714714cece Update change log for changes to form field styles and Publish page 2017-03-01 16:07:52 -05:00
Alex Liebowitz 0fc4712820 Convert Publish page to use new FormField and field label styles 2017-03-01 15:51:08 -05:00
Alex Liebowitz 828041449f Add style for form field labels 2017-03-01 15:51:08 -05:00
Alex Liebowitz a9563b80df Add a "text-number" form field type, and add styles for 2 others 2017-03-01 15:51:00 -05:00
alexliebowitz 3750acded1 Merge pull request #188 from lbryio/bug-fixes-3
Fix 2 links and remove some dead code
2017-03-01 15:27:37 -05:00
Alex Liebowitz 166db552b2 Fix two links to Discover page
Need the "index.html" for Electron
2017-03-01 15:26:03 -05:00
Alex Liebowitz c12b7645a7 Remove code for Linux close link
Not needed for Electron
2017-03-01 15:25:11 -05:00
Alex Liebowitz b81add382b Bump version: 0.9.0rc10 → 0.9.0rc11 2017-02-27 17:49:09 -05:00
Alex Liebowitz 1ccbbe721f Bump version: 0.9.0rc10 → 0.9.0rc11 2017-02-27 17:49:08 -05:00
Alex Liebowitz 2fc2ab0a84 update submodules 2017-02-27 17:45:09 -05:00
Alex Liebowitz d7b3b94197 Updating submodules 2017-02-27 17:26:45 -05:00
alexliebowitz a97cd34407 Merge pull request #187 from lbryio/fix-api-changes
Fix pending changes to lbry.io API
2017-02-27 17:15:00 -05:00
Jeremy Kauffman 049e007747 add missing var declaration 2017-02-27 17:15:15 -05:00
Jeremy Kauffman 7eb15a9ac6 fix pending changes to api.lbry.io 2017-02-27 17:15:06 -05:00
Jeremy Kauffman ae4a27c122 Merge pull request #186 from lbryio/modal-updates
Improvements to modals
2017-02-26 10:31:51 -05:00
Alex Liebowitz eaa0b7ba01 Convert error modal to use ExpandableModal component 2017-02-25 03:18:24 -05:00
Alex Liebowitz 08c4a5173a Add new ExpandableModal component 2017-02-25 02:56:57 -05:00
Alex Liebowitz ce33050fb3 Refactor Modal component 2017-02-25 02:55:05 -05:00
Alex Liebowitz 2b7c258cf3 Restore centering of modal headers 2017-02-25 01:51:33 -05:00
alexliebowitz 7bce94b10d Merge pull request #185 from lbryio/misc-bugfixes-2
Misc. bugfixes, round 2
2017-02-24 04:23:13 -05:00
Alex Liebowitz 041771f07b Publish: restore "you have not published anything yet" message 2017-02-24 04:22:44 -05:00
Alex Liebowitz b041d66ee4 Make menus close after you click an option 2017-02-24 04:14:02 -05:00
Alex Liebowitz e8da1d09f5 Fix some links 2017-02-24 03:57:24 -05:00
Alex Liebowitz 7172149bac Tweak padding on drop-down menus 2017-02-24 03:02:32 -05:00
Alex Liebowitz 23a4ad09de Fix "Component not mounted" error in FileActions 2017-02-24 02:30:32 -05:00
alexliebowitz 4494b8f117 Merge pull request #184 from lbryio/fix-my-files-sort
Fix sorting on My Files page
2017-02-24 00:38:43 -05:00
Alex Liebowitz d3666b119f My Files: Fix sorting comparison functions
- Properly distinguish between < and = cases
 - Make a copy before sorting (this wasn't causing problems; just good
   practice)
2017-02-24 00:38:55 -05:00
alexliebowitz 4ac007bbf6 Merge pull request #183 from lbryio/fix-web-ui-version
Restore UI version on Help page
2017-02-23 23:37:10 -05:00
Alex Liebowitz e058470a70 Restore UI version on Help page 2017-02-23 23:36:19 -05:00
jobevers a91f987cfa specify requirements for daemon in this repo 2017-02-23 14:17:53 -06:00
jobevers 02dd08a72f allow lbrynet-daemon executable to be configured 2017-02-23 14:15:09 -06:00
jobevers 762712ed69 whitespace 2017-02-23 13:01:23 -06:00
jobevers 8a42412096 cleanup app comments 2017-02-23 12:46:25 -06:00
jobevers 6b7dca8bb1 switch from lbrynet-daemon to lbry repo 2017-02-23 12:26:31 -06:00
jobevers 0c431b0947 add tag to zip filename 2017-02-23 12:24:54 -06:00
jobevers e69e0f0c54 flailing again - trying to upload from stdin 2017-02-23 12:11:05 -06:00
jobevers 250ed2bd6a the last thing worked, now just replace json with file 2017-02-23 11:45:23 -06:00
jobevers 4ad978f3ef still flailing - what if we try to post just json 2017-02-23 11:21:46 -06:00
jobevers c05e85d0f8 still flailing - try empty name 2017-02-23 10:46:36 -06:00
jobevers 0c0b85aa7a still flailing - try lbry repo 2017-02-23 10:17:25 -06:00
jobevers 518d136d8e still flailing - try a different file 2017-02-23 09:34:30 -06:00
jobevers 318160b328 still flailing - try a random name 2017-02-23 09:16:10 -06:00
jobevers 478ca98b0e still flailing - try both requests and curl 2017-02-23 08:51:59 -06:00
jobevers 2e8c8b95c8 still flailing - use a random name 2017-02-23 08:32:28 -06:00
jobevers 6fb83f8da4 still flailing - use a simple name 2017-02-23 08:17:33 -06:00
Jeremy Kauffman 7daeb610a2 Merge pull request #181 from lbryio/always-show-cancel
On load screen, always show Cancel link if a previous page is available
2017-02-23 09:15:48 -05:00
Jeremy Kauffman 4473536626 Merge branch 'development' into always-show-cancel 2017-02-23 09:15:36 -05:00
Alex Liebowitz 2c0b47edf2 On load screen, always show Cancel link if a previous page is available
Before, it was only showing if a load attempt timed out, and would show
even if there was no previous page to go back to.
2017-02-23 04:04:09 -05:00
alexliebowitz 129fa5aaa7 Merge pull request #182 from lbryio/fix-balance-check
When user hits "Watch", don't check balance if download already started
2017-02-23 03:56:31 -05:00
Alex Liebowitz fb421cdd79 When user hits "Watch", don't check balance if download already started 2017-02-23 03:56:50 -05:00
alexliebowitz 94768bb086 Merge pull request #180 from lbryio/back-button-2
Re-integrate Back button on Watch page
2017-02-23 02:50:14 -05:00
Alex Liebowitz 756a04a368 Watch: fix back button flickering on mouseover 2017-02-23 02:50:53 -05:00
Alex Liebowitz 889ef01782 Watch: Update Back to LBRY button for Electron 2017-02-23 02:50:53 -05:00
Jeremy Kauffman 1ccc7fd047 change bg color 2017-02-23 02:24:53 -05:00
Alex Liebowitz 7f2358fdbb Add Back button to Watch page 2017-02-23 02:20:52 -05:00
alexliebowitz a24c6ed281 Merge pull request #179 from lbryio/bugfixes-feb-2017
Misc. bug fixes
2017-02-23 01:46:58 -05:00
Alex Liebowitz b8103bce21 Remove incorrectly formatted comment in app.js 2017-02-23 01:36:44 -05:00
Alex Liebowitz b18063584a Add link styles back to "Try Anyway" link 2017-02-23 01:28:58 -05:00
Alex Liebowitz 0266523a5c Fix wrong prop types for metadata 2017-02-23 01:14:48 -05:00
jobevers 26c077dd79 still flailing - remove uri expansion 2017-02-22 23:14:40 -06:00
jobevers be97368123 still flailing 2017-02-22 23:05:45 -06:00
jobevers a11949608a still flailing 2017-02-22 22:53:35 -06:00
jobevers 26391cb935 flailing, lets try print some stuff 2017-02-22 18:40:39 -06:00
jobevers 4688e92aab flailing, lets try reversing the uploads 2017-02-22 17:00:19 -06:00
jobevers 498534a61e not sure what else to do, so retrying curl 2017-02-22 16:47:30 -06:00
jobevers 01e19a457b Bump version: 0.9.0rc9 → 0.9.0rc10 2017-02-22 16:14:44 -06:00
jobevers 9a36270d3e Bump version: 0.9.0rc9 → 0.9.0rc10 2017-02-22 16:14:42 -06:00
jobevers 105f234d2c update submodules 2017-02-22 15:49:14 -06:00
jobevers 18cd7608e3 revert accidental unicode testing 2017-02-22 15:49:00 -06:00
Job Evers-Meltzer c1ef161972 need absolute paths for electron 2017-02-22 15:41:39 -06:00
jobevers 9e7ca7c9f8 more curl debugging 2017-02-22 15:24:19 -06:00
jobevers 0c77644861 more curl debugging 2017-02-22 15:11:52 -06:00
jobevers 26f5d08567 non-version tags don't break the build 2017-02-22 14:54:09 -06:00
jobevers d1c308181b add debugging info to curl 2017-02-22 13:33:37 -06:00
jobevers ed053552c8 update submodules 2017-02-22 13:14:47 -06:00
jobevers 75cf359e6f fix section headers on changelog 2017-02-22 13:14:21 -06:00
jobevers c03eb3b736 fix template for changelog 2017-02-22 13:12:55 -06:00
jobevers 7d1bfb4c35 update submodules 2017-02-22 13:08:45 -06:00
jobevers 01955c312c add changelog so it can be committed 2017-02-22 13:06:38 -06:00
jobevers b53c8e11d3 update changelog 2017-02-22 12:58:15 -06:00
jobevers be9d99f482 Bump version: 0.9.0rc8 → 0.9.0rc9 2017-02-22 12:51:14 -06:00
jobevers 98ba69c0d1 Bump version: 0.9.0rc8 → 0.9.0rc9 2017-02-22 12:51:12 -06:00
jobevers 5c1803aaf8 Misc release imrovements
* force submodule updates
* missing changelog is now only a warning
* allow push to be skipped
2017-02-22 12:31:03 -06:00
jobevers 9504be7146 add more logging 2017-02-22 11:50:39 -06:00
jobevers eda71a50ff sync submodules to head of branch 2017-02-22 11:45:44 -06:00
jobevers 8234d6cc25 Misc improvements to release script 2017-02-22 11:21:21 -06:00
jobevers 605c0eb8ab try parsing changelog 2017-02-21 22:29:23 -06:00
jobevers 4f66a3a6a1 stop using bumpversion on changelog 2017-02-21 22:20:50 -06:00
jobevers d19e436d04 update submodules 2017-02-21 21:05:33 -06:00
jobevers f64e3d9356 update version to 0.9.0rc8 2017-02-21 21:04:52 -06:00
jobevers c159f214ab logging.basicConfig needs a kwarg 2017-02-21 16:53:44 -06:00
jobevers 48b665a3be update lbry 2017-02-21 15:30:59 -06:00
jobevers 3d46983500 update lbry submodule 2017-02-21 15:16:16 -06:00
jobevers 05f94a95ed move zipping the daemon to separate script 2017-02-21 15:13:41 -06:00
jobevers 135742c87e Bump version: 0.9.0rc7 → 0.9.0rc8 2017-02-21 13:57:19 -06:00
jobevers c7cea9c94f handle case where lbry doesn't have changes 2017-02-21 13:48:29 -06:00
jobevers 77ce04b377 warn if bumpversion isn't installed 2017-02-21 13:33:11 -06:00
jobevers e28fab0696 warn if bumpversion isn't installed 2017-02-21 13:32:21 -06:00
Job Evers‐Meltzer b5fcc126d8 Merge pull request #5 from lbryio/test-electron-release
Add release script
2017-02-21 13:28:00 -06:00
jobevers a9b32bac9f update submodules to master and development branches 2017-02-21 13:24:10 -06:00
Job Evers‐Meltzer fe954ed17d Merge pull request #176 from lbryio/electron-2
Electron 2
2017-02-21 12:59:00 -06:00
jobevers b03f652d5e add check for GH_TOKEN 2017-02-21 12:13:44 -06:00
Jeremy Kauffman 48e9226cac better intro 2017-02-21 13:12:21 -05:00
Jeremy Kauffman 4a68835bba minor readme changes 2017-02-21 13:10:20 -05:00
jobevers 25febd1880 Merge remote-tracking branch 'origin/master' into test-electron-release 2017-02-21 11:25:34 -06:00
jobevers 5d55af0a77 update submodules 2017-02-21 11:07:14 -06:00
jobevers 55b2465125 update bumpversion 2017-02-21 08:36:29 -06:00
jobevers b65910f441 revert to detecting the OS client side for update url 2017-02-21 08:36:29 -06:00
jobevers 27b85e2301 Improve updates download
- create progress bar modal
- trigger app shutdown on successful download
- move update url logic to the website
2017-02-21 08:36:29 -06:00
alexliebowitz 1ace1b32a8 Merge pull request #177 from lbryio/fix-button-padding
Fix several problems with margin and padding on buttons
2017-02-21 01:32:43 -05:00
Alex Liebowitz fb75bc19b4 Fix several problems with margin and padding on buttons
- Buttons on dialogs were not getting width and height
 - Tooltip buttons were getting standard button spacing when they
   should be closer to their corresponding menu button
 - Several buttons and other elements had containers just to get
   spacing in button sets; rename button-container class to
   button-set-item and apply directly to elements where possible.
2017-02-21 01:27:08 -05:00
Alex Liebowitz 321fbfbc17 Change Watch page to recognize "stopped" status as playable 2017-02-20 23:09:04 -06:00
jobevers 2f80c86647 add changelog 2017-02-20 23:06:55 -06:00
jobevers c7a57d6e3f change watch for electron 2017-02-20 23:06:55 -06:00
jobevers 1fc8f21824 background image isn't actually used on load screen 2017-02-20 23:06:55 -06:00
jobevers b8b43ec587 change path for images 2017-02-20 23:06:55 -06:00
jobevers 4771682ee0 Use local file path for publishing instead of uploading 2017-02-20 23:06:55 -06:00
Job Evers-Meltzer 33395ccb33 Add a dev build configuration
Add caching and a faster source map for the dev builds.
This brings the rebuild time down to about 500ms for me.

dev build now puts the bundle in the electron app/js directory
so that the app can be automatically reloaded
2017-02-20 23:06:55 -06:00
jobevers 724742f0db revert - build into the dist folder 2017-02-20 23:06:55 -06:00
Job Evers-Meltzer 51ca2f8a92 add shutdown msg html pages 2017-02-20 23:06:55 -06:00
Job Evers-Meltzer 9979315d6a only show the splash screen on initial load 2017-02-20 23:06:55 -06:00
Job Evers-Meltzer 4ee729fb81 need full link for electron 2017-02-20 23:06:55 -06:00
Job Evers-Meltzer 3c660c813b move build to electron folder 2017-02-20 23:06:55 -06:00
Job Evers-Meltzer 1ab1684b2d add html5 video playback 2017-02-20 23:06:55 -06:00
alexliebowitz c5da3de3c1 Merge pull request #175 from lbryio/revert-174-merge-development-electron
Revert "Merge updates from development into Electron branch"
2017-02-20 23:16:15 -05:00
alexliebowitz 4cc1a5355f Revert "Merge updates from development into Electron branch" 2017-02-20 23:15:17 -05:00
alexliebowitz f5c3f5d080 Merge pull request #174 from lbryio/merge-development-electron
Merge updates from development into Electron branch
2017-02-20 23:09:54 -05:00
jobevers 4e431dc6fd add release script 2017-02-20 21:58:29 -06:00
Alex Liebowitz ae9e474fdc Merge branch 'development' into electron 2017-02-20 22:56:25 -05:00
jobevers 445033f34a have to search for draft releases 2017-02-20 21:55:53 -06:00
alexliebowitz e291efcefb Merge pull request #173 from lbryio/add-version-explanation
Add explanation of version format to CHANGELOG.md
2017-02-20 22:30:53 -05:00
Alex Liebowitz c12ae58089 Add explanation of version format to CHANGELOG.md 2017-02-20 22:30:16 -05:00
jobevers c0b34fe119 fix appveyor.yml 2017-02-20 21:15:16 -06:00
jobevers 47c88a7604 Bump version: 0.9.0rc6 → 0.9.0rc7 2017-02-20 21:12:39 -06:00
jobevers 6a95a37266 add lbrynet-daemon to release process 2017-02-20 21:00:54 -06:00
jobevers de5ecbe4a1 more version stuff 2017-02-20 19:24:08 -06:00
jobevers 7b13e8e65a update version 2017-02-20 19:20:29 -06:00
jobevers 2a94a56765 update lbryum 2017-02-20 18:36:05 -06:00
jobevers abf1e49abe update lbry 2017-02-20 18:22:28 -06:00
jobevers bd1bd96e5e working on a release process 2017-02-20 16:31:17 -06:00
jobevers a973c59051 update bumpversion 2017-02-20 16:04:24 -06:00
jobevers 980b1f710c update readme 2017-02-20 14:50:06 -06:00
jobevers 4e2e2abe0f update submodules 2017-02-20 13:29:51 -06:00
jobevers 0005280cb6 revert to detecting the OS client side for update url 2017-02-20 13:28:59 -06:00
jobevers f09bf620b2 allow render process to trigger a shutdown 2017-02-20 12:59:03 -06:00
jobevers 86351d1736 Improve updates download
- create progress bar modal
- trigger app shutdown on successful download
- move update url logic to the website
2017-02-20 12:56:15 -06:00
Alex Liebowitz f93ff2c1d7 Merge branch 'master' into development 2017-02-20 01:14:57 -05:00
Alex Liebowitz a114f81543 Merge branch 'master' into development 2017-02-20 01:09:35 -05:00
alexliebowitz ab31666f4e Merge pull request #172 from lbryio/availability-check-fixes
Fix two problems with displaying unavailable files
2017-02-19 18:49:09 -05:00
Alex Liebowitz 1f4ec440df Fix error in FileTile when metadata is unavailable 2017-02-19 18:47:40 -05:00
Alex Liebowitz bb26b5372a If get_availability gives an error, treat the stream as unavailable 2017-02-19 18:47:37 -05:00
Alex Grintsvayg fbb11d78c7 Revert "Revert "Use get_availability to determine stream availability""
This reverts commit 24e43ba42e.

Ok, that wasn't it.
2017-02-18 09:59:13 -05:00
Alex Grintsvayg 24e43ba42e Revert "Use get_availability to determine stream availability"
This reverts commit c209c1f84f.

This commit may have broken downloading/watching by never showing the download button.
Let's see if reverting it fixes the issue. --grin
2017-02-18 09:53:05 -05:00
alexliebowitz d0a730f29f Merge pull request #170 from lbryio/use-get-availability
Use get_availability to determine stream availability
2017-02-17 17:56:54 -05:00
Alex Liebowitz c209c1f84f Use get_availability to determine stream availability
More info than peer_count, and now has built-in timeout
2017-02-17 17:54:45 -05:00
alexliebowitz d904744a31 Merge pull request #169 from lbryio/update-publish-poll
Update how Publish page polls for file appearing in file manager
2017-02-17 15:45:33 -05:00
Alex Liebowitz fd0439bf0b Update requirements.txt for My Files publish polling changes 2017-02-17 15:46:00 -05:00
Alex Liebowitz c9a171ae28 Update how Publish page polls for file appearing in file manager
Formerly polled the full list of files; now looks up the specific file
by name.
2017-02-17 15:45:52 -05:00
jobevers 0f65170361 change appveyor artifact 2017-02-17 14:13:55 -06:00
jobevers 2af80c69ae try building exe installer on windows 2017-02-17 14:06:57 -06:00
jobevers 7b1dc2c5a0 update submodules 2017-02-17 09:47:08 -06:00
jobevers f6a28df636 better update handling 2017-02-16 21:26:57 -06:00
jobevers 5b454a3837 download updates using node 2017-02-16 21:26:29 -06:00
jobevers 592a48e412 remove system label on release
the label was useful for lbrynet-daemon because there each
file was identical.  Now that the filenames are unique, we can
remove it.
2017-02-16 15:35:31 -06:00
jobevers 5b95a3ab9d update submodules 2017-02-16 14:18:53 -06:00
alexliebowitz 337cf5a426 Merge pull request #164 from lbryio/featured_names_api
Use remote source for featured names
2017-02-16 13:34:28 -05:00
Jeremy Kauffman 5099fe3ab2 use remote api to fetch featured names 2017-02-16 13:30:57 -05:00
jobevers 48cfdb1ab8 sync lbrynet and client versions 2017-02-16 12:19:35 -06:00
Jeremy Kauffman 339f1ac607 Merge pull request #158 from lbryio/video-back-button
Add Back button to Watch page (WIP)
2017-02-16 09:28:14 -05:00
Alex Liebowitz 6059c3bebb Watch: Update Back to LBRY button for Electron 2017-02-16 02:41:24 -05:00
Jeremy Kauffman 471bf2fb10 change bg color 2017-02-16 02:19:41 -05:00
Alex Liebowitz b6982854d8 Add Back button to Watch page 2017-02-16 02:19:41 -05:00
Alex Liebowitz 056470b47c Convert to HTML5 video player (temp) 2017-02-16 02:19:41 -05:00
jobevers 7c7e3a97e8 add changelog 2017-02-16 02:19:41 -05:00
Alex Liebowitz 3252d29d9e Watch: correct status check logic 2017-02-16 02:19:41 -05:00
Alex Liebowitz 75b28f998c Change Watch page to recognize "stopped" status as playable 2017-02-16 02:19:41 -05:00
alexliebowitz d628b9bda9 Merge pull request #168 from lbryio/fix-status-check-logic
Correct status check logic on Watch page
2017-02-16 01:29:36 -05:00
Alex Liebowitz 38fdcd1e1b Watch: correct status check logic 2017-02-16 01:01:38 -05:00
Alex Liebowitz ee44ce5001 Watch: correct status check logic 2017-02-16 00:19:10 -05:00
jobevers 4763d29a4c set the build type 2017-02-15 18:50:38 -06:00
Alex Liebowitz f070baf914 Watch: correct status check to look for "stopped" instead of "paused" 2017-02-15 17:24:30 -05:00
alexliebowitz 49720be076 Merge pull request #166 from lbryio/fix-watch-page-status-check
Fix status check on Watch page
2017-02-15 17:19:35 -05:00
Alex Liebowitz 77830d1fb2 Change Watch page to recognize "stopped" status as playable 2017-02-15 17:19:47 -05:00
jobevers 9a21135223 another edit for testing 2017-02-15 15:50:16 -06:00
Alex Liebowitz 5292b069eb Change Watch page to recognize "paused" status as playable 2017-02-15 16:46:16 -05:00
jobevers 3e49fd3758 dummy commit for testing release 2017-02-15 14:38:37 -06:00
jobevers 333d639822 push artifact to github release 2017-02-15 13:17:48 -06:00
jobevers 6dde280170 update lbry submodule 2017-02-15 13:14:58 -06:00
Job Evers‐Meltzer dd43b8713f Merge pull request #1 from lbryio/appveyor
Build on Appveyor
2017-02-15 13:11:49 -06:00
jobevers 414737eb65 update submodules 2017-02-15 11:29:04 -06:00
jobevers 4068fb5fd8 add changelog 2017-02-15 11:28:15 -06:00
jobevers 1a83058ed1 only build commits on PRs once 2017-02-15 10:34:44 -06:00
jobevers eebe8d9b37 Get electron working on windows 2017-02-15 10:30:24 -06:00
jobevers 9c89652d46 change watch for electron 2017-02-14 17:12:37 -06:00
jobevers 93effcbb78 background image isn't actually used on load screen 2017-02-14 17:12:37 -06:00
jobevers 1017977251 change path for images 2017-02-14 17:12:37 -06:00
jobevers 06aba33300 Use local file path for publishing instead of uploading 2017-02-14 17:12:37 -06:00
Job Evers-Meltzer 3394f964dd Add a dev build configuration
Add caching and a faster source map for the dev builds.
This brings the rebuild time down to about 500ms for me.

dev build now puts the bundle in the electron app/js directory
so that the app can be automatically reloaded
2017-02-14 17:12:27 -06:00
jobevers 4ba671d4d6 revert - build into the dist folder 2017-02-14 17:11:07 -06:00
Job Evers-Meltzer 557ee9cb91 add shutdown msg html pages 2017-02-14 17:11:07 -06:00
Job Evers-Meltzer 24d339b583 only show the splash screen on initial load 2017-02-14 17:11:07 -06:00
Job Evers-Meltzer 18108f12ab need full link for electron 2017-02-14 17:11:07 -06:00
Job Evers-Meltzer 728125c999 move build to electron folder 2017-02-14 17:11:07 -06:00
Job Evers-Meltzer e95f1b8163 add html5 video playback 2017-02-14 17:11:07 -06:00
Job Evers-Meltzer 0ecf492a20 need absolute paths for electron 2017-02-14 17:11:06 -06:00
Jeremy Kauffman 227e23653d Merge pull request #165 from lbryio/fix-clamp-js-firefox
Fix line clamping on Firefox
2017-02-10 12:13:07 -05:00
jobevers 23da217634 update submodules 2017-02-09 22:48:36 -06:00
jobevers 28f60cef08 fix response when a release already exists 2017-02-09 20:52:17 -06:00
jobevers 7ea447ef35 use git describe as version 2017-02-09 20:09:31 -06:00
jobevers 780c742407 better error message 2017-02-09 19:42:28 -06:00
jobevers fa2a7fd4c9 bug fixes 2017-02-09 19:16:10 -06:00
jobevers 885e0d210c go back to using my publish script 2017-02-09 18:54:42 -06:00
jobevers a8e3313b05 go back to using my publish script 2017-02-09 18:53:07 -06:00
alexliebowitz 6748534cd1 Merge pull request #162 from lbryio/add-changelog
Add changelog and check
2017-02-09 19:44:06 -05:00
jobevers 07221b4811 while testing, always release 2017-02-09 18:18:03 -06:00
jobevers 60c56170e9 they're making me set an author 2017-02-09 18:17:09 -06:00
Alex Liebowitz bd922f0f45 Make TruncatedText elements display: inline-block
Needed because clamp.js sets a height on browsers that don't have
native clamping.
2017-02-09 19:14:08 -05:00
Alex Liebowitz c8754e4351 Round up line heights in TruncatedText (workaround for Clamp.js bug)
Clamp.js doesn't handle fractional-pixel line heights reliably. It
always rounds down the line height when calculating the target height
for the element, and you end up with one less line than you asked for.
2017-02-09 19:14:06 -05:00
Alex Liebowitz e6f473e275 Switch to maintained fork of clamp.js 2017-02-09 19:11:25 -05:00
jobevers 8357e33977 build deb 2017-02-09 17:48:51 -06:00
jobevers 2e407ecaa1 testing artifact publishing 2017-02-09 17:32:02 -06:00
jobevers 0949d36926 cleanup readme 2017-02-09 16:07:16 -06:00
jobevers 13794a6aa8 update submodule 2017-02-08 15:16:55 -06:00
jobevers 13487b6725 Publish works. update submodules 2017-02-08 14:04:30 -06:00
jobevers 09a1120895 change lbrynet process signature 2017-02-08 14:04:13 -06:00
jobevers cd0840839b update submodules 2017-02-08 10:34:27 -06:00
jobevers 7760b83e74 update lbry-web-ui 2017-02-08 10:27:39 -06:00
jobevers 95e16e444e use local installation of electron 2017-02-08 10:20:34 -06:00
jobevers 1838ac3997 more logging around daemon process management 2017-02-08 10:20:19 -06:00
jobevers 820060eb44 try installing rvm earlier to get around https://github.com/travis-ci/travis-ci/issues/5092 2017-02-08 00:31:21 -06:00
jobevers cea2fc6e73 build PRs and master/dev branches 2017-02-08 00:28:44 -06:00
jobevers e01bd6c1e3 combining languages on travis is too hard 2017-02-08 00:22:42 -06:00
jobevers 7ae5bf97bd why is travis a pain 2017-02-08 00:12:08 -06:00
jobevers 5a86b68893 had boolean logic backwards 2017-02-08 00:05:24 -06:00
jobevers 1c2eab4b40 install and use a more recent ruby 2017-02-08 00:02:58 -06:00
jobevers 96ace874ce see what rubies are available 2017-02-07 23:59:27 -06:00
jobevers 4a060f120a add changelog and check 2017-02-07 23:56:25 -06:00
alexliebowitz 6ee45e2935 Merge pull request #161 from lbryio/development
Merge development into master
2017-02-06 16:40:02 -05:00
Alex Grin ca5540da4b Merge pull request #159 from reillysmith/patch-3
Update discover.js
2017-02-03 12:20:53 -05:00
reillysmith b1c320264e Update discover.js 2017-02-03 09:11:36 -08:00
alexliebowitz 181d267bd2 Merge pull request #143 from lbryio/development
Release
2017-02-01 14:11:30 -05:00
Alex Liebowitz ac5a588490 Referral: Fix ARIA label on "lookup failed" modal 2017-02-01 04:27:36 -05:00
alexliebowitz 04fe213c6c Merge pull request #155 from lbryio/fix-space-claim-code-page
Fix missing space in confirm modal on Claim Code page
2017-02-01 04:17:51 -05:00
Alex Liebowitz fc6cd35025 Claim Code: fix missing space in confirm modal 2017-02-01 04:16:32 -05:00
alexliebowitz 7e77f52976 Merge pull request #154 from lbryio/remove-publish-timeout
Don't time out on Publish page
2017-02-01 04:11:18 -05:00
Alex Liebowitz deb67e6556 Don't time out on Publish page
lbry.getFileInfoWhenListed() now only times out if a timeout callback
is provided.
2017-02-01 04:11:16 -05:00
alexliebowitz ea1a10860e Merge pull request #153 from lbryio/fix-uris-file-tile
Fix display of LBRY URIs in FileTile
2017-02-01 03:43:12 -05:00
Alex Liebowitz 4f9e1a7c46 Fix display of LBRY URIs in FileTile 2017-02-01 03:43:19 -05:00
alexliebowitz edd92c3c89 Merge pull request #152 from lbryio/fix-load-screen-colors
Fix colors on loading screen
2017-02-01 03:28:07 -05:00
Alex Liebowitz df1c6ed97c Fix colors on loading screen 2017-02-01 03:27:18 -05:00
alexliebowitz fe5193ad84 Merge pull request #151 from lbryio/fix-watch-screen-debug
Remove debug logic in load_screen.js
2017-01-31 13:46:24 -05:00
Alex Liebowitz e7209aa19a Remove debug logic in load_screen.js
There were some !s in there that were only for debugging
2017-01-31 13:45:36 -05:00
Jeremy Kauffman c2c45fc53e Merge pull request #150 from lbryio/watch-screen-cancel-link
Add Cancel link when loading screen is lagging
2017-01-31 10:11:36 -08:00
Alex Liebowitz 810b94fa77 Add Cancel link when loading screen is lagging 2017-01-31 02:17:53 -05:00
Alex Liebowitz 34d04255de Convert load screens to use CSS 2017-01-31 02:06:53 -05:00
Job Evers-Meltzer 1fcca83031 make spec file more generalized 2017-01-30 23:14:18 +00:00
Jeremy Kauffman e97a81e7d5 Merge pull request #148 from lbryio/published-file-tile-fixes
Fix bugs in display of published files
2017-01-30 12:26:39 -05:00
Jeremy Kauffman c1922d097e Merge pull request #149 from lbryio/show-page-file-actions
Update Show page to use new FileActions component
2017-01-30 12:26:17 -05:00
Alex Liebowitz c3220bcb99 Update Show page to use new FileActions component 2017-01-30 03:46:37 -05:00
Alex Liebowitz 042c093666 Don't show "file not available" message if user has the file 2017-01-30 03:24:58 -05:00
Alex Liebowitz eba0ac6842 Indicate files pending confirmation in FileTile 2017-01-30 03:24:57 -05:00
jobevers 166afe2789 linux build works on my machine 2017-01-26 20:36:05 -06:00
jobevers 90b4a5779c need to install app dependencies too 2017-01-26 19:50:57 -06:00
jobevers 3a7eb5381e install pyinstaller in the venv 2017-01-26 19:42:10 -06:00
jobevers 05432b931b fixes 2017-01-26 19:38:52 -06:00
jobevers b62fffe626 replace electron-packager with electron-builder 2017-01-26 19:03:14 -06:00
jobevers 8ef958abf6 cleanup ignores 2017-01-26 18:23:34 -06:00
jobevers 2cfa4c5301 more updtes to build process 2017-01-26 18:21:53 -06:00
jobevers 1a98a36b86 trying electron-builder 2017-01-26 17:21:06 -06:00
jobevers efa36d9160 build lbryum from source; sign app 2017-01-26 16:27:07 -06:00
jobevers 6bd93e0b8d bundle lbryum files 2017-01-26 12:30:02 -06:00
alexliebowitz fe62548637 Merge pull request #146 from lbryio/fix-text-link-styles
Fix styling of normal text links
2017-01-26 02:41:40 -05:00
Jeremy Kauffman b58748cfdb Merge pull request #147 from lbryio/fix-my-claim-detection-publish
On Publish page, fix detection of the user's own claim on a name
2017-01-25 09:02:27 -05:00
jobevers 71efa32edd move dmg to root 2017-01-25 01:41:12 -05:00
jobevers 091bc976b0 fixups 2017-01-25 01:35:28 -05:00
jobevers 19192b6300 check if process exists; add icons to build 2017-01-25 01:24:04 -05:00
Alex Liebowitz 7ac9c599de Publish: fix detection of the user's own claim on a name 2017-01-25 00:43:01 -05:00
Alex Liebowitz 376bbed97c Fix styling of normal text links
Due to recent changes, they were appearing as text buttons
2017-01-24 22:39:36 -05:00
Jeremy Kauffman 51142dfc53 Merge pull request #145 from lbryio/fix-cost-error
Don't show error message if price for a file can't be retrieved
2017-01-24 19:53:46 -05:00
Alex Liebowitz 423d4fa47b Don't show error message if price for a file can't be retrieved
On search results pages, stream_cost_estimate is called on every
result. If there's some problem in the daemon that affects all calls
to stream_cost_estimate, this can lead to 25 error boxes. Better to
just suppress the error and not display a price.

Also switched to the new name for the daemon method (get_cost_est ->
stream_cost_estimate)
2017-01-24 19:29:47 -05:00
alexliebowitz 2900f6e14d Merge pull request #144 from lbryio/fix-webpack-requirement
Update Webpack preset list
2017-01-24 19:26:06 -05:00
Alex Liebowitz b3ee6a837f Update Webpack preset list
For now we only need the Stage 2 Babel plugin, not stage 3
2017-01-24 19:25:23 -05:00
Jeremy Kauffman d95e04104f Merge pull request #142 from lbryio/unavailable-content-bugfixes
Unavailable content bugfixes
2017-01-24 09:57:29 -05:00
Alex Liebowitz 2286fc992e Add z-index to menus
Prevents elements with position stacking on top
2017-01-23 23:52:20 -05:00
Alex Liebowitz 0af15751f7 Fix typo in "file unavailable" message
Missing period
2017-01-23 23:52:07 -05:00
Alex Liebowitz f3a501cf14 Add temporary timeout for blob peer list lookups
Returns an empty array for the peer list if the API call takes more
than 6 seconds. If the lookup takes that long, there are almost never
never any peers.
2017-01-23 23:50:15 -05:00
Alex Liebowitz 3c339492a0 Use new API method name in lbry.getPeersForBlobHash() 2017-01-23 23:41:38 -05:00
Alex Liebowitz 13886f4156 Fix padding issue with download progress bar
Label was not wrapped in span, so the wrong styles were applying
2017-01-23 23:06:32 -05:00
Alex Liebowitz ef393ca360 Simplify content wrapping logic in Link 2017-01-23 19:22:25 -05:00
Alex Liebowitz b2fd38a1c8 Reduce padding around text buttons
After moving the padding to the content of buttons, we ended up with
extra padding around text buttons that wasn't there before. The
"Download" bar doesn't look great with no padding at all, but it needs
to match the text buttons so the text doesn't jump to the right when
it switches from "Download" (text button) to "Connecting" (progress bar).

So we pad both text buttons and progress bars just a little bit, less
than a standard button but enough that progress bars look OK.
2017-01-23 18:58:31 -05:00
Alex Grin c66508266c Update README.md 2017-01-23 16:23:35 -05:00
Alex Grin 78fde523ee Update README.md 2017-01-23 16:23:07 -05:00
Jeremy Kauffman 10163c53cc Clarify setup 2017-01-23 16:18:04 -05:00
alexliebowitz f3c951187d Merge pull request #141 from lbryio/hide-unavailable-files
Add setting to hide unavailable content
2017-01-22 01:56:13 -05:00
Jeremy Kauffman 44412437ce unavailable content cleanup 2017-01-21 16:31:41 -05:00
Alex Liebowitz e5b4aaf175 Revamp "file not available" message
- Don't fade out tile
 - Display message in place of buttons with an option to bypass the
   message
 - Factor out message into its own FileUnavailableMessage component
2017-01-21 01:52:35 -05:00
Alex Liebowitz 42517587ee Add FileUnavailableMessage component 2017-01-21 01:48:30 -05:00
Alex Liebowitz 3e33b5a2e8 Pass sdHash into FileTile on Discover page 2017-01-20 23:59:07 -05:00
Alex Liebowitz 9b68f71199 Always use local availability checks (not Lighthouse) 2017-01-20 23:55:49 -05:00
Alex Liebowitz 78176e6b0a In FileTile, show a message when a file is unavailable 2017-01-20 11:44:08 -05:00
Alex Liebowitz 9a421941fe Move styles for ToolTip and ToolTipLink into CSS 2017-01-20 11:38:23 -05:00
Alex Liebowitz 87e6713262 Make unavailable content visible by default 2017-01-20 08:54:36 -05:00
Alex Liebowitz 1c19537883 Clean up prop passing from FileTile to FileTileStream 2017-01-20 08:49:47 -05:00
Alex Liebowitz 9d0aa0d8da Add setting to hide unavailable content 2017-01-19 05:05:57 -05:00
Job Evers-Meltzer 09b9bacc35 use electron branch of web-ui 2017-01-19 03:51:54 -06:00
Alex Grintsvayg a14414eb2f blah 2017-01-18 16:44:54 -05:00
Alex Grintsvayg 64315a329d dont let venv errors stop us 2017-01-18 16:41:49 -05:00
Alex Grintsvayg f2453b7d73 still failing 2017-01-18 16:39:21 -05:00
Alex Grintsvayg 48d667b655 rm venv before builds 2017-01-18 16:35:06 -05:00
Alex Grintsvayg 059fd11b94 add virtualenv 2017-01-18 16:33:27 -05:00
Alex Grintsvayg b1ce329e8e need python2.7-dev always 2017-01-18 16:08:27 -05:00
Alex Grintsvayg 4cdf12a169 set git user/email if its not set 2017-01-18 15:57:34 -05:00
Alex Grintsvayg 81be65703a bump 2017-01-18 15:34:28 -05:00
Alex Grintsvayg 18df362458 add build dependencies, better tarballing 2017-01-18 14:43:35 -05:00
Alex Grintsvayg 030d9e5c65 tarball 2017-01-18 13:03:10 -05:00
Alex Grintsvayg a0ad78b037 lets do just osx and linux 2017-01-18 12:31:16 -05:00
Alex Grintsvayg 4585ce33bd in teamcity, create packages for all platforms 2017-01-18 12:11:04 -05:00
Alex Grintsvayg 805e1a2fca add electron-packager to build 2017-01-18 12:02:35 -05:00
Alex Grintsvayg 189dde38bc cp on osx is dumb 2017-01-18 11:48:51 -05:00
Alex Grintsvayg ebfdabedf4 spruce up build.sh 2017-01-18 11:40:01 -05:00
Job Evers-Meltzer cafe34cbdc better startup and process management 2017-01-18 10:32:10 -06:00
Alex Grin c6104f9a21 test2 2017-01-18 11:22:46 -05:00
Job Evers-Meltzer 2aa10261d9 Improve startup checking
Before this fix, if the daemon wasn't accepting connections
the UI would get an error and then be stuck on the loading screen.

We now check if the daemon is accepting connections first, and then
check for the status.
2017-01-18 09:30:46 -06:00
Job Evers‐Meltzer bfbe69a861 Merge pull request #135 from lbryio/my-bug-fixes
Minor bug fixes
2017-01-17 22:15:33 -06:00
Job Evers-Meltzer f1b2d0d62d ensure that content_type exists 2017-01-17 21:57:16 -06:00
Job Evers-Meltzer 22c4f41066 fix errorcallback in publish 2017-01-17 21:37:24 -06:00
Job Evers-Meltzer 4166419823 fix missing Icon import 2017-01-17 21:36:48 -06:00
Job Evers-Meltzer 5f2312295c fix typo in proptypes 2017-01-17 21:36:32 -06:00
Alex Grin db19bcc613 testing teamcity trigger 2017-01-17 18:39:02 -05:00
Jeremy Kauffman 2192efc49f Merge pull request #116 from lbryio/unified-tiles
Unified File Tiles (WIP)
2017-01-17 17:10:40 -05:00
Jeremy Kauffman 8ce5e23c8f Merge pull request #134 from lbryio/development
Merge development into master
2017-01-17 16:25:52 -05:00
Alex Liebowitz e6563f26b8 Fix extra margin around Open and Download links 2017-01-17 06:44:48 -05:00
Alex Liebowitz 839c42bc3a Use new format for open and reveal RPC methods 2017-01-17 06:44:48 -05:00
Alex Liebowitz 8fdfd4b60e Show prices on Published page 2017-01-17 06:44:48 -05:00
Alex Liebowitz 88d4c49d9a Use Object.entries() when calling file info callbacks 2017-01-17 06:44:43 -05:00
Alex Liebowitz 0b9980f371 Rename all vars called "___sInfo" to "___Infos" 2017-01-17 05:06:39 -05:00
Alex Liebowitz 425fbb84a5 Fix delay in files disappearing from My Files
We now maintain a list of files that have been requested for removal in
lbry.js and simulate the file being removed so all components can
respond immediately.
2017-01-17 04:04:31 -05:00
Job Evers-Meltzer ff093c4155 fix dumb mistake 2017-01-17 01:02:01 -06:00
Job Evers-Meltzer 42e3681a8d make sure to reset each submodule 2017-01-17 00:58:31 -06:00
Alex Liebowitz e9f00eec23 Pad buttons using margin on content instead of padding on container
Allows button-style progress bars to set width without having to
account for padding
2017-01-16 23:44:06 -05:00
Jeremy Kauffman 70db4c937e shitty file remove 2017-01-16 23:44:06 -05:00
Jeremy Kauffman 7f135275df file list refactor 2017-01-16 23:44:06 -05:00
Jeremy Kauffman 3b7d093201 my_files fixes 2017-01-16 23:44:06 -05:00
Alex Liebowitz b70b2a859d Fix handling of window click events in DropDownMenu
Wasn't doing e.stopPropagation() when mounting the handler for clicks
outside the menu.
2017-01-16 23:44:06 -05:00
Jeremy Kauffman 70d390ea2e no more overflow-y on tiles, let's cap titles for now 2017-01-16 23:44:06 -05:00
Jeremy Kauffman 6c67cee3d9 fix duplicate keys on search results 2017-01-16 23:44:05 -05:00
Jeremy Kauffman 4fd9828760 holy fuck javascript sucks 2017-01-16 23:44:05 -05:00
Jeremy Kauffman 167541b92c search bar displays pre-set value when ?discover=arg is passed 2017-01-16 23:44:05 -05:00
Jeremy Kauffman e0eb36d032 more file tile refactor and fix file info unsubscribe 2017-01-16 23:44:05 -05:00
Jeremy Kauffman b7f23aa0dd big refactor of file actions/buttons/tiles 2017-01-16 23:44:04 -05:00
Alex Liebowitz 95675cd802 Fix clamp.js import 2017-01-16 23:42:09 -05:00
Alex Liebowitz e1ec3bb979 Fix nsfw check in FileTile 2017-01-16 23:42:09 -05:00
Alex Liebowitz 8d3e585306 When user chooses Open, open files instead of revealing 2017-01-16 23:42:09 -05:00
Alex Liebowitz cddc1ecd22 Remove files from UI immediately (don't wait for daemon to confirm) 2017-01-16 23:42:07 -05:00
Alex Liebowitz 769ee12020 Add ARIA labels to all modals in link.js 2017-01-16 23:41:20 -05:00
Alex Liebowitz 0796dbf285 Add keys to DownloadLink menu items 2017-01-16 23:37:24 -05:00
Alex Liebowitz 94c22961c6 Show "Connecting" instead of "0% Complete" before a download starts
Also remove now-unneeded showCaret prop from <DropDown />
2017-01-16 23:37:24 -05:00
Alex Liebowitz b524eec826 Hide caret on "Downloading" dropdown when download hasn't actually started 2017-01-16 23:37:24 -05:00
Alex Liebowitz 802d8c6777 Remove "Download Started" modal 2017-01-16 23:37:22 -05:00
Alex Liebowitz 8ae5b6e0ed In DownloadLink, immediately switch to "0% Downloaded" on click
Before, it would only change after several seconds when the  download
actually started.
2017-01-16 23:34:29 -05:00
Alex Liebowitz 986ce927f0 In DownloadLink, offer dropdown in "downloading" state 2017-01-16 23:34:29 -05:00
Alex Liebowitz 8a1f0b76b1 Correct how SD hashes are extracted in SearchResults 2017-01-16 23:34:29 -05:00
Alex Liebowitz f8ae201e76 Add initial value for this.state.deleteChecked in DownloadLink 2017-01-16 23:34:29 -05:00
Alex Liebowitz 6ea5e41368 Use in-browser platform check in DownloadLink 2017-01-16 23:34:29 -05:00
Alex Liebowitz 8d9e63ad53 Customize "Open in Folder" message based on platform 2017-01-16 23:34:29 -05:00
Alex Liebowitz 78e9a02b70 Add DropDown component and convert DownloadLink to use it 2017-01-16 23:34:10 -05:00
Alex Liebowitz a2641c1a98 Add support for custom conteint in <Link />
Before you could only specify an icon and text label.
2017-01-16 23:33:32 -05:00
Alex Liebowitz 80272ab8f0 Update prop names and prop processing logic in Icon 2017-01-16 23:33:32 -05:00
Alex Liebowitz 18192cd93b Add Stage 2 Babel preset
Needed for rest spread operator (e.g. let {foo, ...bar} = baz)
2017-01-16 23:33:32 -05:00
Alex Liebowitz 78cb69a5ef Update menu formatting 2017-01-16 23:33:32 -05:00
Alex Liebowitz 0560f13ec4 Convert Menu styles to CSS 2017-01-16 23:33:31 -05:00
Alex Liebowitz 9f743700b7 Refactor Menu component
Instead of having the menu keeping track of whether it's open, we now
leave it up to the surrounding component to mount and unmount it. This
avoids bubbling issues when listening for events on an external toggle
button.

We also now use the recommended callback style for refs instead of
named refs.
2017-01-16 23:33:31 -05:00
Alex Liebowitz d067a6e006 Refactor and clean up Link component 2017-01-16 23:33:31 -05:00
Alex Liebowitz 1e61af3b24 Rename things in FileTile
- updateStatusCallback -> updateFileInfoCallback
- this._statusCheckInterval -> this._fileInfoCheckInterval
2017-01-16 23:33:31 -05:00
Alex Liebowitz 5fcedd0d01 Update props in FileTile
- Add fileInfo
- Remove path (now calculated from fileInfo)
2017-01-16 23:33:31 -05:00
Alex Liebowitz ac32ec366a Update MyFilesPage to work with updated FileTile
Also did a little cleanup/refactoring
2017-01-16 23:33:31 -05:00
Alex Liebowitz 4bd29ed515 Convert FeaturedContentItem to pass one metadata prop into FileTile 2017-01-16 23:33:31 -05:00
Alex Liebowitz a36dd5cfe4 Convert search results to use FileTile 2017-01-16 23:33:31 -05:00
Alex Liebowitz 182ec6064d FileTile improvements and refactoring
- Now accepts a single metadata object for all metadata fields so
   the surrounding components don't have to break out the individual
   fields into props.
 - Now tracks whether the file was published by the user, and if
   there's a copy on their machine (will look up using API calls if
   needed)
 - Use the new "state" prop for DownloadLink
 - General refactoring and cleanup
2017-01-16 23:33:31 -05:00
Alex Liebowitz bcaad75df4 Improve and refactor Download links
- Use a single "state" prop to track download progress (not-started,
   downloading, or done)
 - Accept a file path as a prop an "Open" link after the download is
   complete
 - Trim some outdated code; improve CSS class names
2017-01-16 23:33:28 -05:00
Alex Liebowitz ce82f8cc6f Make FileTile look up its own download status if not provided 2017-01-16 23:31:16 -05:00
Alex Liebowitz 1b51b4e329 Add support for displaying progress in DownloadLink 2017-01-16 23:31:13 -05:00
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
Job Evers-Meltzer 2d19d3db95 commit to start build 2017-01-16 20:46:42 -06:00
Job Evers-Meltzer 7b7da549a8 build on travis 2017-01-16 20:40:10 -06:00
Job Evers-Meltzer cda5730057 use lbry-web-ui submodule 2017-01-16 14:36:31 -05:00
Job Evers-Meltzer ed0f6f775d make sure npm install is called 2017-01-16 14:14:24 -05:00
Job Evers-Meltzer c0847cc420 initial electron app 2017-01-16 14:07:28 -05:00
Job Evers‐Meltzer 7f77fa0b4e Initial commit 2017-01-16 14:05:32 -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
Jeremy Kauffman f334770a8a Merge pull request #131 from lbryio/add-modal-labels
Add ARIA labels for all modals
2017-01-13 17:53:45 -05:00
Alex Liebowitz 9f5c57f93a Add ARIA labels for all modals 2017-01-13 17:05:09 -05:00
alexliebowitz d2e33961cf Merge pull request #130 from lbryio/remove-get-start-notice
Remove startup notice code
2017-01-13 17:00:17 -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
alexliebowitz b78b644826 Merge pull request #128 from lbryio/update-readme-webpack
Update setup instructions and watch.sh for Webpack
2017-01-06 07:06:10 -05:00
Alex Liebowitz 16a9833bce Update watch.sh for Webpack 2017-01-06 07:03:54 -05:00
alexliebowitz 2fb876b6cb Update setup instructions 2017-01-06 07:00:49 -05:00
Jeremy Kauffman 4db3211855 always make lbry globally available 2017-01-05 17:30:36 -05:00
alexliebowitz 15d9236500 Merge pull request #127 from lbryio/development
Merge development into master
2017-01-04 17:09:01 -05:00
alexliebowitz e345682b1c Merge pull request #126 from lbryio/fix-thumbnail-loading
Fix uncaught type error in Thumbnail
2017-01-04 17:08:20 -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
Job Evers‐Meltzer a490554365 Merge pull request #124 from lbryio/development
Merge development into master
2017-01-04 11:14:59 -06: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‐Meltzer 6936d2f94e Merge pull request #120 from lbryio/fix-watch-page
fix LoadScreen import on watch page
2017-01-02 20:26:52 -06: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
Jeremy Kauffman 2b5557e781 Merge pull request #117 from lbryio/show-ui-version
Show UI version on Help page
2017-01-02 15:01:46 -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
Jeremy Kauffman e726322b58 Merge pull request #113 from lbryio/developer-settings
Developer Settings page (WIP)
2017-01-02 11:25:15 -05:00
alexliebowitz 759a3ba185 Merge pull request #115 from lbryio/add-babel-polyfill
Add Babel Polyfill
2016-12-31 23:01:14 -05:00
Alex Liebowitz 3fd7cd62af Add Babel Polyfill
Fixes some IE bugs, plus gives us a few more ES2015 features.
2016-12-31 22:56:05 -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
Alex Liebowitz cc335cfc65 Move Developer Settings page styles to separate file 2016-12-30 04:38:51 -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
alexliebowitz eb18d47e8a Merge pull request #112 from lbryio/fix-lighthouse-logic
Add a missing param to an inner function in lbry.getCostInfoForName()
2016-12-29 04:59:02 -05:00
Alex Liebowitz a03b021945 Add a missing param to an inner function in lbry.getCostInfoForName() 2016-12-29 04:10:36 -05:00
alexliebowitz bf388474a7 Merge pull request #111 from lbryio/update-lighthouse-servers
Update Lighthouse servers
2016-12-28 21:17:42 -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
alexliebowitz a9ef9ea391 Merge pull request #77 from lbryio/my-files-refactor
Refactor My Files page (WIP)
2016-12-28 03:38:52 -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
alexliebowitz 59b31c1803 Merge pull request #108 from lbryio/update-download-watch-links
Update logic in Download and Watch links
2016-12-16 18:36:22 -05:00
alexliebowitz 29574a2a3d Merge pull request #107 from lbryio/webpack-travis
Update .travis.yml to use Webpack
2016-12-16 18:19:11 -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 500ea38792 Update .travis.yml to use Webpack 2016-12-16 16:26:14 -05:00
alexliebowitz 5dbadeb941 Merge pull request #106 from lbryio/new-lighthouse
Update Discover and Show pages to use new Lighthouse cost reporting
2016-12-14 13:27:46 -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
Alex Liebowitz 97496c33da Make cost prop optional in <SearchResultRow /> 2016-12-13 13:16:59 -05:00
alexliebowitz a98c410403 Merge pull request #105 from lbryio/my-files-no-lighthouse
My Files page: during publication, check for availability directly from peers instead of with Lighthouse
2016-12-13 13:15:33 -05:00
Alex Liebowitz 177fa2cfa2 Move file availability check interval to class member 2016-12-13 13:14:42 -05:00
Alex Liebowitz 100dac0629 My Files: monitor file availability using lbry.getPeersForBlobHash()
Also reduce the checking rate to once every 5 minutes to avoid
slamming your peers with availability checks
2016-12-13 13:13:29 -05:00
alexliebowitz c7f85046c2 Merge pull request #100 from lbryio/tweak_upgrade_msg
Tweak upgrade message
2016-12-13 13:03:56 -05:00
Alex Liebowitz 7ca6017986 Add lbry.getPeersForBlobHash() 2016-12-09 03:11:25 -05:00
alexliebowitz 3058f6714c Merge pull request #104 from lbryio/my-files-page-fix-imports
Fix imports on My Files page
2016-12-09 02:51:20 -05:00
Alex Liebowitz a6825c4269 Fix imports on My Files page 2016-12-09 02:50:25 -05:00
alexliebowitz 325e930e2c Merge pull request #103 from lbryio/show-page-fix-imports
Fix imports on Show page
2016-12-09 02:12:47 -05:00
Alex Liebowitz 7b98f5b9a9 Show: fix imports 2016-12-09 02:10:59 -05:00
alexliebowitz c296f0c708 Merge pull request #102 from lbryio/lighthouse-namespacing-fix
lbry.lighthouse.search() -> lighthouse.search() in two files
2016-12-07 15:16:20 -05:00
Alex Liebowitz 78ed1b9dcd lbry.lighthouse.search() -> lighthouse.search() in two files 2016-12-07 15:14:53 -05:00
alexliebowitz 4d4cad0158 Merge pull request #101 from lbryio/remove-console-logs
Remove a couple of stray console.log() calls
2016-12-07 13:20:08 -05:00
Alex Liebowitz 0458d58a08 Remove a couple of stray console.log() calls 2016-12-07 13:19:24 -05:00
alexliebowitz a4303fe1ad Merge pull request #93 from lbryio/build-with-webpack
Convert to ES6 Modules
2016-12-07 13:00:38 -05:00
Alex Liebowitz 1295b7e1b9 Hard code web UI address in certain links to make testing servers work 2016-12-06 15:09:49 -05:00
Job Evers 494168474f Small tweak so that hot-reloading works.
The middleware server servers the bundle from memory
so it needs to know where to put it.
2016-12-06 14:28:10 -05:00
Job Evers c32ab1ac65 bug fixes found while linting 2016-12-06 14:28:10 -05:00
Job Evers 42898d5f60 Convert to ES6 modules 2016-12-06 14:28:10 -05:00
Job Evers d57d8d8a0b remove unused zip file 2016-12-06 14:28:10 -05:00
Jeremy Kauffman b80420465a Tweak upgrade message
Avoid text like "Click 'Upgrade' to XXX" that tells the user how to do something that the UI already invites them to do.
2016-12-05 14:51:36 -05:00
Jeremy Kauffman f086b47f80 Merge pull request #98 from lbryio/word-break-modals
Change wrapping of file path in "Download Succeeded" Modal
2016-12-04 09:02:44 -05:00
Job Evers‐Meltzer c0e53b45eb Merge pull request #99 from lbryio/master
Release to Master
2016-12-02 21:15:34 -06:00
Alex Liebowitz 8e90389122 Layout tweak to "Download Succeeded" Modal
This displays the file path on its own line and does character-level
wrapping on the path only.

Ideally, we would just apply character wrapping to all words that are
too long for their line. There are CSS props for that but I haven't
been able to find a reliable way to do it without setting a width on the
outer container, which we don't want here (modals stretch based on their content). So this is the best compromise I can come up with.
2016-12-02 03:21:35 -05:00
alexliebowitz d913e0be63 Merge pull request #97 from lbryio/lbry-id-new-method
Update API method used to get LBRY ID
2016-11-30 00:34:18 -05:00
Alex Liebowitz 406c37f9ff Help: change method used to get LBRY ID
Now uses lbry.getSessionInfo() instead of lbry.getVersionInfo()
2016-11-30 00:23:57 -05:00
Alex Liebowitz 735444f022 Add lbry.getSessionInfo() 2016-11-30 00:23:45 -05:00
Jeremy Kauffman 18b8712bf8 Merge pull request #96 from lbryio/fix-modal-string-bug
Fix missing $ in string interpolation in a few modals
2016-11-29 07:55:44 -05:00
Alex Liebowitz 4868efdfb9 Fix missing $ in string interpolation in a few modals 2016-11-28 18:24:55 -05:00
Jeremy Kauffman af61b7caae Merge pull request #94 from lbryio/show-lbry-id
Help: Show LBRY ID in "About" section
2016-11-25 14:36:12 -05:00
alexliebowitz c0fb03b994 Merge pull request #95 from lbryio/watch-download-link-improvements
Improvements to Watch and Download links
2016-11-24 23:11:04 -05:00
Alex Liebowitz 7eaeeeefb4 Wrap modal content in div to prevent flexbox layout 2016-11-24 23:03:03 -05:00
Alex Liebowitz 17d13c3a93 Properly notify when a download times out 2016-11-24 22:43:57 -05:00
Alex Liebowitz 323cedadb2 Disable Watch link on click 2016-11-24 22:43:52 -05:00
Alex Liebowitz 12afb10cbc In DownloadLink, don't check this.state.downloading on click
If this.state.downloading is true, the button will be disabled anyway.
2016-11-24 22:43:44 -05:00
Alex Liebowitz 468692b480 Make Download link switch to "Downloading" immediately on click 2016-11-24 22:43:28 -05:00
Alex Liebowitz 70076d8a9e Help: Show LBRY ID in "About" section 2016-11-23 21:35:15 -05:00
Alex Liebowitz a0fb58415e Help: slight refactor of version section 2016-11-23 21:35:09 -05:00
Jeremy Kauffman adb6329d9e Merge pull request #89 from lbryio/warn-invalid-chars
Reject invalid name characters on Publish page
2016-11-23 11:12:35 -05:00
Alex Liebowitz e0d0c3f915 Publish: validate names as the user types
Rejects invalid characters and pops up a form hint explaining what
characters are allowed.
2016-11-22 01:14:22 -05:00
Alex Liebowitz 5af7916b20 Add lbry.nameIsValid() 2016-11-22 01:14:15 -05:00
Alex Liebowitz aea1c7e6ee Convert name field into controlled component 2016-11-22 01:14:02 -05:00
alexliebowitz 6ac9853fd4 Merge pull request #88 from lbryio/better-form-hints
Convert form hints to separate component with better style (WIP)
2016-11-22 01:08:09 -05:00
Alex Liebowitz 96afd8a840 Left justify form hints 2016-11-22 01:06:24 -05:00
Alex Liebowitz 8b13f341b6 Don't render hidden form fields 2016-11-22 01:06:24 -05:00
Alex Liebowitz b73399f4e6 Publish: prevent submit and notify user if file is not fully processed 2016-11-22 01:06:24 -05:00
Alex Liebowitz f6f4d452b0 Add FormField.showAdvice() for displaying arbitrary form hints
Also modifies FormField.warnRequired() to use this new method
2016-11-22 01:06:20 -05:00
Alex Liebowitz 498b75c688 Convert form hints to separate component with better style 2016-11-22 01:06:15 -05:00
Alex Liebowitz 84464a8118 Add className prop to Icon 2016-11-22 01:06:04 -05:00
alexliebowitz fd7091cbcf Merge pull request #87 from lbryio/delete-modal-buttons
My Files page: make buttons in "delete" modal work
2016-11-21 22:28:47 -05:00
Jeremy Kauffman 90b483ea7e Merge pull request #91 from lbryio/publish-my-claim-fix
Fix issue with live updating logic on Publish page
2016-11-21 18:30:15 -05:00
alexliebowitz 65ae347090 Merge pull request #84 from benyanke/patch-1
formatName - replace spaces with dashes
2016-11-21 00:18:42 -05:00
Alex Liebowitz 298c03283d Fix issue with live updating logic on Publish page
Previously, if the user typed a name that they have a claim on and
then continued typing, some of the interface would not be updated to
show that they don't have a claim.
2016-11-18 06:14:02 -05:00
Alex Liebowitz 5f5a460a6d My Files: add handler for closing delete modal 2016-11-17 23:40:24 -05:00
Alex Liebowitz 3dd961b70a My Files: make "Confirm" button in delete modal work
Was calling lbry.setState() instead of this.setState()
2016-11-17 23:40:19 -05:00
Ben Yanke 33b43477d5 formatName now using different text sanitation method 2016-11-16 13:56:04 -06:00
Job Evers‐Meltzer 68b377e7a6 Merge pull request #86 from lbryio/development
Release
2016-11-16 11:15:03 -06:00
Job Evers‐Meltzer f8c77a96cc Merge pull request #69 from lbryio/high-level-error-handling
High-level error handling
2016-11-16 10:13:27 -06:00
Alex Liebowitz c6104516e7 My Files: don't check stream availability when URI is absent
Previously this was failing silently, but with the new error modals
it started popping up error messages.
2016-11-15 02:33:42 -05:00
Ben Yanke 4bf4d14a24 formatName - replace spaces with dashes
Name-formatter now replaces spaces with dashes, for more readable names. This is similar to Wordpress' permalink processing.
2016-11-15 01:31:28 -06:00
Alex Liebowitz f346739bfb More error modal appearance tweaks
- Change warning icon to PNG with different color scheme
 - Use alt style button
 - Darken backdrop
 - Add spacing under header
 - Reduce margins on all modals
2016-11-15 01:30:38 -05:00
Alex Liebowitz 46cf8915f9 Restore JSON-RPC 2.0 error keys 2016-11-15 01:30:38 -05:00
Alex Liebowitz edeaf4f7d0 Add warning icon and dark backdrop to error dialog 2016-11-15 01:30:38 -05:00
Alex Liebowitz 7f961ccc63 Update key names in API error reporting 2016-11-15 01:30:38 -05:00
Alex Liebowitz 439f6523b1 Add close handler to error modal 2016-11-15 01:30:38 -05:00
Alex Liebowitz 8dd20edfcb Fix "missing key in ul" React warning 2016-11-15 01:30:38 -05:00
Alex Liebowitz 80302786e1 Alert on AJAX connection failures 2016-11-15 01:30:38 -05:00
Alex Liebowitz 1173cb3f57 Fix capitalization of labels in error modal 2016-11-15 01:29:51 -05:00
Alex Liebowitz 78cb810204 Error modal logic tweak
Check type instead of key name to determine whether to render value as
JSON
2016-11-15 01:29:51 -05:00
Alex Liebowitz 6e5684c18b Add styles for error modal 2016-11-15 01:29:51 -05:00
Alex Liebowitz c36711c380 Report unhandled daemon and Lighthouse errors 2016-11-15 01:29:51 -05:00
alexliebowitz 3471184828 Merge pull request #79 from lbryio/transaction-date-placeholder
On Wallet page, show placeholder text for dates on pending transactions
2016-11-15 01:09:27 -05:00
alexliebowitz 0db4c8df13 Merge pull request #80 from lbryio/publish-page-bid-fixes
Fix issues with display of bids on Publish page
2016-11-14 12:04:07 -05:00
alexliebowitz b437c326ef Merge pull request #81 from lbryio/fix-drawer-item-highlighting
Highlight drawer item for sub-pages
2016-11-14 12:03:21 -05:00
alexliebowitz 02a0b36673 Merge pull request #82 from lbryio/thumbnail-component
Thumbnail component
2016-11-14 12:01:50 -05:00
alexliebowitz a1554cba5c Merge pull request #83 from lbryio/retry-search-server
Retry search on a different server if connection to Lighthouse fails (WIP)
2016-11-14 12:01:31 -05:00
Alex Liebowitz e6fc50e01f Tweak logic for handling failed connections in lbry.jsonrpc_call()
- Move AJAX error callback declaration to the right spot (before,
   it was inside the load callback)
 - Add support for custom timeouts
2016-11-11 09:31:09 -05:00
Alex Liebowitz e0d68a9619 Move lbry.search() to lbry.lighthouse and add connection retry logic 2016-11-11 09:27:47 -05:00
Alex Liebowitz 4ea16b4d66 Convert all thumbnails to use Thumbnail component 2016-11-11 08:05:30 -05:00
Alex Liebowitz 7c42bda244 Add Thumbnail component 2016-11-11 08:05:29 -05:00
Alex Liebowitz eadaefb63b Highlight drawer item for sub-pages 2016-11-11 06:36:02 -05:00
Alex Liebowitz db41c45da3 Publish page: fix pluralization of bid amounts 2016-11-11 06:25:32 -05:00
Alex Liebowitz b4d97b1cee Publish page: fix issues with display of top claim value
- Display top bid correctly (before, it would sometimes show the user's
   bid instead)
 - Change wording to say "more than ___ credits" instead of "at least
   ___ credits"
2016-11-11 06:25:32 -05:00
Alex Liebowitz 5a0057093c Publish page: display exact bid amounts 2016-11-11 06:25:32 -05:00
Alex Liebowitz ee56a38b0d Wallet page: Show placeholder text for dates on pending transactions 2016-11-11 05:09:43 -05:00
alexliebowitz 14565ec586 Merge pull request #70 from lbryio/modals
Use React Modal dialogs for all alerts and confirmation boxes
2016-11-10 07:05:16 -05:00
Alex Liebowitz 6e31b076b3 Restore spacing on Watch and Download buttons 2016-11-10 06:59:54 -05:00
Alex Liebowitz f34fca11a8 Add option to disable confirm or abort buttons in modals
Adds new confirmButtonDisabled and abortButtonDisabled props to Modal
component. Mainly useful when you have a "confirm" button that performs
some operation before closing the modal and you need the confirm button
to disable after it's clicked.
2016-11-10 06:59:53 -05:00
Alex Liebowitz 57b953ba69 Watch and Download link layout tweak
Contain links in spans instead of divs to avoid block layout
2016-11-10 06:59:53 -05:00
Alex Liebowitz 9306617fd4 Simplify modal button logic 2016-11-10 06:59:53 -05:00
Alex Liebowitz 855e64e661 Convert alerts to modals in My Files, Publish, Report, Wallet pages 2016-11-10 06:59:48 -05:00
Alex Liebowitz a6e4751ae3 Convert alerts to modals in DownloadLink component 2016-11-10 06:57:06 -05:00
Alex Liebowitz df0a5ee73e Convert alerts to modals in Claim Code and Referral pages 2016-11-10 06:57:01 -05:00
Alex Liebowitz ced77438ad Convert alerts to modals in app.js 2016-11-10 05:21:13 -05:00
Alex Liebowitz c031313c84 Add Modal component 2016-11-10 05:21:13 -05:00
Alex Liebowitz e3f178e379 Include React Modal lib 2016-11-10 05:21:13 -05:00
Alex Liebowitz 580a5fd89b Upgrade to React 15.3.2 2016-11-10 05:21:13 -05:00
alexliebowitz 1e055ea59f Merge pull request #76 from reillysmith/patch-2
Update discover.js new content 11-03
2016-11-04 01:40:09 -04:00
reillysmith f37f2abc63 Update discover.js 2016-11-03 16:25:47 -07:00
Job Evers‐Meltzer dcc04d3290 Merge pull request #75 from lbryio/revert-66-only-push-tags
Revert "only deploy on a tag"
2016-11-02 13:47:40 -05:00
Job Evers‐Meltzer 628fe64a4d Revert "only deploy on a tag" 2016-11-02 13:45:38 -05:00
Jeremy Kauffman eb0acc2ce4 Merge pull request #74 from lbryio/report-link
Add infringement report link to Show page
2016-11-02 13:08:22 -04:00
Alex Liebowitz 5d5ec8633e Add "report" link to Show page 2016-11-02 13:03:19 -04:00
Job Evers-Meltzer 9ae6278ade Bump version: 0.1.0 → 0.1.1 2016-11-02 11:38:05 -05:00
Alex Liebowitz e228790b28 Add styles for help links 2016-11-02 12:12:46 -04:00
Alex Liebowitz a7e6e9db1d Convert text links to mixin 2016-11-02 12:09:33 -04:00
Job Evers‐Meltzer 584a1d7d6a Merge pull request #71 from lbryio/clampjs
Switch TruncatedText component to use clamp.js
2016-10-26 16:41:48 -05:00
Job Evers‐Meltzer cf7818a6e6 Merge pull request #67 from lbryio/submit-on-enter
Submit forms on enter
2016-10-26 16:29:15 -05:00
Alex Liebowitz 5925f11083 Switch TruncatedText component to use clamp.js 2016-10-21 06:28:42 -04:00
alexliebowitz fb8a36ef09 Merge pull request #68 from lbryio/my-files-no-files
My FIles: Don't get stuck on loading screen if no files are present
2016-10-20 12:43:39 -04:00
Alex Liebowitz 2ad8960e2f My FIles: Don't get stuck on loading screen if no files are present 2016-10-19 20:29:35 -04:00
Alex Liebowitz 0e21b88281 Add submit input to Claim Code, Referral and Wallet pages 2016-10-19 03:13:39 -04:00
Alex Liebowitz 7cfbb60033 Add submit input to Publish page 2016-10-19 03:11:17 -04:00
Alex Liebowitz eba4dbe146 Convert Publish page to use <form>
Previously used form element only for file input
2016-10-18 22:30:57 -04:00
Job Evers‐Meltzer 48d30a5cb7 Merge pull request #66 from lbryio/only-push-tags
only deploy on a tag
2016-10-18 10:07:40 -05:00
Job Evers-Meltzer c0e1d3c4b3 only deploy on a tag 2016-10-13 18:37:48 -05:00
alexliebowitz d7efbc35e9 Merge pull request #65 from reillysmith/patch-1
Update discover.js
2016-10-10 18:03:58 -04:00
reillysmith 6b460b4a9a Update discover.js 2016-10-10 14:57:00 -07:00
Alex Liebowitz 80fd456e04 Add query strings to JS files to bypass caching
As of lbrynet 0.6.4 we're giving the right headers for JS files, so
we only need a fixed query string to force a new load once.
2016-10-10 00:26:10 -04:00
Jeremy Kauffman b8e3ad93ac Merge pull request #63 from finer9/patch-1
Update help.js
2016-10-08 16:14:13 -04:00
Josh Finer 5631d03f76 Update help.js
typo
2016-10-07 20:23:22 -04:00
Alex Liebowitz b07241405e Flip menus to the left on My Files page 2016-10-02 03:33:40 -04:00
Alex Liebowitz ef8f0e6227 Don't trigger lbry.search() on page load
This was happening because the transition of the query from
undefined -> '' was registering as a search being typed
2016-09-29 03:46:00 -04:00
Alex Liebowitz fdc6329c2f Disable Silverlight, enable HTML5 fallback 2016-09-28 05:42:38 -04:00
Alex Grintsvayg 011199aef7 reword credit claim messages 2016-09-25 13:28:10 -04:00
alexliebowitz ef1cc62c26 Merge pull request #58 from lbryio/non-winning-claims
Add better feedback for non-winning claims on Publish page
2016-09-25 01:38:03 -04:00
Alex Liebowitz 39dc23398e Use global search for filtering special chars in lbry.formatName() 2016-09-25 01:34:52 -04:00
Alex Liebowitz 3b0d24d4f5 Bold claim name everywhere on Publish page 2016-09-25 01:31:58 -04:00
Alex Liebowitz 5a60cb451c Give clearer feedback when updating a claim when have a non-winning bid 2016-09-25 01:29:57 -04:00
Jeremy Kauffman c7ab4b9500 Merge pull request #61 from lbryio/longer-descriptions
Fix Featured and Community Content descriptions getting cut off
2016-09-24 15:30:02 -04:00
Jeremy Kauffman d2ed0098f6 Merge pull request #60 from lbryio/video-load-screen
Use format of main splash screen for video load screen
2016-09-24 15:29:16 -04:00
Jeremy Kauffman d7ec67c4ee add ellipsis to initial load message for consistency 2016-09-24 15:27:07 -04:00
Jeremy Kauffman 7be116665e Merge pull request #59 from lbryio/license-select
Convert license field to drop-down box
2016-09-24 15:22:30 -04:00
Jeremy Kauffman 6643a44f31 Merge pull request #48 from lbryio/show-wallet-address
Show address on Wallet page
2016-09-24 15:19:41 -04:00
Alex Liebowitz 317db4cb4f If get_my_claim returns an error, assume the claim is mine (temporary) 2016-09-24 04:41:31 -04:00
Alex Liebowitz 3614640adc Show different message for fully uploaded files vs. completed downloads 2016-09-24 04:21:07 -04:00
Alex Liebowitz cb087cd50d Temporarily disable Reflector upload notice, pending lbrynet fixes 2016-09-24 04:15:02 -04:00
Alex Liebowitz 0991eafcbc Bump required lbrynet version to 0.5.0 2016-09-24 03:17:58 -04:00
alexliebowitz ac1b504dcf Merge pull request #62 from lbryio/my-files-tabs
Separate tabs for Downloaded and Published files in My Files
2016-09-24 03:01:54 -04:00
Alex Liebowitz 89f87bb604 Remove workaround for old get_my_claim() behavior 2016-09-24 02:59:46 -04:00
Alex Liebowitz 9e3dc5b5ce Convert MyFilesPage._filesOwnershipLoaded to state var 2016-09-24 02:50:13 -04:00
Alex Liebowitz e5e27444a5 On My Files page, simplify check for file availability 2016-09-24 02:42:19 -04:00
Alex Grin e12dc598a9 Merge pull request #53 from lbryio/claim-referral-credits
Add referral credit check page (WIP)
2016-09-23 20:03:45 -04:00
Alex Liebowitz 8bc13fb8a5 Filter My Files results based on tab chosen 2016-09-23 05:56:36 -04:00
Alex Liebowitz 4072c1cdda Add Downloaded and Published tabs to My Files page 2016-09-23 05:56:36 -04:00
Alex Liebowitz e1637d537c Add lbry.getMyClaim() 2016-09-23 05:56:35 -04:00
Alex Liebowitz 4e9159828c Use compact search result tiles for featured and community content 2016-09-22 02:42:20 -04:00
Alex Liebowitz eefc44cfb2 Add "compact" option for search result tiles 2016-09-22 02:41:03 -04:00
Alex Liebowitz 452f808e32 In copyright notice pre-fill, use "Copyright" instead of (C) symbol 2016-09-21 03:42:31 -04:00
Alex Liebowitz 5476c29322 Fix handling of absent license URLs
Before, if an option was picked that has no license URL field, it
would submit undefined for license_url. Now it correctly omits the key.
2016-09-21 02:57:20 -04:00
Alex Liebowitz 28e7f1e3b2 Remove "all rights reserved" wording 2016-09-21 02:29:45 -04:00
Alex Liebowitz f598517e27 Use format of main splash screen for video load screen 2016-09-21 01:39:50 -04:00
Alex Liebowitz 19d12955a5 Factor out generic loading screen component from SplashScreen 2016-09-21 01:35:29 -04:00
Alex Liebowitz 8340759934 Convert license field to drop-down box 2016-09-20 06:40:24 -04:00
Alex Liebowitz b90e1d62e0 Add FormField.getSelectedElement() 2016-09-20 06:38:46 -04:00
Alex Liebowitz b3218f13c9 Show message on My Files page for files uploading to Reflector 2016-09-16 12:56:26 -04:00
Alex Liebowitz 9315b617c1 Track file Reflector availability in MyFiles state 2016-09-16 12:55:34 -04:00
Alex Liebowitz 09cd853bf2 Make Publish page send user to My Files as soon as file is listed there 2016-09-16 11:23:39 -04:00
Alex Liebowitz f23d654a6b Add support for running code at start of publication process
- Add lbry.getFileInfoWhenListed()
 - Modify publish() to take an optional callback for when the file is
   listed.
2016-09-16 11:17:12 -04:00
Job Evers‐Meltzer 4d34bb1599 Merge pull request #56 from reillysmith/patch-1
Update discover.js
2016-09-09 16:26:22 -07:00
reillysmith 24934f66b0 Update discover.js 2016-09-09 16:07:27 -07:00
Alex Liebowitz cd2d3a44ea Fix wording 2016-09-09 07:40:27 -04:00
Alex Liebowitz 7077b78135 Make Watch button appear correctly in search results
Wasn't passing in the content type to SearchResultRow
2016-09-08 04:36:57 -04:00
Alex Liebowitz 9a9bed2966 Make lbry.getMediaType() reliably handle malformed and absent input 2016-09-08 04:35:41 -04:00
Alex Liebowitz 0788cde219 Add referral code claim page 2016-09-08 04:17:08 -04:00
Jack Robison 3be312736b fix keys used in response from get_transaction_history 2016-09-05 13:20:34 -04:00
Jeremy Kauffman 9527d1abc0 Merge pull request #51 from sonatagreen/show-debits
show negative transactions
2016-09-04 15:22:19 -04:00
Sonata Green 1c89f47d1a show negative transactions 2016-09-03 15:28:05 -05:00
Jeremy Kauffman 9a52f69b72 Merge pull request #50 from lbryio/hide-watch-button
Hide Watch button for non-video content everywhere, not just My Files page
2016-09-02 08:05:21 -04:00
Alex Liebowitz ef3e57be8a On Discover and Show pages, hide Watch button for non-video content 2016-09-02 04:51:22 -04:00
Alex Liebowitz 3deb160822 Make My Files page get media type via content_type instead of filename 2016-09-02 04:50:44 -04:00
Alex Liebowitz bc129eb347 Make lbry.getMediaType() able to use MIME type as well as file name 2016-09-02 04:48:19 -04:00
Alex Liebowitz b39d313776 Make upgrade send user to MSI on Win or lbry.io/get for unknown OSes 2016-09-02 03:43:45 -04:00
Alex Liebowitz 3043574608 Link thumbnails and LBRY names in search tiles 2016-09-02 03:34:08 -04:00
Alex Liebowitz 0844cbd14a Don't show claim code page after user submits or skips 2016-09-02 03:08:46 -04:00
Alex Liebowitz c8220e0c08 On Show page, don't display wrong name when given a nonexistent name
Now shows 404-like "no content here" message instead
2016-09-02 02:51:28 -04:00
Alex Liebowitz 8ebddc5a9f On Wallet page, refresh address if it doesn't match the current wallet 2016-09-02 01:46:27 -04:00
Alex Liebowitz 96dedbf1bd Add lbry.getAddressIsMine() 2016-09-02 01:34:30 -04:00
Alex Grintsvayg 2bc90f9957 bumpversion config 2016-09-01 13:23:47 -04:00
Jeremy Kauffman 99c942a214 Merge pull request #49 from lbryio/publish-reformat-names
Lowercase and remove special characters from names on Publish page
2016-09-01 07:46:24 -04:00
Alex Liebowitz e453679729 Lowercase and remove special chars from names on Publish page
Also edited the text that appears next to the "name" box so
the user always gets to sees the actual name that will be claimed.
2016-09-01 03:30:12 -04:00
Alex Liebowitz 968506a8dd Add lbry.formatName() 2016-09-01 03:28:07 -04:00
Alex Liebowitz 97512b9b3a Show address on Wallet page
- Remembers address from previous views using local storage
 - Also improved layout and added help text
2016-09-01 02:54:16 -04:00
alexliebowitz aa7abb2451 Merge pull request #46 from lbryio/tx_log
Transaction log on Publish page
2016-08-30 05:15:49 -04:00
Jeremy Kauffman e8dae73491 Merge pull request #37 from lbryio/help-version-section
Add section with version and upgrade info to "Help" page
2016-08-29 11:41:29 -04:00
Jeremy Kauffman b4dac55d26 cleaned up transaction history, added header subnav style 2016-08-27 10:12:56 -04:00
Alex Liebowitz 39a70aa464 Support both versions of content_type field on Show page
Just needed for transition to new metadata system
2016-08-27 02:37:35 -04:00
Alex Liebowitz 9995e6e3a8 Keep existing metadata version when updating claims 2016-08-27 02:18:19 -04:00
Jeremy Kauffman f538c9a775 Merge remote-tracking branch 'origin/master' into txlog2 2016-08-26 19:07:49 -04:00
Jeremy Kauffman d46fed313f Merge remote-tracking branch 'origin/master' into help-version-section 2016-08-26 18:11:28 -04:00
Jeremy Kauffman d927c5ffef futher cleanup of help page 2016-08-26 18:06:22 -04:00
alexliebowitz 596a122d25 Fixed capitalization on featured content item URI 2016-08-26 16:51:12 -04:00
alexliebowitz 1c1ca5c0ae Merge pull request #43 from lbryio/front-page-tweaks
Update Featured Content and add "five" slot to Community Content
2016-08-26 08:23:28 -04:00
Alex Liebowitz 0e30c6c8c8 Update Featured Content and add "five" slot to Community Content 2016-08-26 08:07:46 -04:00
Alex Liebowitz a679c9944a Add default thumbnails everywhere 2016-08-26 08:03:08 -04:00
Alex Liebowitz 5ae7bb4ac2 Fix wide thumbnails in My Files 2016-08-26 06:54:30 -04:00
Jeremy Kauffman f8045ea104 NSFW legalese 2016-08-24 11:14:46 -04:00
Sonata Green f0c93ce150 List newest transactions first 2016-08-24 00:08:58 -05:00
Jeremy Kauffman aff23d77f0 Merge pull request #41 from lbryio/kimihiro64-patch-1
Quick typo
2016-08-23 14:52:52 -04:00
kimihiro64 61bd7ce5c5 Quick typo 2016-08-23 09:53:45 -05:00
Jack Robison 92a0e40536 Merge pull request #40 from lbryio/use-existing-metadata
Use existing metadata to fill missing fields when updating claims
2016-08-23 01:48:08 -04:00
Alex Liebowitz d16c4aa181 Show correct price on Show page 2016-08-23 01:22:29 -04:00
Alex Liebowitz 6f9bec804b Use existing metadata to fill missing fields when updating claims 2016-08-23 01:03:03 -04:00
Jeremy Kauffman f80b057a6b Merge pull request #34 from sonatagreen/fix-showpage-buttons
fix watch/download links on ?show= page
2016-08-22 17:03:25 -04:00
Jeremy Kauffman 71719d02f4 Merge pull request #38 from lbryio/blur-nsfw
Blur NSFW stuff on home page (WIP)
2016-08-22 16:58:01 -04:00
Jeremy Kauffman 5dcb0593ad move nsfw logic lower, more semantic, handle search unmount 2016-08-22 16:56:52 -04:00
Jeremy Kauffman b53a178338 Merge remote-tracking branch 'origin/show-hide-nsfw' into blur-nsfw 2016-08-22 16:14:58 -04:00
Sonata Green 17bfbb8940 add setting to show/hide NSFW content 2016-08-22 16:09:28 -04:00
Alex Liebowitz 399fb5c7c8 Filter NSFW featured content on Discover page 2016-08-22 16:09:28 -04:00
Alex Liebowitz 8378a7a387 Add option to show/hide NSFW content 2016-08-22 15:46:15 -04:00
Alex Liebowitz 0472ea5d9d Add support for client side settings using localStorage 2016-08-22 15:42:09 -04:00
Alex Liebowitz 0a2c0586d4 Light refactor of daemon settings processing
- Rename the daemon setter/getter methods to lbry.getDaemonSettings()
   and lbry.setDaemonSettings() to differentiate them from the new
   methods for client settings
 - Add lbry.setDaemonSetting(), for changing individual daemon settings
   easy to
 - Refactor Settings page to submit only changed settings instead of
   re-submitting all settings every time
2016-08-22 15:19:11 -04:00
Alex Liebowitz b75004c5f6 Make search work from pages other than Discover 2016-08-22 15:19:11 -04:00
Sonata Green fb265520f3 Merge branch 'txlog2' of github:sonatagreen/lbry-web-ui into txlog2 2016-08-22 11:18:51 -05:00
Sonata Green 73e29b423b use BusyMessage on wallet page 2016-08-22 11:16:43 -05:00
Alex Liebowitz 124b2b9a18 Add styles 2016-08-22 09:03:36 -04:00
Alex Liebowitz 3edc93c842 Blur NSFW content on home page
Also adds a mouse-over overlay explaining you can choose to
show NSFW stuff on the Settings page (not implemented yet)
2016-08-22 08:01:00 -04:00
Alex Liebowitz 13f7f1995e Improve wording and formatting on Help page 2016-08-22 05:43:02 -04:00
Alex Liebowitz ce574f24ec Add version and upgrade info section to Help page 2016-08-22 05:42:01 -04:00
Alex Liebowitz 61a3d4f36e Improve wording and formatting of Help page 2016-08-22 05:38:17 -04:00
Sonata Green a4cd2f9b09 use .table-standard for transaction history 2016-08-21 23:22:09 -05:00
Sonata Green 955db5fcfc fix double transactions 2016-08-21 23:22:09 -05:00
Sonata Green d8182c084c prettify transaction log a bit 2016-08-21 23:22:09 -05:00
Sonata Green e2a1d53287 fix date/time display 2016-08-21 23:22:09 -05:00
Sonata Green 1687518c6e Bare-bones transaction history. 2016-08-21 23:22:08 -05:00
Sonata Green a255d7aefa use .table-standard for transaction history 2016-08-21 13:05:19 -05:00
Sonata Green e4544087a8 fix watch/download links on ?show= page 2016-08-21 11:51:20 -05:00
Jeremy Kauffman 0221761a5a Merge pull request #33 from lbryio/sonatagreen-myfiles-loading
Sonatagreen myfiles loading
2016-08-21 10:57:43 -04:00
Jeremy Kauffman 3554d34c53 revert wallet changes 2016-08-21 10:57:11 -04:00
Jeremy Kauffman f9a1bd99c0 component for busy indicator, use in my_files 2016-08-21 10:55:32 -04:00
Sonata Green 0b5ec7be77 fix double transactions 2016-08-20 16:52:31 -05:00
Sonata Green 6b97cc7f6a prettify transaction log a bit 2016-08-20 15:38:27 -05:00
Sonata Green 0efe31e444 fix date/time display 2016-08-20 15:38:01 -05:00
Sonata Green f823b570f3 Bare-bones transaction history. 2016-08-20 14:52:03 -05:00
Sonata Green 920f55b4f5 add loading message to the My Files page 2016-08-19 20:48:08 -05:00
Jeremy Kauffman 02416f66e5 fix cross browser scrolling 2016-08-19 09:47:40 -04:00
Jeremy Kauffman abecc5490a Merge pull request #25 from lbryio/my_files_no_dups
only print an item in my_files once
2016-08-19 09:30:35 -04:00
Jeremy Kauffman afd9b90df7 Merge pull request #28 from lbryio/easier-install
Easier install
2016-08-19 09:30:06 -04:00
Alex Liebowitz de1596c0ba Display prices rounded to whole numbers with no ".0"
Looks cleaner, plus no issue of "1.0 credits" vs "1.0 credit"
2016-08-19 03:24:12 -04:00
Alex Liebowitz 5d05e10f18 Remove (est) from cost on items that Lighthouse reports hosted
Also adds "credits" to all prices and tweaks formatting slightly
2016-08-19 03:15:17 -04:00
Alex Liebowitz a98c97fe0f Stack header on top of all content 2016-08-18 04:06:45 -04:00
Alex Liebowitz 5c25f30c90 Hold off on "credits" wording change for now 2016-08-18 04:04:42 -04:00
Alex Liebowitz 4c01cf4259 Use lbry.search() to fetch costs 2016-08-18 03:34:20 -04:00
Alex Liebowitz 1a66fafd2d Rewrite search to use Lighthouse RPC calls 2016-08-18 03:14:38 -04:00
Alex Liebowitz 9d7f82e309 Refactor JSON-RPC handling into generic function 2016-08-18 02:57:19 -04:00
Alex Grintsvayg 7038f044b9 node-sass is a bit dumb with --watch 2016-08-17 16:27:53 -04:00
Alex Grintsvayg 9f19116d3e simplify setup process 2016-08-17 15:15:09 -04:00
Alex Liebowitz 9f5c999c39 On Publish page, ignore outdated getClaimInfo() responses 2016-08-10 03:05:17 -04:00
Alex Liebowitz 2573262e2b Don't use native form styles on Safari 2016-08-09 21:19:35 -04:00
Alex Liebowitz c371c7c758 Make header text display in Safari 2016-08-09 16:33:01 -04:00
Alex Liebowitz 0ebbe4427b Filter NSFW search results (will add option to display them later) 2016-08-09 12:17:02 -04:00
alexliebowitz f78c6a65bb Merge pull request #27 from lbryio/ux_gonna_give_it_to_ya
Wicked awesome UX overhaul
2016-08-09 11:03:57 -04:00
Alex Liebowitz eceaabb93c Make search not get stuck on Dewey Decimals message 2016-08-09 10:58:35 -04:00
Jeremy Kauffman e1bbb7dbdf fix spacing issue 2016-08-09 08:42:32 -04:00
Jeremy Kauffman 2867560fed unify item tiles 2016-08-09 08:42:32 -04:00
Jeremy Kauffman 201a1989d9 fix watch 2016-08-09 08:36:26 -04:00
Jeremy Kauffman c9b7c37e2c more form fixes 2016-08-09 08:36:26 -04:00
Jeremy Kauffman 21b5890448 publish and form tweaks 2016-08-09 08:36:26 -04:00
Jeremy Kauffman 2b07c982e6 result display improvements, search to header 2016-08-09 08:29:22 -04:00
Jeremy Kauffman 007da592f1 crude ability to jump to discover 2016-08-09 08:22:06 -04:00
Jeremy Kauffman a36f0f2691 wallet code + some finer touches on header + nav 2016-08-09 08:22:06 -04:00
Jeremy Kauffman 0d2775138a clean up help, report, and settings 2016-08-09 08:20:19 -04:00
Jeremy Kauffman 7b18774e81 move exit to header 2016-08-09 08:20:19 -04:00
Jeremy Kauffman 2ec42aad26 basic nav design, new title scheme, light page clean up 2016-08-09 08:20:19 -04:00
Jeremy Kauffman 640001c597 store upgrade skip in session 2016-08-09 08:20:19 -04:00
Jeremy Kauffman 98ebf02ca6 split out tool tip to separate component 2016-08-09 08:20:19 -04:00
Jeremy Kauffman 45f14598b9 barebones sidebar + light component refactor 2016-08-09 08:20:19 -04:00
Jeremy Kauffman 24a7d5588e turn return link into a component 2016-08-09 08:20:19 -04:00
Jeremy Kauffman 78f1fde34b only print an item in my_files once 2016-08-09 08:20:19 -04:00
alexliebowitz ad3773ead4 Merge pull request #26 from lbryio/support-own-claims
Change wording and behavior on Publish page when user already controls name
2016-08-09 06:38:24 -04:00
Alex Liebowitz 6b899bdfc0 Pass sources from existing claim to publish() if file not provided 2016-08-09 03:04:54 -04:00
Alex Liebowitz 7a5f478b4d Change wording on Publish page for claims user already controls 2016-08-09 02:46:11 -04:00
Alex Liebowitz 6677769ded Use current value in name field on Publish page 2016-08-08 23:34:11 -04:00
Alex Liebowitz 761ba6f1e2 Properly set default currency 2016-08-08 05:49:30 -04:00
Alex Liebowitz 3d20bc22aa Make Featured Content use TrunctedText 2016-08-08 05:44:15 -04:00
Jeremy Kauffman 31820a8ad8 only print an item in my_files once 2016-08-07 11:29:08 -04:00
Jeremy Kauffman b60037b8d9 fix react warnings 2016-08-07 11:27:00 -04:00
Alex Liebowitz 53843361b6 Make Featured Content and Search use new TruncatedText component 2016-08-04 04:09:03 -04:00
Alex Liebowitz be31598ed9 Add TruncatedText component 2016-08-04 04:08:12 -04:00
Alex Liebowitz aa2f48f359 Add spacing between buttons on Publish page 2016-08-04 03:36:53 -04:00
Alex Liebowitz f4d2ed2af1 Add spacing between buttons on Search page and between search results 2016-08-04 03:33:44 -04:00
Jeremy Kauffman 007a5e55d1 Merge pull request #24 from lbryio/publish-page-july
Publishing support
2016-08-03 15:38:20 -04:00
Alex Liebowitz 5ece0111df Clearly indicate pending files in My Files 2016-08-03 06:57:06 -04:00
Alex Liebowitz c1185b3c9d Update publish success message
Now says that file will appear in My Files immediately but
will initially show up as "pending."
2016-08-03 06:57:06 -04:00
Alex Liebowitz 3c417d0abe Remove PublishPage.readyToPublish() (now unused) 2016-08-03 06:57:06 -04:00
Alex Liebowitz 25e9eff7f2 Change publish link in empty search results to point to Publish page 2016-08-03 06:57:06 -04:00
Alex Liebowitz 00524f5554 Move Publish entry in menu 2016-08-03 06:57:06 -04:00
Alex Liebowitz 7d283743fc More Publish page improvements
- Multiple currency support (USD/LBC)
 - Add bid amount to list of required fields
2016-08-03 06:57:06 -04:00
Alex Liebowitz 655d764213 Use new lbry.getClaimInfo() to get claim status on Publish page 2016-08-03 06:57:06 -04:00
Alex Liebowitz c937b28a99 Make Publish confirmation message show title correctly 2016-08-03 06:57:06 -04:00
Alex Liebowitz 03052fde62 Fix filtering of absent metadata fields 2016-08-03 06:57:06 -04:00
Alex Liebowitz 31417fcc57 Fixed required field test 2016-08-03 06:57:06 -04:00
Alex Liebowitz 9298db089b Remove warnings about non-numeric input (will replace with input filtering)"
Remove warnings about non-numeric input

Will replace with input filtering
2016-08-03 06:57:06 -04:00
Alex Liebowitz 690881ab9e Many small improvements to Publish
- Add NSFW field
   - Send metadata version
   - Convert back to non-nested metadata fields (for now)
   - Made progress bar display properly during the "processing" phase
   - Changed "Publish" button to "Publishing..." during submit
2016-08-03 06:57:06 -04:00
Alex Liebowitz 157a68d4f1 Add checkbox support to FormField component 2016-08-03 06:57:06 -04:00
Alex Liebowitz 45c126a757 In PublishPage.handleSubmit(), return right away when data is missing 2016-08-03 06:57:06 -04:00
Alex Liebowitz 6b9df7be76 Fix unnecessary double call of getValue on license URL field 2016-08-03 06:57:06 -04:00
Alex Liebowitz 45840838b9 Refactor and new features for Publish page
- Publish button no longer grayed out when form is incomplete
 - Now warns about individual missing fields using the new FormField
   component
 - Fixed relaying of error messages from daemon
 - New license URL field
 - License broken into two sub-fields (.license.name, .license.url)
2016-08-03 06:57:06 -04:00
Alex Liebowitz e4f439c12c Add FormField component with required field support 2016-08-03 06:57:06 -04:00
Alex Liebowitz b4fb4b3a5c Add custom colors for form placeholders 2016-08-03 06:57:06 -04:00
Alex Liebowitz 6d23e7af51 Make lbry.publish() call error callback 2016-08-03 06:57:06 -04:00
Alex Liebowitz 7f258b2a14 Fix My Files link on Publish page 2016-08-03 06:57:06 -04:00
Will Moyer c3754e7c56 update styles and layout for Publish page 2016-08-03 06:57:06 -04:00
Alex Liebowitz 683a3cd4b1 More tweaks to Publish page
- Give lbry.publish()  complete data structure for fee (inc.
   currency and address) insteaed of just the amount.
 - Disable Publish button during submit
2016-08-03 06:57:06 -04:00
Alex Liebowitz 5170222e2d Add almost all remaining fields + visual fixes and refactoring 2016-08-03 06:57:06 -04:00
Alex Liebowitz faca7f18d0 Finish core logic of Publish page 2016-08-03 06:57:06 -04:00
Alex Liebowitz c46aecfbd9 Add error handling to lbry.resolveName() and lbry.publish() 2016-08-03 06:57:06 -04:00
Alex Liebowitz 2ec8a5c7fc Basic skeleton of Publish page 2016-08-03 06:57:06 -04:00
Alex Liebowitz d9c6787fac Add lbry.publish() 2016-08-03 06:57:06 -04:00
Alex Liebowitz 1aac7576ae Make update redirect go directly to dmg or deb 2016-08-03 06:56:40 -04:00
alexliebowitz cd1cb858d7 Merge pull request #23 from lbryio/add-wallet-ui
Add Wallet UI
2016-08-03 05:40:09 -04:00
Alex Liebowitz a2856052dc Tweak wording and formatting on Wallet page 2016-08-03 05:37:59 -04:00
Jonas Whidden 629ba32d3a Clean up and Package
The first case is covered by the condition for enabling the send button
2016-08-02 08:35:18 -05:00
Alex Liebowitz 09cad7196b Add low balance checking on Wallet page 2016-08-02 05:36:00 -04:00
Jonas Whidden 4b521f29e6 Change phrasing 2016-08-02 05:36:00 -04:00
Jonas Whidden 0f2db3e00a Make it prettier 2016-08-02 05:36:00 -04:00
Jonas Whidden a9d95bf76b Fix send amount to address 2016-08-02 05:36:00 -04:00
Jonas Whidden 31cf170e35 Wallet branch 2016-08-02 05:36:00 -04:00
Jonas Whidden 0131294b91 Use bank icon for wallet menu item 2016-08-02 05:36:00 -04:00
Jonas Whidden 61c73e0ae2 Commit was left out 2016-08-02 05:36:00 -04:00
Jonas Whidden d72e077ad3 Add basic wallet functionality 2016-08-02 05:36:00 -04:00
Alex Liebowitz 9a01b7202f Alert user if they don't have enough credits for watch/download 2016-08-02 05:12:52 -04:00
Alex Liebowitz 7b8a4918a1 Make it clear the search box is actually a search box now
(Thanks Jack)

This reverts commit a7ae10530e.
2016-07-30 04:29:13 -04:00
Alex Liebowitz cfbadd7007 Make Featured Content use lbry.getCostEstimate() 2016-07-30 04:23:41 -04:00
Alex Liebowitz 7c77f166cd Make Show page use lbry.getClaimInfo() and lbry.getCostEstimate() 2016-07-30 03:47:31 -04:00
Alex Liebowitz 1fcf1b4325 Add lbry.getCostEstimate() stub 2016-07-30 03:45:31 -04:00
Alex Liebowitz 8a62bbf808 Add lbry.getClaimInfo() stub 2016-07-30 02:42:53 -04:00
Alex Liebowitz aff6308846 Add character cutoff on descriptions for featured and community content 2016-07-27 06:25:26 -04:00
Alex Liebowitz aa968e2b13 Small style fixes on home page 2016-07-27 06:24:10 -04:00
Jeremy Kauffman a7ae10530e make it clear the search box is not actually a search box 2016-07-26 09:19:54 -04:00
Jeremy Kauffman 1048f110da capitalize area names 2016-07-26 09:03:46 -04:00
Jeremy Kauffman 7c418c0ea6 fix ?files failing to load after publish 2016-07-26 09:02:28 -04:00
Jeremy Kauffman f191ddf623 Merge pull request #22 from lbryio/community-content
Community content (WIP)
2016-07-26 08:45:41 -04:00
Alex Liebowitz 3d6e66a4bf Add Community Content section to home page 2016-07-26 08:02:55 -04:00
Alex Liebowitz 6f16b76bb3 Add tooltip support to Link component 2016-07-26 08:01:54 -04:00
Jeremy Kauffman 73a70b7a61 minor formatting fix 2016-07-24 11:55:24 -04:00
Alex Liebowitz fe66cc502c Use error message from claim code endpoint 2016-07-22 23:46:37 -04:00
alexliebowitz 1e026bebe4 Merge pull request #20 from lbryio/add-travis
Build the frontend assets on travis and deploy to S3
2016-07-22 17:02:33 -04:00
Job Evers af553c6ac0 Build the frontend assets on travis and deploy to S3 2016-07-22 10:59:39 -05:00
Alex Liebowitz 820ffc2a40 Send user directly to GitHub releases page 2016-07-22 01:18:36 -04:00
Alex Liebowitz 8b8bcc644c Switch to int comparison in version check 2016-07-22 00:20:16 -04:00
Alex Liebowitz 27341cd55e Restore normal claim code page
This reverts commit 8a984f0519.
2016-07-21 13:43:23 -04:00
Alex Liebowitz 8a984f0519 Disable claim codes (temporary) 2016-07-20 23:30:08 -04:00
Jeremy Kauffman c43c21672d add common issue 2016-07-20 22:06:39 -04:00
Jeremy Kauffman 94c2479d06 Merge pull request #19 from lbryio/kimihiro64-patch-2
Clarify testing
2016-07-20 22:05:00 -04:00
kimihiro64 aede1ca623 Clarify testing 2016-07-20 18:25:23 -05:00
Alex Liebowitz 0ef5ce3bd4 Update dist.zip 2016-07-20 18:45:44 -04:00
Alex Liebowitz a373349a6b Update dist.zip 2016-07-20 16:26:04 -04:00
Alex Liebowitz 597fa08154 Add MediaElement.js to main repo (not just dist.zip) 2016-07-20 16:20:25 -04:00
Jeremy Kauffman ad33c0e4b5 minor install tweaks 2016-07-20 14:24:54 -04:00
Jack fbd68aa2b7 re-add dist.zip 2016-07-19 12:33:55 -04:00
Jack 0dbf33fd62 dist.zip 2016-07-19 12:32:09 -04:00
Jack 5e5ba8910a fix dist.zip 2016-07-19 12:11:34 -04:00
alexliebowitz 946785bed2 Merge pull request #12 from kimihiro64/add-detail-page
Add detail page
2016-07-19 02:20:27 -04:00
Jonas Whidden cc28af2436 Merge branch 'master' into add-detail-page
# Conflicts:
#	dist.zip
2016-07-19 00:41:27 -05:00
Jack Robison b298dc889a Merge pull request #16 from kimihiro64/fix-news-get
Turns out www was the culprit, not http.
2016-07-19 01:06:42 -04:00
Jonas Whidden 685f39b764 Turns out www was the culprit, not http. 2016-07-18 23:51:22 -05:00
Jack b5da0d673f update dist.zip
update to
https://github.com/lbryio/lbry-web-ui/commit/7c86ae047171baaf8bf86ab2682
a8683886129a6
2016-07-19 00:18:19 -04:00
Jonas Whidden 50de564183 Update dis.zip 2016-07-18 21:54:06 -05:00
Jeremy Kauffman 7c86ae0471 Merge pull request #14 from kimihiro64/patch-1
Change update location
2016-07-18 13:23:12 -04:00
Jonas Whidden 97f44b9072 More show links 2016-07-18 11:22:45 -05:00
kimihiro64 f6d0585ba7 Change update location
Needs to be https://www.lbry.io/get. For some reason if it's non https, it redirects to https://www.lbry.io/news/get.
2016-07-18 09:40:52 -05:00
Jonas Whidden 8890a0cb8c Make title a link to show page, make watch link not use lory:// 2016-07-17 17:16:57 -05:00
Jonas Whidden 151cb22684 Use escaped to access content-type 2016-07-17 09:20:37 -05:00
Jonas Whidden 4c8bdc27ec Refactor to use results only since it contains everything, add message when no results found, wait for results data to load before display page, extract variables for cleaner JTX. Using results.content_type which for now is null, the actual property is results.content-type, but that's syntactically ambiguous so there's no way to resolve the name. Requires a change in LBRY to send content_type instead of content-type. 2016-07-16 12:14:06 -05:00
Jonas Whidden c7f92bdf5a Design audit, need to add entry to show file type 2016-07-16 00:43:12 -05:00
Jonas Whidden ea178e6ae4 Fix bigs with JTX 2016-07-16 00:19:40 -05:00
Jonas Whidden f7790e8bf8 Initial show page commit 2016-07-15 21:58:24 -05:00
alexliebowitz 2a94c824e5 Merge pull request #11 from lbryio/jeremy_ux
bold titles, better image sizes, minor rework of homepage
2016-07-14 01:36:51 -04:00
Jeremy Kauffman 5d7f920bc6 bold titles, better image sizes, minor rework of homepage 2016-07-13 21:46:26 -04:00
Alex Liebowitz 49eaa25423 Remove all mention of "200 credits," to support other offers 2016-07-05 10:32:25 -04:00
Alex Liebowitz 54140ee069 Update dist.zip 2016-07-05 01:58:07 -04:00
Alex Liebowitz 5ff7bd30eb Alignment and formatting tweaks 2016-07-05 01:39:53 -04:00
Alex Liebowitz 40c336db9b URL encode arguments for invite endpoint 2016-07-04 22:07:24 -04:00
Alex Liebowitz 2ad24c6b0d General Featured Content improvements 2016-07-04 21:58:17 -04:00
Alex Liebowitz 597e450dd5 UI tweaks 2016-07-04 20:02:06 -04:00
alexliebowitz 5b33411a74 Give claim code "skip" button alt style 2016-07-04 15:05:26 -04:00
alexliebowitz 28905347f8 Typo 2016-07-04 14:58:31 -04:00
alexliebowitz cb19a5dba5 Fix mandatory field handling in claim code form 2016-07-04 14:58:00 -04:00
alexliebowitz f06c0e7c1b Make email required in claim code form 2016-07-04 14:55:18 -04:00
alexliebowitz 8d9f793275 Merge pull request #10 from lbryio/claim-code
Add claim code page
2016-07-04 12:07:30 -04:00
Alex Liebowitz 5f2174dd07 Add claim code page 2016-07-04 12:05:26 -04:00
alexliebowitz 2ce6fb0da6 Merge pull request #9 from lbryio/mediaelement
Switch to MediaElement video player
2016-07-04 12:02:13 -04:00
Alex Liebowitz ab15d96efe Fix version check logic (Pt. 2) 2016-06-30 01:27:31 -04:00
Alex Liebowitz b38b069034 Update dist.zip 2016-06-30 00:47:34 -04:00
Alex Liebowitz 11f450bde0 Merge branch 'mediaelement' of https://github.com/lbryio/lbry-web-ui into mediaelement 2016-06-30 00:42:38 -04:00
Alex Liebowitz c5d93f7bb1 Fix version check logic 2016-06-30 00:39:41 -04:00
Jack 0074e80c1f fix zip 2016-06-27 17:18:04 -04:00
Jack 45d74d0de9 update dist.zip
update to
https://github.com/lbryio/lbry-web-ui/commit/cdc31b3006bee3260b5252a090c
b275eae4a99ee
2016-06-27 17:16:31 -04:00
alexliebowitz cdc31b3006 Make search results use new standard "title" field 2016-06-27 16:40:49 -04:00
alexliebowitz 2834bc01f4 Change My Files to use new standard "title" field 2016-06-27 16:38:08 -04:00
Alex Liebowitz 5f7c4a8121 Make styles for MediaElement.js to add letterboxing 2016-06-06 04:52:52 -04:00
Alex Liebowitz e6869e2cf7 Convert all.scss to UNIX line endings 2016-06-06 04:42:17 -04:00
Alex Liebowitz 986a2bf16e Switch to MediaElement (all done except letterboxing) 2016-06-03 07:45:03 -04:00
Alex Liebowitz 5f5e3ae5c6 Version check/upgrade improvements
- Upgrading is now optional
  - Move version comparison logic into JS (Jack took it out of the daemon)
2016-05-30 09:43:34 -04:00
Alex Liebowitz 92105f1bf4 Change option wording to non-OS-specific "Reveal file" for now 2016-05-30 09:37:47 -04:00
alexliebowitz 14d8b3de52 Merge pull request #8 from lbryio/my-files-more-menu
"More Options" menu on My Files page
2016-05-30 09:04:54 -04:00
Alex Liebowitz 142c0dad9e Make "Remove from LBRY" and "Delete file" options work 2016-05-30 08:54:08 -04:00
Alex Liebowitz 9aabfc171c Basics of More Options menu on My Files items 2016-05-30 04:16:33 -04:00
Jack df31e97e60 update dist.zip
update to
https://github.com/lbryio/lbry-web-ui/commit/77b5b0465be3033975c479ec58f
f3c56b2121786
2016-05-29 22:45:07 -04:00
Jack 77b5b0465b add requirements.txt 2016-05-29 22:43:36 -04:00
Alex Liebowitz c49b70049e Remove some debug code 2016-05-29 05:28:06 -04:00
alexliebowitz 409be530c3 Merge pull request #7 from lbryio/featured-content-support
Featured content support
2016-05-29 04:59:55 -04:00
Alex Liebowitz 909685a70e Merge branch 'master' into featured-content-support 2016-05-29 04:58:10 -04:00
Alex Liebowitz dc8b0e9df6 Hide featured content for now 2016-05-29 04:41:57 -04:00
Alex Liebowitz c132de88b0 Make menu icons bigger 2016-05-29 04:30:28 -04:00
Alex Liebowitz 9550a08b51 Center art on My Files page 2016-05-29 04:30:28 -04:00
Alex Liebowitz 823489baed Fix rounding error causing progress bar to grow and shrink 1px 2016-05-29 04:30:27 -04:00
Alex Liebowitz 6db7551911 Fix missing padding before "Return" link in My Files 2016-05-29 04:30:27 -04:00
Alex Liebowitz 1894f833a5 Make My Files page use new WatchLink component 2016-05-29 04:30:27 -04:00
Alex Liebowitz db76714801 Indentation fix in my_files.js 2016-05-29 04:30:27 -04:00
Alex Liebowitz be74a51d9f Streamline featured content styles; spacing tweaks 2016-05-29 04:30:26 -04:00
Alex Liebowitz f16d9f044b Make Featured Content reappear the same moment search results disappear 2016-05-29 04:30:26 -04:00
Alex Liebowitz ddb430c2c0 Factor out DownloadLink and WatchLink into standalone components 2016-05-29 04:30:26 -04:00
Alex Liebowitz 1609cc0e3f Merge branch 'my-files-page' 2016-05-29 04:02:33 -04:00
Alex Liebowitz c41c9c07c3 Make menu close when user clicks away
Also moved toggle button handling into Menu component to simplify
logic.
2016-05-28 06:33:42 -04:00
Alex Liebowitz 85f13d9991 Add padding to main menu 2016-05-28 03:08:34 -04:00
Alex Liebowitz cc75ff9aff Main menu improvements
- Move most of the code into generic Menu and MenuItem components
  - Icons can go left or right of text
  - Make icons fixed width (fixes ragged left edge of labels)
  - Labels underlined on hover only
2016-05-27 07:18:42 -04:00
Alex Liebowitz 2b3dd4b1df CSS tweaks for menu: support fixed width icons, non-underlined links 2016-05-27 07:04:37 -04:00
Alex Liebowitz 8ec07a42a6 Add back Linux check for close button 2016-05-23 13:01:53 -04:00
Alex Liebowitz cce187ad62 Add small LBRY logo to top of sub-pages 2016-05-23 10:24:23 -04:00
Alex Liebowitz 926fce72af Convert main menu to drop down 2016-05-23 09:56:21 -04:00
Alex Liebowitz 4977729409 Make watch page full width (override 800px page width) 2016-05-23 08:16:41 -04:00
Jeremy Kauffman bbe3bb4862 verbiage on help 2016-05-20 11:54:53 -04:00
Jeremy Kauffman c8ff35920c remove osx litter 2016-05-20 11:33:28 -04:00
Jeremy Kauffman b762ab79c2 no osx garbage in repo pls 2016-05-20 11:32:48 -04:00
Jack edc0ef2060 update dist.zip to my-files-page 2016-05-16 20:25:56 -04:00
Alex Liebowitz 5b11964e59 Add basics of Featured Content with dummy entries 2016-05-16 09:45:49 -04:00
Alex Liebowitz 4593e8600d Add lbry.resolveName() 2016-05-16 09:17:53 -04:00
Alex Liebowitz 6ac17ae675 Vertically center download start/stop icon 2016-05-16 06:22:14 -04:00
Alex Liebowitz f8f1d97150 Add Watch button to video streams 2016-05-16 05:00:20 -04:00
Alex Liebowitz ecc20adaa9 Add lbry.getMediaType() 2016-05-16 04:16:40 -04:00
Alex Liebowitz 2824447c6c Make stream name display more robust (inc. fall back to URI) 2016-05-16 03:10:02 -04:00
Alex Liebowitz 00ade0a78b Make pause/resume button update correctly 2016-05-16 01:48:27 -04:00
Alex Liebowitz 668e1d7a5d Basic layout with working pause/resume/remove file functionality 2016-05-14 08:27:11 -04:00
Alex Liebowitz f2f7698d3d Add startFile, stopFile, deleteFile functions to lbry module 2016-05-14 08:27:11 -04:00
Alex Liebowitz 32c2c94b95 Basics of My Files page 2016-05-14 08:27:10 -04:00
Alex Liebowitz 8a9d883956 Add title prop to Link class 2016-05-14 08:27:10 -04:00
Alex Liebowitz a6b97d75ab Add lbry.getFilesInfo() 2016-05-14 08:27:10 -04:00
Alex Liebowitz 9a2125ae4a Add My Files menu item and titles for all menu items 2016-05-14 08:27:09 -04:00
Alex Liebowitz 3246e93766 Make 1000 LBC notice only appear on home page 2016-05-14 08:27:09 -04:00
Jack 6e36cf67f1 update dist.zip
update to
https://github.com/lbryio/lbry-web-ui/commit/9071b2b1a97368e88a603974720
c89f0cda85d83
2016-05-13 19:42:26 -04:00
Alex Liebowitz 9071b2b1a9 Switch to FlowPlayer to fix streaming issues and simplify code 2016-05-13 07:51:46 -04:00
Jack 3ae53eda6b update dist.zip
update to
https://github.com/lbryio/lbry-web-ui/commit/d3745e13d181b64c77380c05978
1aba5a120da81
2016-05-11 04:50:01 -04:00
Alex Liebowitz d3745e13d1 Make 15 sec fallback loop start when video is created, loop properly 2016-05-11 03:17:42 -04:00
Jack Robison 5870f42ab3 Merge pull request #2 from lbryio/help-page
Help page and video loading
2016-05-06 03:15:13 -04:00
Jack 27b0db0528 Merge branch 'master' into help-page
# Conflicts:
#	dist.zip
2016-05-06 03:14:15 -04:00
Jack 55d18758b4 update dist.zip
update to:
https://github.com/lbryio/lbry-web-ui/commit/e5e4802143f66ef8c7b145c2307
4a93a371f761f
2016-05-05 18:43:13 -04:00
Alex Liebowitz e5e4802143 Add fallback routine to call .load() every 15 seconds if a video fails to load 2016-05-05 08:10:19 -04:00
Alex Liebowitz c74629f5d3 Pre-render video hidden, then launch when it reports it can play 2016-05-05 06:58:06 -04:00
Alex Liebowitz 5b0f2e638a Hide video until it's playable and show loading message 2016-05-05 04:12:23 -04:00
Alex Liebowitz 31bf22cbf1 Add lbry.getFileStatus() 2016-05-05 04:08:37 -04:00
Alex Liebowitz b9d30cf85e Remove video ready state poll (video now starts on first try) 2016-04-27 01:28:45 -04:00
Alex Liebowitz 54a125673e Fix image captions in search results 2016-04-25 06:58:40 -04:00
Alex Liebowitz 1d4a259135 Vertically center inline icons 2016-04-25 06:57:47 -04:00
Jack c05b7cad96 update dist.zip
update to:
https://github.com/lbryio/lbry-web-ui/commit/32784f5ad00df5f457e461b4721
da3eabb64c16f
2016-04-24 17:53:24 -04:00
Alex Liebowitz 32784f5ad0 Improve wording and formatting on Help page 2016-04-24 05:01:47 -04:00
Alex Liebowitz 0c135bd774 Add style for <p> 2016-04-24 04:59:55 -04:00
Alex Liebowitz 366a16b933 Add "Report a Bug" page to replace Jack's temporary one 2016-04-23 08:20:54 -04:00
Alex Liebowitz f91ba86295 Add lbry.reportBug() 2016-04-23 08:19:15 -04:00
Jack 17e0ebdc80 update dist.zip
update to:
https://github.com/lbryio/lbry-web-ui/commit/4924b8d272447f9e635568cd8b7
4205b655c2a58
2016-04-22 19:10:20 -04:00
Alex Liebowitz 4924b8d272 Keep trying to load video until it's available (temporary) 2016-04-22 06:46:36 -04:00
Jack bcb7bc373b change variable 'default_download_directory' to 'download_directory' 2016-04-22 02:48:07 -04:00
Jack 5a2f014cb7 update dist.zip
update to
https://github.com/lbryio/lbry-web-ui/commit/0c3cc55a317bc088ac3ccd4668b
3374b090d11e2
2016-04-21 16:48:48 -04:00
Jack f716219715 update dist.zip
update to
https://github.com/lbryio/lbry-web-ui/commit/96745ef2b6c8aec5e8751670c01
a5c46aeecbab7
2016-04-21 15:24:13 -04:00
Alex Liebowitz 0c3cc55a31 Fix "Download" link; also notify user and disable link on click. 2016-04-21 06:55:41 -04:00
Alex Liebowitz 80fdf2fd5f add lbry.getStreamInfo() 2016-04-21 06:16:40 -04:00
Alex Liebowitz 7f96f534a1 Move video viewing into front end 2016-04-21 05:54:18 -04:00
Jack a9b58b4020 fix chrome link problem
update to
https://github.com/lbryio/lbry-web-ui/commit/96745ef2b6c8aec5e8751670c01
2016-04-21 01:00:22 -04:00
Alex Liebowitz 96745ef2b6 Switch from full URI to absolute path for View links 2016-04-21 00:52:07 -04:00
Jack 7ba7232b59 update dist.zip
update to
https://github.com/lbryio/lbry-web-ui/commit/6faca8e669dddcdf0fddb581d9d
5fbd11ef32a8d
2016-04-20 15:27:23 -04:00
Jack 6faca8e669 add help text 2016-04-20 15:25:39 -04:00
Alex Liebowitz a4f02c8ae9 Add "close" button on Linux with landing page to restart 2016-04-20 08:18:55 -04:00
Alex Liebowitz b5fcb77e22 Add basics of Help page 2016-04-20 06:28:13 -04:00
Alex Liebowitz 5f64e0dbae Stop daemon before sending user to get new version
Daemon versions <= 0.2.2 don't support the "stop" method on O SX, so
we ask those users to manually exit LBRY
2016-04-20 05:46:29 -04:00
Alex Liebowitz 19933c53e5 Add lbry.getVersionInfo() and lbry.stop() 2016-04-20 05:38:00 -04:00
Jack 590da0e674 update dist.zip
update to:
https://github.com/lbryio/lbry-web-ui/commit/0ff8dd7b84132e04e0725c1ab6e
ba530da703ada
2016-04-17 21:36:43 -04:00
Alex Liebowitz 0ff8dd7b84 Remove load screen timeout (lagging is now reported by daemon) 2016-04-17 21:32:45 -04:00
Alex Liebowitz 8267646d93 Use localhost URLs for links in Chrome and on Windows (temporary)
Probably would be better to pass URL prefix via props or context, but it's
temporary code anyway.
2016-04-16 06:33:30 -04:00
Jack Robison b07aea9cf2 Merge pull request #1 from lbryio/settings-page
merge updates from settings-page
2016-04-16 01:10:42 -04:00
Jack afcd5bddc4 update dist.zip
https://github.com/lbryio/lbry-web-ui/commit/6ab085d74b62a084eec54561ba8
345e3a271aa8a
2016-04-15 21:24:57 -04:00
Jack 914af6980b update dis.zip
update to commit:
https://github.com/lbryio/lbry-web-ui/commit/6ab085d74b62a084eec54561ba8
345e3a271aa8a
2016-04-15 19:12:50 -04:00
Alex Liebowitz 6ab085d74b Convert lagging notice from alert to regular message 2016-04-15 06:41:01 -04:00
Jack e43daed8a7 update dist.zip
update to:
https://github.com/lbryio/lbry-web-ui/commit/f34d0c9ad84f8cff2980147037b
b2af73e1f0922
2016-04-14 16:29:10 -04:00
Alex Liebowitz f34d0c9ad8 Add details from daemon to splash message 2016-04-14 04:21:36 -04:00
Alex Liebowitz 3b705ada7b Basic load status checking logic and notify user when lagging 2016-04-14 02:27:06 -04:00
Alex Liebowitz 8deb62cc76 Let SplashScreen trigger render of App
The splash screen will soon poll for loading progress info, so we might as well
launch App directly from SplashScreen instead of having two separate polls.
2016-04-14 01:49:00 -04:00
Alex Liebowitz 7c1fb5bcb2 Add lbry.getDaemonStatus() 2016-04-14 00:40:31 -04:00
Jack 105738db12 update dist.zip
update to commit:
https://github.com/lbryio/lbry-web-ui/commit/7ec2b469609ba288643a6c0e6d7
9e82c08f3e4d2
2016-04-13 21:44:35 -04:00
Alex Liebowitz 7ec2b46960 Add missing args param to check_for_new_version call 2016-04-13 21:21:35 -04:00
Jack 698b08cff5 update dist zip
update to commit:
https://github.com/lbryio/lbry-web-ui/commit/f8c0382db0e2aa251c68ce8926d
15ca75801b3a8
2016-04-13 02:36:32 -04:00
Alex Liebowitz f8c0382db0 If user has old version, redirect them to lbry.io/[os] to upgrade
The OS checking is ugly, but once we have an "upgrade" page on lbry.io we'll change it to point there
2016-04-12 06:35:14 -04:00
Alex Liebowitz 458ff88602 Extend timeout to 5 minutes 2016-04-12 05:07:17 -04:00
Alex Liebowitz 1c896a4243 Switch to callback based error handling for daemon requests 2016-04-12 05:00:27 -04:00
Alex Liebowitz dd4b7a621b Rename gui.js to main.js (per Jeremy's changes)) 2016-04-12 04:52:42 -04:00
Jack c0f51c446e fix directory 2016-04-11 15:30:21 -04:00
Jack f4b30dade1 update dist zip 2016-04-11 14:38:53 -04:00
Jeremy Kauffman 2447a15a73 Update watch.sh 2016-04-10 16:25:26 -04:00
Jeremy Kauffman f7cc73c113 one more function to remove 2016-04-09 20:03:23 -04:00
Jeremy Kauffman 3a6e1529d8 settings UI, clean up 2016-04-09 20:00:56 -04:00
Alex Liebowitz 8cf9395ea8 Display startup message if provided by daemon 2016-04-09 06:44:46 -04:00
Alex Liebowitz 21ba8ae8b3 Code style fixes and typos 2016-04-09 05:10:42 -04:00
Alex Liebowitz 123e6760bc Finish pre-population; fix saving of "share diagnostic data" field 2016-04-09 03:47:56 -04:00
Alex Liebowitz 496dbaea34 Add "Share diagnostic data" option 2016-04-09 03:05:06 -04:00
Alex Liebowitz 1c602449fe Improve wording and layout; make all fields save 2016-04-08 12:08:48 -04:00
Alex Liebowitz 790124d25a First sorta-working draft of Settings page
- Includes all fields except some I need to ask Jack about (layout details)
  - Loads current settings and saves one (run_on_startup)
  - Also made success callback in lbry.call() optional (don't need it for set_settings)
2016-04-03 09:13:15 -04:00
Alex Liebowitz 485c7fafbe Add support for multiple pages and basic outline of Settings page 2016-03-31 06:22:31 -04:00
Alex Liebowitz fa7fd4c589 Update lbry.call() for Jack's JSONception fix 2016-03-30 05:35:42 -04:00
Alex Liebowitz 2f8e5873f4 Break out menu into its own component 2016-03-27 01:50:27 -04:00
Alex Liebowitz d6a432fe75 Move top bar into its own component 2016-03-27 01:41:36 -04:00
Alex Liebowitz 29f8018cef Fix missing titles in search results 2016-03-27 01:23:37 -04:00
Alex Liebowitz 841fc40568 Fix empty style passed as string instead of object 2016-03-27 01:22:07 -04:00
Alex Liebowitz baa604cdb1 Add menu bar with settings icon and supporting changes
- Added class support and "fade in" option to Link component
2016-03-25 03:31:20 -04:00
Alex Liebowitz 4bdadc4551 Fixes to improve loading screen
- Add optional "connection failed" callback to lbry.call()
- Make loading screen handle condition where daemon is not running at all (i.e. AJAX connection fails)
2016-03-24 21:20:58 -04:00
Jack 9bf1e6c55a fix zip file
supposed to contain the contents of dist, not dist itself
2016-03-24 16:04:52 -04:00
Jack 0411050078 use real loading screen
loading animation plays while app is still connecting
2016-03-24 15:35:35 -04:00
Alex Liebowitz b2bcf3a436 Implement lbry.connect(); loading screen now actually checks if the daemon is loaded 2016-03-24 03:08:39 -04:00
Jack 74636bad63 add zip of pre-built UI 2016-03-22 09:50:21 -04:00
Jack 279fc434c1 fix thumbnail and font paths, add default thumbnail image
also remove reference to unused script (mimic.js) from index.html
2016-03-21 12:04:46 -04:00
Jack 443b4520c3 fix a path, remove unneeded file, fix parameter formatting 2016-03-21 10:10:19 -04:00
Alex Liebowitz 972674ce2e Implement lbry.call() and get balance display working 2016-03-21 02:31:25 -04:00
Jeremy Kauffman 8c39a0716f api tweak 2016-03-16 17:57:41 -04:00
Jeremy Kauffman 7974c66515 ensure folders exist 2016-03-15 12:12:43 -04:00
Jeremy Kauffman c8d425ada2 add a README 2016-03-15 12:10:27 -04:00
Jeremy Kauffman 5b2867f830 full frontend separation (you must be 18+ to view this commit) 2016-03-15 12:05:11 -04:00
Jeremy Kauffman 62ba2b8585 initial commit (broken) 2016-03-14 18:05:24 -04:00
1349 changed files with 33388 additions and 152461 deletions

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
[bumpversion]
current_version = 0.9.2rc19
commit = True
tag = True
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>[a-z]+)(?P<candidate>\d+))?
serialize =
{major}.{minor}.{patch}{release}{candidate}
{major}.{minor}.{patch}
[bumpversion:part:candidate]
first_value = 1
[bumpversion:part:release]
optional_value = production
values =
rc
production
[bumpversion:file:app/package.json]
[bumpversion:file:ui/package.json]
-105
View File
@@ -1,105 +0,0 @@
####### .env.default #########
# Copy this file to .env to make modifications
# Base config
WEBPACK_WEB_PORT=9090
WEBPACK_ELECTRON_PORT=9091
WEB_SERVER_PORT=1337
## APIS
LBRY_WEB_API=https://api.na-backend.odysee.com
LBRY_WEB_STREAMING_API=https://cdn.lbryplayer.xyz
LBRY_WEB_BUFFER_API=https://collector-service.api.lbry.tv/api/v1/events/video
COMMENT_SERVER_API=https://comments.lbry.com/api/v2
THUMBNAIL_CDN_URL=https://image-processor.vanwanet.com/optimize/
WELCOME_VERSION=1.0
# STRIPE
STRIPE_PUBLIC_KEY='pk_test_NoL1JWL7i1ipfhVId5KfDZgo'
# Analytics
MATOMO_URL=https://analytics.lbry.com/
MATOMO_ID=4
# OG
OG_TITLE_SUFFIX=| lbry.tv
OG_HOMEPAGE_TITLE=lbry.tv
OG_IMAGE_URL=
SITE_CANONICAL_URL=https://lbry.tv
# UI
## Custom Site info
DOMAIN=lbry.tv
URL=https://lbry.tv
SITE_TITLE=lbry.tv
SITE_NAME=lbry.tv
SITE_DESCRIPTION=Meet LBRY, an open, free, and community-controlled content wonderland.
SITE_HELP_EMAIL=help@lbry.com
LOGO_TITLE=lbry.tv
## IMAGE ASSETS
YRBL_HAPPY_IMG_URL=https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-happy/7aa50a7e5adaf48691935d55e45d697547392929/839d9a
YRBL_SAD_IMG_URL=https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-sad/c2d9649633d974e5ffb503925e1f17d951f1bd0f/f262dd
#LOGIN_IMG_URL=https://cdn.lbryplayer.xyz/api/v3/streams/free/login/b671946e911c66c5fa7233afb35de2badd9eceb8/0e1d81
#LOGO=https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-sad/c2d9649633d974e5ffb503925e1f17d951f1bd0f/f262dd
#LOGO_TEXT_LIGHT=https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-sad/c2d9649633d974e5ffb503925e1f17d951f1bd0f/f262dd
#LOGO_TEXT_DARK=https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-sad/c2d9649633d974e5ffb503925e1f17d951f1bd0f/f262dd
#AVATAR_DEFAULT=
#FAVICON=
# LOCALE
DEFAULT_LANGUAGE=en
## CUSTOM SETTINGS
# Additional settings for below are found in ui/constants/settings and are for
# preventing user settings from applying to custom sites without overwriting them.
# UNSYNCED_SETTINGS='theme dark_mode_times automatic_dark_mode_enabled'
## LINKED CONTENT WHITELIST
KNOWN_APP_DOMAINS=lbry.tv,lbry.lat,odysee.com
## CUSTOM CONTENT
# If the following is true, copy custom/homepage.example.js to custom/homepage.js and modify
CUSTOM_HOMEPAGE=false
# Add channels to auto-follow on first run
AUTO_FOLLOW_CHANNELS=lbry://@lbry#3fda836a92faaceedfe398225fb9b2ee2ed1f01a
## FEATURES AND LIMITS
SIMPLE_SITE=false
ENABLE_COMMENT_REACTIONS=true
ENABLE_FILE_REACTIONS=false
ENABLE_CREATOR_REACTIONS=false
ENABLE_NO_SOURCE_CLAIMS=false
ENABLE_PREROLL_ADS=false
CHANNEL_STAKED_LEVEL_VIDEO_COMMENTS=4
CHANNEL_STAKED_LEVEL_LIVESTREAM=5
WEB_PUBLISH_SIZE_LIMIT_GB=4
LOADING_BAR_COLOR=#2bbb90
LIGHTHOUSE_DEFAULT_TYPES=audio,video,text,image,application
SHOW_ADS=true
## SIMPLE_SITE REPLACEMENTS
ENABLE_MATURE=true
ENABLE_UI_NOTIFICATIONS=false
#ENABLE_LINK_TO_APP=true
#FORCE_ANALYTICS=true
#ENABLE_ADVANCED_FILTER=true
#ENABLE_PAID_CONTENT=true
#USE_FOOTER=true
#USE_DISCOVER_WHITELIST=false
#ENABLE_WILD_WEST=false
#FULL_SIDE_LINKS=true
#SHOW_TAGS_INTRO=false
# SEARCH TYPES
#VIDEO_ENABLED=true
#AUDIO_ENABLED=true
#POSTS_ENABLED=true
#IMAGES_ENABLED=true
#FILES_ENABLED=true
#MODELS_ENABLED=true
-4
View File
@@ -1,4 +0,0 @@
node_modules/*
./node_modules/**
**/node_modules/**
web/dist/**
-63
View File
@@ -1,63 +0,0 @@
{
"parser": "babel-eslint",
"extends": ["standard", "standard-jsx", "plugin:react/recommended", "plugin:flowtype/recommended"],
"plugins": ["flowtype", "import", "react-hooks"],
"env": {
"browser": true,
"node": true
},
"globals": {
"__static": true,
"i18n": true,
"__": true,
"app": true,
"IS_WEB": true,
"WEBPACK_PORT": true
},
"settings": {
"react": {
"version": "detect"
}
},
"rules": {
"brace-style": 0,
"camelcase": 0,
"comma-dangle": ["error", "always-multiline"],
"handle-callback-err": 0,
"indent": 0,
"jsx-quotes": ["error", "prefer-double"],
"new-cap": 0,
"no-console": 1,
"no-control-regex": 0,
"no-multi-spaces": 0,
"no-redeclare": 0,
"no-return-await": 0,
"object-curly-spacing": 0,
"one-var": 0,
"prefer-promise-reject-errors": 0,
"promise/param-names": 0,
"react/jsx-indent": 0,
"react/jsx-no-comment-textnodes": 0,
"react-hooks/exhaustive-deps": "warn",
"react-hooks/rules-of-hooks": "error",
"react/no-unescaped-entities": 0,
"space-before-function-paren": [
"warn",
{
"anonymous": "never",
"named": "never",
"asyncArrow": "always"
}
],
"standard/object-curly-even-spacing": 0,
"standard/no-callback-literal": 0,
"react/display-name": 0,
"semi": [
"error",
"always",
{
"omitLastInOneLineBlock": true
}
]
}
}
-44
View File
@@ -1,44 +0,0 @@
[ignore]
.*\.typeface\.json
.*/node_modules/findup/.*
.*/node_modules/react-plastic/.*
[include]
[libs]
./flow-typed
node_modules/lbry-redux/flow-typed/
node_modules/lbryinc/flow-typed/
[untyped]
.*/node_modules/lbry-redux
.*/node_modules/lbryinc
[lints]
[options]
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue
module.name_mapper='^constants\(.*\)$' -> '<PROJECT_ROOT>/ui/constants\1'
module.name_mapper='^util\(.*\)$' -> '<PROJECT_ROOT>/ui/util\1'
module.name_mapper='^redux\(.*\)$' -> '<PROJECT_ROOT>/ui/redux\1'
module.name_mapper='^types\(.*\)$' -> '<PROJECT_ROOT>/ui/types\1'
module.name_mapper='^component\(.*\)$' -> '<PROJECT_ROOT>/ui/component\1'
module.name_mapper='^page\(.*\)$' -> '<PROJECT_ROOT>/ui/page\1'
module.name_mapper='^lbry\(.*\)$' -> '<PROJECT_ROOT>/ui/lbry\1'
module.name_mapper='^modal\(.*\)$' -> '<PROJECT_ROOT>/ui/modal\1'
module.name_mapper='^app\(.*\)$' -> '<PROJECT_ROOT>/ui/app\1'
module.name_mapper='^native\(.*\)$' -> '<PROJECT_ROOT>/ui/native\1'
module.name_mapper='^analytics\(.*\)$' -> '<PROJECT_ROOT>/ui/analytics\1'
module.name_mapper='^rewards\(.*\)$' -> '<PROJECT_ROOT>/ui/rewards\1'
module.name_mapper='^i18n\(.*\)$' -> '<PROJECT_ROOT>/ui/i18n\1'
module.name_mapper='^effects\(.*\)$' -> '<PROJECT_ROOT>/ui/effects\1'
module.name_mapper='^comments\(.*\)$' -> '<PROJECT_ROOT>/ui/comments\1'
module.name_mapper='^config\(.*\)$' -> '<PROJECT_ROOT>/config\1'
module.name_mapper='^web\/component\(.*\)$' -> '<PROJECT_ROOT>/web/component\1'
module.name_mapper='^web\/effects\(.*\)$' -> '<PROJECT_ROOT>/web/effects\1'
module.name_mapper='^web\/page\(.*\)$' -> '<PROJECT_ROOT>/web/page\1'
module.name_mapper='^homepage\(.*\)$' -> '<PROJECT_ROOT>/ui/util/homepage\1'
[strict]
+49
View File
@@ -0,0 +1,49 @@
<!--
Thanks for reporting an issue to LBRY and helping us improve!
To make it possible for us to help you, please fill out below information carefully.
Before reporting any issues, please make sure that you're using the latest version.
- App releases: https://github.com/lbryio/lbry-app/releases
- Standalone daemon: https://github.com/lbryio/lbry/releases
We are also available on Slack at https://slack.lbry.io
-->
## The Issue
### Steps to reproduce
1.
2.
3.
### Expected behaviour
Tell us what should happen
### Actual behaviour
Tell us what happens instead
## System Configuration
<!-- For the app, this info is in the About section at the bottom of the Help page.
You can include a screenshot instead of typing it out -->
<!-- For the daemon, run:
curl 'http://localhost:5279/lbryapi' --data '{"method":"version"}'
and include the full output -->
- LBRY Daemon version:
- LBRY App version:
- LBRY Installation ID:
- Operating system:
## Anything Else
<!-- Include anything else that does not fit into the above sections -->
## Screenshots
<!-- If a screenshot would help explain the bug, please include one or two here -->
-54
View File
@@ -1,54 +0,0 @@
---
name: "\U0001F41BBug report"
about: "Something isn't working \U0001F915"
title: ''
labels: 'type: bug'
assignees: ''
---
<!--
Thanks for reporting an issue to LBRY and helping us improve!
To make it possible for us to help you, please fill out below information carefully.
Before reporting any issues, please make sure that you're using the latest version.
- App releases: https://github.com/lbryio/lbry-desktop/releases
- Standalone daemon: https://github.com/lbryio/lbry/releases
We are also available on live chat at https://chat.lbry.com
-->
**Bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**System Configuration**
<!-- For the app, this info is in the About section at the bottom of the Help page.
You can include a screenshot instead of typing it out -->
<!-- For the daemon, run:
curl 'http://localhost:5279' --data '{"method":"version"}'
and include the full output -->
- LBRY Daemon version:
- LBRY App version:
- LBRY Installation ID:
- Operating system:
**Additional context**
Add any other context about the problem here.
@@ -1,20 +0,0 @@
---
name: "\U0001F680Feature request"
about: "I have a suggestion (and might want to implement it \U0001F60A)"
title: ''
labels: 'type: new feature'
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
-22
View File
@@ -1,22 +0,0 @@
---
name: "❤️Say thank you"
about: If you enjoy using the LBRY app, let us know!
title: LBRY rocks!
labels: ''
assignees: ''
---
If you are using the LBRY app - please let us know. We'd love to hear from you!
If you would like to help Nock - any of the following is greatly appreciated.
- Give the repository a star ⭐️
- Help out with issues
- Blog about LBRY
- Make tutorials
- Give talks
- Convince other people to use LBRY
- Anything your heart desires
Thank you! 💐
-33
View File
@@ -1,33 +0,0 @@
## PR Checklist
<!-- For the checkbox formatting to work properly, make sure there are no spaces on either side of the "x" -->
Please check all that apply to this PR using "x":
- [ ] I have checked that this PR is not a duplicate of an existing PR (open, closed or merged)
- [ ] I added a line describing my change to CHANGELOG.md
- [ ] I have checked that this PR does not introduce a breaking change
- [ ] This PR introduces breaking changes and I have provided a detailed explanation below
## PR Type
What kind of change does this PR introduce?
- [ ] Bugfix
- [ ] Feature
- [ ] Code style update (formatting)
- [ ] Refactoring (no functional changes)
- [ ] Documentation changes
- [ ] Other - Please describe:
## Fixes
Issue Number:
## What is the current behavior?
## What is the new behavior?
## Other information
<!-- If this PR contains a breaking change, please describe the impact and solution strategy for existing applications below. -->
-100
View File
@@ -1,100 +0,0 @@
name: Node.js CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Borales/actions-yarn@v2.3.0
- run: yarn lint
build:
needs: ['lint']
name: 'build'
strategy:
matrix:
node-version: [14.x]
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2-beta
with:
node-version: ${{ matrix.node-version }}
- uses: maxim-lobanov/setup-xcode@v1
if: startsWith(runner.os, 'mac')
with:
xcode-version: '10.3.0'
- name: Download blockchain headers
run: |
mkdir -p ./static/daemon
curl -o ./static/daemon/headers https://headers.lbry.io/blockchain_headers_latest
ls ./static/daemon
- name: Build
run: |
yarn global add cross-env
yarn
yarn build
node ./build/afterSignHook.js
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NOTARIZATION_USERNAME: ${{ secrets.NOTARIZATION_USERNAME }}
NOTARIZATION_PASSWORD: ${{ secrets.NOTARIZATION_PASSWORD }}
WIN_CSC_KEY_PASSWORD: ${{ secrets.WIN_CSC_KEY_PASSWORD }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
WIN_CSC_LINK: https://s3.amazonaws.com/files.lbry.io/cert/win-csc-2020-2021-08.p12
CSC_LINK: https://s3.amazonaws.com/files.lbry.io/cert/osx-csc-2021-2022.p12
# UI
MATOMO_URL: https://analytics.lbry.com/
MATOMO_ID: 4
WELCOME_VERSION: 1.0
DOMAIN: lbry.tv
URL: https://lbry.tv
SHARE_DOMAIN_URL: https://open.lbry.com
SITE_TITLE: lbry.tv
SITE_NAME: lbry.tv
SHOW_ADS: false
YRBL_HAPPY_IMG_URL: https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-happy/7aa50a7e5adaf48691935d55e45d697547392929/839d9a
YRBL_SAD_IMG_URL: https://cdn.lbryplayer.xyz/api/v3/streams/free/yrbl-sad/c2d9649633d974e5ffb503925e1f17d951f1bd0f/f262dd
ENABLE_COMMENT_REACTIONS: true
ENABLE_NO_SOURCE_CLAIMS: false
DEFAULT_LANGUAGE: en
KNOWN_APP_DOMAINS: lbry.tv,lbry.lat,odysee.com
CHANNEL_STAKED_LEVEL_VIDEO_COMMENTS: 0
- uses: actions/upload-artifact@v2
if: |
startsWith(runner.os, 'linux')
with:
name: Linux
path: ./dist/electron/*.*
- uses: actions/upload-artifact@v2
if: |
startsWith(runner.os, 'mac')
with:
name: macOS
path: ./dist/electron/*.*
- uses: actions/upload-artifact@v2
if: |
github.event.pull_request.head.repo.full_name == github.repository
with:
name: Windows
path: ./dist/electron/*.*
+13 -36
View File
@@ -1,38 +1,15 @@
### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride
node_modules
LBRY-darwin-x64
dist
/static/lbrynet*
/static/daemon
/static/locales
yarn-error.log
package-lock.json
.transifexrc
.idea/
/build/daemon*
/lbrytv/dist/
/lbrytv/node_modules
/static/lbry-first/
/build/lbryFirst*
/web/dist/*
/web/node_modules/*
/web/.env
/web/.env.defaults
/custom/*
/custom/homepages/*
/custom/content/*
!/custom/content/default.json
!/custom/content/test.json
!/custom/homepages/.gitkeep
!/custom/homepages
!/custom/content
!/custom/homepage.example.js
!/custom/robots.disallowall
!/custom/robots.allowall
.env
.env.ody
.env.desktop
.env.lbrytv
/app/dist
/app/node_modules
/build/venv
/lbry-app-venv
/daemon/build
/daemon/venv
/daemon/requirements.txt
/.idea
*.pyc
.#*
+6
View File
@@ -0,0 +1,6 @@
[submodule "lbry"]
path = lbry
url = https://github.com/lbryio/lbry.git
[submodule "lbryum"]
path = lbryum
url = https://github.com/lbryio/lbryum.git
-9
View File
@@ -1,9 +0,0 @@
{
"linters": {
"ui/**/*.{js,jsx,scss,json}": ["prettier --write", "git add"],
"web/**/*.{js,jsx,scss,json}": ["prettier --write", "git add"],
"ui/**/*.{js,jsx}": ["eslint", "flow focus-check --color always", "git add"],
"web/**/*.{js,jsx,scss}": ["eslint", "git add"]
},
"ignore": ["node_modules", "web/dist/**/*", "dist/**/*", "package-lock.json"]
}
-5
View File
@@ -1,5 +0,0 @@
{
"trailingComma": "es5",
"printWidth": 120,
"singleQuote": true
}
-4
View File
@@ -1,4 +0,0 @@
[defaults]
url = https://sentry.lbry.tech/
org = lbry
project = lbry-desktop-web
+20
View File
@@ -0,0 +1,20 @@
matrix:
include:
- os: osx
# Use generic language for osx
# python 2.7 is broken on osx on travis, so follow we have to specify the installation ourselves
# https://github.com/travis-ci/travis-ci/issues/2312#issuecomment-195620855
language: generic
osx_image: xcode7.3
install:
- wget https://www.python.org/ftp/python/2.7.13/python-2.7.13-macosx10.6.pkg
- sudo installer -pkg python-2.7.13-macosx10.6.pkg -target /
- pip install -U pip
- pip install pyinstaller
- wget https://nodejs.org/dist/v6.9.4/node-v6.9.4.pkg
- sudo installer -pkg node-v6.9.4.pkg -target /
- sudo npm install electron-packager -g
- ./build.sh
- electron-packager --electron-version=1.4.14 --overwrite electron LBRY
-7
View File
@@ -1,7 +0,0 @@
[main]
host = https://www.transifex.com
[lbry-desktop.app-strings]
source_file = static/app-strings.json
source_lang = en
type = KEYVALUEJSON
+34 -1894
View File
File diff suppressed because it is too large. Load diff
-201
View File
@@ -1,201 +0,0 @@
# Contribute to LBRY
**First:** if you're unsure or afraid of anything, just ask or submit the issue or pull request anyways. You won't be yelled at for giving your best effort. The worst that can happen is that you'll be politely asked to change something. We appreciate any sort of contributions, and don't want a wall of rules to get in the way of that.
However, for those individuals who want a bit more guidance on the best way to contribute to the project, read on. This document will cover what we're looking for. By addressing all the points we're looking for, it raises the chances we can quickly merge or address your contributions.
## TL;DR?
- [Here](https://github.com/lbryio/lbry-desktop/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22+no%3Aassignee)
is a list of help wanted issues.
- Comment on an issue to let us know if you are going to work on it, don't take an issue that someone reserved less than 3 days ago.
- Submit a pull request and get paid in LBC.
- Don't hesitate to contact us with any questions or comments.
## Contents
- [Choose an Issue](#choose-an-issue)
- [Code Overview](#code-overview)
- [Libraries](#libraries)
- [Flow](#flow)
- [Lint](#lint)
- [Code Formatting](#code-formatting)
- [Debug](#debug)
- [Submit a Pull Request](#submit-a-pull-request)
- [Tom's "Voice of the User" Wishlist](#toms-voice-of-the-user-wishlist)
- [Get in Touch](#get-in-touch)
- [More Information](#more-information)
## Choose an Issue
LBRY is an open source project and therefore is developed out in the open for everyone to see. What
you see here are the latest source code changes and issues.
Since LBRY is based on a decentralized community, we believe that the app will be stronger if it
receives contributions from individuals outside the core team -- such as yourself!
To make contributing as easy and rewarding as possible, we have instituted the following system:
- Anyone can view all issues in the system by clicking on the
[Issues](https://github.com/lbryio/lbry-desktop/issues) button at the top of the page. Feel free to
add an issue if you think we have missed something (and you might earn some LBC in the process
because we do tip people for reporting bugs).
- Once on the [Issues](https://github.com/lbryio/lbry-desktop/issues) page, a potential contributor can
filter issues by the
[Help Wanted](https://github.com/lbryio/lbry-desktop/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22+no%3Aassignee)
label to see a curated list of suggested issues with which community members can help.
- Every
[Help Wanted](https://github.com/lbryio/lbry-desktop/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22+no%3Aassignee)
issue is ranked on a scale from zero to four.
| Level | Description |
| ---------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- |
| [**level 0**](https://github.com/lbryio/lbry-desktop/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22+label%3A%22level%3A+0%22+no%3Aassignee) | Typos and text edits -- a tech-savvy non-programmer can fix these. |
| [**level 1**](https://github.com/lbryio/lbry-desktop/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22+label%3A%22level%3A+1%22+no%3Aassignee) | Programming issues that require little knowledge of how the LBRY app works. |
| [**level 2**](https://github.com/lbryio/lbry-desktop/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22+label%3A%22level%3A+2%22+no%3Aassignee) | Issues of average difficulty that require the developer to dig into how the app works a little bit. |
| [**level 3**](https://github.com/lbryio/lbry-desktop/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22+label%3A%22level%3A+3%22+no%3Aassignee) | Issues that are likely too tricky to be level 2 or require more thinking outside of the box. |
| [**level 4**](https://github.com/lbryio/lbry-desktop/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22+label%3A%22level%3A+4%22+no%3Aassignee) | Big features or really hard issues. |
The process of ranking issues is highly subjective. The purpose of sorting issues like this is to
give contributors a general idea about the type of issues they are looking at. For instance, it could very well be
the case that a level 1 issue is more difficult than a level 2 issue. This system is meant
to help you find relevant issues, not to prevent you from working on issues that you otherwise
would. If these rankings don't work for you, feel free to ignore them.
Although all contributions should have good UX, the [UX label, when applied in conjunction with Help Wanted](https://github.com/lbryio/lbry-desktop/issues?q=is%3Aopen+is%3Aissue+label%3A%22help+wanted%22+label%3Aux+no%3Aassignee), indicates that the contributor ought to implement the feature in a creative way that specifically focuses on providing a good user experience. These issues often have no set instruction for how the experience should be and leave it to the contributor to figure out. This may be challenging for people who do not like UX, but also more fun and rewarding for those who do.
## Code Overview
The entry point for this application is [`electron/index.js`](https://github.com/lbryio/lbry-desktop/blob/master/electron/index.js).
This application is primarily written in JavaScript and is built on [Electron](https://electronjs.org)
while utilizing [React](https://reactjs.org) and [Redux](https://redux.js.org) for UI and
application state.
The project comes with diverse tools for simplifying the development process and for providing
better code quality. It's recommended to make use of them thoroughly during ongoing development. We follow the well-known [Airbnb JavaScript Style Guide](https://airbnb.io/javascript/) for defining
our styling rules and code best practices.
### Libraries
This project uses [lbry-redux](https://github.com/lbryio/lbry-redux) and [lbryionc](https://github.com/lbryio/lbryinc) to share Redux and LBRY API specific code with other LBRY apps. Over time, more Redux code that is suitable to be shared will be moved into lbry-redux. If modifying Redux code, you may be asked to make some of your changes in lbry-redux rather than lbry-desktop. The steps to work with lbry-redux locally can be found [here](https://github.com/lbryio/lbry-redux#local-development).
### Flow
[Flow](https://flow.org/) is a static type checker for JavaScript. Flow checks your code for
errors through static type annotations. For using Flow, you need to add the following
annotation to the beginning of the file you're editing:
`// @flow`
After adding this, you can start adding [type annotations](https://flow.org/en/docs/types/) to
the code.
If you add a project dependency and you want to use it with Flow, you need to import its type
definitions in the project by running:
`$ yarn flow-defs`
### Lint
Code linting is ensured by [ESLint](https://eslint.org/) and [Flow CLI](https://flow.org/en/docs/cli/).
You can lint all the project's sources at any time by running:
`$ yarn lint`
If you desire to lint a specific file or directory you can use:
```
$ yarn eslint 'glob/pattern'
$ yarn flow focus-check 'glob/pattern'
```
In addition to those commands, staged files are automatically linted before commit. Please take the
time to fix all staged files' linting problems before committing or suppress them if necessary.
If you want the linting problems to show up on your IDE or text editor, check out
[ESLint integrations](https://eslint.org/docs/user-guide/integrations).
### Code Formatting
Project's sources are formatted using [Prettier](https://prettier.io/).
Staged files are automatically formatted before commit.
You can also use the following command:
`$ yarn format`
for applying formatting rules to the entire project's code. For formatting a specific file or
directory, use:
`$ yarn prettier 'glob/pattern'`
Editor integrations are available [here](https://prettier.io/docs/en/editors.html).
### Debug
There are a few tools integrated to the project that will ease the process of debugging:
- [Chrome DevTools](https://developer.chrome.com/devtools)
- Also available for the main process as a [remote target](chrome://inspect/#devices).
- [Electron Devtron](https://electronjs.org/devtron)
- [React DevTools](https://github.com/facebook/react-devtools)
- [Redux DevTools](https://github.com/gaearon/redux-devtools)
## Submit a Pull Request
- After deciding what to work on, a potential contributor can
[fork](https://help.github.com/articles/fork-a-repo/) this repository, make his or her changes,
and submit a
[pull request](https://help.github.com/articles/creating-a-pull-request-from-a-fork/). A
contributor wanting to reserve an issue in advance can leave a comment saying that he or she is
working on it. Contributors should respect other people's efforts to complete issues in a timely
manner and, therefore, not begin working on anything reserved (or updated) within the last 3 days.
If someone has been officially assigned an issue via GitHub's assignment system, it is also not
available. Contributors are encouraged to ask if they have any questions about issue availability.
- The [changelog](https://github.com/lbryio/lbry-desktop/blob/master/CHANGELOG.md) should be updated to
include a reference to the fix/change/addition. See previous entries for format.
- Once the pull request is visible in the LBRY repo, a LBRY team member will review it and make sure
it is up to our standards. At this point, the contributor may have to change his or her code based
on our suggestions and comments.
- Then, upon a satisfactory review of the code, we will merge it and send the contributor a tip (in
LBC) for the contribution.
We are dedicated to being fair and friendly in this process. In **general**, level 4 issues will be
paid more than level 3 issues which will be paid more than level 2, and so on. However, this is not
due to their labeling, but rather how difficult they end up being. Maybe an issue labeled "level 1"
turns out to be very difficult. In this case, we would be **more than happy** to tip accordingly. If
you do good work, we want you to be rewarded for it.
Also, we are here to enable you. We want you to succeed, so do not hesitate to ask questions. If you
need some information or assistance in completing an issue, please let us know! That is what we are
here for-- pushing development forward.
Lastly, don't feel limited by this list. Should LBRY have built-in Tor support? Add it! It's not in
the issue tracker, but maybe it's a good idea. Do you think the search layout is unintuitive? Change
it! We welcome all feedback and suggestions. That said, it may be the case that we do not wish to
incorporate your change if you don't check with us first (also, please check with us especially if
you are planning on adding Tor support :P). If you want to add a feature that is not listed in the
issue tracker, go ahead and [create an issue](https://github.com/lbryio/lbry-desktop/issues/new), and
say in the description that you would like to try to implement it yourself. This way we can tell you
in advance if we will accept your changes and we can point you in the right direction.
# Tom's "Voice of the User" Wishlist
[Anything marked with **both** "Help Wanted" and "Tom's 'Voice of the User' Wishlist"](https://github.com/lbryio/lbry-desktop/issues?q=is%3Aopen+is%3Aissue+label%3A%22Tom%27s+%5C%22Voice+of+the+User%5C%22+Wishlist%22+label%3A%22help+wanted%22+no%3Aassignee)
will earn you an extra 50 LBC on top of what we would otherwise tip you.
# Get in Touch
| Name | Role | Discord | Email |
| -------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------------- |
| [Tom](https://github.com/tzarebczan) | Community manager. He knows more than anyone about the app and all of its flaws. Reach out to him with any questions about how the app works, if a bug has been reported, or if a feature should be requested. | jiggytom | tom@lbry.com |
| [Sean](https://github.com/seanyesmunt) | The primary engineer working on the app. Feel free to ask any questions about the code. | sean | sean@lbry.com |
Join our Discord [here](https://chat.lbry.com/).
# More Information
More information about contributing to LBRY [here](https://lbry.tech/contribute).
+1 -1
View File
@@ -1,6 +1,6 @@
MIT License
Copyright (c) 2017-2021 LBRY Inc.
Copyright (c) 2017 LBRY
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
+28 -158
View File
@@ -1,178 +1,48 @@
<img width="40%" src="https://miro.medium.com/max/5198/1*bTVuL2THG_0mpwmE-n7Ezg.png" />
# LBRY App
# LBRY App - https://lbry.tv
This is a graphical browser for the decentralized content marketplace provided by the [LBRY](https://lbry.io) protocol. It is essentially the [lbry daemon](https://github.com/lbryio/lbry) bundled with a UI using [Electron](http://electron.atom.io/).
This repo contains the UI code that powers the official LBRY desktop app, as well as lbry.tv. The LBRY app is a graphical browser for the decentralized content marketplace provided by the
[LBRY](https://lbry.com) protocol. It is essentially the
[lbry daemon](https://github.com/lbryio/lbry) bundled with a UI using
[Electron](https://electron.atom.io/).
## Installing
<a href="https://github.com/lbryio/lbry-desktop/blob/master/LICENSE" title="MIT licensed">
<img alt="npm" src="https://img.shields.io/dub/l/vibe-d.svg?style=flat">
</a>
<a href="https://GitHub.com/lbryio/lbry-desktop/releases/" title="GitHub release">
<img src="https://img.shields.io/github/release/lbryio/lbry-desktop.svg"/>
</a>
<a href="https://travis-ci.org/lbryio/lbry-desktop">
<img src="https://travis-ci.org/lbryio/lbry-desktop.svg?branch=master" alt="Build Status" />
</a>
<a href="https://chat.lbry.com">
<img alt="GitHub contributors" src="https://img.shields.io/discord/362322208485277697.svg?logo=discord" alt="chat on Discord">
</a>
We provide installers for Windows, macOS, and Debian-based Linux.
<h2>
<a href="https://forthebadge.com" title="forthebadge">
<img alt="forthebadge" src="https://forthebadge.com/images/badges/60-percent-of-the-time-works-every-time.svg">
</a>
<a href="https://forthebadge.com" title="forthebadge">
<img alt="forthebadge" src="https://forthebadge.com/images/badges/approved-by-veridian-dynamics.svg">
</a>
</h2>
| Windows | macOS | Linux |
| --- | --- | --- |
| [Download](https://lbry.io/get/lbry.exe) | [Download](https://lbry.io/get/lbry.dmg) | [Download](https://lbry.io/get/lbry.deb) |
![App GIF](https://spee.ch/ba/lbry-joule.gif)
Our [releases page](https://github.com/lbryio/lbry-app/releases/latest) also contains the latest release, pre-releases, and past builds.
## Table of Contents
To install from source or make changes to the application, continue reading below.
1. [Install](#install)
2. [Usage](#usage)
3. [Running from Source](#running-from-source)
4. [Contributing](#contributing)
5. [License](#license)
6. [Security](#security)
7. [Contact](#contact)
## Development
## Install
This repo uses submodules, so clone it using `--recursive`.
[![Windows](https://img.shields.io/badge/Windows-Install-blue)](https://lbry.com/get/lbry.exe)
[![Linux](https://img.shields.io/badge/Linux-Install-blue)](https://lbry.com/get/lbry.deb)
[![MacOS](https://img.shields.io/badge/MacOS-Install-blue)](https://lbry.com/get/lbry.dmg)
### Setup
We provide installers for Windows, macOS (v10.12.4, Sierra, or greater), and Debian-based Linux. See community maintained builds section for alternative Linux installations.
The
[lbry daemon](https://github.com/lbryio/lbry/blob/master/INSTALL.md) needs
to be installed along with pyinstaller. You also need to be
able to build the lbry-web-ui, so have node, webpack, etc installed.
| | Windows | macOS | Linux |
| --------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- |
| Latest Stable Release | [Download](https://lbry.com/get/lbry.exe) | [Download](https://lbry.com/get/lbry.dmg) | [Download](https://lbry.com/get/lbry.deb) |
| Latest Pre-release | [Download](https://lbry.com/get/lbry.pre.exe) | [Download](https://lbry.com/get/lbry.pre.dmg) | [Download](https://lbry.com/get/lbry.pre.deb) |
### Build
Our [releases page](https://github.com/lbryio/lbry-desktop/releases) also contains the latest
release, pre-releases, and past builds.
_Note: If the deb fails to install using the Ubuntu Software Center, install manually via `sudo dpkg -i <path to deb>`. You'll need to run `sudo apt-get install -f` if this is the first time installing it to install dependencies_
run `./build.sh`
To install from source or make changes to the application, continue to the next section below.
This builds the UI assets and puts them into `app/dist`. It also builds `app/dist/lbrynet-daemon`.
**Community maintained** builds for Arch Linux and Flatpak are available, see below. These installs will need to be updated manually as the in-app update process only supports Debian installs at this time.
_Note: If coming from a deb install, the directory structure is different and you'll need to [migrate data](https://lbry.com/faq/backup-data)._
### Run
| | Flatpak | Arch | Nixpkgs | ARM/ARM64 |
| -------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ------------------------------------------- |
| Latest Release | [FlatHub Page](https://flathub.org/apps/details/io.lbry.lbry-app) | [AUR Package](https://aur.archlinux.org/packages/lbry-app-bin/) | [Nixpkgs](https://search.nixos.org/packages?channel=unstable&show=lbry&query=lbry) | [Build Guide](https://lbry.tv/@LBRYarm:5) |
| Maintainers | [@kcSeb](https://keybase.io/kcseb) | [@kcSeb](https://keybase.io/kcseb) | [@Enderger](https://github.com/enderger) | [@Madiator2011](https://github.com/kodxana) |
`./node_modules/.bin/electron app`
## Usage
### Package
Double click the installed application to interact with the LBRY network.
We use [electron-builder](https://github.com/electron-userland/electron-builder)
to create distributable packages, which is run by calling:
## Running from Source
`node_modules/.bin/build -p never`
You can run the web version (lbry.tv), the electron app, or both at the same time.
### Development on Windows
#### Prerequisites
- [Git](https://git-scm.com/downloads)
- [Node.js](https://nodejs.org/en/download/) (v14 required)
- [Yarn](https://yarnpkg.com/en/docs/install)
1. Clone (or [fork](https://help.github.com/articles/fork-a-repo/)) this repository: `git clone https://github.com/lbryio/lbry-desktop`
2. Change directory into the cloned repository: `cd lbry-desktop`
3. Install the dependencies: `yarn`
#### Run the electron app
`yarn dev`
- If you want to build and launch the production app you can run `yarn build`. This will give you an executable inside the `/dist` folder. We use [electron-builder](https://github.com/electron-userland/electron-builder) to create distributable packages.
#### Run the web app for development
`yarn dev:web`
- This uses webpack-dev-server and includes hot-reloading. If you want to debug the [web server we use in production](https://github.com/lbryio/lbry-desktop/blob/master/src/platforms/web/server.js) you can run `yarn dev:web-server`. This starts a server at `localhost:1337` and does not include hot reloading.
#### Customize the web app
- In root directory, duplicate the .env.default file and rename it to .env then copy the code below and paste it anywhere in the .env file.
```
cp .env.defaults .env
nano .env
```
- To specify your own OG-IMAGE
You can either place a png named v2-og.png in the /custom folder or specify the OG_IMAGE_URL in .env
- To specify your own channels to be followed on first run
`AUTO_FOLLOW_URLS=lbry://@chan#123...a lbry://@chan2#456...a`
- If you want to customize the homepage content
1. add `CUSTOM_HOMEPAGE=true` to the '.env' file
2. copy `/custom/homepage.example.js` to `/custom/homepage.js` and make desired changes to `homepage.js`
- If you want up to two custom sidebar links
```
PINNED_URI_1=@someurl#2/someclaim#4
PINNED_LABEL_1=Linktext
PINNED_URI_2=$/discover?t=tag&[queryparams]
PINNED_LABEL_2=OtherLinkText
```
- Finally `NODE_ENV=production yarn compile:web` to rebuild
_Note: You don't need to edit the .env file in the /web folder - that is copied during compile._
#### Deploy the web app (_experimental_)
1. Create a server with a domain name and a reverse proxy https to port 1337.
2. Install pm2, node v10, yarn
3. Clone this repo
4. Make any customizations as above
5. Run `yarn` to install
6. Run `NODE_ENV=production yarn compile:web` to build
7. Set up pm2 to start ./web/index.js
#### Run both at the same time
Run the two commands above in separate terminal windows
```
yarn dev
// in another terminal window
yarn dev:web
```
#### Resetting your Packages
If the app isn't building, or `yarn xxx` commands aren't working you may need to just reset your `node_modules`. To do so you can run: `rm -r node_modules && yarn` or `del /s /q node_modules && yarn` on Windows.
If you _really_ think something might have gone wrong, you can force your repo to clear everything that doesn't match the repo with `git reset --hard HEAD && git clean -fxd && git pull -r`
## Contributing
We :heart: contributions from everyone and contributions to this project are encouraged, and compensated. We welcome [bug reports](https://github.com/lbryio/lbry-desktop/issues/), [bug fixes](https://github.com/lbryio/lbry-desktop/pulls) and feedback is always appreciated. For more details, see [CONTRIBUTING.md](CONTRIBUTING.md).
## [![contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg?style=flat)](https://github.com/lbryio/lbry-desktop/issues) [![GitHub contributors](https://img.shields.io/github/contributors/lbryio/lbry-desktop.svg)](https://GitHub.com/lbryio/lbry-desktop/graphs/contributors/)
## License
This project is MIT licensed. For the full license, see [LICENSE](LICENSE).
## Security
We take security seriously. Please contact security@lbry.com regarding any security issues. Our PGP key is [here](https://lbry.com/faq/pgp-key) if you need it. Previous versions up to v0.50.2 were signed by [Sean Yesmunt](https://keybase.io/seanyesmunt/key.asc).
New Releases are signed by [Jessop Breth](https://keybase.io/jessopb/key.asc).
## Contact
The primary contact for this project is [@jessopb](https://github.com/jessopb).
This project has currently only been worked on in Linux and macOS. If you are on Windows, you can
checkout out the build steps in [appveyor.yml](https://github.com/lbryio/lbry-app/blob/master/appveyor.yml) and probably figure out something from there.
+263
View File
@@ -0,0 +1,263 @@
const {app, BrowserWindow, ipcMain} = require('electron');
const path = require('path');
const jayson = require('jayson');
// tree-kill has better cross-platform handling of
// killing a process. child-process.kill was unreliable
const kill = require('tree-kill');
const child_process = require('child_process');
const assert = require('assert');
let client = jayson.client.http('http://localhost:5279/lbryapi');
// Keep a global reference of the window object, if you don't, the window will
// be closed automatically when the JavaScript object is garbage collected.
let win;
// Also keep the daemon subprocess alive
let daemonSubprocess;
// This is set to true right before we try to shut the daemon subprocess --
// if it dies when we didn't ask it to shut down, we want to alert the user.
let daemonSubprocessKillRequested = false;
// When a quit is attempted, we cancel the quit, do some preparations, then
// this is set to true and app.quit() is called again to quit for real.
let readyToQuit = false;
/*
* Replacement for Electron's shell.openItem. The Electron version doesn't
* reliably work from the main process, and we need to be able to run it
* when no windows are open.
*/
function openItem(fullPath) {
const subprocOptions = {
detached: true,
stdio: 'ignore',
};
let child;
if (process.platform == 'darwin') {
child = child_process.spawn('open', [fullPath], subprocOptions);
} else if (process.platform == 'linux') {
child = child_process.spawn('xdg-open', [fullPath], subprocOptions);
} else if (process.platform == 'win32') {
child = child_process.spawn(fullPath, [], subprocOptions);
}
// Causes child process reference to be garbage collected, allowing main process to exit
child.unref();
}
function getPidsForProcessName(name) {
if (process.platform == 'win32') {
const tasklistOut = child_process.execSync(`tasklist /fi "Imagename eq ${name}.exe" /nh`, {encoding: 'utf8'});
if (tasklistOut.startsWith('INFO')) {
return [];
} else {
return tasklistOut.match(/[^\r\n]+/g).map((line) => line.split(/\s+/)[1]); // Second column of every non-empty line
}
} else {
const pgrepOut = child_process.spawnSync('pgrep', ['-x', name], {encoding: 'utf8'}).stdout;
return pgrepOut.match(/\d+/g);
}
}
function createWindow () {
win = new BrowserWindow({backgroundColor: '#155B4A'}) //$color-primary
win.maximize()
//win.webContents.openDevTools()
win.loadURL(`file://${__dirname}/dist/index.html`)
win.on('closed', () => {
win = null
})
};
function handleDaemonSubprocessExited() {
console.log('The daemon has exited.');
daemonSubprocess = null;
if (!daemonSubprocessKillRequested) {
// We didn't stop the daemon subprocess on purpose, so display a
// warning and schedule a quit.
//
// TODO: maybe it would be better to restart the daemon?
if (win) {
console.log('Did not request daemon stop, so quitting in 5 seconds.');
win.loadURL(`file://${__dirname}/dist/warning.html`);
setTimeout(quitNow, 5000);
} else {
console.log('Did not request daemon stop, so quitting.');
quitNow();
}
}
}
function launchDaemon() {
assert(!daemonSubprocess, 'Tried to launch daemon twice');
if (process.env.LBRY_DAEMON) {
executable = process.env.LBRY_DAEMON;
} else {
executable = path.join(__dirname, 'dist', 'lbrynet-daemon');
}
console.log('Launching daemon:', executable)
daemonSubprocess = child_process.spawn(executable)
// Need to handle the data event instead of attaching to
// process.stdout because the latter doesn't work. I believe on
// windows it buffers stdout and we don't get any meaningful output
daemonSubprocess.stdout.on('data', (buf) => {console.log(String(buf).trim());});
daemonSubprocess.stderr.on('data', (buf) => {console.log(String(buf).trim());});
daemonSubprocess.on('exit', handleDaemonSubprocessExited);
console.log('lbrynet daemon has launched')
}
/*
* Quits without any preparation. When a quit is requested (either through the
* interface or through app.quit()), we abort the quit, try to shut down the daemon,
* and then call this to quit for real.
*/
function quitNow() {
readyToQuit = true;
app.quit();
}
app.on('ready', function(){
launchDaemonIfNotRunning();
createWindow();
});
function launchDaemonIfNotRunning() {
// Check if the daemon is already running. If we get
// an error its because its not running
console.log('Checking for lbrynet daemon');
client.request(
'status', [],
function (err, res) {
if (err) {
console.log('lbrynet daemon needs to be launched')
launchDaemon();
} else {
console.log('lbrynet daemon is already running')
}
}
);
}
/*
* Last resort for killing unresponsive daemon instances.
* Looks for any processes called "lbrynet-daemon" and
* tries to force kill them.
*/
function forceKillAllDaemonsAndQuit() {
console.log('Attempting to force kill any running lbrynet-daemon instances...');
const daemonPids = getPidsForProcessName('lbrynet-daemon');
if (!daemonPids) {
console.log('No lbrynet-daemon found running.');
quitNow();
} else {
console.log(`Found ${daemonPids.length} running daemon instances. Attempting to force kill...`);
for (const pid of daemonPids) {
let daemonKillAttemptsComplete = 0;
kill(pid, 'SIGKILL', (err) => {
daemonKillAttemptsComplete++;
if (err) {
console.log(`Failed to force kill daemon task with pid ${pid}. Error message: ${err.message}`);
} else {
console.log(`Force killed daemon task with pid ${pid}.`);
}
if (daemonKillAttemptsComplete >= daemonPids.length - 1) {
quitNow();
}
});
}
}
}
// Quit when all windows are closed.
app.on('window-all-closed', () => {
// On macOS it is common for applications and their menu bar
// to stay active until the user quits explicitly with Cmd + Q
if (process.platform !== 'darwin') {
app.quit()
}
})
app.on('before-quit', (event) => {
if (!readyToQuit) {
// We need to shutdown the daemon before we're ready to actually quit. This
// event will be triggered re-entrantly once preparation is done.
event.preventDefault();
shutdownDaemonAndQuit();
} else {
console.log('Quitting.')
}
});
app.on('activate', () => {
// On macOS it's common to re-create a window in the app when the
// dock icon is clicked and there are no other windows open.
if (win === null) {
createWindow()
}
});
// When a quit is attempted, this is called. It attempts to shutdown the daemon,
// then calls quitNow() to quit for real.
function shutdownDaemonAndQuit(evenIfNotStartedByApp = false) {
if (daemonSubprocess) {
console.log('Killing lbrynet-daemon process');
daemonSubprocessKillRequested = true;
kill(daemonSubprocess.pid, undefined, (err) => {
console.log('Killed lbrynet-daemon process');
quitNow();
});
} else if (evenIfNotStartedByApp) {
console.log('Stopping lbrynet-daemon, even though app did not start it');
client.request('daemon_stop', [], (err, res) => {
if (err) {
// We could get an error because the daemon is already stopped (good)
// or because it's running but not responding properly (bad).
// So try to force kill any daemons that are still running.
console.log(`received error when stopping lbrynet-daemon. Error message: ${err.message}`);
forceKillAllDaemonsAndQuit();
} else {
console.log('Successfully stopped daemon via RPC call.')
quitNow();
}
});
} else {
console.log('Not killing lbrynet-daemon because app did not start it');
quitNow();
}
// Is it safe to start the installer before the daemon finishes running?
// If not, we should wait until the daemon is closed before we start the install.
}
function upgrade(event, installerPath) {
app.on('quit', () => {
console.log('Launching upgrade installer at', installerPath);
// This gets triggered called after *all* other quit-related events, so
// we'll only get here if we're fully prepared and quitting for real.
openItem(installerPath);
});
if (win) {
win.loadURL(`file://${__dirname}/dist/upgrade.html`);
}
shutdownDaemonAndQuit(true);
// wait for daemon to shut down before upgrading
// what to do if no shutdown in a long time?
console.log('Update downloaded to', installerPath);
console.log('The app will close, and you will be prompted to install the latest version of LBRY.');
console.log('After the install is complete, please reopen the app.');
}
ipcMain.on('upgrade', upgrade);
+36
View File
@@ -0,0 +1,36 @@
const {Menu} = require('electron');
const electron = require('electron');
const app = electron.app;
const contextMenuTemplate = [
{
role: 'cut',
},
{
role: 'copy',
},
{
role: 'paste',
},
];
module.exports = {
showContextMenu(win, posX, posY, showDevItems) {
let template = contextMenuTemplate.slice();
if (showDevItems) {
template.push({
type: 'separator',
});
template.push(
{
label: 'Inspect Element',
click() {
win.inspectElement(posX, posY);
}
}
);
}
Menu.buildFromTemplate(template).popup(win);
},
};
+107
View File
@@ -0,0 +1,107 @@
const {Menu} = require('electron');
const electron = require('electron');
const app = electron.app;
const baseTemplate = [
{
label: 'Edit',
submenu: [
{
role: 'undo',
},
{
role: 'redo',
},
{
type: 'separator',
},
{
role: 'cut',
},
{
role: 'copy',
},
{
role: 'paste',
},
]
},
{
label: 'Help',
submenu: [
{
label: 'Help',
click(item, focusedWindow) {
if (focusedWindow) {
focusedWindow.loadURL(`file://${__dirname}/../dist/index.html?help`);
}
}
}
]
}
];
const macOSAppMenuTemplate = {
label: app.getName(),
submenu: [
{
role: 'about',
},
{
type: 'separator',
},
{
role: 'hide',
},
{
role: 'hideothers',
},
{
role: 'unhide',
},
{
type: 'separator',
},
{
role: 'quit',
},
]
};
const developerMenuTemplate = {
label: 'Developer',
submenu: [
{
label: 'Reload',
accelerator: 'CmdOrCtrl+R',
click(item, focusedWindow) {
if (focusedWindow) {
focusedWindow.reload();
}
}
},
{
label: 'Toggle Developer Tools',
accelerator: process.platform == 'darwin' ? 'Alt+Command+I' : 'Ctrl+Shift+I',
click(item, focusedWindow) {
if (focusedWindow) {
focusedWindow.webContents.toggleDevTools();
}
}
},
]
};
module.exports = {
showMenubar(showDeveloperMenu) {
let template = baseTemplate.slice();
if (process.platform === 'darwin') {
template.unshift(macOSAppMenuTemplate);
}
if (showDeveloperMenu) {
template.push(developerMenuTemplate);
}
Menu.setApplicationMenu(Menu.buildFromTemplate(template));
},
};
+17
View File
@@ -0,0 +1,17 @@
{
"name": "LBRY",
"version": "0.9.2rc19",
"main": "main.js",
"description": "LBRY is a fully decentralized, open-source protocol facilitating the discovery, access, and (sometimes) purchase of data.",
"author": {
"name": "LBRY Inc.",
"email": "hello@lbry.io"
},
"dependencies": {
"electron-dl": "^1.6.0",
"install": "^0.8.7",
"jayson": "^2.0.2",
"npm": "^4.2.0",
"tree-kill": "^1.1.0"
}
}
+55
View File
@@ -0,0 +1,55 @@
# Test against the latest version of this Node.js version
environment:
nodejs_version: "6"
GH_TOKEN:
secure: LiI5jyuHUw6XbH4kC3gP1HX4P/v4rwD/gCNtaFhQu2AvJz1/1wALkp5ECnIxRySN
skip_branch_with_pr: true
clone_folder: C:\projects\lbry-electron
# Install scripts. (runs after repo cloning)
install:
# needed to deal with submodules
- git submodule update --init --recursive
- python build\set_version.py
- python build\set_build.py
# Get the latest stable version of Node.js or io.js
- ps: Install-Product node $env:nodejs_version
# install modules
- npm install
- cd app
- npm install
- cd ..
# create daemon and cli executable
- cd daemon
- ps: .\build.ps1
- cd ..
# build ui
- cd ui
- npm install
- node_modules\.bin\node-sass --output dist\css --sourcemap=none scss\
- node_modules\.bin\webpack
- ps: Copy-Item dist ..\app\ -recurse
- cd ..
# copy executables into ui
- ps: Copy-Item daemon\dist\lbrynet-daemon.exe app\dist
- ps: Copy-Item daemon\dist\lbrynet-cli.exe app\dist
build_script:
# build electron app
- node_modules\.bin\build -p never
# for debugging, see what was built
- python build\zip_daemon.py
- dir dist
- pip install -r build\requirements.txt
- python build\release_on_tag.py
test: off
artifacts:
- path: dist\*.exe
name: LBRY
- path: dist\*.zip
name: lbrynet-daemon
-16
View File
@@ -1,16 +0,0 @@
module.exports = api => {
api.cache(false);
return {
presets: [['@babel/env', { loose: true, modules: false }], '@babel/react', '@babel/flow'],
plugins: [
'import-glob',
'@babel/plugin-transform-runtime',
['@babel/plugin-proposal-decorators', { decoratorsBeforeExport: true }],
'@babel/plugin-transform-flow-strip-types',
'@babel/plugin-proposal-class-properties',
'react-hot-loader/babel',
],
ignore: [/node_modules/],
};
};
Executable
+5
View File
@@ -0,0 +1,5 @@
#!/bin/bash
# this is here because teamcity runs /build.sh to build the project
set -euxo pipefail
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
$DIR/build/build.sh
-12
View File
@@ -1,12 +0,0 @@
const fs = require('fs');
module.exports = async function(params) {
const { artifactPaths } = params;
for (var i = 0; i < artifactPaths.length; i++) {
const artifactPath = artifactPaths[i];
if (artifactPath.includes('.blockmap') || artifactPath.includes('.zip')) {
fs.unlinkSync(artifactPath);
}
}
};
-33
View File
@@ -1,33 +0,0 @@
// See: https://medium.com/@TwitterArchiveEraser/notarize-electron-apps-7a5f988406db
const fs = require('fs');
const path = require('path');
var electron_notarize = require('electron-notarize');
module.exports = async function() {
if (process.env.RUNNER_OS !== 'macOS') {
return;
}
const appId = 'io.lbry.LBRY';
const appPath = path.resolve(__dirname, '../dist/electron/mac/LBRY.app');
if (!fs.existsSync(appPath)) {
throw new Error(`Cannot find application at: ${appPath}`);
}
console.log(`Notarizing ${appId} found at ${appPath}`);
try {
await electron_notarize.notarize({
appBundleId: appId,
appPath: appPath,
appleId: process.env.NOTARIZATION_USERNAME,
appleIdPassword: process.env.NOTARIZATION_PASSWORD,
});
} catch (error) {
console.error(error);
}
console.log(`Done notarizing ${appId}`);
};
Executable
+110
View File
@@ -0,0 +1,110 @@
#!/bin/bash
set -euo pipefail
set -x
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
cd "$ROOT"
BUILD_DIR="$ROOT/build"
if [ "$(uname)" == "Darwin" ]; then
ICON="$BUILD_DIR/icon.icns"
else
ICON="$BUILD_DIR/icons/lbry48.png"
fi
FULL_BUILD="${FULL_BUILD:-false}"
if [ -n "${TEAMCITY_VERSION:-}" -o -n "${APPVEYOR:-}" ]; then
FULL_BUILD="true"
fi
if [ "$FULL_BUILD" == "true" ]; then
# install dependencies
$BUILD_DIR/prebuild.sh
VENV="$BUILD_DIR/venv"
if [ -d "$VENV" ]; then
rm -rf "$VENV"
fi
virtualenv "$VENV"
set +u
source "$VENV/bin/activate"
set -u
pip install -r "$BUILD_DIR/requirements.txt"
python "$BUILD_DIR/set_version.py"
python "$BUILD_DIR/set_build.py"
fi
[ -d "$ROOT/dist" ] && rm -rf "$ROOT/dist"
mkdir -p "$ROOT/dist"
[ -d "$ROOT/app/dist" ] && rm -rf "$ROOT/app/dist"
mkdir -p "$ROOT/app/dist"
npm install
############
# UI #
############
(
cd "$ROOT/ui"
npm install
node_modules/.bin/node-sass --output dist/css --sourcemap=none scss/
node_modules/.bin/webpack
cp -r dist/* "$ROOT/app/dist/"
)
####################
# daemon and cli #
####################
(
cd "$ROOT/daemon"
# copy requirements from lbry, but remove lbryum (we'll add it back in below)
grep -v lbryum "$ROOT/lbry/requirements.txt" > requirements.txt
# for electron, we install lbryum and lbry using submodules
echo "../lbryum" >> requirements.txt
echo "../lbry" >> requirements.txt
# also add pyinstaller
echo "PyInstaller==3.2.1" >> requirements.txt
pip install -r requirements.txt
pyinstaller -y daemon.onefile.spec
pyinstaller -y cli.onefile.spec
mv dist/lbrynet-daemon dist/lbrynet-cli "$ROOT/app/dist/"
)
python "$BUILD_DIR/zip_daemon.py"
###################
# Build the app #
###################
(
cd "$ROOT/app"
npm install
)
if [ "$FULL_BUILD" == "true" ]; then
if [ "$(uname)" == "Darwin" ]; then
security unlock-keychain -p ${KEYCHAIN_PASSWORD} osx-build.keychain
fi
node_modules/.bin/build -p never
# electron-build has a publish feature, but I had a hard time getting
# it to reliably work and it also seemed difficult to configure. Not proud of
# this, but it seemed better to write my own.
python "$BUILD_DIR/release_on_tag.py"
deactivate
echo 'Build and packaging complete.'
else
echo 'Build complete. Run `./node_modules/.bin/electron app` to launch the app'
fi
+131
View File
@@ -0,0 +1,131 @@
import argparse
import datetime
import re
import sys
CHANGELOG_START_RE = re.compile(r'^\#\# \[Unreleased\]')
CHANGELOG_END_RE = re.compile(r'^\#\# \[.*\] - \d{4}-\d{2}-\d{2}')
# if we come across a section header between two release section headers
# then we probably have an improperly formatted changelog
CHANGELOG_ERROR_RE = re.compile(r'^\#\# ')
SECTION_RE = re.compile(r'^\#\#\# (.*)$')
EMPTY_RE = re.compile(r'^\w*\*\w*$')
ENTRY_RE = re.compile(r'\* (.*)')
VALID_SECTIONS = ['Added', 'Changed', 'Deprecated', 'Removed', 'Fixed', 'Security']
# allocate some entries to cut-down on merge conflicts
TEMPLATE = """### Added
*
*
*
### Changed
*
*
*
### Fixed
*
*
*
"""
def main():
print "i am broken"
return 1
parser = argparse.ArgumentParser()
parser.add_argument('changelog')
parser.add_argument('version')
args = parser.parse_args()
bump(changelog, version)
def bump(changelog, version):
with open(changelog) as fp:
lines = fp.readlines()
start = []
unreleased = []
rest = []
unreleased_start_found = False
unreleased_end_found = False
for line in lines:
if not unreleased_start_found:
start.append(line)
if CHANGELOG_START_RE.search(line):
unreleased_start_found = True
continue
if unreleased_end_found:
rest.append(line)
continue
if CHANGELOG_END_RE.search(line):
rest.append(line)
unreleased_end_found = True
continue
if CHANGELOG_ERROR_RE.search(line):
raise Exception(
'Failed to parse {}: {}'.format(changelog, 'unexpected section header found'))
unreleased.append(line)
today = datetime.datetime.today()
header = '## [{}] - {}\n'.format(version, today.strftime('%Y-%m-%d'))
released = normalize(unreleased)
if not released:
# If we don't have anything in the Unreleased section, then leave the
# changelog as it is and return None
return
changelog_data = (
''.join(start) +
TEMPLATE +
header +
'\n'.join(released) + '\n\n'
+ ''.join(rest)
)
with open(changelog, 'w') as fp:
fp.write(changelog_data)
return '\n'.join(released) + '\n\n'
def normalize(lines):
"""Parse a changelog entry and output a normalized form"""
sections = {}
current_section_name = None
current_section_contents = []
for line in lines:
line = line.strip()
if not line or EMPTY_RE.match(line):
continue
match = SECTION_RE.match(line)
if match:
if current_section_contents:
sections[current_section_name] = current_section_contents
current_section_contents = []
current_section_name = match.group(1)
if current_section_name not in VALID_SECTIONS:
raise ValueError("Section '{}' is not valid".format(current_section_name))
continue
match = ENTRY_RE.match(line)
if match:
current_section_contents.append(match.group(1))
continue
raise Exception('Something is wrong with line: {}'.format(line))
if current_section_contents:
sections[current_section_name] = current_section_contents
output = []
for section in VALID_SECTIONS:
if section not in sections:
continue
output.append('### {}'.format(section))
for entry in sections[section]:
output.append(' * {}'.format(entry))
return output
if __name__ == '__main__':
sys.exit(main())
-89
View File
@@ -1,89 +0,0 @@
const path = require('path');
const fs = require('fs');
const packageJSON = require('../package.json');
const fetch = require('node-fetch');
const decompress = require('decompress');
const os = require('os');
const del = require('del');
const downloadDaemon = targetPlatform =>
new Promise((resolve, reject) => {
const daemonURLTemplate = packageJSON.lbrySettings.lbrynetDaemonUrlTemplate;
const daemonVersion = packageJSON.lbrySettings.lbrynetDaemonVersion;
const daemonDir = path.join(__dirname, '..', packageJSON.lbrySettings.lbrynetDaemonDir);
let daemonFileName = packageJSON.lbrySettings.lbrynetDaemonFileName;
const currentPlatform = os.platform();
let daemonPlatform = process.env.TARGET || targetPlatform || currentPlatform;
if (daemonPlatform === 'mac' || daemonPlatform === 'darwin') daemonPlatform = 'mac';
if (daemonPlatform === 'win32' || daemonPlatform === 'windows') {
daemonPlatform = 'windows';
daemonFileName += '.exe';
}
const daemonFilePath = path.join(daemonDir, daemonFileName);
const daemonVersionPath = path.join(__dirname, 'daemon.ver');
const tmpZipPath = path.join(__dirname, '..', 'dist', 'daemon.zip');
const daemonURL = daemonURLTemplate.replace(/DAEMONVER/g, daemonVersion).replace(/OSNAME/g, daemonPlatform);
// If a daemon and daemon.ver exists, check to see if it matches the current daemon version
const hasDaemonDownloaded = fs.existsSync(daemonFilePath);
const hasDaemonVersion = fs.existsSync(daemonVersionPath);
let downloadedDaemonVersion;
if (hasDaemonVersion) {
downloadedDaemonVersion = fs.readFileSync(daemonVersionPath, 'utf8');
}
if (hasDaemonDownloaded && hasDaemonVersion && downloadedDaemonVersion === daemonVersion) {
console.log('\x1b[34minfo\x1b[0m Daemon already downloaded');
resolve('Done');
} else {
console.log('\x1b[34minfo\x1b[0m Downloading daemon...');
fetch(daemonURL, {
method: 'GET',
headers: {
'Content-Type': 'application/zip',
},
})
.then(response => response.buffer())
.then(
result =>
new Promise((newResolve, newReject) => {
const distPath = path.join(__dirname, '..', 'dist');
const hasDistFolder = fs.existsSync(distPath);
if (!hasDistFolder) {
fs.mkdirSync(distPath);
}
fs.writeFile(tmpZipPath, result, error => {
if (error) return newReject(error);
return newResolve();
});
})
)
.then(() => del(`${daemonFilePath}*`))
.then()
.then(() =>
decompress(tmpZipPath, daemonDir, {
filter: file => path.basename(file.path) === daemonFileName,
})
)
.then(() => {
console.log(`\x1b[32msuccess\x1b[0m Daemon downloaded! - v${daemonVersion}`);
if (hasDaemonVersion) {
del(daemonVersionPath);
}
fs.writeFileSync(daemonVersionPath, daemonVersion, 'utf8');
resolve('Done');
})
.catch(error => {
console.error(`\x1b[31merror\x1b[0m Daemon download failed due to: \x1b[35m${error}\x1b[0m`);
reject(error);
});
}
});
downloadDaemon();
-91
View File
@@ -1,91 +0,0 @@
const path = require('path');
const fs = require('fs');
const packageJSON = require('../package.json');
const fetch = require('node-fetch');
const decompress = require('decompress');
const os = require('os');
const del = require('del');
const downloadLBRYFirst = targetPlatform =>
new Promise((resolve, reject) => {
const lbryFirstURLTemplate = packageJSON.lbrySettings.LBRYFirstUrlTemplate;
const lbryFirstVersion = packageJSON.lbrySettings.LBRYFirstVersion;
const lbryFirstDir = path.join(__dirname, '..', packageJSON.lbrySettings.LBRYFirstDir);
let lbryFirstFileName = packageJSON.lbrySettings.LBRYFirstFileName;
const currentPlatform = os.platform();
let lbryFirstPlatform = process.env.TARGET || targetPlatform || currentPlatform;
if (lbryFirstPlatform === 'linux') lbryFirstPlatform = 'Linux';
if (lbryFirstPlatform === 'mac' || lbryFirstPlatform === 'darwin') lbryFirstPlatform = 'Darwin';
if (lbryFirstPlatform === 'win32' || lbryFirstPlatform === 'windows') {
lbryFirstPlatform = 'Windows';
lbryFirstFileName += '.exe';
}
const lbryFirstFilePath = path.join(lbryFirstDir, lbryFirstFileName);
const lbryFirstVersionPath = path.join(__dirname, 'lbryFirst.ver');
const tmpZipPath = path.join(__dirname, '..', 'dist', 'lbryFirst.zip');
const lbryFirstURL = lbryFirstURLTemplate.replace(/LBRYFIRSTVER/g, lbryFirstVersion).replace(/OSNAME/g, lbryFirstPlatform);
console.log('URL:', lbryFirstURL);
// If a lbryFirst and lbryFirst.ver exists, check to see if it matches the current lbryFirst version
const hasLbryFirstDownloaded = fs.existsSync(lbryFirstFilePath);
const hasLbryFirstVersion = fs.existsSync(lbryFirstVersionPath);
let downloadedLbryFirstVersion;
if (hasLbryFirstVersion) {
downloadedLbryFirstVersion = fs.readFileSync(lbryFirstVersionPath, 'utf8');
}
if (hasLbryFirstDownloaded && hasLbryFirstVersion && downloadedLbryFirstVersion === lbryFirstVersion) {
console.log('\x1b[34minfo\x1b[0m LbryFirst already downloaded');
resolve('Done');
} else {
console.log('\x1b[34minfo\x1b[0m Downloading lbryFirst...');
fetch(lbryFirstURL, {
method: 'GET',
headers: {
'Content-Type': 'application/zip',
},
})
.then(response => response.buffer())
.then(
result =>
new Promise((newResolve, newReject) => {
const distPath = path.join(__dirname, '..', 'dist');
const hasDistFolder = fs.existsSync(distPath);
if (!hasDistFolder) {
fs.mkdirSync(distPath);
}
fs.writeFile(tmpZipPath, result, error => {
if (error) return newReject(error);
return newResolve();
});
})
)
.then(() => del(`${lbryFirstFilePath}*`))
.then()
.then(() =>
decompress(tmpZipPath, lbryFirstDir, {
filter: file => path.basename(file.path) === lbryFirstFileName,
})
)
.then(() => {
console.log('\x1b[32msuccess\x1b[0m LbryFirst downloaded!');
if (hasLbryFirstVersion) {
del(lbryFirstVersionPath);
}
fs.writeFileSync(lbryFirstVersionPath, lbryFirstVersion, 'utf8');
resolve('Done');
})
.catch(error => {
console.error(`\x1b[31merror\x1b[0m LbryFirst download failed due to: \x1b[35m${error}\x1b[0m`);
reject(error);
});
}
});
downloadLBRYFirst();
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
# https://github.com/lbryio/lbry-app/commit/4386102ba3bf8c731a075797756111d73c31a47a
# https://github.com/lbryio/lbry-app/commit/a3a376922298b94615f7514ca59988b73a522f7f
# Appveyor and Teamcity struggle with SSH urls in submodules, so we use HTTPS
# But locally, SSH urls are way better since they dont require a password
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd "DIR"
git config submodule.lbry.url git@github.com:lbryio/lbry.git
git config submodule.lbryum.url git@github.com:lbryio/lbryum.git
+90
View File
@@ -0,0 +1,90 @@
#!/bin/bash
set -euo pipefail
set -x
LINUX=false
OSX=false
if [ "$(uname)" == "Darwin" ]; then
OSX=true
elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
LINUX=true
else
echo "Platform detection failed"
exit 1
fi
SUDO=''
if $LINUX && (( $EUID != 0 )); then
SUDO='sudo'
fi
cmd_exists() {
command -v "$1" >/dev/null 2>&1
return $?
}
set +eu
GITUSERNAME=$(git config --global --get user.name)
if [ -z "$GITUSERNAME" ]; then
git config --global user.name "$(whoami)"
fi
GITEMAIL=$(git config --global --get user.email)
if [ -z "$GITEMAIL" ]; then
git config --global user.email "$(whoami)@lbry.io"
fi
set -eu
if $LINUX; then
INSTALL="$SUDO apt-get install --no-install-recommends -y"
$INSTALL build-essential libssl-dev libffi-dev libgmp3-dev python2.7-dev
elif $OSX && ! cmd_exists brew ; then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
if ! cmd_exists python; then
if $LINUX; then
$INSTALL python2.7
elif $OSX; then
brew install python
fi
fi
PYTHON_VERSION=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
if [ "$PYTHON_VERSION" != "2.7" ]; then
echo "Python 2.7 required"
exit 1
fi
if ! cmd_exists pip; then
if $LINUX; then
$INSTALL python-pip
$SUDO pip install --upgrade pip
else
echo "Pip required"
exit 1
fi
fi
if $LINUX && [ "$(pip list --format=columns | grep setuptools | wc -l)" -ge 1 ]; then
#$INSTALL python-setuptools
$SUDO pip install setuptools
fi
if ! cmd_exists virtualenv; then
$SUDO pip install virtualenv
fi
if ! cmd_exists node; then
if $LINUX; then
curl -sL https://deb.nodesource.com/setup_7.x | $SUDO -E bash -
$INSTALL nodejs
elif $OSX; then
brew install node
fi
fi
+293
View File
@@ -0,0 +1,293 @@
"""Trigger a release.
This script is to be run locally (not on a build server).
"""
import argparse
import contextlib
import logging
import os
import re
import string
import subprocess
import sys
import git
import github
import changelog
# TODO: ask bumpversion for these
LBRY_PARTS = ('major', 'minor', 'patch', 'release', 'candidate')
LBRYUM_PARTS = ('major', 'minor', 'patch')
def main():
parser = argparse.ArgumentParser()
parser.add_argument(
"lbry_part", help="part of lbry version to bump",
choices=LBRY_PARTS
)
parser.add_argument(
"--skip-lbryum", help="skip bumping lbryum, even if there are changes",
action="store_true",
)
parser.add_argument(
"--lbryum-part", help="part of lbryum version to bump",
choices=LBRYUM_PARTS
)
parser.add_argument(
"--last-release",
help=("manually set the last release version. The default is to query and parse the"
" value from the release page.")
)
parser.add_argument(
"--skip-sanity-checks", action="store_true")
parser.add_argument(
"--require-changelog", action="store_true",
help=("Set this flag to raise an exception if a submodules has changes without a"
" corresponding changelog entry. The default is to log a warning")
)
parser.add_argument(
"--skip-push", action="store_true",
help="Set to not push changes to remote repo"
)
args = parser.parse_args()
base = git.Repo(os.getcwd())
branch = 'master'
if not args.skip_sanity_checks:
run_sanity_checks(base, branch)
base_repo = Repo('lbry-app', args.lbry_part, os.getcwd())
base_repo.assert_new_tag_is_absent()
last_release = args.last_release or base_repo.get_last_tag()
logging.info('Last release: %s', last_release)
gh_token = get_gh_token()
auth = github.Github(gh_token)
github_repo = auth.get_repo('lbryio/lbry-app')
names = ['lbryum', 'lbry']
repos = {name: Repo(name, get_part(args, name)) for name in names}
changelogs = {}
for repo in repos.values():
logging.info('Processing repo: %s', repo.name)
repo.checkout(branch)
last_submodule_hash = base_repo.get_submodule_hash(last_release, repo.name)
if repo.has_changes_from_revision(last_submodule_hash):
if repo.name == 'lbryum':
if args.skip_lbryum:
continue
if not repo.part:
repo.part = get_lbryum_part()
entry = repo.get_changelog_entry()
if entry:
changelogs[repo.name] = entry.strip()
repo.add_changelog()
else:
msg = 'Changelog entry is missing for {}'.format(repo.name)
if args.require_changelog:
raise Exception(msg)
else:
logging.warning(msg)
else:
logging.warning('Submodule %s has no changes.', repo.name)
if repo.name == 'lbryum':
# The other repos have their version track each other so need to bump
# them even if there aren't any changes, but lbryum should only be
# bumped if it has changes
continue
# bumpversion will fail if there is already the tag we want in the repo
repo.assert_new_tag_is_absent()
repo.bumpversion()
release_msg = get_release_msg(changelogs, names)
for name in names:
base.git.add(name)
base_repo.bumpversion()
current_tag = base.git.describe()
is_rc = re.match('\drc\d+$', current_tag) is not None
github_repo.create_git_release(current_tag, current_tag, release_msg, draft=True,
prerelease=is_rc)
no_change_msg = ('No change since the last release. This release is simply a placeholder'
' so that LBRY and LBRY App track the same version')
lbrynet_daemon_release_msg = changelogs.get('lbry', no_change_msg)
auth.get_repo('lbryio/lbry').create_git_release(
current_tag, current_tag, lbrynet_daemon_release_msg, draft=True)
if not args.skip_push:
for repo in repos.values():
repo.git.push(follow_tags=True)
base.git.push(follow_tags=True, recurse_submodules='check')
else:
logging.info('Skipping push; you will have to reset and delete tags if '
'you want to run this script again. Take a look at reset.sh; '
'it probably does what you want.')
def get_gh_token():
if 'GH_TOKEN' in os.environ:
return os.environ['GH_TOKEN']
else:
print """
Please enter your personal access token. If you don't have one
See https://github.com/lbryio/lbry-app/wiki/Release-Script#generate-a-personal-access-token
for instructions on how to generate one.
You can also set the GH_TOKEN environment variable to avoid seeing this message
in the future"""
return raw_input('token: ').strip()
def get_lbryum_part():
print """The lbryum repo has changes but you didn't specify how to bump the
version. Please enter one of: {}""".format(', '.join(LBRYUM_PARTS))
while True:
part = raw_input('part: ').strip()
if part in LBRYUM_PARTS:
return part
print 'Invalid part. Enter one of: {}'.format(', '.join(LBRYUM_PARTS))
def get_release_msg(changelogs, names):
lines = []
for name in names:
entry = changelogs.get(name)
if not entry:
continue
lines.append('## {}\n'.format(name))
lines.append('{}\n'.format(entry))
return '\n'.join(lines)
def run_sanity_checks(base, branch):
if base.is_dirty():
print 'Cowardly refusing to release a dirty repo'
sys.exit(1)
if base.active_branch.name != branch:
print 'Cowardly refusing to release when not on the {} branch'.format(branch)
sys.exit(1)
if is_behind(base, branch):
print 'Cowardly refusing to release when behind origin'
sys.exit(1)
check_bumpversion()
def is_behind(base, branch):
base.remotes.origin.fetch()
rev_list = '{branch}...origin/{branch}'.format(branch=branch)
commits_behind = base.git.rev_list(rev_list, right_only=True, count=True)
commits_behind = int(commits_behind)
return commits_behind > 0
def check_bumpversion():
def require_new_version():
print 'Install bumpversion: pip install -U git+https://github.com/lbryio/bumpversion.git'
sys.exit(1)
try:
output = subprocess.check_output(['bumpversion', '-v'], stderr=subprocess.STDOUT)
output = output.strip()
if output != 'bumpversion 0.5.4-lbry':
require_new_version()
except (subprocess.CalledProcessError, OSError) as err:
require_new_version()
def get_part(args, name):
return getattr(args, name + '_part') or args.lbry_part
class Repo(object):
def __init__(self, name, part, directory=None):
self.name = name
self.part = part
self.directory = directory or os.path.join(os.getcwd(), name)
self.git_repo = git.Repo(self.directory)
self.saved_commit = None
self._bumped = False
def get_last_tag(self):
return string.split(self.git_repo.git.describe(tags=True), '-')[0]
def get_submodule_hash(self, revision, submodule_path):
line = getattr(self.git_repo.git, 'ls-tree')(revision, submodule_path)
return string.split(line)[2] if line else None
def has_changes_from_revision(self, revision):
commit = str(self.git_repo.commit())
logging.info('%s =? %s', commit, revision)
return commit != revision
def save_commit(self):
self.saved_commit = self.git_repo.commit()
logging.info('Saved ', self.git_repo.commit(), self.saved_commit)
def checkout(self, branch):
self.git_repo.git.checkout(branch)
self.git_repo.git.pull(rebase=True)
def get_changelog_entry(self):
filename = os.path.join(self.directory, 'CHANGELOG.md')
return changelog.bump(filename, self.new_version())
def add_changelog(self):
with pushd(self.directory):
self.git_repo.git.add('CHANGELOG.md')
def new_version(self):
if self._bumped:
raise Exception('Cannot calculate a new version on an already bumped repo')
if not self.part:
raise Exception('Cannot calculate a new version without a part')
with pushd(self.directory):
output = subprocess.check_output(
['bumpversion', '--dry-run', '--list', '--allow-dirty', self.part])
return re.search('^new_version=(.*)$', output, re.M).group(1)
def bumpversion(self):
if self._bumped:
raise Exception('Cowardly refusing to bump a repo twice')
if not self.part:
raise Exception('Cannot bump version for {}: no part specified'.format(repo.name))
with pushd(self.directory):
subprocess.check_call(['bumpversion', '--allow-dirty', self.part])
self._bumped = True
def assert_new_tag_is_absent(self):
new_tag = 'v' + self.new_version()
tags = self.git_repo.git.tag()
if new_tag in tags.split('\n'):
raise Exception('Tag {} is already present in repo {}.'.format(new_tag, self.name))
@property
def git(self):
return self.git_repo.git
@contextlib.contextmanager
def pushd(new_dir):
previous_dir = os.getcwd()
os.chdir(new_dir)
yield
os.chdir(previous_dir)
if __name__ == '__main__':
logging.basicConfig(
format="%(asctime)s %(levelname)-8s %(name)s:%(lineno)d: %(message)s",
level='INFO'
)
sys.exit(main())
else:
log = logging.getLogger('__name__')
+161
View File
@@ -0,0 +1,161 @@
import glob
import json
import logging
import os
import platform
import subprocess
import sys
import github
import requests
import uritemplate
from lbrynet.core import log_support
def main():
try:
current_tag = subprocess.check_output(
['git', 'describe', '--exact-match', 'HEAD']).strip()
except subprocess.CalledProcessError:
log.info('Stopping as we are not currently on a tag')
return
if 'GH_TOKEN' not in os.environ:
print 'Must set GH_TOKEN in order to publish assets to a release'
return
gh_token = os.environ['GH_TOKEN']
auth = github.Github(gh_token)
app_repo = auth.get_repo('lbryio/lbry-app')
daemon_repo = auth.get_repo('lbryio/lbry')
if not check_repo_has_tag(app_repo, current_tag):
log.info('Tag %s is not in repo %s', current_tag, app_repo)
# TODO: maybe this should be an error
return
# daemon = get_daemon_artifact()
# release = get_release(daemon_repo, current_tag)
# upload_asset(release, daemon, gh_token)
app = get_app_artifact()
release = get_release(app_repo, current_tag)
upload_asset(release, app, gh_token)
def check_repo_has_tag(repo, target_tag):
tags = repo.get_tags().get_page(0)
for tag in tags:
if tag.name == target_tag:
return True
return False
def get_release(current_repo, current_tag):
for release in current_repo.get_releases():
if release.tag_name == current_tag:
return release
raise Exception('No release for {} was found'.format(current_tag))
def get_app_artifact():
system = platform.system()
if system == 'Darwin':
return glob.glob('dist/mac/LBRY*.dmg')[0]
elif system == 'Linux':
return glob.glob('dist/LBRY*.deb')[0]
elif system == 'Windows':
return glob.glob('dist/LBRY*.exe')[0]
else:
raise Exception("I don't know about any artifact on {}".format(system))
def get_daemon_artifact():
return glob.glob('dist/*.zip')[0]
def upload_asset(release, asset_to_upload, token):
basename = os.path.basename(asset_to_upload)
if is_asset_already_uploaded(release, basename):
return
count = 0
while count < 10:
try:
return _upload_asset(release, asset_to_upload, token, _curl_uploader)
except Exception:
log.exception('Failed to upload')
count += 1
def _upload_asset(release, asset_to_upload, token, uploader):
basename = os.path.basename(asset_to_upload)
upload_uri = uritemplate.expand(
release.upload_url,
{'name': basename}
)
output = uploader(upload_uri, asset_to_upload, token)
if 'errors' in output:
raise Exception(output)
else:
log.info('Successfully uploaded to %s', output['browser_download_url'])
# requests doesn't work on windows / linux / osx.
def _requests_uploader(upload_uri, asset_to_upload, token):
log.info('Using requests to upload %s to %s', asset_to_upload, upload_uri)
with open(asset_to_upload, 'rb') as f:
response = requests.post(upload_uri, data=f, auth=('', token))
output = response.json()
return output
# curl -H "Content-Type: application/json" -X POST -d '{"username":"xyz","password":"xyz"}' http://localhost:3000/api/login
def _curl_uploader(upload_uri, asset_to_upload, token):
# using requests.post fails miserably with SSL EPIPE errors. I spent
# half a day trying to debug before deciding to switch to curl.
#
# TODO: actually set the content type
log.info('Using curl to upload %s to %s', asset_to_upload, upload_uri)
cmd = [
'curl',
'-sS',
'-X', 'POST',
'-u', ':{}'.format(os.environ['GH_TOKEN']),
'--header', 'Content-Type: application/octet-stream',
'--data-binary', '@-',
upload_uri
]
# '-d', '{"some_key": "some_value"}',
print 'Calling curl:'
print cmd
print
with open(asset_to_upload, 'rb') as fp:
p = subprocess.Popen(cmd, stdin=fp, stderr=subprocess.PIPE, stdout=subprocess.PIPE)
stdout, stderr = p.communicate()
print 'curl return code:', p.returncode
if stderr:
print 'stderr output from curl:'
print stderr
print 'stdout from curl:'
print stdout
output = json.loads(stdout)
return output
def is_asset_already_uploaded(release, basename):
for asset in release.raw_data['assets']:
if asset['name'] == basename:
log.info('File %s has already been uploaded to %s', basename, release.tag_name)
return True
return False
if __name__ == '__main__':
log = logging.getLogger('release-on-tag')
log_support.configure_console(level='INFO')
sys.exit(main())
else:
log = logging.getLogger(__name__)
+6
View File
@@ -0,0 +1,6 @@
GitPython==2.1.1
PyGithub==1.32
requests[security]==2.13.0
PyInstaller==3.2.1
uritemplate==3.0.0
git+https://github.com/lbryio/bumpversion.git
Executable
+21
View File
@@ -0,0 +1,21 @@
#!/bin/bash
set -euxo pipefail
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )/.." && pwd )"
cd "$ROOT"
(
cd lbry
git tag -d $(git describe)
git reset --hard origin/master
)
(
cd lbryum
git tag -d $(git describe)
git reset --hard origin/master
)
git tag -d $(git describe)
git reset --hard HEAD~1
+28
View File
@@ -0,0 +1,28 @@
"""Set the build version to be 'dev', 'qa', 'rc', 'release'"""
import os.path
import re
import subprocess
import sys
def main():
build = get_build()
with open(os.path.join('lbry', 'lbrynet', 'build_type.py'), 'w') as f:
f.write('BUILD = "{}"'.format(build))
def get_build():
try:
tag = subprocess.check_output(['git', 'describe', '--exact-match']).strip()
if re.match('v\d+\.\d+\.\d+rc\d+', tag):
return 'rc'
else:
return 'release'
except subprocess.CalledProcessError:
# if the build doesn't have a tag
return 'qa'
if __name__ == '__main__':
sys.exit(main())
+59
View File
@@ -0,0 +1,59 @@
"""Set the package version to the output of `git describe`"""
import argparse
import json
import os.path
import re
import subprocess
import sys
def main():
parser = argparse.ArgumentParser()
parser.add_argument('--version', help="defaults to the output of `git describe`")
args = parser.parse_args()
if args.version:
version = args.version
else:
tag = subprocess.check_output(['git', 'describe']).strip()
try:
version = get_version_from_tag(tag)
except InvalidVersionTag:
# this should be an error but its easier to handle here
# than in the calling scripts.
print 'Tag cannot be converted to a version, Exitting'
return
set_version(version)
class InvalidVersionTag(Exception):
pass
def get_version_from_tag(tag):
match = re.match('v([\d.]+)', tag)
if match:
return match.group(1)
else:
raise InvalidVersionTag('Failed to parse version from tag {}'.format(tag))
def set_version(version):
package_file = os.path.join('app', 'package.json')
with open(package_file) as fp:
package_data = json.load(fp)
package_data['version'] = version
with open(package_file, 'w') as fp:
json.dump(package_data, fp, indent=2, separators=(',', ': '))
with open(os.path.join('lbry', 'lbrynet', '__init__.py'), 'w') as fp:
fp.write(LBRYNET_TEMPLATE.format(version=version))
LBRYNET_TEMPLATE = """
__version__ = "{version}"
version = tuple(__version__.split('.'))
"""
if __name__ == '__main__':
sys.exit(main())
-158
View File
@@ -1,158 +0,0 @@
const { Octokit } = require('@octokit/rest');
const octokit = new Octokit();
var wget = require('node-wget');
const fs = require('fs');
const path = require('path');
const { exec } = require('child_process');
const readline = require('readline');
// Global generated from cli prompt
let versionToSign;
// Why can't I do this with 'fs'? :/
function deleteFolderRecursive(path) {
if (fs.existsSync(path)) {
fs.readdirSync(path).forEach(function(file, index) {
var curPath = path + '/' + file;
if (fs.lstatSync(curPath).isDirectory()) {
// recurse
deleteFolderRecursive(curPath);
} else {
// delete file
fs.unlinkSync(curPath);
}
});
fs.rmdirSync(path);
}
}
// Initial setup
// Create a file to store the hashes (creates a new copy if one exists)
const downloadPath = path.resolve(__dirname, '../dist/releaseDownloads');
const fileToSign = path.resolve(downloadPath, '../hashes.txt');
fs.openSync(fileToSign, 'w');
if (!fs.existsSync(downloadPath)) {
fs.mkdirSync(downloadPath);
} else {
deleteFolderRecursive(downloadPath);
fs.mkdirSync(downloadPath);
}
//
// Below is the actual code that downloads, hashes, and signs the release
//
function cleanUpAfterSigning() {
fs.unlinkSync(fileToSign);
deleteFolderRecursive(downloadPath);
console.log('Good to go captain');
process.exit(0);
}
function signFile() {
console.log('Logging in file with hashes using keybase...');
// All files are hashed and added to hashes.txt
// Sign it with keybase
const fileName = `LBRY_${versionToSign}_sigs.asc`;
const pathForSignedFile = path.resolve(__dirname, `../dist/${fileName}`);
exec(`keybase pgp sign -i ${fileToSign} -c -o ${pathForSignedFile}`, err => {
if (err) {
console.log('Error signing file with keybase');
}
cleanUpAfterSigning();
});
}
function hashFiles() {
console.log('Hashing assets downloaded from github...');
fs.readdir(downloadPath, function(err, items) {
if (err) {
console.log('Error signing files in ', downloadPath);
}
let count = 0;
for (var i = 0; i < items.length; i++) {
const file = items[i];
const filePath = path.resolve(__dirname, '../dist/releaseDownloads/', file);
exec(`sha256sum ${filePath}`, (err, stdout) => {
if (err) {
console.log('Error hashing ', filePath);
}
count += 1;
const hash = stdout.split(' ')[0];
const stringToAppend = `${hash} ${file}\n`;
fs.appendFileSync(fileToSign, stringToAppend);
if (count === items.length - 1) {
signFile();
}
});
}
});
}
let downloadCount = 0;
let fileCountToDownload;
function downloadFile(fileName, url) {
wget(
{
url: url,
dest: `${downloadPath}/`,
},
(error, response, body) => {
console.log(`Finished downloading `, fileName);
downloadCount += 1;
if (downloadCount === fileCountToDownload) {
hashFiles();
}
}
);
}
function downloadAssets() {
console.log('Downloading release assets...');
octokit.repos
.getReleaseByTag({
owner: 'lbryio',
repo: 'lbry-desktop',
tag: versionToSign,
})
.then(({ data }) => {
const release_id = data.id;
return octokit.repos.listReleases({
owner: 'lbryio',
repo: 'lbry-desktop',
release_id,
});
})
.then(({ data }) => {
const releaseToDownload = data.filter(releaseData => releaseData.tag_name === versionToSign)[0];
const assets = releaseToDownload.assets;
fileCountToDownload = assets.length;
assets
.map(({ browser_download_url, name }) => ({ download_url: browser_download_url, name }))
.forEach(({ name, download_url }) => {
const fileName = path.resolve(__dirname, `../dist/releaseDownloads/${name}`);
downloadFile(fileName, download_url);
});
})
.catch(error => console.log('Error downloading releases ', error));
}
const rl = readline.createInterface({
input: process.stdin,
output: process.stdout,
});
rl.question('Version to sign: ', function(version) {
const tag = version.startsWith('v') ? version : `v${version}`;
versionToSign = tag;
downloadAssets();
});
+28
View File
@@ -0,0 +1,28 @@
import os
import platform
import subprocess
import sys
import zipfile
def main():
tag = subprocess.check_output(['git', 'describe']).strip()
zipfilename = 'lbrynet-daemon-{}-{}.zip'.format(tag, get_system_label())
full_filename = os.path.join('dist', zipfilename)
executables = ['lbrynet-daemon', 'lbrynet-cli']
ext = '.exe' if platform.system() == 'Windows' else ''
with zipfile.ZipFile(full_filename, 'w') as myzip:
for executable in executables:
myzip.write(os.path.join('app', 'dist', executable + ext), executable + ext)
def get_system_label():
system = platform.system()
if system == 'Darwin':
return 'macos'
else:
return system.lower()
if __name__ == '__main__':
sys.exit(main())
-73
View File
@@ -1,73 +0,0 @@
// On Web, this will find .env.defaults and optional .env in web/
// On Desktop App, this will find .env.defaults and optional .env in root dir
require('dotenv-defaults').config({ silent: false });
const config = {
MATOMO_URL: process.env.MATOMO_URL,
MATOMO_ID: process.env.MATOMO_ID,
WEBPACK_WEB_PORT: process.env.WEBPACK_WEB_PORT,
WEBPACK_ELECTRON_PORT: process.env.WEBPACK_ELECTRON_PORT,
WEB_SERVER_PORT: process.env.WEB_SERVER_PORT,
LBRY_WEB_API: process.env.LBRY_WEB_API, //api.na-backend.odysee.com',
LBRY_API_URL: process.env.LBRY_API_URL, //api.lbry.com',
LBRY_WEB_STREAMING_API: process.env.LBRY_WEB_STREAMING_API, //cdn.lbryplayer.xyz',
LBRY_WEB_BUFFER_API: process.env.LBRY_WEB_BUFFER_API,
COMMENT_SERVER_API: process.env.COMMENT_SERVER_API,
WELCOME_VERSION: process.env.WELCOME_VERSION,
DOMAIN: process.env.DOMAIN,
SHARE_DOMAIN_URL: process.env.SHARE_DOMAIN_URL,
URL: process.env.URL,
THUMBNAIL_CDN_URL: process.env.THUMBNAIL_CDN_URL,
SITE_TITLE: process.env.SITE_TITLE,
SITE_NAME: process.env.SITE_NAME,
SITE_DESCRIPTION: process.env.SITE_DESCRIPTION,
SITE_HELP_EMAIL: process.env.SITE_HELP_EMAIL,
// LOGO
LOGO_TITLE: process.env.LOGO_TITLE,
FAVICON: process.env.FAVICON,
LOGO_URL: process.env.LOGO_URL,
LOGO_TEXT_LIGHT_URL: process.env.LOGO_TEXT_LIGHT_URL,
LOGO_TEXT_DARK_URL: process.env.LOGO_TEXT_DARK_URL,
// OG
OG_TITLE_SUFFIX: process.env.OG_TITLE_SUFFIX,
OG_HOMEPAGE_TITLE: process.env.OG_HOMEPAGE_TITLE,
OG_IMAGE_URL: process.env.OG_IMAGE_URL,
// MASCOT
YRBL_HAPPY_IMG_URL: process.env.YRBL_HAPPY_IMG_URL,
YRBL_SAD_IMG_URL: process.env.YRBL_SAD_IMG_URL,
LOGIN_IMG_URL: process.env.LOGIN_IMG_URL,
SITE_CANONICAL_URL: process.env.SITE_CANONICAL_URL,
DEFAULT_LANGUAGE: process.env.DEFAULT_LANGUAGE,
AUTO_FOLLOW_CHANNELS: process.env.AUTO_FOLLOW_CHANNELS,
UNSYNCED_SETTINGS: process.env.UNSYNCED_SETTINGS,
AVATAR_DEFAULT: process.env.AVATAR_DEFAULT,
// ENABLE FEATURES
ENABLE_COMMENT_REACTIONS: process.env.ENABLE_COMMENT_REACTIONS === 'true',
ENABLE_FILE_REACTIONS: process.env.ENABLE_FILE_REACTIONS === 'true',
ENABLE_CREATOR_REACTIONS: process.env.ENABLE_CREATOR_REACTIONS === 'true',
ENABLE_NO_SOURCE_CLAIMS: process.env.ENABLE_NO_SOURCE_CLAIMS === 'true',
ENABLE_PREROLL_ADS: process.env.ENABLE_PREROLL_ADS === 'true',
CHANNEL_STAKED_LEVEL_VIDEO_COMMENTS: process.env.CHANNEL_STAKED_LEVEL_VIDEO_COMMENTS,
CHANNEL_STAKED_LEVEL_LIVESTREAM: process.env.CHANNEL_STAKED_LEVEL_LIVESTREAM,
WEB_PUBLISH_SIZE_LIMIT_GB: process.env.WEB_PUBLISH_SIZE_LIMIT_GB,
LOADING_BAR_COLOR: process.env.LOADING_BAR_COLOR,
SIMPLE_SITE: process.env.SIMPLE_SITE === 'true',
SHOW_ADS: process.env.SHOW_ADS === 'true',
PINNED_URI_1: process.env.PINNED_URI_1,
PINNED_LABEL_1: process.env.PINNED_LABEL_1,
PINNED_URI_2: process.env.PINNED_URI_2,
PINNED_LABEL_2: process.env.PINNED_LABEL_2,
KNOWN_APP_DOMAINS: process.env.KNOWN_APP_DOMAINS ? process.env.KNOWN_APP_DOMAINS.split(',') : [],
STRIPE_PUBLIC_KEY: process.env.STRIPE_PUBLIC_KEY,
ENABLE_UI_NOTIFICATIONS: process.env.ENABLE_UI_NOTIFICATIONS === 'true',
ENABLE_MATURE: process.env.ENABLE_MATURE === 'true',
CUSTOM_HOMEPAGE: process.env.CUSTOM_HOMEPAGE === 'true',
SHOW_TAGS_INTRO: process.env.SHOW_TAGS_INTRO === 'true',
LIGHTHOUSE_DEFAULT_TYPES: process.env.LIGHTHOUSE_DEFAULT_TYPES,
};
config.URL_LOCAL = `http://localhost:${config.WEB_SERVER_PORT}`;
config.URL_DEV = `http://localhost:${config.WEBPACK_WEB_PORT}`;
module.exports = config;
-306
View File
@@ -1,306 +0,0 @@
// @flow
/*
Creating custom homepage items
1) in web/ folder, copy `.env.defaults` to `.env` and make CUSTOM_HOMEPAGE=true
2) copy this file to homepage.js
3) Create item objects
{
title, // how the title link displays
link, // where the title link goes
options // what search results populate the homepage item
}
4) rowData.push(item) for each item in the order you want them
Item object examples:
Specific Channel
const LATEST_FROM_%CHANNEL% = {
title: 'Latest From @%channel%',
link: `/@%channelName%:%canonicalId%`,
options: {
orderBy: ['release_time'],
pageSize: 4,
channelIds: ['%channelId%'],
},
};
More complex List of channels with description icon filtering by fee_amount etc are possible
SOME_CHANNEL_IDS = ['channelId1', 'channelId2']
SOME_TAG = '
const SOME_CHANNELS_ITEM = {
title: '#aTitle',
link: `/$/${PAGES.DISCOVER}?${CS.TAGS_KEY}=aTag&fee_amount=>0&${CS.CLAIM_TYPE}=${CS.CLAIM_STREAM}&${
CS.CHANNEL_IDS_KEY
}=${SOME_CHANNEL_IDS.join(',')}`,
help: (
<div className="claim-grid__help">
<Icon
icon={ICONS.HELP}
tooltip
customTooltipText={__(
'Some tooltip text.'
)}
/>
</div>
),
options: { // search options
feeAmount: '>0',
claimType: ['stream'],
tags: ['tagOne', 'tagTwo'],
pageSize: 8,
channelIds: SOME_CHANNEL_IDS,
},
};
*/
import * as PAGES from 'constants/pages';
import * as CS from 'constants/claim_search';
import * as ICONS from 'constants/icons';
import { parseURI } from 'lbry-redux';
import moment from 'moment';
import { toCapitalCase } from 'util/string';
import React from 'react';
import Icon from 'component/common/icon';
export type RowDataItem = {
title: string,
link?: string,
help?: any,
options?: {},
};
export default function GetHomePageRowData(
authenticated: boolean,
showPersonalizedChannels: boolean,
showPersonalizedTags: boolean,
subscribedChannels: Array<Subscription>,
followedTags: Array<Tag>,
showIndividualTags: boolean
) {
let rowData: Array<RowDataItem> = [];
const individualTagDataItems: Array<RowDataItem> = [];
const PAID_BETA_CHANNEL_IDS_KEY = [
'4ee7cfaf1fc50a6df858ed0b99c278d633bccca9',
'5af39f818f668d8c00943c9326c5201c4fe3c423',
'cda9c4e92f19d6fe0764524a2012056e06ca2055',
'760da3ba3dd85830a843beaaed543a89b7a367e7',
'40c36948f0da072dcba3e4833e90f71e16de78be',
'e8f68563d242f6ac9784dcbc41dd86c28a9391d6',
'7236fc5d2783ea7314d9076ae6c8a250e3992d1a',
'8627af93c1a1219150f06b698f4b33e6ed2f1c1e',
'c5b0b17838df2f6c31162f64d55f60f34ae8bfc6',
'f576d5dba905fc179de880c3fe3eb3281ea74f59',
'97dd77c93c9603cbb2583f3589f7f5a6c92baa43',
'f399d873e0c37cf24de9569b5f22bbb30a5c6709',
'dba870d0620d41b2b9a152c961e0c06cf875ccfc',
'ca1fd651c9d14bf2e5088bb2aa0146ee7aeb2ae0',
'50ad846a4b1543b847bf3fdafb7b45f6b2f5844c',
'e09ff5abe9fb44dd0dd0576894a6db60a6211603',
'7b6f7517f6b816827d076fa0eaad550aa315a4e7',
'2068452c41d8da3bd68961335da0072a99258a1a',
'3645cf2f5d0bdac0523f945be1c3ff60758f7845',
'4da85b12244839d6368b9290f1619ff9514ab2a8',
'4ad942982e43326c7700b1b6443049b3cfd82161',
'55304f219244abf82f684f759cc0c7769242f3b4',
'8f42e5b592bb7f7a03f4a94a86a41b1236bb099f',
'e2a014d885a48f5be2dc6409610996337312facb',
'c18996ca488753f714d36d4654715927c1d7f9c2',
'ebc4214424cfa683a7046e1f794fea1e44788d84',
'06b6d6d6a893fb589ec2ded948f5122856921ed5',
'07e4546674268fc0222b2ca22d31d0549dc217ee',
'060940e41973d4f7f16d72a2733138e931c35f41',
'f8d6eccd887c9cebd36b1d42aa349279b7f5c3ed',
'68098b8426f967b8d04cc566348b5c128823219e',
'2bfe6cdb24a21bdc1b76fb7c416edd50e9e85945',
'1f9bb08bfa2259629f4aaa9ed40f97e9a41b6fa1',
'2f20148495612946675fe1c8ea99171e4d950b81',
'bc6938fa1e09e840056c2e831abf9664f397c472',
'2a6194792beac5130641e932b5ac6e5a99b5ca4f',
'185ba2bd547a5e4a77d29fe6c1484f47db5e058f',
'29cc7f6081268eaa5b3f2946e0cd0b952a94812c',
'ffdc62ac2f7549398d3aca9d2119e83d80d588d5',
'd7a4d2808074b0c55d6b239f69d90e7a4930f943',
'd58aa4a0b2f6c2504c3abce8de3f1afb71800acc',
'77ae23dc7eb8a75609881d4548a79e4935a89d37',
'f79bce8a60fbece671f6265adc39f6469f3b9b8c',
'051995fdf0af634e4911704057a551e9392e62b1',
'b0e489f986c345aef23c4a48d91cbcf5a6fdb9ac',
'825aa21c8c0bda4ded3e69a69238763c8cfcc13b',
'49389450b1241f5d8f4c8c4271a3eb56bba33965',
'f3b9973e1725ecb50da3e6fa4d47343c98ef0382',
'321b33d22c8e24ef207e3f357a4573f6a56611f3',
'20d694ada07e740c6fa43a8c324cb7d6e362b5ee',
'cf7792c2a37d0d76aaaff84aff0b99a8c791429d',
'8316ac90764fedf3147799b7b81a6575a9cc398e',
'8972a1bd06de5186e5e89292b05aac8aaa817791',
'5da63df97c8255ae94a88940695b8471657dd5a1',
'f3da2196b5151570d980b34d311ee0973225a68e',
'7644fdb8342624f6c647c79de25610801573fa68',
];
const TV_PAID_BETA_ROW = {
title: '#lbrytvpaidbeta',
link: `/$/${PAGES.DISCOVER}?${CS.TAGS_KEY}=lbrytvpaidbeta&fee_amount=>0&${CS.CLAIM_TYPE}=${CS.CLAIM_STREAM}&${
CS.CHANNEL_IDS_KEY
}=${PAID_BETA_CHANNEL_IDS_KEY.join(',')}`,
help: (
<div className="claim-grid__help">
<Icon
icon={ICONS.HELP}
tooltip
customTooltipText={__(
'Check your rewards page to see if you qualify for paid content reimbursement. Only content in this section qualifies.'
)}
/>
</div>
),
options: {
feeAmount: '>0',
claimType: ['stream'],
tags: ['lbrytvpaidbeta', 'lbry tvpaidbeta'],
pageSize: 8,
channelIds: PAID_BETA_CHANNEL_IDS_KEY,
},
};
if (followedTags.length) {
followedTags.forEach((tag: Tag) => {
individualTagDataItems.push({
title: `Trending for #${toCapitalCase(tag.name)}`,
link: `/$/${PAGES.DISCOVER}?t=${tag.name}`,
options: {
pageSize: 4,
tags: [tag.name],
claimType: ['stream'],
},
});
});
}
const RECENT_FROM_FOLLOWING = {
title: 'Recent From Following',
link: `/$/${PAGES.CHANNELS_FOLLOWING}`,
options: {
orderBy: ['release_time'],
releaseTime:
subscribedChannels.length > 20
? `>${Math.floor(
moment()
.subtract(6, 'months')
.startOf('week')
.unix()
)}`
: `>${Math.floor(
moment()
.subtract(1, 'year')
.startOf('week')
.unix()
)}`,
pageSize: subscribedChannels.length > 3 ? 8 : 4,
channelIds: subscribedChannels.map((subscription: Subscription) => {
const { channelClaimId } = parseURI(subscription.uri);
return channelClaimId;
}),
},
};
const TOP_CONTENT_TODAY = {
title: 'Top Content from Today',
link: `/$/${PAGES.DISCOVER}?${CS.ORDER_BY_KEY}=${CS.ORDER_BY_TOP}&${CS.FRESH_KEY}=${CS.FRESH_DAY}`,
options: {
pageSize: showPersonalizedChannels || showPersonalizedTags ? 4 : 8,
orderBy: ['effective_amount'],
claimType: ['stream'],
releaseTime: `>${Math.floor(
moment()
.subtract(1, 'day')
.startOf('day')
.unix()
)}`,
},
};
const TOP_CHANNELS = {
title: 'Top Channels On LBRY',
link: `/$/${PAGES.DISCOVER}?claim_type=channel&${CS.ORDER_BY_KEY}=${CS.ORDER_BY_TOP}&${CS.FRESH_KEY}=${CS.FRESH_ALL}`,
options: {
orderBy: ['effective_amount'],
claimType: ['channel'],
},
};
const TRENDING_CLASSICS = {
title: 'Trending Classics',
link: `/$/${PAGES.DISCOVER}?${CS.ORDER_BY_KEY}=${CS.ORDER_BY_TRENDING}&${CS.FRESH_KEY}=${CS.FRESH_WEEK}`,
options: {
pageSize: 4,
claimType: ['stream'],
releaseTime: `<${Math.floor(
moment()
.subtract(6, 'month')
.startOf('day')
.unix()
)}`,
},
};
const TRENDING_ON_LBRY = {
title: 'Trending On LBRY',
link: `/$/${PAGES.DISCOVER}`,
options: {
pageSize: showPersonalizedChannels || showPersonalizedTags ? 4 : 8,
},
};
const TRENDING_FOR_TAGS = {
title: 'Trending For Your Tags',
link: `/$/${PAGES.TAGS_FOLLOWING}`,
options: {
tags: followedTags.map(tag => tag.name),
claimType: ['stream'],
},
};
const LATEST_FROM_LBRY = {
title: 'Latest From @lbry',
link: `/@lbry:3f`,
options: {
orderBy: ['release_time'],
pageSize: 4,
channelIds: ['3fda836a92faaceedfe398225fb9b2ee2ed1f01a'],
},
};
const LATEST_FROM_LBRYCAST = {
title: 'Latest From @lbrycast',
link: `/@lbrycast:4`,
options: {
orderBy: ['release_time'],
pageSize: 4,
channelIds: ['4c29f8b013adea4d5cca1861fb2161d5089613ea'],
},
};
if (showPersonalizedChannels) rowData.push(RECENT_FROM_FOLLOWING);
if (showPersonalizedTags && !showIndividualTags) rowData.push(TRENDING_FOR_TAGS);
if (showPersonalizedTags && showIndividualTags) {
individualTagDataItems.forEach((item: RowDataItem) => {
rowData.push(item);
});
}
if (authenticated) {
rowData.push(TV_PAID_BETA_ROW);
}
rowData.push(TOP_CONTENT_TODAY);
rowData.push(TRENDING_ON_LBRY);
if (!showPersonalizedChannels) rowData.push(TOP_CHANNELS);
if (!authenticated) {
rowData.push(TV_PAID_BETA_ROW);
}
rowData.push(TRENDING_CLASSICS);
rowData.push(LATEST_FROM_LBRYCAST);
rowData.push(LATEST_FROM_LBRY);
return rowData;
}
-2
View File
@@ -1,2 +0,0 @@
User-agent: *
Allow: /
-2
View File
@@ -1,2 +0,0 @@
User-agent: *
Disallow: /
+28
View File
@@ -0,0 +1,28 @@
$env:Path += ";C:\MinGW\bin\"
$env:Path += ";C:\Program Files (x86)\Windows Kits\10\bin\x86\"
gcc --version
mingw32-make --version
# build/install miniupnpc manually
tar zxf miniupnpc-1.9.tar.gz
cd miniupnpc-1.9
mingw32-make.exe -f Makefile.mingw
python.exe setupmingw32.py build --compiler=mingw32
python.exe setupmingw32.py install
cd ..\
Remove-Item -Recurse -Force miniupnpc-1.9
# copy requirements from lbry, but remove lbryum (we'll add it back in below) and gmpy and miniupnpc (installed manually)
Get-Content ..\lbry\requirements.txt | Select-String -Pattern 'lbryum|gmpy|miniupnpc' -NotMatch | Out-File requirements.txt
# add in gmpy wheel
Add-Content requirements.txt "./gmpy-1.17-cp27-none-win32.whl"
# for electron, we install lbryum and lbry using submodules
Add-Content requirements.txt "../lbryum"
Add-Content requirements.txt "../lbry"
pip.exe install pyinstaller
pip.exe install -r requirements.txt
pyinstaller -y daemon.onefile.spec
pyinstaller -y cli.onefile.spec
+58
View File
@@ -0,0 +1,58 @@
# -*- mode: python -*-
import platform
import os
cwd = os.getcwd()
if os.path.basename(cwd) != 'daemon':
raise Exception('The build needs to be run from the same directory as the spec file')
repo_base = os.path.abspath(os.path.join(cwd, '..'))
system = platform.system()
if system == 'Darwin':
icns = os.path.join(repo_base, 'build', 'icon.icns')
elif system == 'Linux':
icns = os.path.join(repo_base, 'build', 'icons', '256x256.png')
elif system == 'Windows':
icns = os.path.join(repo_base, 'build', 'icons', 'lbry256.ico')
else:
print 'Warning: System {} has no icons'.format(system)
icns = None
block_cipher = None
a = Analysis(
['cli.py'],
pathex=[cwd],
binaries=None,
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher
)
pyz = PYZ(
a.pure,
a.zipped_data,
cipher=block_cipher
)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='lbrynet-cli',
debug=False,
strip=False,
upx=True,
console=True,
icon=icns
)
+7
View File
@@ -0,0 +1,7 @@
from lbrynet.lbrynet_daemon import DaemonCLI
import logging
logging.basicConfig()
if __name__ == '__main__':
DaemonCLI.main()
+77
View File
@@ -0,0 +1,77 @@
# -*- mode: python -*-
import platform
import os
import lbryum
cwd = os.getcwd()
if os.path.basename(cwd) != 'daemon':
raise Exception('The build needs to be run from the same directory as the spec file')
repo_base = os.path.abspath(os.path.join(cwd, '..'))
system = platform.system()
if system == 'Darwin':
icns = os.path.join(repo_base, 'build', 'icon.icns')
elif system == 'Linux':
icns = os.path.join(repo_base, 'build', 'icons', '256x256.png')
elif system == 'Windows':
icns = os.path.join(repo_base, 'build', 'icons', 'lbry256.ico')
else:
print 'Warning: System {} has no icons'.format(system)
icns = None
block_cipher = None
languages = (
'chinese_simplified.txt', 'japanese.txt', 'spanish.txt',
'english.txt', 'portuguese.txt'
)
datas = [
(
os.path.join(os.path.dirname(lbryum.__file__), 'wordlist', language),
'lbryum/wordlist'
)
for language in languages
]
a = Analysis(
['daemon.py'],
pathex=[cwd],
binaries=None,
datas=datas,
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher
)
pyz = PYZ(
a.pure, a.zipped_data,
cipher=block_cipher
)
exe = EXE(
pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
name='lbrynet-daemon',
debug=False,
strip=False,
upx=True,
console=True,
icon=icns
)
+4
View File
@@ -0,0 +1,4 @@
from lbrynet.lbrynet_daemon import DaemonControl
if __name__ == '__main__':
DaemonControl.start()
Binary file not shown.
Binary file not shown.
-102
View File
@@ -1,102 +0,0 @@
{
"appId": "io.lbry.LBRY",
"productName": "LBRY",
"directories": {
"output": "dist/electron"
},
"files": [
{
"from": "dist/electron/webpack",
"to": "./"
},
{
"from": "dist/electron/static",
"to": "./"
}
],
"extraResources": [
{
"from": "./static/daemon/",
"to": "static/daemon/",
"filter": ["**/*"]
},
{
"from": "./static/lbry-first/",
"to": "static/lbry-first/",
"filter": ["**/*"]
},
{
"from": "./static/img",
"to": "static/img",
"filter": ["**/*"]
},
{
"from": "./static/font",
"to": "static/font",
"filter": ["**/*"]
}
],
"publish": [
{
"provider": "github"
}
],
"mac": {
"category": "public.app-category.entertainment"
},
"dmg": {
"iconSize": 128,
"contents": [
{
"x": 115,
"y": 164
},
{
"x": 387,
"y": 164,
"type": "link",
"path": "/Applications"
}
],
"window": {
"x": 200,
"y": 200,
"width": 500,
"height": 300
},
"background": "./build/background.png"
},
"protocols": [
{
"name": "LBRY URI",
"schemes": ["lbry"],
"role": "Viewer"
}
],
"linux": {
"target": ["AppImage", "deb"],
"executableName": "lbry",
"category": "AudioVideo;Video",
"desktop": {
"MimeType": "x-scheme-handler/lbry"
}
},
"deb": {
"depends": ["gconf2", "gconf-service", "libnotify4", "libappindicator1", "libxtst6", "libnss3"]
},
"nsis": {
"perMachine": true,
"createDesktopShortcut": "always",
"differentialPackage": true
},
"win": {
"target": [
{
"target": "nsis",
"arch": ["x64"]
}
]
},
"artifactName": "${productName}_${version}.${ext}",
"afterSign": "./build/afterSignHook.js"
}
-69
View File
@@ -1,69 +0,0 @@
import path from 'path';
import fs from 'fs';
import { spawn, execSync } from 'child_process';
import { Lbry } from 'lbry-redux';
export default class Daemon {
static lbrynetPath =
process.env.LBRY_DAEMON ||
(process.env.NODE_ENV === 'production'
? path.join(process.resourcesPath, 'static/daemon', 'lbrynet')
: path.join(__static, 'daemon/lbrynet'));
static headersPath =
process.env.LBRY_DAEMON ||
(process.env.NODE_ENV === 'production'
? path.join(process.resourcesPath, 'static/daemon', 'headers')
: path.join(__static, 'daemon/headers'));
subprocess;
handlers;
constructor() {
this.handlers = [];
}
launch() {
let flags = ['start'];
if (fs.existsSync(Daemon.headersPath)) {
flags.push(`--initial-headers=${Daemon.headersPath}`);
}
this.subprocess = spawn(Daemon.lbrynetPath, flags);
this.subprocess.stdout.on('data', data => console.log(`Daemon: ${data}`));
this.subprocess.stderr.on('data', data => console.error(`Daemon: ${data}`));
this.subprocess.on('exit', () => this.fire('exit'));
this.subprocess.on('error', error => console.error(`Daemon error: ${error}`));
}
quit() {
Lbry.stop()
.then()
.catch(() => {
if (process.platform === 'win32') {
try {
execSync(`taskkill /pid ${this.subprocess.pid} /t /f`);
} catch (error) {
console.error(error.message);
}
} else {
this.subprocess.kill();
}
});
}
// Follows the publish/subscribe pattern
// Subscribe method
on(event, handler, context = handler) {
this.handlers.push({ event, handler: handler.bind(context) });
}
// Publish method
fire(event, args) {
this.handlers.forEach(topic => {
if (topic.event === event) topic.handler(args);
});
}
}
-59
View File
@@ -1,59 +0,0 @@
import path from 'path';
import { spawn, execSync } from 'child_process';
export default class LbryFirstInstance {
static lbryFirstPath =
process.env.LBRY_FIRST_DAEMON ||
(process.env.NODE_ENV === 'production'
? path.join(process.resourcesPath, 'static/lbry-first', 'lbry-first')
: path.join(__static, 'lbry-first/lbry-first'));
static headersPath =
process.env.LBRY_FIRST_DAEMON ||
(process.env.NODE_ENV === 'production'
? path.join(process.resourcesPath, 'static/lbry-first', 'headers')
: path.join(__static, 'lbry-first/headers'));
subprocess;
handlers;
constructor() {
this.handlers = [];
}
launch() {
let flags = ['serve'];
console.log(`LbryFirst: ${LbryFirstInstance.lbryFirstPath}`);
this.subprocess = spawn(LbryFirstInstance.lbryFirstPath, flags);
this.subprocess.stdout.on('data', data => console.log(`LbryFirst: ${data}`));
this.subprocess.stderr.on('data', data => console.error(`LbryFirst: ${data}`));
this.subprocess.on('exit', () => this.fire('exit'));
this.subprocess.on('error', error => console.error(`LbryFirst error: ${error}`));
}
quit() {
if (process.platform === 'win32') {
try {
execSync(`taskkill /pid ${this.subprocess.pid} /t /f`);
} catch (error) {
console.error(error.message);
}
} else {
this.subprocess.kill();
}
}
// Follows the publish/subscribe pattern
// Subscribe method
on(event, handler, context = handler) {
this.handlers.push({ event, handler: handler.bind(context) });
}
// Publish method
fire(event, args) {
this.handlers.forEach(topic => {
if (topic.event === event) topic.handler(args);
});
}
}
-67
View File
@@ -1,67 +0,0 @@
import { app, Menu, Tray } from 'electron';
import path from 'path';
let tray;
export default window => {
let iconPath;
/*
* A maximized window can't be properly
* restored when minimized to the taskbar
* (it will be restored/showed as unmaximized).
*
* window.isMaximized() will also return
* false when minimizing a maximized window.
*
* The safest way to keep track of the
* maximized state using maximize and
* unmaximize events.
*/
let isWindowMaximized = false;
window.on('maximize', () => {
isWindowMaximized = true;
});
window.on('unmaximize', () => {
isWindowMaximized = false;
});
switch (process.platform) {
case 'darwin': {
iconPath = 'static/img/tray/mac/trayTemplate.png';
break;
}
case 'win32': {
iconPath = 'static/img/tray/windows/tray.ico';
break;
}
default: {
iconPath = 'static/img/tray/default/tray.png';
}
}
tray = new Tray(process.env.NODE_ENV === 'development' ? iconPath : path.join(process.resourcesPath, iconPath));
const restoreFromTray = () => {
if (isWindowMaximized) {
window.maximize();
}
window.show();
};
tray.on('double-click', restoreFromTray);
tray.setToolTip('LBRY App');
const template = [
{
label: `Open ${app.name}`,
click: restoreFromTray,
},
{ role: 'quit' },
];
const contextMenu = Menu.buildFromTemplate(template);
tray.setContextMenu(contextMenu);
return tray;
};
-224
View File
@@ -1,224 +0,0 @@
import { WEBPACK_ELECTRON_PORT } from 'config';
import { app, BrowserWindow, dialog, shell, screen, nativeImage } from 'electron';
import isDev from 'electron-is-dev';
import windowStateKeeper from 'electron-window-state';
import SUPPORTED_LANGUAGES from 'constants/supported_languages';
import { SUPPORTED_SUB_LANGUAGE_CODES, SUB_LANG_CODE_LEN } from 'constants/supported_sub_languages';
import SUPPORTED_BROWSER_LANGUAGES from 'constants/supported_browser_languages';
import { TO_TRAY_WHEN_CLOSED } from 'constants/settings';
import setupBarMenu from './menu/setupBarMenu';
import * as PAGES from 'constants/pages';
function GetAppLangCode() {
// https://www.electronjs.org/docs/api/locales
// 1. Gets the user locale.
// 2. Converts unsupported sub-languages to its primary (e.g. "en-GB" -> "en").
// Note that the primary itself may or may not be a supported language
// (up to clients to verify against SUPPORTED_LANGUAGES).
const langCode = app.getLocale();
if (langCode.length === SUB_LANG_CODE_LEN && !SUPPORTED_SUB_LANGUAGE_CODES.includes(langCode)) {
return SUPPORTED_BROWSER_LANGUAGES[langCode.slice(0, 2)];
}
return SUPPORTED_BROWSER_LANGUAGES[langCode];
}
export default appState => {
// Get primary display dimensions from Electron.
const { width, height } = screen.getPrimaryDisplay().workAreaSize;
// Load the previous state with fallback to defaults.
const windowState = windowStateKeeper({
defaultWidth: width,
defaultHeight: height,
});
const startMinimized = (process.argv || []).includes('--hidden');
const windowConfiguration = {
backgroundColor: '#270f34', // Located in src/scss/init/_vars.scss `--color-background--splash`
minWidth: 950,
minHeight: 600,
autoHideMenuBar: true,
titleBarStyle: 'hiddenInset',
show: false,
// Create the window using the state information.
x: windowState.x,
y: windowState.y,
// If state is undefined, create window as maximized.
width: windowState.width === undefined ? width : windowState.width,
height: windowState.height === undefined ? height : windowState.height,
icon: nativeImage.createFromPath('static/img/tray/default/tray.png'),
webPreferences: {
// Disable renderer process's webSecurity on development to enable CORS.
webSecurity: !isDev,
plugins: true,
nodeIntegration: true,
},
};
const lbryProto = 'lbry://';
const lbryProtoQ = 'lbry://?';
const rendererURL = isDev ? `http://localhost:${WEBPACK_ELECTRON_PORT}` : `file://${__dirname}/index.html`;
let window = new BrowserWindow(windowConfiguration);
// Let us register listeners on the window, so we can update the state
// automatically (the listeners will be removed when the window is closed)
// and restore the maximized or full screen state.
windowState.manage(window);
let deepLinkingURI;
if ((process.platform === 'win32' || process.platform === 'linux') && String(process.argv[1]).startsWith('lbry')) {
[, deepLinkingURI] = process.argv || '';
// Keep only command line / deep linked arguments
// Windows normalizes URIs when they're passed in from other apps. On Windows, this tries to
// restore the original URI that was typed.
// - If the URI has no path, Windows adds a trailing slash. LBRY URIs can't have a slash with no
// path, so we just strip it off.
// - In a URI with a claim ID, like lbry://channel#claimid, Windows interprets the hash mark as
// an anchor and converts it to lbry://channel/#claimid. We remove the slash here as well.
// - ? also interpreted as an anchor, remove slash also.
if (process.platform === 'win32') {
deepLinkingURI = deepLinkingURI
.replace(/\/$/, '')
.replace('/#', '#')
.replace('/?', '?');
}
} else {
deepLinkingURI = appState.macDeepLinkingURI || '';
}
// is it a lbry://? pointing to an app page
if (deepLinkingURI.includes(lbryProtoQ)) {
let path = deepLinkingURI.substr(lbryProtoQ.length);
let page = path.indexOf('?') >= 0 ? path.substring(0, path.indexOf('?')) : path;
if (Object.values(PAGES).includes(page)) {
deepLinkingURI = deepLinkingURI.replace(lbryProtoQ, '#/$/');
} else {
deepLinkingURI = '';
}
// else is it a claim
} else if (deepLinkingURI.includes(lbryProto)) {
deepLinkingURI = deepLinkingURI.replace(lbryProto, '#');
} else {
deepLinkingURI = '';
}
setupBarMenu();
window.loadURL(rendererURL + deepLinkingURI);
window.on('close', event => {
if (appState.isQuitting) {
return;
}
if (!appState.autoUpdateAccepted) {
event.preventDefault();
if (window.isFullScreen()) {
window.once('leave-full-screen', () => {
window.hide();
});
window.setFullScreen(false);
} else {
window.hide();
}
}
const getToTrayWhenClosedSetting = window.webContents.executeJavaScript(`localStorage.getItem('${TO_TRAY_WHEN_CLOSED}')`);
getToTrayWhenClosedSetting.then(toTrayWhenClosedSetting => {
const closeApp = toTrayWhenClosedSetting === 'false';
if (closeApp) {
app.quit();
}
});
});
window.on('focus', () => {
window.webContents.send('window-is-focused', null);
});
window.on('unresponsive', () => {
dialog.showMessageBox(
window,
{
type: 'warning',
buttons: ['Wait', 'Quit'],
title: 'LBRY Unresponsive',
defaultId: 1,
message: 'LBRY is not responding. Would you like to quit?',
cancelId: 0,
},
buttonIndex => {
if (buttonIndex === 1) app.quit();
}
);
});
window.once('ready-to-show', () => {
startMinimized ? window.hide() : window.show();
});
// A backup incase https://github.com/electron/electron/issues/7779 happens
window.webContents.once('dom-ready', () => {
startMinimized && window.hide();
});
window.webContents.on('did-finish-load', () => {
window.webContents.session.setUserAgent(`LBRY/${app.getVersion()}`);
// restore the user's previous language - we have to do this from here because only electron process can access app.getLocale()
window.webContents.executeJavaScript("localStorage.getItem('language')").then(storedLanguage => {
const language =
storedLanguage && storedLanguage !== 'undefined' && storedLanguage !== 'null'
? storedLanguage
: GetAppLangCode();
if (language !== 'en' && SUPPORTED_LANGUAGES[language]) {
window.webContents.send('language-set', language);
}
});
});
window.webContents.on('crashed', () => {
window = null;
});
window.webContents.on('new-window', (event, url) => {
event.preventDefault();
shell.openExternal(url);
});
window.webContents.on('update-target-url', (event, url) => {
// Change internal links to the lbry protocol. External (https) links should remain unchanged.
let hoverUrlBase = `http://localhost:${WEBPACK_ELECTRON_PORT}/`;
if (!isDev) {
// Return format of 'update-target-url':
// Linux: file:///@claim
// Windows: file:///C:/@claim
// Use '__dirname' in case installation is not in C:
const path = require('path');
const exeRoot = path.parse(__dirname).root;
if (process.platform === 'win32') {
// Add extra "/" prefix. Convert "C:\" to "C:/"
hoverUrlBase = `file:///` + exeRoot.replace(/\\/g, '/');
} else {
hoverUrlBase = `file://` + exeRoot;
}
}
let dispUrl = url.replace(hoverUrlBase, lbryProto);
// Non-claims don't need the lbry protocol:
if (dispUrl === lbryProto) {
dispUrl = 'Home';
} else if (dispUrl.startsWith(lbryProto + '$/')) {
dispUrl = dispUrl.replace(lbryProto, '/');
}
window.webContents.send('update-target-url', dispUrl);
});
return window;
};
-70
View File
@@ -1,70 +0,0 @@
/* eslint-disable no-console */
const { WEBPACK_ELECTRON_PORT } = require('../config');
const chalk = require('chalk');
const webpack = require('webpack');
const merge = require('webpack-merge');
const middleware = require('webpack-dev-middleware');
const express = require('express');
const app = express();
console.log(
chalk.magenta(`Compiling ${chalk.underline('main')} and ${chalk.underline('render')}, this will take a while.`)
);
let [mainConfig, renderConfig] = require('../webpack.electron.config.js');
renderConfig = merge(renderConfig, {
entry: { ui: ['webpack-hot-middleware/client'] },
plugins: [new webpack.HotModuleReplacementPlugin()],
resolve: {
alias: { 'react-dom': '@hot-loader/react-dom' },
symlinks: false,
},
});
const mainCompiler = webpack(mainConfig);
const mainInstance = middleware(mainCompiler, {
logLevel: 'warn',
writeToDisk: filename => {
// console.log(`Writing '${filename}'.`);
return true;
},
});
const renderCompiler = webpack(renderConfig);
const renderInstance = middleware(renderCompiler, {
logLevel: 'warn',
publicPath: '/',
});
app.use(require('webpack-hot-middleware')(renderCompiler));
app.use(renderInstance);
app.use(express.static('dist/electron/static'));
app.listen(WEBPACK_ELECTRON_PORT, () => {
console.log(chalk.yellow.bold(`Renderer listening on port ${WEBPACK_ELECTRON_PORT} (still compiling)`));
});
mainInstance.waitUntilValid(() => console.log(chalk.green(`${chalk.underline('main')} compilation complete.`)));
renderInstance.waitUntilValid(() => console.log(chalk.green(`${chalk.underline('render')} compilation complete.`)));
mainInstance.waitUntilValid(() => {
console.log(chalk.yellow('Spawning electron...'));
const electron = require('electron');
const proc = require('child_process');
const child = proc.spawn(electron, ['./dist/electron/webpack/main.js']);
child.stdout.on('data', data => {
console.log(data.toString());
});
process.on('SIGINT', function() {
console.log('Killing threads...');
child.kill('SIGINT');
process.exit();
});
});
/* eslint-enable no-console */
-388
View File
@@ -1,388 +0,0 @@
/* eslint no-console:0 */
/* eslint space-before-function-paren:0 */
// Module imports
import '@babel/polyfill';
import SemVer from 'semver';
import https from 'https';
import { app, dialog, ipcMain, session, shell } from 'electron';
import { autoUpdater } from 'electron-updater';
import { Lbry } from 'lbry-redux';
import LbryFirstInstance from './LbryFirstInstance';
import Daemon from './Daemon';
import isDev from 'electron-is-dev';
import createTray from './createTray';
import createWindow from './createWindow';
import pjson from '../package.json';
import startSandbox from './startSandbox';
import installDevtools from './installDevtools';
import fs from 'fs';
import path from 'path';
const filePath = path.join(process.resourcesPath, 'static', 'upgradeDisabled');
let upgradeDisabled;
try {
fs.accessSync(filePath, fs.constants.R_OK);
upgradeDisabled = true;
} catch (err) {
upgradeDisabled = false;
}
autoUpdater.autoDownload = !upgradeDisabled;
// This is set to true if an auto update has been downloaded through the Electron
// auto-update system and is ready to install. If the user declined an update earlier,
// it will still install on shutdown.
let autoUpdateDownloaded = false;
// This is used to keep track of whether we are showing the special dialog
// that we show on Windows after you decline an upgrade and close the app later.
let showingAutoUpdateCloseAlert = false;
// Keep a global reference, if you don't, they will be closed automatically when the JavaScript
// object is garbage collected.
let rendererWindow;
let tray; // eslint-disable-line
let daemon;
let lbryFirst;
const appState = {};
if (process.platform !== 'linux') {
app.setAsDefaultProtocolClient('lbry');
}
app.name = 'LBRY';
app.setAppUserModelId('io.lbry.LBRY');
app.commandLine.appendSwitch('force-color-profile', 'srgb');
app.commandLine.appendSwitch('disable-features', 'OutOfBlinkCors');
if (isDev) {
// Disable security warnings in dev mode:
// https://github.com/electron/electron/blob/master/docs/tutorial/security.md#electron-security-warnings
process.env.ELECTRON_DISABLE_SECURITY_WARNINGS = true;
}
const startDaemon = async () => {
let isDaemonRunning = false;
await Lbry.status()
.then(() => {
isDaemonRunning = true;
console.log('SDK already running');
})
.catch(() => {
console.log('Starting SDK');
});
if (!isDaemonRunning) {
daemon = new Daemon();
daemon.on('exit', () => {
if (!isDev) {
daemon = null;
if (!appState.isQuitting) {
dialog.showErrorBox(
'Daemon has Exited',
'The daemon may have encountered an unexpected error, or another daemon instance is already running. \n\n' +
'For more information please visit: \n' +
'https://lbry.com/faq/startup-troubleshooting'
);
}
app.quit();
}
});
await daemon.launch();
}
};
let isLbryFirstRunning = false;
const startLbryFirst = async () => {
if (isLbryFirstRunning) {
console.log('LbryFirst already running');
handleLbryFirstLaunched();
return;
}
console.log('LbryFirst: Starting...');
try {
lbryFirst = new LbryFirstInstance();
lbryFirst.on('exit', e => {
if (!isDev) {
lbryFirst = null;
isLbryFirstRunning = false;
if (!appState.isQuitting) {
dialog.showErrorBox(
'LbryFirst has Exited',
'The lbryFirst may have encountered an unexpected error, or another lbryFirst instance is already running. \n\n',
e
);
}
app.quit();
}
});
} catch (e) {
console.log('LbryFirst: Failed to create new instance\n\n', e);
}
console.log('LbryFirst: Running...');
try {
await lbryFirst.launch();
handleLbryFirstLaunched();
} catch (e) {
isLbryFirstRunning = false;
console.log('LbryFirst: Failed to start\n', e);
}
};
const handleLbryFirstLaunched = () => {
isLbryFirstRunning = true;
rendererWindow.webContents.send('lbry-first-launched');
};
// When we are starting the app, ensure there are no other apps already running
const gotSingleInstanceLock = app.requestSingleInstanceLock();
if (!gotSingleInstanceLock) {
// Another instance already has a lock, abort
app.quit();
} else {
app.on('second-instance', (event, argv) => {
// Send the url to the app to navigate first, then focus
if (rendererWindow) {
if ((process.platform === 'win32' || process.platform === 'linux') && String(argv[1]).startsWith('lbry')) {
let URI = argv[1];
// Keep only command line / deep linked arguments
// Windows normalizes URIs when they're passed in from other apps. On Windows, this tries to
// restore the original URI that was typed.
// - If the URI has no path, Windows adds a trailing slash. LBRY URIs can't have a slash with no
// path, so we just strip it off.
// - In a URI with a claim ID, like lbry://channel#claimid, Windows interprets the hash mark as
// an anchor and converts it to lbry://channel/#claimid. We remove the slash here as well.
// - ? also interpreted as an anchor, remove slash also.
if (process.platform === 'win32') {
URI = URI.replace(/\/$/, '')
.replace('/#', '#')
.replace('/?', '?');
}
rendererWindow.webContents.send('open-uri-requested', URI);
}
rendererWindow.show();
}
});
app.on('ready', async () => {
await startDaemon();
startSandbox();
if (isDev) {
await installDevtools();
}
rendererWindow = createWindow(appState);
tray = createTray(rendererWindow);
if (!isDev) {
rendererWindow.webContents.on('devtools-opened', () => {
// Send a message to the renderer process so we can log a security warning
rendererWindow.webContents.send('devtools-is-opened');
});
}
// If an "Origin" header is passed, the SDK will check that it is set to allow that origin in the daemon_settings.yml
// By default, electron sends http://localhost:{port} as the origin for POST requests
// https://github.com/electron/electron/issues/7931#issuecomment-361759277
session.defaultSession.webRequest.onBeforeSendHeaders((details, callback) => {
if (details.method === 'POST' && details.requestHeaders['Content-Type'] === 'application/json-rpc') {
delete details.requestHeaders['Origin'];
}
callback({ cancel: false, requestHeaders: details.requestHeaders });
});
});
}
app.on('activate', () => {
if (rendererWindow) {
rendererWindow.show();
}
});
app.on('will-quit', event => {
if (
process.platform === 'win32' &&
autoUpdateDownloaded &&
!appState.autoUpdateAccepted &&
!showingAutoUpdateCloseAlert
) {
// We're on Win and have an update downloaded, but the user declined it (or closed
// the app without accepting it). Now the user is closing the app, so the new update
// will install. On Mac this is silent, but on Windows they get a confusing permission
// escalation dialog, so we show Windows users a warning dialog first.
showingAutoUpdateCloseAlert = true;
dialog.showMessageBox(
{
type: 'info',
title: 'LBRY Will Upgrade',
message: 'LBRY has a pending upgrade. Please select "Yes" to install it on the prompt shown after this one.',
},
() => {
app.quit();
}
);
event.preventDefault();
return;
}
appState.isQuitting = true;
if (daemon) {
daemon.quit();
event.preventDefault();
}
if (lbryFirst) {
lbryFirst.quit();
event.preventDefault();
}
if (rendererWindow) {
tray.destroy();
rendererWindow = null;
}
});
app.on('will-finish-launching', () => {
// Protocol handler for macOS
app.on('open-url', (event, URL) => {
event.preventDefault();
if (rendererWindow) {
rendererWindow.webContents.send('open-uri-requested', URL);
rendererWindow.show();
} else {
appState.macDeepLinkingURI = URL;
}
});
});
app.on('before-quit', () => {
appState.isQuitting = true;
});
ipcMain.on('upgrade', (event, installerPath) => {
app.on('quit', () => {
console.log('Launching upgrade installer at', installerPath);
// This gets triggered called after *all* other quit-related events, so
// we'll only get here if we're fully prepared and quitting for real.
shell.openPath(installerPath);
});
// what to do if no shutdown in a long time?
console.log('Update downloaded to', installerPath);
console.log('The app will close and you will be prompted to install the latest version of LBRY.');
console.log('After the install is complete, please reopen the app.');
app.quit();
});
autoUpdater.on('update-downloaded', () => {
autoUpdateDownloaded = true;
});
ipcMain.on('autoUpdateAccepted', () => {
appState.autoUpdateAccepted = true;
autoUpdater.quitAndInstall();
});
ipcMain.on('version-info-requested', () => {
function formatRc(ver) {
// Adds dash if needed to make RC suffix SemVer friendly
return ver.replace(/([^-])rc/, '$1-rc');
}
const localVersion = pjson.version;
let result = '';
const onSuccess = res => {
res.on('data', data => {
result += data;
});
res.on('end', () => {
let json;
try {
json = JSON.parse(result);
} catch (e) {
return;
}
const tagName = json.tag_name;
if (tagName) {
const [, remoteVersion] = tagName.match(/^v([\d.]+(?:-?rc\d+)?)$/);
if (!remoteVersion) {
if (rendererWindow) {
rendererWindow.webContents.send('version-info-received', localVersion);
}
} else {
const upgradeAvailable = SemVer.gt(formatRc(remoteVersion), formatRc(localVersion));
if (rendererWindow) {
rendererWindow.webContents.send('version-info-received', {
remoteVersion,
localVersion,
upgradeAvailable,
});
}
}
} else if (rendererWindow) {
rendererWindow.webContents.send('version-info-received', { localVersion });
}
});
};
const requestLatestRelease = (alreadyRedirected = false) => {
const req = https.get(
{
hostname: 'api.github.com',
path: '/repos/lbryio/lbry-desktop/releases/latest',
headers: { 'user-agent': `LBRY/${localVersion}` },
},
res => {
if (res.statusCode === 301 || res.statusCode === 302) {
requestLatestRelease(res.headers.location, true);
} else {
onSuccess(res);
}
}
);
if (alreadyRedirected) return;
req.on('error', err => {
console.log('Failed to get current version from GitHub. Error:', err);
if (rendererWindow) {
rendererWindow.webContents.send('version-info-received', null);
}
});
};
if (upgradeDisabled && rendererWindow) {
rendererWindow.webContents.send('version-info-received', { localVersion });
return;
}
requestLatestRelease();
});
ipcMain.on('launch-lbry-first', async () => {
try {
await startLbryFirst();
} catch (e) {
console.log('Failed to start LbryFirst');
console.log(e);
}
});
process.on('uncaughtException', error => {
console.log(error);
dialog.showErrorBox('Error Encountered', `Caught error: ${error}`);
appState.isQuitting = true;
if (daemon) daemon.quit();
app.exit(1);
});
-11
View File
@@ -1,11 +0,0 @@
export default async function installDevtools() {
const { default: installExtension, REACT_DEVELOPER_TOOLS, REDUX_DEVTOOLS } = require('electron-devtools-installer');
await installExtension(REACT_DEVELOPER_TOOLS)
.then(name => console.log(`Added Extension: ${name}`))
.catch(err => console.log('An error occurred: ', err));
await installExtension(REDUX_DEVTOOLS)
.then(name => console.log(`Added Extension: ${name}`))
.catch(err => console.log('An error occurred: ', err));
}
-127
View File
@@ -1,127 +0,0 @@
import { app, Menu, shell } from 'electron';
import { ZOOM } from 'util/zoomWindow';
export default () => {
const template = [
{
label: 'File',
submenu: [{ role: 'quit', accelerator: 'CmdOrCtrl+Q' }],
},
{
label: 'Edit',
submenu: [
{ role: 'undo' },
{ role: 'redo' },
{ type: 'separator' },
{ role: 'cut' },
{ role: 'copy' },
{ role: 'paste' },
{ role: 'selectAll' },
],
},
{
label: 'View',
submenu: [
{ role: 'reload' },
{
label: 'Zoom',
submenu: [
{
label: 'Zoom In',
accelerator: 'CmdOrCtrl+=',
click: (menuItem, browserWindow) => {
if (browserWindow) {
browserWindow.webContents.send('zoom-window', ZOOM.INCREMENT);
}
},
},
{
label: 'Zoom Out',
accelerator: 'CmdOrCtrl+-',
click: (menuItem, browserWindow) => {
if (browserWindow) {
browserWindow.webContents.send('zoom-window', ZOOM.DECREMENT);
}
},
},
{
label: 'Reset Zoom',
accelerator: 'CmdOrCtrl+0',
click: (menuItem, browserWindow) => {
if (browserWindow) {
browserWindow.webContents.send('zoom-window', ZOOM.RESET);
}
},
},
],
},
{
label: 'Developer',
submenu: [{ role: 'forcereload' }, { role: 'toggledevtools' }],
},
{ type: 'separator' },
{ role: 'togglefullscreen' },
],
},
{
role: 'window',
submenu: [{ role: 'minimize' }, { role: 'close' }],
},
{
role: 'help',
submenu: [
{
label: 'Learn More',
click: (menuItem, browserWindow) => {
if (browserWindow) {
browserWindow.webContents.send('open-menu', '/help');
} else {
shell.openExternal('https://lbry.com/faq');
}
},
},
{
label: 'Frequently Asked Questions',
click: () => {
shell.openExternal('https://lbry.com/faq');
},
},
{ type: 'separator' },
{
label: 'Report Issue',
click: () => {
shell.openExternal('https://github.com/lbryio/lbry-desktop/issues/new');
},
},
{ type: 'separator' },
{
label: 'Developer API Guide',
click: () => {
shell.openExternal('https://lbry.tech/playground');
},
},
],
},
];
const darwinTemplateAddition = {
label: app.name,
submenu: [
{ role: 'about' },
{ type: 'separator' },
{ role: 'services', submenu: [] },
{ type: 'separator' },
{ role: 'hide' },
{ role: 'hideothers' },
{ type: 'separator' },
{ role: 'quit' },
],
};
if (process.platform === 'darwin') {
template.unshift(darwinTemplateAddition);
}
const menu = Menu.buildFromTemplate(template);
Menu.setApplicationMenu(menu);
};
-4
View File
@@ -1,4 +0,0 @@
require('@babel/register');
require('@babel/polyfill');
require('./startSandbox.js')();
-38
View File
@@ -1,38 +0,0 @@
import express from 'express';
import unpackByOutpoint from './unpackByOutpoint';
// Polyfills and `lbry-redux`
global.fetch = require('node-fetch');
global.window = global;
if (typeof global.fetch === 'object') {
global.fetch = global.fetch.default;
}
const { Lbry } = require('lbry-redux');
delete global.window;
export default async function startSandbox() {
const port = 5278;
const sandbox = express();
sandbox.get('/set/:outpoint', async (req, res) => {
const { outpoint } = req.params;
const resolvedPath = await unpackByOutpoint(Lbry, outpoint);
sandbox.use(`/sandbox/${outpoint}/`, express.static(resolvedPath));
res.send(`/sandbox/${outpoint}/`);
});
sandbox
.listen(port, 'localhost', () => console.log(`Sandbox listening on port ${port}.`))
.on('error', err => {
if (err.code === 'EADDRINUSE') {
console.log(
`Server already listening at localhost:${port}. This is probably another LBRY app running. If not, games in the app will not work.`
);
}
});
}
-23
View File
@@ -1,23 +0,0 @@
import fs from 'fs';
import path from 'path';
import { unpackDirectory } from 'lbry-format';
async function unpackByOutpoint(lbry, outpoint) {
const { items: claimFiles } = await lbry.file_list({ outpoint, full_status: true, page: 1, page_size: 1 });
if (claimFiles && claimFiles.length) {
const claimFileInfo = claimFiles[0];
const packFilePath = path.resolve(claimFileInfo.download_path);
const unpackPath = path.normalize(path.join(claimFileInfo.download_directory, claimFileInfo.claim_name));
if (!fs.existsSync(unpackPath)) {
await unpackDirectory(unpackPath, {
fileName: packFilePath,
});
}
return unpackPath;
}
}
export default unpackByOutpoint;
-2
View File
@@ -1,2 +0,0 @@
// @flow
declare function __(a: string, b?: {}): string;
-247
View File
@@ -1,247 +0,0 @@
declare type Comment = {
comment: string, // comment body
comment_id: string, // sha256 digest
claim_id: string, // id linking to the claim this comment
timestamp: number, // integer representing unix-time
is_hidden: boolean, // claim owner may enable/disable this
channel_id: string, // claimId of channel signing this comment
channel_name?: string, // name of channel claim
channel_url?: string, // full lbry url to signing channel
signature?: string, // signature of comment by originating channel
signing_ts?: string, // timestamp used when signing this comment
is_channel_signature_valid?: boolean, // whether or not the signature could be validated
parent_id?: number, // comment_id of comment this is in reply to
is_pinned: boolean,
support_amount: number,
replies: number, // number of direct replies (i.e. excluding nested replies).
is_fiat?: boolean,
};
declare type PerChannelSettings = {
words?: Array<string>,
comments_enabled?: boolean,
min_tip_amount_comment?: number,
min_tip_amount_super_chat?: number,
slow_mode_min_gap?: number,
};
// todo: relate individual comments to their commentId
declare type CommentsState = {
commentsByUri: { [string]: string },
superChatsByUri: { [string]: { totalAmount: number, comments: Array<Comment> } },
byId: { [string]: Array<string> }, // ClaimID -> list of fetched comment IDs.
totalCommentsById: {}, // ClaimId -> ultimate total (including replies) in commentron.
repliesByParentId: { [string]: Array<string> }, // ParentCommentID -> list of fetched replies.
totalRepliesByParentId: {}, // ParentCommentID -> total replies in commentron.
topLevelCommentsById: { [string]: Array<string> }, // ClaimID -> list of fetched top level comments.
topLevelTotalPagesById: { [string]: number }, // ClaimID -> total number of top-level pages in commentron. Based on COMMENT_PAGE_SIZE_TOP_LEVEL.
topLevelTotalCommentsById: { [string]: number }, // ClaimID -> total top level comments in commentron.
commentById: { [string]: Comment },
linkedCommentAncestors: { [string]: Array<string> }, // {"linkedCommentId": ["parentId", "grandParentId", ...]}
isLoading: boolean,
isLoadingByParentId: { [string]: boolean },
myComments: ?Set<string>,
isFetchingReacts: boolean,
myReactsByCommentId: ?{ [string]: Array<string> }, // {"CommentId:MyChannelId": ["like", "dislike", ...]}
othersReactsByCommentId: ?{ [string]: { [string]: number } }, // {"CommentId:MyChannelId": {"like": 2, "dislike": 2, ...}}
pendingCommentReactions: Array<string>,
moderationBlockList: ?Array<string>, // @KP rename to "personalBlockList"?
adminBlockList: ?Array<string>,
moderatorBlockList: ?Array<string>,
moderatorBlockListDelegatorsMap: {[string]: Array<string>}, // {"blockedUri": ["delegatorUri1", ""delegatorUri2", ...]}
fetchingModerationBlockList: boolean,
moderationDelegatesById: { [string]: Array<{ channelId: string, channelName: string }> },
fetchingModerationDelegates: boolean,
moderationDelegatorsById: { [string]: { global: boolean, delegators: { name: string, claimId: string } }},
fetchingModerationDelegators: boolean,
blockingByUri: {},
unBlockingByUri: {},
togglingForDelegatorMap: {[string]: Array<string>}, // {"blockedUri": ["delegatorUri1", ""delegatorUri2", ...]}
commentsDisabledChannelIds: Array<string>,
settingsByChannelId: { [string]: PerChannelSettings }, // ChannelID -> settings
fetchingSettings: boolean,
fetchingBlockedWords: boolean,
};
declare type CommentReactParams = {
comment_ids: string,
channel_name: string,
channel_id: string,
react_type: string,
clear_types?: string,
remove?: boolean,
};
declare type ReactionReactParams = {
comment_ids: string,
signature?: string,
signing_ts?: string,
remove?: boolean,
clear_types?: string,
type: string,
channel_id: string,
channel_name: string,
};
declare type ReactionReactResponse = {
Reactions: { [string]: { [string]: number} },
};
declare type ReactionListParams = {
comment_ids: string, // CSV of IDs
channel_id?: string,
channel_name?: string,
signature?: string,
signing_ts?: string,
types?: string,
};
declare type ReactionListResponse = {
my_reactions: Array<MyReactions>,
others_reactions: Array<OthersReactions>,
};
declare type CommentListParams = {
page: number, // pagination: which page of results
page_size: number, // pagination: nr of comments to show in a page (max 200)
claim_id: string, // claim id of claim being commented on
channel_name?: string, // signing channel name of claim (enables 'commentsEnabled' check)
channel_id?: string, // signing channel claim id of claim (enables 'commentsEnabled' check)
author_claim_id?: string, // filters comments to just this author
parent_id?: string, // filters comments to those under this thread
top_level?: boolean, // filters to only top level comments
hidden?: boolean, // if true, will show hidden comments as well
sort_by?: number, // NEWEST=0, OLDEST=1, CONTROVERSY=2, POPULARITY=3,
};
declare type CommentListResponse = {
items: Array<Comment>,
page: number,
page_size: number,
total_items: number, // Grand total for the claim being commented on.
total_filtered_items: number, // Total for filtered queries (e.g. top_level=true, parent_id=xxx, etc.).
total_pages: number,
has_hidden_comments: boolean,
};
declare type CommentByIdParams = {
comment_id: string,
with_ancestors: boolean,
}
declare type CommentByIdResponse = {
item: Comment,
items: Comment,
ancestors: Array<Comment>,
}
declare type CommentPinParams = {
comment_id: string,
channel_id: string,
channel_name: string,
remove?: boolean,
signature: string,
signing_ts: string,
}
declare type CommentPinResponse = {
items: Comment, // "items" is an inherited typo to match SDK. Will be "item" in a new version.
}
declare type CommentEditParams = {
comment: string,
comment_id: string,
signature: string,
signing_ts: string,
}
declare type CommentEditResponse = Comment
declare type CommentAbandonParams = {
comment_id: string,
creator_channel_id?: string,
creator_channel_name?: string,
channel_id?: string,
hexdata?: string,
};
declare type CommentCreateParams = {
comment: string,
claim_id: string,
parent_id?: string,
signature: string,
signing_ts: number,
support_tx_id?: string,
};
declare type SuperListParams = {};
declare type SuperListResponse = {
page: number,
page_size: number,
total_pages: number,
total_items: number,
total_amount: number,
items: Array<Comment>,
has_hidden_comments: boolean,
};
declare type ModerationBlockParams = {};
declare type ModerationAddDelegateParams = {
mod_channel_id: string,
mod_channel_name: string,
creator_channel_id: string,
creator_channel_name: string,
signature: string,
signing_ts: string,
};
declare type ModerationRemoveDelegateParams = {
mod_channel_id: string,
mod_channel_name: string,
creator_channel_id: string,
creator_channel_name: string,
signature: string,
signing_ts: string,
};
declare type ModerationListDelegatesParams = {
creator_channel_id: string,
creator_channel_name: string,
signature: string,
signing_ts: string,
};
declare type ModerationAmIParams = {
channel_name: string,
channel_id: string,
signature: string,
signing_ts: string
};
declare type SettingsParams = {
channel_name: string,
channel_id: string,
signature: string,
signing_ts: string,
};
declare type UpdateSettingsParams = {
channel_name: string,
channel_id: string,
signature: string,
signing_ts: string,
comments_enabled?: boolean,
min_tip_amount_comment?: number,
min_tip_amount_super_chat?: number,
slow_mode_min_gap?: number,
}
declare type BlockWordParams = {
channel_name: string,
channel_id: string,
signature: string,
signing_ts: string,
words: string, // CSV list of containing words to block comment on content
};
-3
View File
@@ -1,3 +0,0 @@
declare module 'bluebird' {
declare module.exports: any;
}
-3
View File
@@ -1,3 +0,0 @@
declare module 'classnames' {
declare module.exports: any;
}
-8
View File
@@ -1,8 +0,0 @@
// @flow
declare type PlayingUri = {
uri: string,
pathname: string,
commentId?: string,
source?: string,
};
-3
View File
@@ -1,3 +0,0 @@
declare module 'electron' {
declare module.exports: any;
}
-3
View File
@@ -1,3 +0,0 @@
declare module 'formik' {
declare module.exports: any;
}
-28
View File
@@ -1,28 +0,0 @@
declare type HomepageObject = {
icon: string,
link: string,
options: any,
route: string,
title: string,
};
declare type HomepageData = {
[string]: HomepageObject,
default: any => any,
};
declare type RowDataItem = {
title: any,
link?: string,
help?: any,
icon?: string,
extra?: any,
pinnedUrls?: Array<string>,
options?: {
channelIds?: Array<string>,
limitClaimsPerChannel?: number,
pageSize?: number,
},
route?: string,
hideForUnauth?: boolean,
};
-27
View File
@@ -1,27 +0,0 @@
// @flow
declare type LivestreamReplayItem = {
data: {
claimId: string,
deleted: boolean,
deletedAt: ?string,
ffprobe: any,
fileDuration: number, // decimal? float? string?
fileType: string,
fileLocation: string,
fileSize: number,
key: string,
published: boolean,
publishedAt: ?string,
service: string,
thumbnails: Array<string>,
uploadedAt: string, // Date?
},
id: string,
}
declare type LivestreamReplayData = Array<LivestreamReplayItem>;
declare type LivestreamState = {
fetchingById: {},
viewersById: {},
}
-18
View File
@@ -1,18 +0,0 @@
// @flow
declare type UrlLocation = {
search: string,
hash: string,
host: string,
hostname: string,
href: string,
key: string,
origin: string,
pathname: string,
port: string,
protocol: string,
reload: () => void,
replace: string => void,
search: string,
state: {},
};
-43
View File
@@ -1,43 +0,0 @@
// @flow
declare type WebNotification = {
active_at: string,
created_at: string,
id: number,
is_app_readable: boolean,
is_device_notified: boolean,
is_emailed: boolean,
is_read: boolean,
is_seen: boolean,
notification_parameters: {
device: {
analytics_label: string,
image_url: string,
is_data_only: boolean,
name: string,
placeholders: ?string,
target: string,
text: string,
title: string,
type: string,
},
dynamic: {
comment_author: string,
reply_author: string,
hash: string,
claim_title: string,
comment?: string,
channel_url: string,
},
email: {},
},
notification_rule: string,
type: string,
updated_at: string,
user_id: number,
group_count?: number,
};
declare type NotificationCategory = {
name: string,
types: ?Array<string>,
};
-298
View File
@@ -1,298 +0,0 @@
// flow-typed signature: cc45dc0508740d7ad110ba88458158ac
// flow-typed version: <<STUB>>/@babel/core_v^7.0.0/flow_v0.94.0
/**
* This is an autogenerated libdef stub for:
*
* '@babel/core'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module '@babel/core' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module '@babel/core/lib/config/caching' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/config-chain' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/config-descriptors' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/files/configuration' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/files/index-browser' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/files/index' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/files/package' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/files/plugins' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/files/types' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/files/utils' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/full' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/helpers/config-api' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/helpers/environment' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/index' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/item' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/partial' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/pattern-to-regex' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/plugin' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/util' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/validation/option-assertions' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/validation/options' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/validation/plugins' {
declare module.exports: any;
}
declare module '@babel/core/lib/config/validation/removed' {
declare module.exports: any;
}
declare module '@babel/core/lib/index' {
declare module.exports: any;
}
declare module '@babel/core/lib/parse' {
declare module.exports: any;
}
declare module '@babel/core/lib/tools/build-external-helpers' {
declare module.exports: any;
}
declare module '@babel/core/lib/transform-ast' {
declare module.exports: any;
}
declare module '@babel/core/lib/transform-file-browser' {
declare module.exports: any;
}
declare module '@babel/core/lib/transform-file' {
declare module.exports: any;
}
declare module '@babel/core/lib/transform' {
declare module.exports: any;
}
declare module '@babel/core/lib/transformation/block-hoist-plugin' {
declare module.exports: any;
}
declare module '@babel/core/lib/transformation/file/file' {
declare module.exports: any;
}
declare module '@babel/core/lib/transformation/file/generate' {
declare module.exports: any;
}
declare module '@babel/core/lib/transformation/file/merge-map' {
declare module.exports: any;
}
declare module '@babel/core/lib/transformation/index' {
declare module.exports: any;
}
declare module '@babel/core/lib/transformation/normalize-file' {
declare module.exports: any;
}
declare module '@babel/core/lib/transformation/normalize-opts' {
declare module.exports: any;
}
declare module '@babel/core/lib/transformation/plugin-pass' {
declare module.exports: any;
}
declare module '@babel/core/lib/transformation/util/missing-plugin-helper' {
declare module.exports: any;
}
// Filename aliases
declare module '@babel/core/lib/config/caching.js' {
declare module.exports: $Exports<'@babel/core/lib/config/caching'>;
}
declare module '@babel/core/lib/config/config-chain.js' {
declare module.exports: $Exports<'@babel/core/lib/config/config-chain'>;
}
declare module '@babel/core/lib/config/config-descriptors.js' {
declare module.exports: $Exports<'@babel/core/lib/config/config-descriptors'>;
}
declare module '@babel/core/lib/config/files/configuration.js' {
declare module.exports: $Exports<'@babel/core/lib/config/files/configuration'>;
}
declare module '@babel/core/lib/config/files/index-browser.js' {
declare module.exports: $Exports<'@babel/core/lib/config/files/index-browser'>;
}
declare module '@babel/core/lib/config/files/index.js' {
declare module.exports: $Exports<'@babel/core/lib/config/files/index'>;
}
declare module '@babel/core/lib/config/files/package.js' {
declare module.exports: $Exports<'@babel/core/lib/config/files/package'>;
}
declare module '@babel/core/lib/config/files/plugins.js' {
declare module.exports: $Exports<'@babel/core/lib/config/files/plugins'>;
}
declare module '@babel/core/lib/config/files/types.js' {
declare module.exports: $Exports<'@babel/core/lib/config/files/types'>;
}
declare module '@babel/core/lib/config/files/utils.js' {
declare module.exports: $Exports<'@babel/core/lib/config/files/utils'>;
}
declare module '@babel/core/lib/config/full.js' {
declare module.exports: $Exports<'@babel/core/lib/config/full'>;
}
declare module '@babel/core/lib/config/helpers/config-api.js' {
declare module.exports: $Exports<'@babel/core/lib/config/helpers/config-api'>;
}
declare module '@babel/core/lib/config/helpers/environment.js' {
declare module.exports: $Exports<'@babel/core/lib/config/helpers/environment'>;
}
declare module '@babel/core/lib/config/index.js' {
declare module.exports: $Exports<'@babel/core/lib/config/index'>;
}
declare module '@babel/core/lib/config/item.js' {
declare module.exports: $Exports<'@babel/core/lib/config/item'>;
}
declare module '@babel/core/lib/config/partial.js' {
declare module.exports: $Exports<'@babel/core/lib/config/partial'>;
}
declare module '@babel/core/lib/config/pattern-to-regex.js' {
declare module.exports: $Exports<'@babel/core/lib/config/pattern-to-regex'>;
}
declare module '@babel/core/lib/config/plugin.js' {
declare module.exports: $Exports<'@babel/core/lib/config/plugin'>;
}
declare module '@babel/core/lib/config/util.js' {
declare module.exports: $Exports<'@babel/core/lib/config/util'>;
}
declare module '@babel/core/lib/config/validation/option-assertions.js' {
declare module.exports: $Exports<'@babel/core/lib/config/validation/option-assertions'>;
}
declare module '@babel/core/lib/config/validation/options.js' {
declare module.exports: $Exports<'@babel/core/lib/config/validation/options'>;
}
declare module '@babel/core/lib/config/validation/plugins.js' {
declare module.exports: $Exports<'@babel/core/lib/config/validation/plugins'>;
}
declare module '@babel/core/lib/config/validation/removed.js' {
declare module.exports: $Exports<'@babel/core/lib/config/validation/removed'>;
}
declare module '@babel/core/lib/index.js' {
declare module.exports: $Exports<'@babel/core/lib/index'>;
}
declare module '@babel/core/lib/parse.js' {
declare module.exports: $Exports<'@babel/core/lib/parse'>;
}
declare module '@babel/core/lib/tools/build-external-helpers.js' {
declare module.exports: $Exports<'@babel/core/lib/tools/build-external-helpers'>;
}
declare module '@babel/core/lib/transform-ast.js' {
declare module.exports: $Exports<'@babel/core/lib/transform-ast'>;
}
declare module '@babel/core/lib/transform-file-browser.js' {
declare module.exports: $Exports<'@babel/core/lib/transform-file-browser'>;
}
declare module '@babel/core/lib/transform-file.js' {
declare module.exports: $Exports<'@babel/core/lib/transform-file'>;
}
declare module '@babel/core/lib/transform.js' {
declare module.exports: $Exports<'@babel/core/lib/transform'>;
}
declare module '@babel/core/lib/transformation/block-hoist-plugin.js' {
declare module.exports: $Exports<'@babel/core/lib/transformation/block-hoist-plugin'>;
}
declare module '@babel/core/lib/transformation/file/file.js' {
declare module.exports: $Exports<'@babel/core/lib/transformation/file/file'>;
}
declare module '@babel/core/lib/transformation/file/generate.js' {
declare module.exports: $Exports<'@babel/core/lib/transformation/file/generate'>;
}
declare module '@babel/core/lib/transformation/file/merge-map.js' {
declare module.exports: $Exports<'@babel/core/lib/transformation/file/merge-map'>;
}
declare module '@babel/core/lib/transformation/index.js' {
declare module.exports: $Exports<'@babel/core/lib/transformation/index'>;
}
declare module '@babel/core/lib/transformation/normalize-file.js' {
declare module.exports: $Exports<'@babel/core/lib/transformation/normalize-file'>;
}
declare module '@babel/core/lib/transformation/normalize-opts.js' {
declare module.exports: $Exports<'@babel/core/lib/transformation/normalize-opts'>;
}
declare module '@babel/core/lib/transformation/plugin-pass.js' {
declare module.exports: $Exports<'@babel/core/lib/transformation/plugin-pass'>;
}
declare module '@babel/core/lib/transformation/util/missing-plugin-helper.js' {
declare module.exports: $Exports<'@babel/core/lib/transformation/util/missing-plugin-helper'>;
}
@@ -1,32 +0,0 @@
// flow-typed signature: 3350ac60247e5d21911065431eacf53e
// flow-typed version: <<STUB>>/@babel/plugin-proposal-class-properties_v^7.0.0/flow_v0.94.0
/**
* This is an autogenerated libdef stub for:
*
* '@babel/plugin-proposal-class-properties'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module '@babel/plugin-proposal-class-properties' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module '@babel/plugin-proposal-class-properties/lib/index' {
declare module.exports: any;
}
// Filename aliases
declare module '@babel/plugin-proposal-class-properties/lib/index.js' {
declare module.exports: $Exports<'@babel/plugin-proposal-class-properties/lib/index'>;
}
@@ -1,39 +0,0 @@
// flow-typed signature: b3034b120832a9a28300dffb95bf7c9d
// flow-typed version: <<STUB>>/@babel/plugin-proposal-decorators_v^7.3.0/flow_v0.94.0
/**
* This is an autogenerated libdef stub for:
*
* '@babel/plugin-proposal-decorators'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module '@babel/plugin-proposal-decorators' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module '@babel/plugin-proposal-decorators/lib/index' {
declare module.exports: any;
}
declare module '@babel/plugin-proposal-decorators/lib/transformer-legacy' {
declare module.exports: any;
}
// Filename aliases
declare module '@babel/plugin-proposal-decorators/lib/index.js' {
declare module.exports: $Exports<'@babel/plugin-proposal-decorators/lib/index'>;
}
declare module '@babel/plugin-proposal-decorators/lib/transformer-legacy.js' {
declare module.exports: $Exports<'@babel/plugin-proposal-decorators/lib/transformer-legacy'>;
}
@@ -1,32 +0,0 @@
// flow-typed signature: 10e8f21a7c98ee47f62fa7e5a6a5ab71
// flow-typed version: <<STUB>>/@babel/plugin-transform-flow-strip-types_v^7.2.3/flow_v0.94.0
/**
* This is an autogenerated libdef stub for:
*
* '@babel/plugin-transform-flow-strip-types'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module '@babel/plugin-transform-flow-strip-types' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module '@babel/plugin-transform-flow-strip-types/lib/index' {
declare module.exports: any;
}
// Filename aliases
declare module '@babel/plugin-transform-flow-strip-types/lib/index.js' {
declare module.exports: $Exports<'@babel/plugin-transform-flow-strip-types/lib/index'>;
}
-4
View File
@@ -1,4 +0,0 @@
// flow-typed signature: ebc6e7724cd1da0d1a8b10de36bd7a94
// flow-typed version: 7b122e75af/@babel/polyfill_v7.x.x/flow_>=v0.30.x
declare module '@babel/polyfill' {}
-32
View File
@@ -1,32 +0,0 @@
// flow-typed signature: ad96fb37691315cf15ed6c2a7d890024
// flow-typed version: <<STUB>>/@babel/preset-flow_v^7.0.0/flow_v0.94.0
/**
* This is an autogenerated libdef stub for:
*
* '@babel/preset-flow'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module '@babel/preset-flow' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module '@babel/preset-flow/lib/index' {
declare module.exports: any;
}
// Filename aliases
declare module '@babel/preset-flow/lib/index.js' {
declare module.exports: $Exports<'@babel/preset-flow/lib/index'>;
}
-32
View File
@@ -1,32 +0,0 @@
// flow-typed signature: e7347ed70897733b4d136cb0cb8ae5c4
// flow-typed version: <<STUB>>/@babel/preset-react_v^7.0.0/flow_v0.94.0
/**
* This is an autogenerated libdef stub for:
*
* '@babel/preset-react'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module '@babel/preset-react' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module '@babel/preset-react/lib/index' {
declare module.exports: any;
}
// Filename aliases
declare module '@babel/preset-react/lib/index.js' {
declare module.exports: $Exports<'@babel/preset-react/lib/index'>;
}
-47
View File
@@ -1,47 +0,0 @@
// flow-typed signature: 5934458d8287c23337a0363563a548f9
// flow-typed version: b77688cf5d/@babel/register_v7.x.x/flow_>=v0.30.x
declare module '@babel/register' {
declare type Ignore = boolean | string | RegExp | (filename: string) => boolean;
declare type Options = {|
ast?: boolean,
auxiliaryCommentAfter?: ?string,
auxiliaryCommentBefore?: ?string,
babelrc?: boolean,
code?: boolean,
comments?: boolean,
compact?: 'auto' | boolean,
configFile?: string | boolean,
env?: Object,
extends?: ?string,
extensions?: Array<string>,
filename?: string,
filenameRelative?: string,
generatorOpts?: Object,
getModuleId?: void | null | (moduleName: string) => string,
highlightCode?: boolean,
ignore?: Ignore | Array<Ignore>,
inputSourceMap?: Object,
minified?: boolean,
moduleId?: string,
moduleIds?: boolean,
moduleRoot?: string,
only?: RegExp,
parserOpts?: Object,
plugins?: Array<[string, Object] | string>,
presets?: Array<string>,
retainLines?: boolean,
resolveModuleSource?: null | (source: string, filename: string) => boolean,
shouldPrintComment?: null | (commentContents: string) => string,
sourceFileName?: string,
sourceMaps?: boolean | 'inline' | 'both',
sourceMapTarget?: string,
sourceRoot?: string,
sourceType?: 'script' | 'module',
wrapPluginVisitorMethod?: null | (pluginAlias: string, visitorType: string, callback: Function) => boolean,
extensions?: Array<string>,
cache?: boolean,
|};
declare module.exports: (options?: Options) => void;
}
-318
View File
@@ -1,318 +0,0 @@
// flow-typed signature: 7025e1d060874c9ed272b10b43d6cbd4
// flow-typed version: <<STUB>>/@hot-loader/react-dom_v16.8/flow_v0.94.0
/**
* This is an autogenerated libdef stub for:
*
* '@hot-loader/react-dom'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module '@hot-loader/react-dom' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module '@hot-loader/react-dom/cjs/react-dom-server.browser.development' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/cjs/react-dom-server.browser.production.min' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/cjs/react-dom-server.node.development' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/cjs/react-dom-server.node.production.min' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/cjs/react-dom-test-utils.development' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/cjs/react-dom-test-utils.production.min' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/cjs/react-dom-unstable-fire.development' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/cjs/react-dom-unstable-fire.production.min' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/cjs/react-dom-unstable-fire.profiling.min' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/cjs/react-dom-unstable-fizz.browser.development' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/cjs/react-dom-unstable-fizz.browser.production.min' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/cjs/react-dom-unstable-fizz.node.development' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/cjs/react-dom-unstable-fizz.node.production.min' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/cjs/react-dom-unstable-native-dependencies.development' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/cjs/react-dom-unstable-native-dependencies.production.min' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/cjs/react-dom.development' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/cjs/react-dom.production.min' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/cjs/react-dom.profiling.min' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/profiling' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/server.browser' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/server' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/server.node' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/test-utils' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/umd/react-dom-server.browser.development' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/umd/react-dom-server.browser.production.min' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/umd/react-dom-test-utils.development' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/umd/react-dom-test-utils.production.min' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/umd/react-dom-unstable-fire.development' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/umd/react-dom-unstable-fire.production.min' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/umd/react-dom-unstable-fire.profiling.min' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/umd/react-dom-unstable-fizz.browser.development' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/umd/react-dom-unstable-fizz.browser.production.min' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/umd/react-dom-unstable-native-dependencies.development' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/umd/react-dom-unstable-native-dependencies.production.min' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/umd/react-dom.development' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/umd/react-dom.production.min' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/umd/react-dom.profiling.min' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/unstable-fizz.browser' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/unstable-fizz' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/unstable-fizz.node' {
declare module.exports: any;
}
declare module '@hot-loader/react-dom/unstable-native-dependencies' {
declare module.exports: any;
}
// Filename aliases
declare module '@hot-loader/react-dom/cjs/react-dom-server.browser.development.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/cjs/react-dom-server.browser.development'>;
}
declare module '@hot-loader/react-dom/cjs/react-dom-server.browser.production.min.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/cjs/react-dom-server.browser.production.min'>;
}
declare module '@hot-loader/react-dom/cjs/react-dom-server.node.development.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/cjs/react-dom-server.node.development'>;
}
declare module '@hot-loader/react-dom/cjs/react-dom-server.node.production.min.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/cjs/react-dom-server.node.production.min'>;
}
declare module '@hot-loader/react-dom/cjs/react-dom-test-utils.development.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/cjs/react-dom-test-utils.development'>;
}
declare module '@hot-loader/react-dom/cjs/react-dom-test-utils.production.min.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/cjs/react-dom-test-utils.production.min'>;
}
declare module '@hot-loader/react-dom/cjs/react-dom-unstable-fire.development.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/cjs/react-dom-unstable-fire.development'>;
}
declare module '@hot-loader/react-dom/cjs/react-dom-unstable-fire.production.min.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/cjs/react-dom-unstable-fire.production.min'>;
}
declare module '@hot-loader/react-dom/cjs/react-dom-unstable-fire.profiling.min.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/cjs/react-dom-unstable-fire.profiling.min'>;
}
declare module '@hot-loader/react-dom/cjs/react-dom-unstable-fizz.browser.development.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/cjs/react-dom-unstable-fizz.browser.development'>;
}
declare module '@hot-loader/react-dom/cjs/react-dom-unstable-fizz.browser.production.min.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/cjs/react-dom-unstable-fizz.browser.production.min'>;
}
declare module '@hot-loader/react-dom/cjs/react-dom-unstable-fizz.node.development.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/cjs/react-dom-unstable-fizz.node.development'>;
}
declare module '@hot-loader/react-dom/cjs/react-dom-unstable-fizz.node.production.min.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/cjs/react-dom-unstable-fizz.node.production.min'>;
}
declare module '@hot-loader/react-dom/cjs/react-dom-unstable-native-dependencies.development.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/cjs/react-dom-unstable-native-dependencies.development'>;
}
declare module '@hot-loader/react-dom/cjs/react-dom-unstable-native-dependencies.production.min.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/cjs/react-dom-unstable-native-dependencies.production.min'>;
}
declare module '@hot-loader/react-dom/cjs/react-dom.development.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/cjs/react-dom.development'>;
}
declare module '@hot-loader/react-dom/cjs/react-dom.production.min.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/cjs/react-dom.production.min'>;
}
declare module '@hot-loader/react-dom/cjs/react-dom.profiling.min.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/cjs/react-dom.profiling.min'>;
}
declare module '@hot-loader/react-dom/index' {
declare module.exports: $Exports<'@hot-loader/react-dom'>;
}
declare module '@hot-loader/react-dom/index.js' {
declare module.exports: $Exports<'@hot-loader/react-dom'>;
}
declare module '@hot-loader/react-dom/profiling.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/profiling'>;
}
declare module '@hot-loader/react-dom/server.browser.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/server.browser'>;
}
declare module '@hot-loader/react-dom/server.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/server'>;
}
declare module '@hot-loader/react-dom/server.node.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/server.node'>;
}
declare module '@hot-loader/react-dom/test-utils.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/test-utils'>;
}
declare module '@hot-loader/react-dom/umd/react-dom-server.browser.development.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/umd/react-dom-server.browser.development'>;
}
declare module '@hot-loader/react-dom/umd/react-dom-server.browser.production.min.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/umd/react-dom-server.browser.production.min'>;
}
declare module '@hot-loader/react-dom/umd/react-dom-test-utils.development.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/umd/react-dom-test-utils.development'>;
}
declare module '@hot-loader/react-dom/umd/react-dom-test-utils.production.min.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/umd/react-dom-test-utils.production.min'>;
}
declare module '@hot-loader/react-dom/umd/react-dom-unstable-fire.development.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/umd/react-dom-unstable-fire.development'>;
}
declare module '@hot-loader/react-dom/umd/react-dom-unstable-fire.production.min.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/umd/react-dom-unstable-fire.production.min'>;
}
declare module '@hot-loader/react-dom/umd/react-dom-unstable-fire.profiling.min.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/umd/react-dom-unstable-fire.profiling.min'>;
}
declare module '@hot-loader/react-dom/umd/react-dom-unstable-fizz.browser.development.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/umd/react-dom-unstable-fizz.browser.development'>;
}
declare module '@hot-loader/react-dom/umd/react-dom-unstable-fizz.browser.production.min.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/umd/react-dom-unstable-fizz.browser.production.min'>;
}
declare module '@hot-loader/react-dom/umd/react-dom-unstable-native-dependencies.development.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/umd/react-dom-unstable-native-dependencies.development'>;
}
declare module '@hot-loader/react-dom/umd/react-dom-unstable-native-dependencies.production.min.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/umd/react-dom-unstable-native-dependencies.production.min'>;
}
declare module '@hot-loader/react-dom/umd/react-dom.development.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/umd/react-dom.development'>;
}
declare module '@hot-loader/react-dom/umd/react-dom.production.min.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/umd/react-dom.production.min'>;
}
declare module '@hot-loader/react-dom/umd/react-dom.profiling.min.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/umd/react-dom.profiling.min'>;
}
declare module '@hot-loader/react-dom/unstable-fizz.browser.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/unstable-fizz.browser'>;
}
declare module '@hot-loader/react-dom/unstable-fizz.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/unstable-fizz'>;
}
declare module '@hot-loader/react-dom/unstable-fizz.node.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/unstable-fizz.node'>;
}
declare module '@hot-loader/react-dom/unstable-native-dependencies.js' {
declare module.exports: $Exports<'@hot-loader/react-dom/unstable-native-dependencies'>;
}
-18
View File
@@ -1,18 +0,0 @@
// flow-typed signature: 3213370d53d43337e039b1f99b90ad98
// flow-typed version: <<STUB>>/@lbry/color_v^1.0.2/flow_v0.94.0
/**
* This is an autogenerated libdef stub for:
*
* '@lbry/color'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module '@lbry/color' {
declare module.exports: any;
}
-18
View File
@@ -1,18 +0,0 @@
// flow-typed signature: 8b77537ae4d6c835866e04a70a0ad6f3
// flow-typed version: <<STUB>>/@lbry/components_v^2.2.4/flow_v0.94.0
/**
* This is an autogenerated libdef stub for:
*
* '@lbry/components'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module '@lbry/components' {
declare module.exports: any;
}
-18
View File
@@ -1,18 +0,0 @@
// flow-typed signature: e85a840886c4c445a0e0d1b1c1b20fef
// flow-typed version: <<STUB>>/@types/three_v^0.93.1/flow_v0.94.0
/**
* This is an autogenerated libdef stub for:
*
* '@types/three'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module '@types/three' {
declare module.exports: any;
}
-33
View File
@@ -1,33 +0,0 @@
// flow-typed signature: 0179aaf62abe5de0fea307e93b07f0fd
// flow-typed version: <<STUB>>/async-exit-hook_v^2.0.1/flow_v0.94.0
/**
* This is an autogenerated libdef stub for:
*
* 'async-exit-hook'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'async-exit-hook' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
// Filename aliases
declare module 'async-exit-hook/index' {
declare module.exports: $Exports<'async-exit-hook'>;
}
declare module 'async-exit-hook/index.js' {
declare module.exports: $Exports<'async-exit-hook'>;
}
-109
View File
@@ -1,109 +0,0 @@
// flow-typed signature: 7deec821536f1597fae1f6cd21e9ef81
// flow-typed version: <<STUB>>/babel-eslint_v^10.0.1/flow_v0.94.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-eslint'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'babel-eslint' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'babel-eslint/lib/analyze-scope' {
declare module.exports: any;
}
declare module 'babel-eslint/lib/babylon-to-espree/attachComments' {
declare module.exports: any;
}
declare module 'babel-eslint/lib/babylon-to-espree/convertComments' {
declare module.exports: any;
}
declare module 'babel-eslint/lib/babylon-to-espree/convertTemplateType' {
declare module.exports: any;
}
declare module 'babel-eslint/lib/babylon-to-espree/index' {
declare module.exports: any;
}
declare module 'babel-eslint/lib/babylon-to-espree/toAST' {
declare module.exports: any;
}
declare module 'babel-eslint/lib/babylon-to-espree/toToken' {
declare module.exports: any;
}
declare module 'babel-eslint/lib/babylon-to-espree/toTokens' {
declare module.exports: any;
}
declare module 'babel-eslint/lib/index' {
declare module.exports: any;
}
declare module 'babel-eslint/lib/parse-with-scope' {
declare module.exports: any;
}
declare module 'babel-eslint/lib/parse' {
declare module.exports: any;
}
declare module 'babel-eslint/lib/visitor-keys' {
declare module.exports: any;
}
// Filename aliases
declare module 'babel-eslint/lib/analyze-scope.js' {
declare module.exports: $Exports<'babel-eslint/lib/analyze-scope'>;
}
declare module 'babel-eslint/lib/babylon-to-espree/attachComments.js' {
declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/attachComments'>;
}
declare module 'babel-eslint/lib/babylon-to-espree/convertComments.js' {
declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/convertComments'>;
}
declare module 'babel-eslint/lib/babylon-to-espree/convertTemplateType.js' {
declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/convertTemplateType'>;
}
declare module 'babel-eslint/lib/babylon-to-espree/index.js' {
declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/index'>;
}
declare module 'babel-eslint/lib/babylon-to-espree/toAST.js' {
declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/toAST'>;
}
declare module 'babel-eslint/lib/babylon-to-espree/toToken.js' {
declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/toToken'>;
}
declare module 'babel-eslint/lib/babylon-to-espree/toTokens.js' {
declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/toTokens'>;
}
declare module 'babel-eslint/lib/index.js' {
declare module.exports: $Exports<'babel-eslint/lib/index'>;
}
declare module 'babel-eslint/lib/parse-with-scope.js' {
declare module.exports: $Exports<'babel-eslint/lib/parse-with-scope'>;
}
declare module 'babel-eslint/lib/parse.js' {
declare module.exports: $Exports<'babel-eslint/lib/parse'>;
}
declare module 'babel-eslint/lib/visitor-keys.js' {
declare module.exports: $Exports<'babel-eslint/lib/visitor-keys'>;
}
-60
View File
@@ -1,60 +0,0 @@
// flow-typed signature: 67633ab172e0306588506ec8c9dfb0c5
// flow-typed version: <<STUB>>/babel-loader_v^8.0.5/flow_v0.94.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-loader'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'babel-loader' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'babel-loader/lib/cache' {
declare module.exports: any;
}
declare module 'babel-loader/lib/Error' {
declare module.exports: any;
}
declare module 'babel-loader/lib/index' {
declare module.exports: any;
}
declare module 'babel-loader/lib/injectCaller' {
declare module.exports: any;
}
declare module 'babel-loader/lib/transform' {
declare module.exports: any;
}
// Filename aliases
declare module 'babel-loader/lib/cache.js' {
declare module.exports: $Exports<'babel-loader/lib/cache'>;
}
declare module 'babel-loader/lib/Error.js' {
declare module.exports: $Exports<'babel-loader/lib/Error'>;
}
declare module 'babel-loader/lib/index.js' {
declare module.exports: $Exports<'babel-loader/lib/index'>;
}
declare module 'babel-loader/lib/injectCaller.js' {
declare module.exports: $Exports<'babel-loader/lib/injectCaller'>;
}
declare module 'babel-loader/lib/transform.js' {
declare module.exports: $Exports<'babel-loader/lib/transform'>;
}
@@ -1,32 +0,0 @@
// flow-typed signature: a0883da47931ce64ec28c9da060c809c
// flow-typed version: <<STUB>>/babel-plugin-add-module-exports_v^1.0.0/flow_v0.94.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-plugin-add-module-exports'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'babel-plugin-add-module-exports' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'babel-plugin-add-module-exports/lib/index' {
declare module.exports: any;
}
// Filename aliases
declare module 'babel-plugin-add-module-exports/lib/index.js' {
declare module.exports: $Exports<'babel-plugin-add-module-exports/lib/index'>;
}
-52
View File
@@ -1,52 +0,0 @@
// flow-typed signature: cb570215f71dc62ada0fe7396fcaa472
// flow-typed version: <<STUB>>/babel-plugin-transform-imports_v^1.5.1/flow_v0.94.0
/**
* This is an autogenerated libdef stub for:
*
* 'babel-plugin-transform-imports'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to share your work with the
* community by sending a pull request to:
* https://github.com/flowtype/flow-typed
*/
declare module 'babel-plugin-transform-imports' {
declare module.exports: any;
}
/**
* We include stubs for each file inside this npm package in case you need to
* require those files directly. Feel free to delete any files that aren't
* needed.
*/
declare module 'babel-plugin-transform-imports/test/invalidTransform' {
declare module.exports: any;
}
declare module 'babel-plugin-transform-imports/test/tests' {
declare module.exports: any;
}
declare module 'babel-plugin-transform-imports/test/transform' {
declare module.exports: any;
}
// Filename aliases
declare module 'babel-plugin-transform-imports/index' {
declare module.exports: $Exports<'babel-plugin-transform-imports'>;
}
declare module 'babel-plugin-transform-imports/index.js' {
declare module.exports: $Exports<'babel-plugin-transform-imports'>;
}
declare module 'babel-plugin-transform-imports/test/invalidTransform.js' {
declare module.exports: $Exports<'babel-plugin-transform-imports/test/invalidTransform'>;
}
declare module 'babel-plugin-transform-imports/test/tests.js' {
declare module.exports: $Exports<'babel-plugin-transform-imports/test/tests'>;
}
declare module 'babel-plugin-transform-imports/test/transform.js' {
declare module.exports: $Exports<'babel-plugin-transform-imports/test/transform'>;
}
-329
View File
@@ -1,329 +0,0 @@
// flow-typed signature: e0974d6c2c04803a78c4faa3e848c72a
// flow-typed version: 34fbdaa6f3/bluebird_v3.x.x/flow_>=v0.70.x
type Bluebird$RangeError = Error;
type Bluebird$CancellationErrors = Error;
type Bluebird$TimeoutError = Error;
type Bluebird$RejectionError = Error;
type Bluebird$OperationalError = Error;
type Bluebird$ConcurrencyOption = {
concurrency: number
};
type Bluebird$SpreadOption = {
spread: boolean
};
type Bluebird$MultiArgsOption = {
multiArgs: boolean
};
type Bluebird$BluebirdConfig = {
warnings?: boolean,
longStackTraces?: boolean,
cancellation?: boolean,
monitoring?: boolean
};
declare class Bluebird$PromiseInspection<T> {
isCancelled(): boolean;
isFulfilled(): boolean;
isRejected(): boolean;
pending(): boolean;
reason(): any;
value(): T;
}
type Bluebird$PromisifyOptions = {|
multiArgs?: boolean,
context: any
|};
declare type Bluebird$PromisifyAllOptions = {
suffix?: string,
filter?: (
name: string,
func: Function,
target?: any,
passesDefaultFilter?: boolean
) => boolean,
// The promisifier gets a reference to the original method and should return a function which returns a promise
promisifier?: (originalMethod: Function) => () => Bluebird$Promise<any>
};
declare type $Promisable<T> = Promise<T> | T;
declare class Bluebird$Disposable<R> {}
declare class Bluebird$Promise<+R> extends Promise<R> {
static RangeError: Class<Bluebird$RangeError>;
static CancellationErrors: Class<Bluebird$CancellationErrors>;
static TimeoutError: Class<Bluebird$TimeoutError>;
static RejectionError: Class<Bluebird$RejectionError>;
static OperationalError: Class<Bluebird$OperationalError>;
static Defer: Class<Bluebird$Defer>;
static PromiseInspection: Class<Bluebird$PromiseInspection<*>>;
static all<T>(
Promises: $Promisable<Iterable<$Promisable<T>>>
): Bluebird$Promise<Array<T>>;
static props(
input: Object | Map<*, *> | $Promisable<Object | Map<*, *>>
): Bluebird$Promise<*>;
static any<T, Elem: $Promisable<T>>(
Promises: Iterable<Elem> | $Promisable<Iterable<Elem>>
): Bluebird$Promise<T>;
static race<T, Elem: $Promisable<T>>(
Promises: Iterable<Elem> | $Promisable<Iterable<Elem>>
): Bluebird$Promise<T>;
static reject<T>(error?: any): Bluebird$Promise<T>;
static resolve<T>(object?: $Promisable<T>): Bluebird$Promise<T>;
static some<T, Elem: $Promisable<T>>(
Promises: Iterable<Elem> | $Promisable<Iterable<Elem>>,
count: number
): Bluebird$Promise<Array<T>>;
static join<T, A>(
value1: $Promisable<A>,
handler: (a: A) => $Promisable<T>
): Bluebird$Promise<T>;
static join<T, A, B>(
value1: $Promisable<A>,
value2: $Promisable<B>,
handler: (a: A, b: B) => $Promisable<T>
): Bluebird$Promise<T>;
static join<T, A, B, C>(
value1: $Promisable<A>,
value2: $Promisable<B>,
value3: $Promisable<C>,
handler: (a: A, b: B, c: C) => $Promisable<T>
): Bluebird$Promise<T>;
static map<T, U, Elem: $Promisable<T>>(
Promises: Iterable<Elem> | $Promisable<Iterable<Elem>>,
mapper: (item: T, index: number, arrayLength: number) => $Promisable<U>,
options?: Bluebird$ConcurrencyOption
): Bluebird$Promise<Array<U>>;
static mapSeries<T, U, Elem: $Promisable<T>>(
Promises: Iterable<Elem> | $Promisable<Iterable<Elem>>,
mapper: (item: T, index: number, arrayLength: number) => $Promisable<U>
): Bluebird$Promise<Array<U>>;
static reduce<T, U, Elem: $Promisable<T>>(
Promises: Iterable<Elem> | $Promisable<Iterable<Elem>>,
reducer: (
total: U,
current: T,
index: number,
arrayLength: number
) => $Promisable<U>,
initialValue?: $Promisable<U>
): Bluebird$Promise<U>;
static filter<T, Elem: $Promisable<T>>(
Promises: Iterable<Elem> | $Promisable<Iterable<Elem>>,
filterer: (
item: T,
index: number,
arrayLength: number
) => $Promisable<boolean>,
option?: Bluebird$ConcurrencyOption
): Bluebird$Promise<Array<T>>;
static each<T, Elem: $Promisable<T>>(
Promises: Iterable<Elem> | $Promisable<Iterable<Elem>>,
iterator: (
item: T,
index: number,
arrayLength: number
) => $Promisable<mixed>
): Bluebird$Promise<Array<T>>;
static try<T>(
fn: () => $Promisable<T>,
args: ?Array<any>,
ctx: ?any
): Bluebird$Promise<T>;
static attempt<T>(
fn: () => $Promisable<T>,
args: ?Array<any>,
ctx: ?any
): Bluebird$Promise<T>;
static delay<T>(ms: number, value: $Promisable<T>): Bluebird$Promise<T>;
static delay(ms: number): Bluebird$Promise<void>;
static config(config: Bluebird$BluebirdConfig): void;
static defer(): Bluebird$Defer;
static setScheduler(
scheduler: (callback: (...args: Array<any>) => void) => void
): void;
static promisify(
nodeFunction: Function,
receiver?: Bluebird$PromisifyOptions
): Function;
static promisifyAll(
target: Object | Array<Object>,
options?: Bluebird$PromisifyAllOptions
): void;
static coroutine(generatorFunction: Function): Function;
static spawn<T>(generatorFunction: Function): Promise<T>;
// It doesn't seem possible to have type-generics for a variable number of arguments.
// Handle up to 3 arguments, then just give up and accept 'any'.
static method<T, R: $Promisable<T>>(fn: () => R): () => Bluebird$Promise<T>;
static method<T, R: $Promisable<T>, A>(
fn: (a: A) => R
): (a: A) => Bluebird$Promise<T>;
static method<T, R: $Promisable<T>, A, B>(
fn: (a: A, b: B) => R
): (a: A, b: B) => Bluebird$Promise<T>;
static method<T, R: $Promisable<T>, A, B, C>(
fn: (a: A, b: B, c: C) => R
): (a: A, b: B, c: C) => Bluebird$Promise<T>;
static method<T, R: $Promisable<T>>(
fn: (...args: any) => R
): (...args: any) => Bluebird$Promise<T>;
static cast<T>(value: $Promisable<T>): Bluebird$Promise<T>;
// static bind(ctx: any): Bluebird$Promise<void>;
static is(value: any): boolean;
static longStackTraces(): void;
static onPossiblyUnhandledRejection(handler: (reason: any) => any): void;
static fromCallback<T>(
resolver: (fn: (error: ?Error, value?: T) => any) => any,
options?: Bluebird$MultiArgsOption
): Bluebird$Promise<T>;
constructor(
callback: (
resolve: (result?: $Promisable<R>) => void,
reject: (error?: any) => void,
onCancel?: (fn?: () => void) => void,
) => mixed
): void;
then(onFulfill: null | void, onReject: null | void): Bluebird$Promise<R>;
then<U>(
onFulfill: null | void,
onReject: (error: any) => Promise<U> | U
): Bluebird$Promise<R | U>;
then<U>(
onFulfill: (value: R) => Promise<U> | U,
onReject: null | void | ((error: any) => Promise<U> | U)
): Bluebird$Promise<U>;
catch(onReject: null | void): Promise<R>;
catch<U>(onReject?: (error: any) => $Promisable<U>): Bluebird$Promise<U>;
catch<U, ErrorT: Error>(
err: Class<ErrorT>,
onReject: (error: ErrorT) => $Promisable<U>
): Bluebird$Promise<U>;
catch<U, ErrorT: Error>(
err1: Class<ErrorT>,
err2: Class<ErrorT>,
onReject: (error: ErrorT) => $Promisable<U>
): Bluebird$Promise<U>;
catch<U, ErrorT: Error>(
err1: Class<ErrorT>,
err2: Class<ErrorT>,
err3: Class<ErrorT>,
onReject: (error: ErrorT) => $Promisable<U>
): Bluebird$Promise<U>;
caught<U, ErrorT: Error>(
err: Class<ErrorT>,
onReject: (error: Error) => $Promisable<U>
): Bluebird$Promise<U>;
caught<U, ErrorT: Error>(
err1: Class<ErrorT>,
err2: Class<ErrorT>,
onReject: (error: ErrorT) => $Promisable<U>
): Bluebird$Promise<U>;
caught<U, ErrorT: Error>(
err1: Class<ErrorT>,
err2: Class<ErrorT>,
err3: Class<ErrorT>,
onReject: (error: ErrorT) => $Promisable<U>
): Bluebird$Promise<U>;
caught<U>(onReject: (error: any) => $Promisable<U>): Bluebird$Promise<U>;
error<U>(onReject?: (error: any) => ?$Promisable<U>): Bluebird$Promise<U>;
done<U>(
onFulfill?: (value: R) => mixed,
onReject?: (error: any) => mixed
): void;
finally<T>(onDone?: (value: R) => mixed): Bluebird$Promise<T>;
lastly<T>(onDone?: (value: R) => mixed): Bluebird$Promise<T>;
tap<T>(onDone?: (value: R) => mixed): Bluebird$Promise<T>;
delay(ms: number): Bluebird$Promise<R>;
timeout(ms: number, message?: string): Bluebird$Promise<R>;
cancel(): void;
// bind(ctx: any): Bluebird$Promise<R>;
call(propertyName: string, ...args: Array<any>): Bluebird$Promise<any>;
throw(reason: Error): Bluebird$Promise<R>;
thenThrow(reason: Error): Bluebird$Promise<R>;
all<T>(): Bluebird$Promise<Array<T>>;
any<T>(): Bluebird$Promise<T>;
some<T>(count: number): Bluebird$Promise<Array<T>>;
race<T>(): Bluebird$Promise<T>;
map<T, U>(
mapper: (item: T, index: number, arrayLength: number) => $Promisable<U>,
options?: Bluebird$ConcurrencyOption
): Bluebird$Promise<Array<U>>;
mapSeries<T, U>(
mapper: (item: T, index: number, arrayLength: number) => $Promisable<U>
): Bluebird$Promise<Array<U>>;
reduce<T, U>(
reducer: (
total: T,
item: U,
index: number,
arrayLength: number
) => $Promisable<T>,
initialValue?: $Promisable<T>
): Bluebird$Promise<T>;
filter<T>(
filterer: (
item: T,
index: number,
arrayLength: number
) => $Promisable<boolean>,
options?: Bluebird$ConcurrencyOption
): Bluebird$Promise<Array<T>>;
each<T, U>(
iterator: (item: T, index: number, arrayLength: number) => $Promisable<U>
): Bluebird$Promise<Array<T>>;
asCallback<T>(
callback: (error: ?any, value?: T) => any,
options?: Bluebird$SpreadOption
): void;
return<T>(value: T): Bluebird$Promise<T>;
thenReturn<T>(value: T): Bluebird$Promise<T>;
spread<T>(...args: Array<T>): Bluebird$Promise<*>;
reflect(): Bluebird$Promise<Bluebird$PromiseInspection<*>>;
isFulfilled(): boolean;
isRejected(): boolean;
isPending(): boolean;
isResolved(): boolean;
value(): R;
reason(): any;
disposer(
disposer: (value: R, promise: Promise<*>) => void
): Bluebird$Disposable<R>;
static using<T, A>(
disposable: Bluebird$Disposable<T>,
handler: (value: T) => $Promisable<A>
): Bluebird$Promise<A>;
suppressUnhandledRejections(): void;
}
declare class Bluebird$Defer {
promise: Bluebird$Promise<*>;
resolve: (value: any) => any;
reject: (value: any) => any;
}
declare module "bluebird" {
declare module.exports: typeof Bluebird$Promise;
declare type Disposable<T> = Bluebird$Disposable<T>;
}
-98
View File
@@ -1,98 +0,0 @@
// flow-typed signature: db5b2cdde8db39d47e27cc8ab84f89bf
// flow-typed version: d662d43161/chalk_v2.x.x/flow_>=v0.25.x
// From: https://github.com/chalk/chalk/blob/master/index.js.flow
declare module "chalk" {
declare type TemplateStringsArray = $ReadOnlyArray<string>;
declare type Level = $Values<{
None: 0,
Basic: 1,
Ansi256: 2,
TrueColor: 3
}>;
declare type ChalkOptions = {|
enabled?: boolean,
level?: Level
|};
declare type ColorSupport = {|
level: Level,
hasBasic: boolean,
has256: boolean,
has16m: boolean
|};
declare interface Chalk {
(...text: string[]): string,
(text: TemplateStringsArray, ...placeholders: string[]): string,
constructor(options?: ChalkOptions): Chalk,
enabled: boolean,
level: Level,
rgb(r: number, g: number, b: number): Chalk,
hsl(h: number, s: number, l: number): Chalk,
hsv(h: number, s: number, v: number): Chalk,
hwb(h: number, w: number, b: number): Chalk,
bgHex(color: string): Chalk,
bgKeyword(color: string): Chalk,
bgRgb(r: number, g: number, b: number): Chalk,
bgHsl(h: number, s: number, l: number): Chalk,
bgHsv(h: number, s: number, v: number): Chalk,
bgHwb(h: number, w: number, b: number): Chalk,
hex(color: string): Chalk,
keyword(color: string): Chalk,
+reset: Chalk,
+bold: Chalk,
+dim: Chalk,
+italic: Chalk,
+underline: Chalk,
+inverse: Chalk,
+hidden: Chalk,
+strikethrough: Chalk,
+visible: Chalk,
+black: Chalk,
+red: Chalk,
+green: Chalk,
+yellow: Chalk,
+blue: Chalk,
+magenta: Chalk,
+cyan: Chalk,
+white: Chalk,
+gray: Chalk,
+grey: Chalk,
+blackBright: Chalk,
+redBright: Chalk,
+greenBright: Chalk,
+yellowBright: Chalk,
+blueBright: Chalk,
+magentaBright: Chalk,
+cyanBright: Chalk,
+whiteBright: Chalk,
+bgBlack: Chalk,
+bgRed: Chalk,
+bgGreen: Chalk,
+bgYellow: Chalk,
+bgBlue: Chalk,
+bgMagenta: Chalk,
+bgCyan: Chalk,
+bgWhite: Chalk,
+bgBlackBright: Chalk,
+bgRedBright: Chalk,
+bgGreenBright: Chalk,
+bgYellowBright: Chalk,
+bgBlueBright: Chalk,
+bgMagentaBright: Chalk,
+bgCyanBright: Chalk,
+bgWhiteBrigh: Chalk,
supportsColor: ColorSupport
}
declare module.exports: Chalk;
}
-23
View File
@@ -1,23 +0,0 @@
// flow-typed signature: cf86673cc32d185bdab1d2ea90578d37
// flow-typed version: 614bf49aa8/classnames_v2.x.x/flow_>=v0.25.x
type $npm$classnames$Classes =
| string
| { [className: string]: * }
| false
| void
| null;
declare module "classnames" {
declare module.exports: (
...classes: Array<$npm$classnames$Classes | $npm$classnames$Classes[]>
) => string;
}
declare module "classnames/bind" {
declare module.exports: $Exports<"classnames">;
}
declare module "classnames/dedupe" {
declare module.exports: $Exports<"classnames">;
}
File diff suppressed because it is too large. Load diff
Loaded 100 of 1349 files, more files were not shown because too many files have changed in this diff. Show more