653 Commits

Author SHA1 Message Date
Micah Lee
fa7927725a Remove more CLI strings 2019-04-21 12:58:53 -07:00
Miguel Jacq
ddcf6990ff Fix loading custom config if provided 2019-04-20 14:43:04 +10:00
Miguel Jacq
62e668addd Unlocalize CLI strings 2019-04-20 10:31:34 +10:00
Micah Lee
4ea457ffe3 Merge pull request #959 from micahflee/958_verbose
Rename --debug to --verbose
2019-04-19 09:48:39 -07:00
Micah Lee
354abb9667 Change a few more references of debug to verbose 2019-04-19 09:32:11 -07:00
Micah Lee
2627a37015 Merge branch 'develop' into 918_old_linux 2019-04-18 19:57:46 -07:00
Micah Lee
d5c60f8f70 Rename debug to verbose in all relevant places 2019-04-18 19:53:21 -07:00
Miguel Jacq
b4abf0fcd0 include years in the dates from CLI, in case it's a very long timer or perhaps we're crossing into a new year 2019-03-25 15:33:00 +11:00
Miguel Jacq
57952dba8b CLI flags to contain requested hyphens 2019-03-25 15:30:34 +11:00
Miguel Jacq
eb823042bb Standardise all startup_timer, scheduled_start attributes as 'autostart_timer' 2019-03-25 15:28:31 +11:00
Miguel Jacq
a4c8865dcd Standardise all shutdown_timer, shutdown_timeout, timeout attributes as 'autostop_timer' 2019-03-25 15:05:54 +11:00
Miguel Jacq
f6f5ff0b7e Fix conflicts 2019-03-25 13:43:08 +11:00
Miguel Jacq
b353db6997 rename CLI args for autostart/stop timers 2019-03-24 18:19:50 +11:00
Miguel Jacq
2dcda9d473 Don't allow setting an auto-stop timer that is shorter than the auto-start timer 2019-03-24 16:35:53 +11:00
Micah Lee
b62714628d Merge pull request #941 from mig5/configurable_connect_timeout
Allow the bundled Tor connection timeout to be configurable from the CLI
2019-03-22 18:00:05 -07:00
Micah Lee
06731ce56a Merge pull request #935 from mig5/fix_receive_mode_folder_collision
On a folder name collision, make sure we update the self.receive_mode_dir attribute
2019-03-22 17:50:33 -07:00
Miguel Jacq
d7ba11ef0c Don't force connect timeout of 150 when using Bridges if a user-supplied connect timeout has been passed in already 2019-03-12 15:36:49 +11:00
Miguel Jacq
726cb0ad9e Allow the bundled Tor connection timeout to be configurable from the CLI 2019-03-12 15:29:07 +11:00
Miguel Jacq
2666bb2dae Use png rather than svg for warning image. Concatenate flash messages with commas to reduce page height. Allow warning message to be wider 2019-03-11 17:27:17 +11:00
Miguel Jacq
84aa627d1f Various Startup Timer fixes for strings, bundled mode, stealth mode, startup/shutdown time clashes 2019-03-11 15:55:17 +11:00
Miguel Jacq
58f5d4ceb0 Remove unnecessary attribute from OnionShare object 2019-03-10 09:06:27 +11:00
Miguel Jacq
188281e8d2 On a folder name collision, make sure we update the self.receive_mode_dir attribute after creating a unique folder with a suffix. Adjust Receive Mode tests to test for this 2019-03-08 12:54:10 +11:00
Miguel Jacq
26d262ccfc Add a Startup Timer feature (scheduled start / dead man's switch) 2019-03-05 10:28:27 +11:00
Micah Lee
f1c8ba9344 Add try/except block when stubbing flash's show_server_banner, in order to support older versions of flask 2019-02-24 18:11:13 -08:00
Miguel Jacq
7690a63935 Always reset the slug to an empty string when the web server stops 2019-02-19 08:37:32 +11:00
Micah Lee
6a658982a0 Prevent crashing when cleaning up file, if file is still in use 2019-02-18 12:28:02 -08:00
Micah Lee
2220281e80 Fix minor bugs: When making the ajax POST request, strip the trailing slash from window.location.pathname so the URL works in public mode; and add a newline before printing message when receiving file 2019-02-18 10:57:20 -08:00
Micah Lee
430396a433 Merge branch 'develop' into 899_send_files_ajax 2019-02-17 10:08:01 -08:00
Miguel Jacq
5ba7d544bc Update the GUI when the browser has canceled an upload in Receive Mode. Don't increment the completed counter 2019-02-17 15:49:37 +11:00
Micah Lee
032d545030 Make uploading over ajax, and ajax flash messages, work 2019-02-15 14:52:00 -08:00
Micah Lee
18fe0b1760 Refactor upload_logic to work with both normal uploads and ajax uploads 2019-02-14 10:11:04 -08:00
Micah Lee
109276661b Update the noscript upload instructions on the receive mode upload page, and add separate page for instructions to disable NoScript XSS setting 2019-02-14 09:31:39 -08:00
Micah Lee
38238fec40 Oops, was passing self.upload_error into the wrong close function 2019-02-12 16:02:19 -08:00
Micah Lee
9f611331c6 Catch more exceptions in ReceiveModeFile that trigger on a full disk 2019-02-12 15:54:25 -08:00
Micah Lee
2ee61f04ee Gracefully handle exceptions while writing a file during a receive mode transfer (like out of disk space error) 2019-02-12 14:36:14 -08:00
Micah Lee
eebeba977f Fix typo in comment 2019-02-12 14:30:41 -08:00
Micah Lee
670b967020 When you hit an upload_error, alert the user 2019-02-11 23:23:31 -08:00
Micah Lee
e9ac9fe1b6 Call secure_filename on the filename first thing, so we don't end up working with multiple versions of the same filename 2019-02-11 23:05:51 -08:00
Micah Lee
b82d10ad92 Refactor receive mode to start saving files to data_dir with .part extension while they're downloading 2019-02-11 22:46:39 -08:00
Miguel Jacq
174d821225 Support persistent v3 onions 2019-02-11 11:36:18 +11:00
Micah Lee
987e6802d3 Update available languages 2019-02-10 10:40:24 -08:00
Micah Lee
afc913e243 Separete onion settings into their own group, and remove css that was breaking the look of the "Copy HidServAuth" button 2019-01-28 20:30:05 -08:00
Micah Lee
5a3d2cb60a Merge branch 'develop' into 812_v3_tor_version 2019-01-28 17:22:02 -08:00
Micah Lee
17ff39b944 Tests are failing because a receive mode dir already exists, so this makes them pass 2019-01-21 17:43:13 -08:00
Micah Lee
dcca933d13 Oops, finish resolving merge conflict 2019-01-21 17:32:58 -08:00
Micah Lee
03e38b1fae Merge branch 'develop' into 866_receive_mode_crash 2019-01-21 17:28:24 -08:00
Micah Lee
d68db75c68 Write test to confirm that submitting the receive mode form without selecting files doesn't change in_progress_count or completed_count 2019-01-21 17:11:58 -08:00
Micah Lee
a658b65140 Don't update the GUI at all untless it has been told about the request 2019-01-21 11:16:55 -08:00
Micah Lee
efe45288c9 Prevent ReceiveModeRequest.file_write_func from sending a message to the GUI if the request should be closed 2019-01-21 10:56:31 -08:00
Micah Lee
8dddc03e59 In receive mode, only tell the GUI that a new request is coming in if it contains files 2019-01-20 16:20:36 -08:00