1891 Commits

Author SHA1 Message Date
Micah Lee
4f27fac840 Refactor web to push share and receive mode logic into their respective files 2018-09-20 23:58:27 -07:00
Micah Lee
d699a7f641 Fix tests to point to new location of ZipWriter class 2018-09-20 23:45:13 -07:00
Micah Lee
48ec4ad583 Split the web module into different files for receive mode and share mode logic 2018-09-20 23:43:04 -07:00
Micah Lee
fe0657128b Make web a module, so I can split it into multiple files 2018-09-20 23:31:52 -07:00
Micah Lee
0ea31d39f7 Only add the download_filename to cleanup_filenames (which get deleted) if the file is zipped up. Otherwise, OnionShare deletes the original file 2018-09-20 23:18:17 -07:00
Miguel Jacq
6110ab8686 Merge pull request #773 from micahflee/ctrl_c
Smoothly quit when Ctrl-C is pressed
2018-09-21 16:17:28 +10:00
Micah Lee
948b406c2a Smoothly quit when Ctrl-C is pressed 2018-09-20 23:09:14 -07:00
Micah Lee
574ef19515 Change more references to web.zip_filesize to be refer to web.download_filesize 2018-09-20 12:25:07 -07:00
Micah Lee
c3a4698153 Also package the new python modules 2018-09-20 09:30:44 -07:00
Micah Lee
a7453bf462 Make fedora and debian dependencies get added to packages built 2018-09-20 09:26:11 -07:00
Micah Lee
017ee5250d When there is only 1 file being shared, don't zip it 2018-09-20 09:14:56 -07:00
Micah Lee
dd15387339 Remove obsolete strings (#770) 2018-09-19 21:44:37 -07:00
Miguel Jacq
95ccf3ec37 Merge pull request #770 from micahflee/history_ui
New UI to always show history
2018-09-20 13:21:38 +10:00
Micah Lee
5dcb06ae1e Remove adjustSize that was causing issues 2018-09-19 20:17:23 -07:00
Micah Lee
15cb534dc7 Set minimum width for whole application 2018-09-19 19:39:59 -07:00
Micah Lee
a42c70bcc0 Only add a stretch at the bottom of the layout in receive mode, not share mode 2018-09-19 19:38:29 -07:00
Micah Lee
1860fb3a92 Remove upload/download toggle buttons 2018-09-19 19:36:16 -07:00
Micah Lee
c7a9db84d8 Always show uploads and downloads 2018-09-19 19:00:12 -07:00
Micah Lee
f32f710280 Add a horizontal layout wrapper around the vertical layout, in order to optionally add horizontal widgets to Modes 2018-09-19 18:50:42 -07:00
Micah Lee
845fe3f945 Merge branch 'develop' of github.com:micahflee/onionshare into develop 2018-09-19 18:40:14 -07:00
Micah Lee
d068490519 Merge branch 'send_public_mode_arg_to_web_start' of https://github.com/mig5/onionshare into mig5-send_public_mode_arg_to_web_start 2018-09-19 18:39:07 -07:00
Micah Lee
ebd9990a6e Merge pull request #766 from mig5/clear_history_button
Add 'clear history' button to downloads and uploads windows
2018-09-19 18:36:50 -07:00
Micah Lee
d0e99f1a95 Merge pull request #762 from mig5/textwrap_upload_filename_widget
#704 wrap the upload filename label if too long
2018-09-19 18:33:30 -07:00
Miguel Jacq
8296f373d4 Merge pull request #769 from micahflee/fix_app_port
Choose a port *before* starting the web service
2018-09-20 11:28:45 +10:00
Micah Lee
b8d24515e8 Choose a port *before* starting the web service 2018-09-19 18:14:42 -07:00
Micah Lee
829ba7f6e1 Merge pull request #768 from mig5/start_web_thread_earlier_than_onion_service
Start the WebThread earlier than the Onion service. This gives it a c…
2018-09-19 18:03:04 -07:00
Miguel Jacq
34e7290b06 Start the WebThread earlier than the Onion service. This gives it a chance to generate its slug before the Onion Service finishes starting up, which can otherwise lead to a crash 2018-09-19 15:07:04 +10:00
Miguel Jacq
4ebb0a3d57 Log the public_mode flag as well 2018-09-19 14:53:33 +10:00
Miguel Jacq
70b0add9ef Send the public_mode argument to web.start in the WebThread 2018-09-19 14:40:30 +10:00
Miguel Jacq
10f94de237 Add 'clear history' button to downloads and uploads windows 2018-09-19 14:37:07 +10:00
Miguel Jacq
43a8afae9c Merge pull request #758 from micahflee/665_cancel_compression
Fix zip progress bar not canceling problem
2018-09-19 10:59:11 +10:00
Micah Lee
e9fdd623eb Merge pull request #756 from mig5/reset_uploads_on_share_restart
Close the upload widget on reset so that it properly disappears from the Uploads window
2018-09-18 17:58:25 -07:00
Miguel Jacq
baa75cc93c #704 wrap the upload filename label if too long 2018-09-19 10:57:12 +10:00
Micah Lee
31cdac46c6 Merge pull request #755 from mig5/upload_icon_updating
Increment/decrement the upload counters
2018-09-18 17:50:39 -07:00
Miguel Jacq
cd3ba46319 Merge pull request #761 from micahflee/760_fix_tor_crash
Fixes tor crash
2018-09-19 10:46:32 +10:00
Micah Lee
066e8c58ed Import onion exceptions that were missing 2018-09-18 17:44:54 -07:00
Micah Lee
04432a5cfa Tor version must actually be 0.3.3.1 for ephemeral v3 onion services 2018-09-18 17:31:40 -07:00
Micah Lee
739d48a183 Properly handle exceptions in CLI, and pass the actual exception message in TorErrorProtocolError exceptions 2018-09-18 17:17:25 -07:00
Micah Lee
f3998d2f3d Remove some debug logs 2018-09-18 16:58:16 -07:00
Miguel Jacq
02ba4b056f Merge pull request #754 from micahflee/update-deps
Update deps
2018-09-19 09:52:57 +10:00
Micah Lee
2378529cc0 Merge pull request #757 from mig5/auto_scroll_download_upload_window
Fix the auto-scrolling to bottom of Download and Upload windows
2018-09-18 16:35:17 -07:00
Micah Lee
901ecb6adc Set self.cancel_compression to false in the set_file_info() function instead of Web's constructor, so it gets reset every time 2018-09-18 16:28:54 -07:00
Micah Lee
2f1e866652 While I'm at it, bump the version to 2.0.dev 2018-09-18 16:19:07 -07:00
Micah Lee
0ec2e67f2f Update NSIS file to no longer have to specify each individual file (omg I should have done this foreever ago) 2018-09-18 16:05:54 -07:00
Micah Lee
3afa9b6b19 For Mac build instructions, update a command to use Python 3.7 instead of 3.6, and install pip dependencies without sudo. For Windows, install requirements.txt instead of requirements-windows.txt. Also pywin32 is no longer a dependency, so remove it from build instructions. 2018-09-18 15:37:33 -07:00
Micah Lee
ed6d2ee318 Generated a new requirements.txt by installing the latest version of
these pip packages:

pip3 install certifi cryptography Flask PyInstaller PyQt5 PySocks pycrypto pynacl requests stem

Then running "pip3 freeze". Also, deleted requirements-windows.txt. Mac
and Windows can share.
2018-09-18 15:35:10 -07:00
Micah Lee
1dab03abbd Make Web.set_file_info return False on cancel 2018-09-18 13:42:13 -07:00
Micah Lee
c146d1a352 We shouldn't call CompressThread.cancel() there because it's already called in a signal 2018-09-18 13:39:09 -07:00
Miguel Jacq
8253990eed Update the path to the Tor data from inside the mounted .dmg, and the libevent version name 2018-09-18 15:36:00 +10:00
Miguel Jacq
0cbbd5a923 Re-add the python dependencies necessary for v3 onion support, which got lost in the merge 2018-09-18 15:35:26 +10:00