Feross Aboukhadijeh
fb37b87297
set windows protocol/file icons
2016-03-20 01:10:41 -07:00
Feross Aboukhadijeh
1022d616d2
Unpack icon files so setting browserWindow.icon works
2016-03-20 01:10:41 -07:00
Feross Aboukhadijeh
c8bd39056c
Register .torrent file hander on Windows
2016-03-19 23:12:58 -07:00
Feross Aboukhadijeh
29138fc83c
add documentation for registerProtocolHandler
2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
765d3bde56
detect if app is running in production
...
If app is running in “production” (i.e. it has been packaged), then it
will be invoked with one less argument.
WebTorrent.exe arguments
vs.
electron.exe /path/to/app arguments
We need to detect this to correctly handle command line arguments.
2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
84a87dd1de
log command line arguments
2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
81bb8eea7b
do all logging in the renderer
2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
afe5151e28
Handle command line arguments
2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
e70e32c5f8
use process.execPath instead of app.getPath('exec')
...
They’re equivalent
2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
3d1fd56450
Use real path to WebTorrent.exe
2016-03-19 20:32:19 -07:00
Feross Aboukhadijeh
ae935af153
Windows: register protocol handler without needing Admin privledges
2016-03-19 20:32:18 -07:00
Feross Aboukhadijeh
2cc8ebc9f8
Windows: register protocol handler for magnet links
2016-03-19 20:32:18 -07:00
DC
381087208c
Fix opening files and folders
2016-03-19 19:01:17 -07:00
Feross Aboukhadijeh
0f263b89e5
OS X: open magnet links in WebTorrent
2016-03-19 17:09:05 -07:00
Feross Aboukhadijeh
4f40e5d963
Fix Exception when dropping .torrent file onto Dock icon when app is closed
...
Fixes #154
2016-03-19 16:07:35 -07:00
Feross Aboukhadijeh
309e509a76
Dock icon should accept all file types ( fix #156 )
2016-03-19 02:48:45 -07:00
Nate Goldman
a1be66cb96
simplify power save block calls, fix #141
2016-03-14 11:38:59 -07:00
DC
8108c407d3
Torrent details
...
Show file list, open folder containing downloaded files, open individual files, play/pause individual videos
2016-03-14 09:18:20 -07:00
Nate Goldman
52fc2d88c9
Block "Power Saver" mode while video is playing
...
fix #106
2016-03-11 16:43:36 -08:00
Dan Flettre
b1678b71c6
ensure video is paused before hiding window
2016-03-11 01:10:39 -06:00
Feross Aboukhadijeh
d5c8df4f82
fix fullscreen / float on top menu item exception
...
Fixes #128
2016-03-10 19:24:59 -08:00
Feross Aboukhadijeh
3c17697aca
Merge pull request #121 from feross/logo
...
Create WebTorrent app icon
2016-03-10 14:56:28 -08:00
Feross Aboukhadijeh
7c94c4166c
Create WebTorrent app icon
...
For #120 .
2016-03-10 00:09:21 -08:00
Feross Aboukhadijeh
4fef6d00a8
main modules use require() instead of arguments
2016-03-09 15:20:28 -08:00
Feross Aboukhadijeh
9dcc0522c7
Add Custom Dock Menu (OS X) ( fix #113 )
2016-03-09 15:17:22 -08:00
Feross Aboukhadijeh
713c87729a
all main modules have init() function
2016-03-09 15:15:04 -08:00
Feross Aboukhadijeh
e7d837e813
shortcut order
2016-03-09 15:05:39 -08:00
DC
c176e3897a
Add Torrent Link modal
2016-03-09 04:27:01 -08:00
Feross Aboukhadijeh
29298a1074
Register "media key" for play/pause
2016-03-09 03:08:21 -08:00
Feross Aboukhadijeh
a6e8a3462e
don't use executeJavaScript() (fix for PR #107 )
...
It’s not *that* much cleaner, but executeJavaScript() feels too much
like eval().
cc @flet
2016-03-09 02:38:59 -08:00
Feross Aboukhadijeh
944a47be72
allow the main process to dispatch any event to the renderer
2016-03-09 02:36:10 -08:00
Feross Aboukhadijeh
fe524f8432
Merge pull request #107 from Flet/pause-on-hide
...
dispatch a pause event before hiding window on darwin
2016-03-09 02:18:40 -08:00
Feross Aboukhadijeh
56536ad55e
Move paste to renderer
...
The ‘clipboard’ module works in the renderer without using the ’remote’
package. So we can eliminate one IPC call this way :)
2016-03-08 21:06:20 -08:00
Dan Flettre
e686aa8d02
dispatch a pause event before hiding window on darwin
2016-03-08 22:40:51 -06:00
Feross Aboukhadijeh
75067b4dd5
@dcposch PR feedback #82
2016-03-08 17:43:19 -08:00
Feross Aboukhadijeh
6946ab3507
style improvements
...
- make torrent placeholder the exact size of a normal torrent
- make torrent list window minimum size of two torrents
- make window start out sized for 4 torrents
- increase font size responsively
2016-03-08 15:39:39 -08:00
Feross Aboukhadijeh
e399ac9285
make min window height have room for two torrents
2016-03-08 15:00:10 -08:00
DC
ff56d818f6
Torrent list styling
...
* Download button is a lot easier to read: white down arrow when off, animated and pulsating green down arrow when downloading, solid green up arrow when seeding
* Play button shows a spinner if you click play before a torrent is ready, then an exclamation point if the torrent still isn't ready after 10 seconds
* Drop target shows up always, not just when the torrent list is empty. Lights up when you drag something
* Fixed alignment, the Xs to delete torrents are now aligned with the + to add a new torrent
2016-03-08 04:20:37 -08:00
Feross Aboukhadijeh
f5a9aa9514
use platform-dependent menu item name for 'close'
2016-03-07 23:06:07 -08:00
Feross Aboukhadijeh
81476a3954
fix bad merge
2016-03-07 22:33:23 -08:00
Feross Aboukhadijeh
0cca67a436
fix fullscreen on Windows
...
The win.isFullScreen() state takes a second to update so we should just
pass the state manually into onToggleFullScreen().
2016-03-07 22:22:25 -08:00
Feross Aboukhadijeh
7c68be4fd4
code style
2016-03-07 22:21:01 -08:00
Feross Aboukhadijeh
8ab2a1415b
update player window title to torrent name (Windows, Linux)
...
This also moves all the state “diffing” for purposes of updating the
app’s window via Electron APIs into one function updateElectron().
2016-03-07 22:20:39 -08:00
DC
4b890ee9f6
Show Blender Foundation videos by default
...
* Finishes the saved torrents feature!
* Torrents load and save correctly. Poster is autogenerated only once.
* Torrents can be paused and restarted
* Download button indicates state:
- White means paused
- Pulsating green means downloading
- Solid green means finished downloading, only seeding
2016-03-07 22:15:47 -08:00
Feross Aboukhadijeh
904d3a6c4b
Merge pull request #79 from feross/ui
...
Fix Windows UX issues
2016-03-07 19:42:45 -08:00
Romain Beaumont
251eff830f
hide menu bar in fullscreen, fix #51
2016-03-08 04:00:02 +01:00
Feross Aboukhadijeh
f32825a79e
Don't resize window if maximized (when player is opened)
...
For #3
2016-03-07 18:42:16 -08:00
Feross Aboukhadijeh
ca68e85520
add comments for window options
2016-03-07 18:18:40 -08:00
Feross Aboukhadijeh
58d7f93ec8
Hide top menu bar unless Alt key is pressed (Windows, Linux)
2016-03-07 18:18:31 -08:00
Feross Aboukhadijeh
1ea055eb4a
show window without 50ms timeout
...
Shouldn’t be needed since @ngoldman changed the <script> tag to async.
2016-03-07 18:15:21 -08:00