775 Commits

Author SHA1 Message Date
Saptak S
00cd37bfd3
Adds check whether username already exists 2020-08-21 17:46:21 +05:30
Micah Lee
9482461a00
Split chat messages into username and message, and change UI for displaying messages 2020-08-19 19:40:00 -04:00
Micah Lee
8e1b34ce13 Merge branch 'chat' of https://github.com/SaptakS/onionshare into SaptakS-chat 2020-08-19 18:56:55 -04:00
Saptak S
992ced72f6
Adds noscript HTML 2020-07-04 19:25:38 +05:30
Saptak S
afc6a2f4ce
Update username via both socket and ajax
- socket takes care of modifying the username in the forked socket
session and sending a status message to chat window
- ajax request takes care of updating the flask session so that on
refresh or re-opening of the URL in same browser, the username remains
same
2020-05-11 12:51:46 +05:30
Saptak S
89b112ea95
Refactors logic for chat user list and scroll
- Refactors server side code to use instance variable instead of
background thread to generate a list of connected users
- Send this user list anytime any change is made to the list. It can
be: join, update username, disconnect
- In js, render the entire user list everytime it is received.
- Scroll to the bottom of the chat, everytime the current user
sends a message
- Else, if already at the bottom of the chat, scroll to the bottom
after appending incoming status or chat message. But if the user
is scrolled up in the chat window, then do not scroll to the bottom
- When refreshed or close tab is clicked, default browser warning is
shown.
- On receiving disconnect, the browser removes user from room.
- If refreshed, it is shown as if the user left and joined again.
2020-05-04 03:47:13 +05:30
Saptak S
380cf94856
Merge branch 'develop' into chat 2020-05-02 02:49:49 +05:30
Micah Lee
c07eda330d
Fix linux tor paths, make event handler properly quit thread 2020-04-06 19:49:49 -07:00
Micah Lee
da13a166a1
Merge branch '910_flatpak' of github.com:micahflee/onionshare into 910_flatpak 2020-04-05 21:03:29 -07:00
Micah Lee
097f5f6047
Merge branch 'develop' into 1064_tabs 2020-03-22 11:23:24 -07:00
Saptak S
c63a7605ee
Adds list of active users in the chat and allows username change
- allows users to update their username and save the new username
- runs a background thread for every user session which emits a
broadcast with the username so every user can build their list of
active users in the frontend via the socket information
- on updating username, stop the old thread and start a new thread
with the new username being emitted. The username is updated in
everyone's list along with a status message for the same.
2020-03-12 14:54:48 +05:30
Saptak S
819e406d46
Create GUI for onionshare chat mode with the tab workflow 2020-03-09 17:44:00 +05:30
Saptak S
2c938fd777
Create web UI and socket code for the chat interface 2020-03-08 14:51:43 +05:30
Micah Lee
b00260afeb
Change colors 2020-03-08 12:38:25 +05:30
Sam
7b81f6f6b3 Added ascii-logo 2020-01-03 14:21:31 -05:00
Micah Lee
a217e54d28
Refactor Onion to store all state for auto-start timer directly in the mode settings, and not in the Onion object itself 2019-12-08 12:51:30 -08:00
Micah Lee
76d109747e
Move private_key, hidservauth_string, and password from "persistent" mode settings to "onion" mode settings; and make it so the onion settings are always saved in each tab, even if the tab is not persistent, so if you stop and start a service in the same tab it has the same onion address and password 2019-12-08 10:13:56 -08:00
Miguel Jacq
9ce2c5cedf
Ensure we always set the service id, so we can stop the right one (particularly when scheduling a share) 2019-11-29 18:40:45 +11:00
Miguel Jacq
e18c6bf768
Remove duplicate comment 2019-11-29 16:46:31 +11:00
Miguel Jacq
35e6e88ea1
Fix up autostart (scheduled shares) 2019-11-29 16:38:34 +11:00
Micah Lee
c588783f57
Make cleaning up the onion more reliably kill the tor subprocess, and make iit so testing tor settings in the settings dialog always uses a tmp tor data dir 2019-11-28 20:32:28 -08:00
Micah Lee
849176ac54
Fix typos in comments 2019-11-28 19:30:48 -08:00
Micah Lee
3fe6d43d9d
If running from onionshare CLI, use a new temporary tor data dir, and if running onionshare-gui, always use the same tor data dir 2019-11-28 14:02:00 -08:00
Micah Lee
e253b06549
Update tor paths to use paths relative to the binary, instead of absolute paths 2019-11-27 15:41:37 -08:00
Micah Lee
347d6ab19f
Make Common.get_resource_path find the resource path relative to the binary, instead of using an absolute path 2019-11-27 14:54:41 -08:00
Micah Lee
28bc37d16f
Start refactoring Onion to allow for managing a separate onion service for each tab 2019-11-10 17:55:07 -08:00
Micah Lee
29620cb39c
When shutting down the web server, only use basic auth if there is a password -- this avoids warnings when running tests 2019-11-10 13:36:35 -08:00
Micah Lee
e18d2c3ea2
Add CLI tests in 2019-11-08 16:44:21 +08:00
Micah Lee
1787adabc7
Start writing tabs tests 2019-11-03 00:47:55 -07:00
Micah Lee
d61fc45862
Make it so passing in --persistent [filename] in the CLI, with no other args, will load that persistent mode settings file and start the server, without needing to do other validations like passing in a list of filenames 2019-11-02 23:32:44 -07:00
Micah Lee
1bca467ce3
When disabling persistence, or closing a persistent tab, delete the mode settings file for that tab 2019-11-02 23:06:26 -07:00
Micah Lee
a5f8fee065
Starting to make persistent tabs persistent 2019-11-02 21:45:55 -07:00
Micah Lee
1b36fe4036
Make ModeSettings be able to save and load 2019-11-02 21:00:23 -07:00
Micah Lee
69bd165278
Add stub save function in ModeSettings 2019-11-02 19:12:06 -07:00
Micah Lee
4b416141c2
Stop worrying about common.gui.config in settings and update check 2019-11-02 17:13:06 -07:00
Micah Lee
b815b0e9e2
Remove mode settings from global settings object 2019-11-02 17:06:13 -07:00
Micah Lee
87918c5d89
Fix CLI tests, and also fix bug related to autostop_sharing that the tests found 2019-11-02 17:01:47 -07:00
Micah Lee
9f0e031c8b
Refactor onionshare CLI to accept and use all mode settings 2019-11-02 15:37:21 -07:00
Micah Lee
b8f1299496
Fix CLI to work with mode settings 2019-11-02 14:56:40 -07:00
Micah Lee
12a1d73f91
Make the Web object load from mode settings instead of global settings 2019-11-02 14:35:51 -07:00
Micah Lee
9534a44051
Make a new ModeSettings class in onionshare, and use this instead of tab_settings 2019-11-02 10:43:20 -07:00
Micah Lee
bba5286815
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
057bb40a92
Use .format to format file sizes again 2019-10-20 18:14:00 -07:00
Micah Lee
8dd60eed78
Fix syntax errors 2019-10-20 17:59:12 -07:00
Micah Lee
b9a7361d9c
Replace .format with python 3.6 f-strings in onionshare module 2019-10-20 10:15:16 -07:00
Miguel Jacq
6616eba3b2
Communicate a 405 error properly to the UI 2019-10-19 14:50:40 +11:00
Micah Lee
e80560951e
Merge branch 'static_bug' into develop 2019-10-13 09:55:51 -07:00
Micah Lee
8f1e09875b
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
402c6e7e20
Fix how Serbian (latin) is written 2019-10-13 09:39:17 -07:00
Micah Lee
6b1f3af3b7
Added new languages (Arabic, Dutch, Persian, Romanian, Serbian) and removed one (Finnish) 2019-10-12 21:50:33 -07:00