1803 Commits

Author SHA1 Message Date
Micah Lee
fa20d7685b Dynamically figure out the total size of the download based on the whether or not the client making the http request accepts gzip 2018-09-21 16:22:37 -07:00
Miguel Jacq
61fe42a218 Merge pull request #779 from micahflee/small_locale_fixes
A few more locale fixes...
2018-09-22 09:15:19 +10:00
Micah Lee
5e942152a2 Remove the 'using_ephemeral' string 2018-09-21 15:11:18 -07:00
Miguel Jacq
d8cf3d47f3 Merge pull request #777 from micahflee/small_locale_fixes
Remove unused wait_for_hs string, and change tests to test with a dif…
2018-09-22 07:27:31 +10:00
Miguel Jacq
e9aa77d51d Merge pull request #772 from micahflee/linux_deps
Make fedora and debian dependencies get added as package dependencies
2018-09-22 06:59:58 +10:00
Micah Lee
20d950e142 Remove no_filenames string, and instead display CLI usage if you don't specify filenames 2018-09-21 13:58:42 -07:00
Micah Lee
13791ec1ab Remove unused wait_for_hs string, and change tests to test with a different string. Also remove a few other unused strings 2018-09-21 13:38:01 -07:00
Micah Lee
e941ce0fd7 If only sharing one file, compress it with gzip, and serve it with gzip compression if the browser supports it 2018-09-21 12:29:23 -07:00
Micah Lee
5003d44cfb Pass common into ShareModeWeb and ReceiveModeWeb 2018-09-21 11:41:49 -07:00
Micah Lee
4127aa4d71 Move more mode-specific logic out of the Web class and into the approprate mode web classes 2018-09-21 11:36:19 -07:00
Micah Lee
05a2ee0559 Refactor the CLI main function to explicitly use 'share' or 'receive' mode 2018-09-21 11:19:36 -07:00
Micah Lee
916c5ed197 Refactor web even more to all of the share and receive web logic into ShareModeWeb and ReceiveModeWeb classes 2018-09-21 11:14:32 -07:00
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