1576 Commits

Author SHA1 Message Date
Miguel Jacq
81db9d3264 More clarity for the returned values in generate_v3_private_key(), also more consistent with generate_v2_private_key() 2018-09-13 12:29:48 +10:00
Miguel Jacq
4a55b7a13b Refactor the onionkey stuff to be more like @maqp's revised version (thanks) 2018-09-13 12:21:38 +10:00
Miguel Jacq
15835f1c38 Update cryptography dependency to 2.3.1 2018-09-13 11:35:28 +10:00
Miguel Jacq
2aa6a72ba4 Only wrap the v3 onion if the window is too small to show it unwrapped 2018-08-28 09:33:49 +10:00
Miguel Jacq
1e70df4f22 Don't try and parse Tor version in order whether or not to show v2-only features. Just note in the QLabel what is v2-only. Still force v2 legacy mode on when using persistence or stealth. 2018-08-23 11:02:28 +10:00
Miguel Jacq
a5cb8385af Add missing locale key for legacy v2 onions 2018-08-22 17:03:15 +10:00
Miguel Jacq
a3c89bdf67 Fix tests 2018-08-22 11:50:16 +10:00
Miguel Jacq
8c31505b90 Rather than hide persistence/stealth mode altogether if the Tor version is high enough for v3, give the user the option to 'use legacy v2 onions' in Settings dialog, so that they may continue to use persistence etc 2018-08-22 11:45:08 +10:00
Miguel Jacq
5252d5d94a Introduce v3 onion support 2018-08-21 19:31:02 +10:00
Micah Lee
b27b0c20d9 Merge branch 'develop' into receiver-mode-gui 2018-05-21 23:00:41 -07:00
Micah Lee
be36aeb277 Merge branch 'mig5-fix_python_setup' into develop 2018-05-21 23:00:10 -07:00
Micah Lee
cf2a2076fe Remove TODO comment 2018-05-20 15:33:13 -07:00
Micah Lee
e1958193ff Improve the CLI output for receive mode 2018-05-20 15:20:21 -07:00
Micah Lee
5bce32fc7d Make it so the open folder button works in Linux, with nautilus 2018-05-20 14:40:27 -07:00
Micah Lee
880a21086c Rename uploaded files 2018-05-20 14:12:53 -07:00
Micah Lee
06693bded2 Fixed "RuntimeError: dictionary changed size during iteration" exception while updating upload progress 2018-05-20 14:05:34 -07:00
Micah Lee
4505b348d9 Only mark a file upload complete when it closes, which makes the open folder button appear 2018-05-20 13:13:06 -07:00
Micah Lee
9f4e287b4b Remove REQUEST_UPLOAD_NEW_FILE_STARTED event, because it's not actually needed 2018-05-20 12:07:15 -07:00
Micah Lee
e5ff9c225f Make the receive.html template not use slugs if receive_public_mode is True, and fix some bugs with receive routes 2018-05-20 11:16:09 -07:00
Micah Lee
5178f49718 Only show other_page_loaded message on actual 404s 2018-05-20 11:04:45 -07:00
Micah Lee
d8d1dc800d Allow file uploads to finish, and improve uploads styling 2018-05-19 22:58:55 -07:00
Micah Lee
28fe7a4cf5 Refactor uploads GUI so that each upload POST has one progess bar, and a list of files, with partial styling 2018-05-19 22:36:08 -07:00
Micah Lee
9ec783c6a2 Fix bug where ReceiveModeRequest was not recognizing an upload request if the POST included a slug when receive_public_mode == True 2018-05-19 21:20:51 -07:00
Micah Lee
0b5a5d08dd Move downloads_dir validation into the /upload request in Web, and display an error in both CLI and GUI 2018-05-19 21:11:57 -07:00
Micah Lee
f9f0086226 Move downloads dir validation into Common 2018-05-19 20:51:01 -07:00
Micah Lee
b8aa26d72e Start building File/Upload/Uploads GUI 2018-05-08 14:28:02 -07:00
Micah Lee
833c02b4d5 ReceiveModeRequest should only deal with upload_ids for upload requests, not for other requests 2018-05-08 13:35:50 -07:00
Micah Lee
1db37e13f5 Start making Web events actually put Upload objects into Uploads 2018-05-07 23:07:11 -07:00
Micah Lee
9d91e07d20 Renamed Mode.handle_request_download to handle_request_started 2018-05-07 22:16:45 -07:00
Micah Lee
26a94fa161 Make receive mode events just like share mode, and rename REQUEST_DOWNLOAD to REQUEST_SHARE 2018-05-07 22:15:29 -07:00
Micah Lee
de43cd22fa Create an Upload class within Uploads, and add methods to Uploads to add, update, cancel, and reset 2018-05-07 16:38:29 -07:00
Micah Lee
613c3dfbd6 Move all stylesheets definitions into Common, so now we no longer have blocks of css spread across the GUI code, and it's easier to re-use stylesheets 2018-05-07 16:21:22 -07:00
Micah Lee
4f52b4fc86 Make ReceiveMode start using Uploads 2018-05-07 15:44:04 -07:00
Micah Lee
2a9f60ccee Rename Downloads method names to remove the word "download" 2018-05-04 18:08:23 -07:00
Micah Lee
925f96ad0a Rename some images to reuse in ReceiveMode, and make new upload window button images 2018-05-04 17:57:30 -07:00
Micah Lee
9b4bc135ec Tweak language of receive mode options 2018-05-04 17:33:18 -07:00
Micah Lee
e7c3db3b57 Refactor ShareMode and Downloads to remove the Downloads container widget, and make Downloads itself the QScrollArea 2018-05-04 16:57:17 -07:00
Micah Lee
7a71c4376a Remove --shutdown-timeout as an option for onionshare_gui, since GUI options are set in the settings dialog. Also fixed a bug where --local-only and --shutdown-timeout were not compatible in onionshare CLI 2018-05-04 16:43:30 -07:00
Micah Lee
87e8652c18 Fix stay_open regression bug. Before, it was closing automatically even when the setting wasn't set. Also, remove the --stay-open option from the GUI, since GUI settings are set in the settings dialog not cli args 2018-05-04 16:35:32 -07:00
Micah Lee
bc5f299ecd Start building Uploads widget 2018-05-04 16:26:54 -07:00
Micah Lee
5aa1310b26 Refactor ReceiveMode and Downloads, to push more download-related logic into Downloads 2018-05-04 16:06:24 -07:00
Micah Lee
b35bd976d7 Make receive mode info widget show when server is stated, hide when it is not started 2018-05-04 15:53:34 -07:00
Micah Lee
114b9d497b Ignore __pycache__ folders 2018-05-04 15:40:22 -07:00
Micah Lee
cc1baa74c5 Start creating the information widget for receive mode, and refactor for share mode 2018-05-03 09:29:54 -07:00
Micah Lee
95129e3f37 Make clicking the mode switcher buttons properly adjust the size of the window 2018-05-03 09:14:16 -07:00
Miguel Jacq
bb6af18855 Fix python setup process for share/static dir contents 2018-05-02 14:41:15 +10:00
Micah Lee
51730883ad Fix issue in test that flake discovered 2018-04-30 10:01:23 -07:00
Micah Lee
876e7145d0 Add a few receive mode web tests, to test the receive_allow_receiver_shutdown and receive_public_mode settings 2018-04-29 18:19:00 -07:00
Micah Lee
69b799fe80 Implemented test: test_share_mode_close_after_first_download 2018-04-29 18:00:10 -07:00
Micah Lee
b162104b55 Write a simple Web test for share mode 2018-04-29 17:51:58 -07:00