Commit Graph

62 Commits

Author SHA1 Message Date
Saptak S
00cd37bfd3
Adds check whether username already exists 2020-08-21 17:46:21 +05:30
Micah Lee
dc15883080
Remove new message and change username buttons (user just presses enter instead) and update a bunch of css 2020-08-19 20:22:15 -04:00
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
8ac1ae40ba
Adds viewport and charset meta tags 2020-07-06 00:54:29 +05:30
Saptak S
38d3eec427
Adds responsiveness in receive and share modes webapps 2020-07-05 20:59:25 +05:30
Saptak S
992ced72f6
Adds noscript HTML 2020-07-04 19:25:38 +05:30
Saptak S
7215b463ed
Updates jQuery and poetry dependencies in Chat 2020-07-04 19:05:07 +05:30
Saptak S
41681f82ec
Merge branch 'develop' of github.com:micahflee/onionshare into chat 2020-07-04 13:42:20 +05:30
Miguel Jacq
21480a5117
Use a more efficient way of parsing the path to /img on the static URL in order to load ajax.gif via receive.js 2020-06-08 09:57:55 +10:00
Miguel Jacq
554012b8f4
#1121 upgrade to jQuery 3.5.1 2020-05-28 15:19:54 +10:00
Saptak S
409f3f7fbe
Keep save button disabled if changed username invalid
- Disabled till username not changed
- On change, if username is empty, then disabled
- On change, if username is changed back to previous, then disabled
- Else allow saving
2020-05-10 01:55:31 +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
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
2c938fd777
Create web UI and socket code for the chat interface 2020-03-08 14:51:43 +05:30
Micah Lee
ce9a2f52d0
Add breadcrumbs to share mode 2019-09-15 16:46:28 -07:00
Micah Lee
a5e01a18e2
Add breadcrumbs for website mode 2019-09-15 16:44:24 -07:00
Micah Lee
644b47082a
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
6561d71edd
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
hiro
2604ef52b5 Clean up rendering logic between share and website mode 2019-06-14 18:21:12 +02:00
Micah Lee
c3ba542ecb
Strip NoScript XSS warning, because the Tor Browser bug it addressed has been fixed 2019-05-29 19:27:21 -07:00
Micah Lee
41be429b91
Make static folder URL have a high-entropy random path, to avoid filename collisions with files getting shared 2019-05-22 20:07:35 -07:00
Micah Lee
63ced56250
Update ReceiveMode to no longer rely on slugs 2019-05-21 10:18:40 -07:00
Micah Lee
97b5984aff
Fix building the URL in CLI mode, and removing the slug from the download button in share mode 2019-05-21 10:08:54 -07:00
Micah Lee
79b87c3e30
Add an error 401 handler, and make it start counting invalid password guesses instead of 404 errors for rate limiting 2019-05-20 19:04:50 -07:00
Micah Lee
818f2bac2c
Make it so directory listings work, including root directory listing 2019-05-10 14:04:13 -07:00
Micah Lee
65a7a1790c
Starting to refactor website sharing so set_file_info builds a dict of all files, and path_logic will display any arbitrary file, or directory listing if no index.html is present 2019-05-10 13:43:46 -07:00
hiro
2d43588a3b Add website sharing and directory listing cli-only 2019-04-23 16:08:14 +02:00
Illia Volochii
32e6422412
Upgrade jQuery to 3.4.0 2019-04-19 18:20:58 +03:00
Micah Lee
c0e6137294
Fix css on receive.html as well 2019-03-22 15:27:23 -07:00
Micah Lee
f15fee8ee2
Merge branch 'develop' of https://github.com/ZeroDot1/onionshare into ZeroDot1-develop 2019-03-22 15:23:53 -07:00
Miguel Jacq
f2314f24c7
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
ZeroDot1
ee1633c600 Repair the css . . . 2019-03-11 05:33:28 +01:00
Miguel Jacq
3f7c83c321
Move the noscript warning to top of page and make it appear less of an error, per more recommendations (and with supplied svg) from @ninavizz 2019-02-24 10:22:44 +11:00
ZeroDot1
06d50df10e Add asynchronous functions to the templates to reduce page load times.
Asynchronous functions for CSS and JS.
2019-02-23 19:37:56 +01:00
Miguel Jacq
9c5adaee27
Make progress, noscript warning, and flashes appear above the form, but beneath the logo 2019-02-23 13:16:06 +11:00
Micah Lee
2d78b545a5
Refactor file upload interface to use jQuery, and to have separate upload progress bars. The progess bars make clear when the data has been sent to the first Tor node, and when its waiting on the rest of the Tor network. It also allows the sender to cancel uploads 2019-02-15 18:52:28 -08:00
Micah Lee
e2c4ec1f6f
Make uploading over ajax, and ajax flash messages, work 2019-02-15 14:52:00 -08:00
Micah Lee
dd3f2d60b6
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
1c16b092a3
Use a div that gets hidden, instead of a <noscript> tag, because the <noscript> tag doesn't when the security slider is on Safer 2019-02-13 17:40:33 -08:00
Micah Lee
105329fa28
Add noscript warning 2019-02-13 09:19:04 -08:00
Miguel Jacq
6c36fcb953
Use Ajax to send files in receive mode to workaround browser bug with large files 2019-02-13 12:49:42 +11:00
Miguel Jacq
3f32db2cca
Fix logic for handling an upload still in progress when timer runs out. Show thankyou page for last uploader post-timer expiry 2018-10-01 18:42:53 +10:00
Miguel Jacq
f653e8cc04
Merge develop in and fix upload/timer functionality so that it works as described. Still needs fixing to not throw a connection error to the lucky last uploader after their upload completes and server stops due to expiry having passed 2018-10-01 16:42:54 +10:00
Micah Lee
324538bdd3
When there is only 1 file being shared, don't zip it 2018-09-20 09:14:56 -07:00
Miguel Jacq
7e875e021a
Remove unnecessary loop. Remove the Close route/setting which can DoS another running upload. Fix detecting whether any uploads are still in progress before terminating the service after timer expires. Don't register 404s for uploads after expiry has finished (throw a 403 instead)" 2018-09-18 08:36:07 +10:00
Micah Lee
73f09f14c4
Make 404 error page look better, and remove the text that it's probably a typo, because in public mode that isn't necessarily true 2018-09-15 19:52:53 -07:00
Miguel Jacq
11bf059015
Fix conflict from receiver-mode-gui branch 2018-09-04 11:48:39 +10:00
Miguel Jacq
3b45f93dbe
Expand 'public mode' (optional slugs) to be possible for sharing too, not just receiving, with no rate-limiting/self-destruct on invalid routes. 2018-07-21 17:06:11 +10:00
Miguel Jacq
e37dbb3efb
Only show the 'I'm Finished Sending' button if the user actually already sent (or tried to send) anything 2018-07-17 11:53:55 +10:00