Commit graph

4411 commits

Author SHA1 Message Date
Micah Lee
5068fe8eda Add new WSGI middleware just to attach the Web object to environ, and improve the UI of file upload progress 2018-03-21 18:27:42 -07:00
Micah Lee
4153c11b5d Remove the WSGI middleware, because I'm solving the problem in a different way 2018-03-21 17:51:42 -07:00
Micah Lee
08247c005f For receive mode, use a custom flask Request, and a custom TemporaryFile, in order to keep track of file upload progress 2018-03-21 17:34:11 -07:00
Micah Lee
e8bb691705 Add WSGI middleware in order to capture the progress of POST request uploads 2018-03-19 02:25:22 -07:00
irykoon
58c3d0b1ce Remove advanced CHANGELOG
Thanks to @mig5 for bringing this issue up.

Please feel free to add the changelog back when the time is appropriate.
2018-03-15 03:53:02 +00:00
irykoon
9611217953 Support meek_lite Pluggable Transports on Windows and Mac
According to https://lists.torproject.org/pipermail/tor-announce/2018-March/000153.html: Tor Browser 7.5.1 includes obfs4proxy (0.0.7), which supports meek_lite Pluggable Transports.

Therefore, undo: https://github.com/micahflee/onionshare/pull/649
2018-03-14 16:16:56 +00:00
irykoon
a7908b13b6 Merge branch 'develop' of https://github.com/micahflee/onionshare into develop 2018-03-14 16:08:38 +00:00
Micah Lee
2c3d66de44 Fix bug with validating filenames from args in GUI 2018-03-14 08:34:43 -07:00
Micah Lee
b6a3edd1db Fix bug with shutdown_slug 2018-03-14 08:33:25 -07:00
Micah Lee
0734de68ea Display a template after closing the server, and standardize the style of other simple templates 2018-03-14 08:30:14 -07:00
Micah Lee
5665b3c313 In receive mode, allow uploader to close the server when they are done 2018-03-14 08:16:09 -07:00
Micah Lee
1410b445fa Add receive mode warning, and print notification for each upload, in CLI mode 2018-03-14 07:35:04 -07:00
Micah Lee
15ff966986 Uploading files works in CLI 2018-03-14 04:03:50 -07:00
Miguel Jacq
34cd040e46 Hide the primary_action when Tor gets disconnected 2018-03-14 18:31:07 +11:00
Micah Lee
aeaada0a5c Add flash messages to receive template, and begin implementing upload POST 2018-03-13 05:50:26 -07:00
Micah Lee
89544694cc Fixed bug in validating downloads dir related to moving settings into common 2018-03-13 03:59:52 -07:00
Micah Lee
14d7921bb9 Move settings into the Common object, so the settings are available to all objects (including Web, which is required for receive mode) 2018-03-13 03:28:47 -07:00
Micah Lee
37389f85ac Fix tests after refactoring Common 2018-03-13 02:22:26 -07:00
Micah Lee
c1ff40b5b3 Completely refactor common to make a Common class, and pass that class down into all parts of the program 2018-03-08 10:18:31 -08:00
Micah Lee
69a94c5852 Rename close_after_seconds class to ShutdownTimer 2018-03-08 05:50:23 -08:00
Micah Lee
d2a11e696e Move ZipWriter from common into web, because that's the only place it's used 2018-03-08 05:45:07 -08:00
Micah Lee
73e7e2285f Fix settings test because I moved the default downloads dir 2018-03-08 05:43:45 -08:00
Micah Lee
6cc350b4f6 Started designing HTML/CSS for receive mode 2018-03-07 10:12:10 -08:00
Miguel Jacq
e137b9673f #662 Allow local-only mode in GUI 2018-03-07 16:13:22 +11:00
Micah Lee
ccc2d10604 In CLI, validate downloads_dir when starting in receive mode 2018-03-06 07:40:57 -08:00
Micah Lee
162a50b217 Change default receive mode download directory to ~/OnionShare 2018-03-06 05:25:49 -08:00
Micah Lee
9c6049c1ca Show different message for receive mode than for send mode 2018-03-06 03:24:17 -08:00
Micah Lee
5d280ec68f Move (optional) javascript into file, and use CSP to ban inline js 2018-03-06 03:17:54 -08:00
Micah Lee
f331ff06ae Stop using inline css, and reorganize static folder 2018-03-06 03:03:24 -08:00
Micah Lee
0b26950d5b Create separate templates and static folder, and make the web app use both of these. Yay, now we have real static resources 2018-03-06 02:54:12 -08:00
Micah Lee
05a935e049 Make separate template for send and receive mode 2018-03-06 02:06:44 -08:00
Micah Lee
e1bbed7859 Make separate routes for send and receive modes 2018-03-06 01:50:43 -08:00
Micah Lee
dfe62ff707 Refactor OnionShareGui to use new Web class 2018-03-06 00:56:40 -08:00
Micah Lee
5b29101c34 Refactor web.py to move all the web logic into the Web class, and refactor onionshare (cli) to work with it -- but onionshare_gui is currently broken 2018-03-05 11:06:59 -08:00
Micah Lee
e3a543f66d Fix settings test to account for new downloads_dir setting 2018-03-05 08:54:20 -08:00
Micah Lee
4ee3948908 Web needs to know about receive mode, not the OnionShare object 2018-03-05 08:48:04 -08:00
Micah Lee
10926f6cac Add downloads_dir to settings, make it default to ~/Downloads 2018-03-05 07:52:51 -08:00
Micah Lee
7aa8c7f995 Add command line flag for receive mode 2018-03-05 07:45:10 -08:00
Miguel Jacq
02482fe417 Warn about the costs of using meek_lite bridges 2018-03-05 13:52:50 +11:00
Micah Lee
52d5defdb1 Merge branch 'Baccount-rename-crunching-to-compressing' into develop 2018-03-04 07:55:59 -08:00
Baccount
340d375d2b Update onionshare_gui.py 2018-03-02 18:45:36 -08:00
Baccount
a9090cc225 Update eo.json 2018-03-02 18:44:52 -08:00
Baccount
78a9bd92d2 Update en.json 2018-03-02 18:43:30 -08:00
Miguel Jacq
0495bad3c5 Make downloads window scrollable again. Reset to original size when starting a fresh share 2018-02-28 09:48:23 +11:00
Miguel Jacq
13f1d48391 re-show the 'No downloads yet' label when resetting the counters (e.g starting a new share) 2018-02-27 18:20:05 +11:00
Miguel Jacq
2e1fe47eff Add missing images for the downloads toggle button 2018-02-27 18:08:52 +11:00
Miguel Jacq
fcd84bcb8a Move downloads into their own window that can be toggled on/off 2018-02-27 17:59:46 +11:00
Micah Lee
a56523e81f Merge branch 'develop' 2018-02-26 10:06:54 -08:00
Micah Lee
0f6f6611eb Merge branch 'mig5-disable_meek_lite_on_macos_and_windows' into develop 2018-02-26 10:05:30 -08:00
Miguel Jacq
4cf9d81c35 Uninstantiated system variable 2018-02-26 14:02:15 +11:00