Micah Lee
|
bd832051e0
|
Make a new onionshare_gui.GuiCommon object, and move css from onionshare.Common into it
|
2019-10-20 20:01:09 -07:00 |
|
Micah Lee
|
12d2bb700e
|
Use .format to format file sizes again
|
2019-10-20 18:14:00 -07:00 |
|
Micah Lee
|
3085e4ee0f
|
Fix syntax errors
|
2019-10-20 17:59:12 -07:00 |
|
Micah Lee
|
16bcbbf55d
|
Replace .format with python 3.6 f-strings in onionshare module
|
2019-10-20 10:15:16 -07:00 |
|
Miguel Jacq
|
3fb232c1f3
|
Communicate a 405 error properly to the UI
|
2019-10-19 14:50:40 +11:00 |
|
Micah Lee
|
24fb942059
|
Merge branch 'static_bug' into develop
|
2019-10-13 09:55:51 -07:00 |
|
Micah Lee
|
8d50e4782e
|
Initialize the flask app with a random static path, to avoid issue where /static doesn't work in website mode
|
2019-10-13 09:55:36 -07:00 |
|
Micah Lee
|
a299ec95ce
|
Fix how Serbian (latin) is written
|
2019-10-13 09:39:17 -07:00 |
|
Micah Lee
|
2c323aaa40
|
Added new languages (Arabic, Dutch, Persian, Romanian, Serbian) and removed one (Finnish)
|
2019-10-12 21:50:33 -07:00 |
|
Micah Lee
|
88e151d414
|
Format all code using black
|
2019-10-12 21:01:25 -07:00 |
|
googan-star
|
337cc0a498
|
Prettify JSON dump
|
2019-10-02 10:55:50 +00:00 |
|
Micah Lee
|
ac4c6d7c07
|
Merge pull request #1030 from mig5/1029_optional_csp
Make setting the Content-Security-Policy header optional so it doesn't break website mode shares
|
2019-09-22 12:57:13 -07:00 |
|
Miguel Jacq
|
d83b75cc04
|
Invert the CSP header setting and put it in its own Website Mode settings group. Make the CSP header mandatory for share/receive modes, optional for website mode only.
|
2019-09-22 16:49:31 +10:00 |
|
Miguel Jacq
|
bd493d20a7
|
Ensure the backend receives the latest settings object before starting the onion service, and likewise for the GUI, so that we absolutely always save the private key for persistence back to the json settings file when we need to
|
2019-09-16 14:51:16 +10:00 |
|
Miguel Jacq
|
52f8ff5dee
|
Fix how security headers get added
|
2019-09-16 12:30:20 +10:00 |
|
Miguel Jacq
|
a0d4e2880f
|
Make setting the Content-Security-Policy header optional so it doesn't break website mode shares
|
2019-09-16 12:10:17 +10:00 |
|
Micah Lee
|
320cac0ad1
|
Merge pull request #1025 from micahflee/994_breadcrumbs
Breadcrumbs
|
2019-09-15 17:58:10 -07:00 |
|
Micah Lee
|
cc965a875c
|
Validate filenames, and require filenames be passed in, in website mode as well as share mode
|
2019-09-15 17:06:03 -07:00 |
|
Micah Lee
|
b844dfdccf
|
Add breadcrumbs to share mode
|
2019-09-15 16:46:28 -07:00 |
|
Micah Lee
|
cccbe35276
|
Add breadcrumbs for website mode
|
2019-09-15 16:44:24 -07:00 |
|
Micah Lee
|
52d72642d6
|
Fix bug with rendering index.html files in subdirs
|
2019-09-15 16:23:19 -07:00 |
|
Micah Lee
|
d2b3f0c2ed
|
Allow 404 errors to work in receive mode
|
2019-09-15 14:46:29 -07:00 |
|
Miguel Jacq
|
36fdd3f1d5
|
Ensure we increment and return the history_id when throwing error404() in website mode. Add a route for /favicon.ico unless we are in website mode (website might have its own favicon)
|
2019-09-09 17:23:09 +10:00 |
|
Miguel Jacq
|
2c87ea55ff
|
Fix the discrepancy between SendBaseModeWeb and Web objects' separate cur_history_id attibutes, ensuring that when we call web.error404() we send a new history_id integer for communicating back to the frontend. Add tests for this
|
2019-09-09 16:35:05 +10:00 |
|
Micah Lee
|
bd3a7fe1f7
|
Don't consider individual downloads in the in_progress counter
|
2019-09-08 11:58:44 -07:00 |
|
Micah Lee
|
79f563e443
|
Make sure IndividualFileHistoryItem widgets display properly in receive mode too
|
2019-09-08 09:45:53 -07:00 |
|
Micah Lee
|
bc210c954d
|
Remove method from IndividualFileHistoryItem, and only display these widgets on 200 and 404 requests, not all of the others
|
2019-09-08 09:35:44 -07:00 |
|
Micah Lee
|
bef116760d
|
Make the IndividualFileHistoryItem widgets have color
|
2019-09-03 22:31:13 -07:00 |
|
Micah Lee
|
4ee6647ee5
|
Rename a few more count variables to cur_history_id
|
2019-09-03 22:20:52 -07:00 |
|
Micah Lee
|
54ba711cbf
|
Rename download_count/download_id, upload_count/upload_id, and visit_count/visit_id to simply cur_history_id/history_id, and make all errors create IndividualFileHistoryItem widgets
|
2019-09-03 22:18:30 -07:00 |
|
Micah Lee
|
11860b55f2
|
Show IndividualFileHistoryItem widgets for directory listings
|
2019-09-03 21:59:49 -07:00 |
|
Micah Lee
|
37a2f6369c
|
Start making IndividualFileHistoryItem widgets appear in the history, and make non-GET requests return 405 Method Not Allowed
|
2019-09-03 21:46:32 -07:00 |
|
Micah Lee
|
727a3956db
|
Make it so all of the state variables, including self.file_info get reset in SendBaseModeWEeb.set_file_info, which fixes the bug where old files you were sharing would end up in new zip files
|
2019-09-03 20:52:59 -07:00 |
|
Micah Lee
|
c86ad56a56
|
When downloading individual files in either share or website mode, gzip the file if needed, and stream the file in such a way that a progress bar is possible
|
2019-09-02 19:45:14 -07:00 |
|
Micah Lee
|
113cd7eb4b
|
Remove the "Allow downloading individual files" setting altogether, and make it just automatically enabled if "Stop sharing..." is disabled
|
2019-09-01 21:22:59 -07:00 |
|
Micah Lee
|
1232eb1072
|
Merge SendBaseModeWeb.build_file_list into SendBaseModeWeb.set_file_info function
|
2019-09-01 20:53:21 -07:00 |
|
Micah Lee
|
9604ee3881
|
Load default settings in CLI mode, of config is not passed in
|
2019-09-01 20:45:19 -07:00 |
|
Micah Lee
|
fdb94eba0c
|
Only allow downloading of individual files if it is enabled in settings, and stop sharing automatically isn't
|
2019-09-01 20:36:30 -07:00 |
|
Micah Lee
|
1ceaaaf533
|
Add new "Allow downloading of individual files" checkbox to share settings, and only allow it to be enabled when "Stop sharing after files have been sent" is unchecked
|
2019-09-01 20:15:30 -07:00 |
|
Micah Lee
|
77d5b29c76
|
Clear the file list every time a share starts
|
2019-09-01 19:59:00 -07:00 |
|
Micah Lee
|
2143d7016e
|
Add Web.generate_static_url_path back, so each share has its own static path
|
2019-09-01 16:03:57 -07:00 |
|
Micah Lee
|
1e83a1bfd6
|
Oops, need to call directory_listing with filesystem_path
|
2019-09-01 16:02:10 -07:00 |
|
Micah Lee
|
bffbc1930d
|
Move all mode-specific code out of SendBaseModeWeb and into inherited methods in WebsiteModeWeb and ShareModeWeb
|
2019-09-01 18:44:44 -04:00 |
|
Micah Lee
|
f2bd2e943d
|
Rename BaseModeWeb to SendBaseModeWeb, because this code is only actually shared by send modes (Share and Website, not Receive)
|
2019-09-01 18:05:53 -04:00 |
|
Micah Lee
|
e9e0302fd6
|
Merge branch 'share-code' of https://github.com/hiromipaw/onionshare into hiromipaw-share-code
|
2019-09-01 17:49:22 -04:00 |
|
Vinicius Zavam
|
b0b5907566
|
DragonFly is *BSD; bringing back #716
|
2019-07-23 15:09:11 +00:00 |
|
hiro
|
5c0c45a6de
|
Clean up rendering logic between share and website mode
|
2019-06-14 18:21:12 +02:00 |
|
hiro
|
7b8a83854d
|
Remove reset of web app path in receive mode
|
2019-06-13 22:58:33 +02:00 |
|
hiro
|
347b25d5a0
|
Revert "Generate a new static_url_path each time the server is stopped and started again"
This change creates problems with how website mode renders assets.
This reverts commit ae110026e72bc7bd38aa515f52fb52aa3236e8b1.
|
2019-06-13 22:56:48 +02:00 |
|
hiro
|
e6f114c677
|
Refactor directory_listing function
|
2019-06-13 21:47:49 +02:00 |
|