615 Commits

Author SHA1 Message Date
Saptak S
7935d07bb3 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
52971ad371 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
0376a36822 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
425beadce7 Sanitize message before appending them to the HTML 2020-03-11 18:10:08 +05:30
Saptak S
bc3df3319a Create GUI for onionshare chat mode with the tab workflow 2020-03-09 17:44:00 +05:30
Saptak S
ec7a969dde Create web UI and socket code for the chat interface 2020-03-08 14:51:43 +05:30
Micah Lee
eefa43d923 When Tor settings change, make sure the tabs know 2019-11-28 14:57:01 -08:00
Micah Lee
f6f4665e30 Fix CLI to work with mode settings 2019-11-02 14:56:40 -07:00
Micah Lee
55840b0038 Make the persistent button an image label instead, and only show it whne the persistent checkbox is checked 2019-10-27 18:41:24 -07:00
Micah Lee
f00df6356c Show settings at the top of each mode, both mode-specific settings and setting that exist for all mode types 2019-10-27 18:16:48 -07:00
Micah Lee
9dc14e8f4e Show warning when quitting while any tabs are active 2019-10-27 16:18:56 -07:00
Micah Lee
79393faa3d Add warning about closing a persistent tab 2019-10-27 16:01:30 -07:00
Micah Lee
4f4a71a23c Add persistent pin 2019-10-27 15:52:45 -07:00
Micah Lee
c3330919f4 Add settings button to the status bar 2019-10-27 15:26:56 -07:00
Micah Lee
68310070a4 Allow closing tabs, and throw warning when trying to close tabs that contain an active server 2019-10-27 15:01:14 -07:00
Micah Lee
509516c46a One attempt at making a new tab button 2019-10-26 22:39:59 -07:00
Micah Lee
6190de5c53 Tabs start out with new tab options, and remove the mode switcher from tabs 2019-10-26 21:56:57 -07:00
Miguel Jacq
0819402685 Reverse the update checker strings to show the correct message for invalid version or connection issue 2019-10-19 15:02:22 +11:00
Micah Lee
548c1857ea Version bump to 2.2, and added translation changes to changelog 2019-10-13 10:06:39 -07:00
Hosted Weblate
48569c4e13 Translated using Weblate (Portuguese (Portugal))
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/pt_PT/

Translated using Weblate (Arabic)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ar/

Translated using Weblate (Italian)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/it/

Translated using Weblate (Hindi)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/hi/
2019-10-13 06:06:26 +02:00
Micah Lee
ddb374c51c Merge branch 'develop' of https://hosted.weblate.org/git/onionshare/translations into weblate 2019-10-07 16:41:38 -04:00
Micah Lee
ccb72bae5b Merge branch 'develop' of github.com:weblate/onionshare-weblate into weblate 2019-10-07 16:39:40 -04:00
Hosted Weblate
0cfe55d975 Translated using Weblate (Serbian (latin))
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/sr_Latn/

Translated using Weblate (Chinese (Simplified))
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/zh_Hans/

Translated using Weblate (Chinese (Traditional))
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/zh_Hant/

Translated using Weblate (Persian)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/fa/

Translated using Weblate (Dutch)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/nl/

Translated using Weblate (Italian)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/it/

Translated using Weblate (Hungarian)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/hu/

Translated using Weblate (Icelandic)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/is/

Translated using Weblate (Japanese)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ja/

Translated using Weblate (Ukrainian)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/uk/

Translated using Weblate (Romanian)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ro/

Translated using Weblate (Greek)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/el/

Translated using Weblate (Danish)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/da/

Translated using Weblate (Portuguese (Brazil))
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/pt_BR/

Translated using Weblate (Irish)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ga/
2019-10-07 22:33:31 +02:00
Hosted Weblate
7d6a81ee1d Translated using Weblate (Portuguese (Brazil))
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/pt_BR/

Translated using Weblate (Portuguese (Brazil))
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/pt_BR/

Added translation using Weblate (Serbian (latin))

Translated using Weblate (Turkish)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/tr/

Translated using Weblate (Norwegian Bokmål)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/nb_NO/

Translated using Weblate (Chinese (Traditional))
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/zh_Hant/

Translated using Weblate (Dutch)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/nl/

Translated using Weblate (Indonesian)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/id/

Translated using Weblate (Czech)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/cs/

Translated using Weblate (German)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/de/

Translated using Weblate (Portuguese (Brazil))
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/pt_BR/
2019-10-07 22:25:13 +02:00
Hosted Weblate
f9f87d6a76 Translated using Weblate (Norwegian Bokmål)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/nb_NO/

Translated using Weblate (Chinese (Traditional))
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/zh_Hant/

Translated using Weblate (Dutch)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/nl/

Translated using Weblate (Indonesian)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/id/

Translated using Weblate (Czech)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/cs/

Translated using Weblate (German)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/de/

Translated using Weblate (Portuguese (Brazil))
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/pt_BR/
2019-09-30 00:45:27 +02:00
Micah Lee
add91d72ca Merge branch 'develop' of https://hosted.weblate.org/git/onionshare/translations into weblate 2019-09-29 18:37:28 -04:00
Allan Nordhøy
9b6ae6183e Translated using Weblate (Norwegian Bokmål)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/nb_NO/
2019-09-27 23:51:28 +02:00
Vid Košenina
ae3bcbfe50 Translated using Weblate (Slovenian)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/sl/
2019-09-27 23:51:27 +02:00
Jonatan Nyberg
a1c72343bd Translated using Weblate (Swedish)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/sv/
2019-09-27 23:51:26 +02:00
LocLab fr
d3dfbe3aad Translated using Weblate (French)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/fr/
2019-09-27 23:51:25 +02:00
Adolfo Jayme Barrientos
2c8b699eb8 Translated using Weblate (Spanish)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/es/
2019-09-27 23:51:24 +02:00
Jeroen
9cff93d275 Translated using Weblate (Dutch)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/nl/
2019-09-27 23:51:23 +02:00
Ecron
5f70b6b55b Translated using Weblate (Catalan)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ca/
2019-09-27 23:51:20 +02:00
Joan Montané
bdc2334fbd Translated using Weblate (Catalan)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ca/
2019-09-27 23:51:19 +02:00
kilobyte+weblate
5f9a386eb4 Translated using Weblate (German)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/de/
2019-09-27 23:51:18 +02:00
IS
f1387b0272 Translated using Weblate (German)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/de/
2019-09-27 23:51:16 +02:00
Micah Lee
7cb950ca23 Remove one more reference, and remove them from all locales too 2019-09-22 16:19:11 -07:00
Micah Lee
d56ab5433c Remove more references to website mode notifications that don't exist 2019-09-22 16:10:49 -07:00
Micah Lee
8ac18644a1 Remove references to website loaded notification that never actually get displayed 2019-09-22 16:07:37 -07:00
Micah Lee
c02bbe0396 Merge branch 'develop' into 2.2.dev1_release 2019-09-22 13:48:47 -07:00
Hosted Weblate
28e062cfa5 Translated using Weblate (Norwegian Bokmål)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/nb_NO/

Translated using Weblate (Icelandic)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/is/

Translated using Weblate (Danish)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/da/

Translated using Weblate (German)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/de/
2019-09-22 22:39:36 +02:00
Micah Lee
9c41d2d21c Version bump to 2.2.dev1 2019-09-22 13:03:08 -07: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
Hosted Weblate
a7e4f6a5e7 Merge branch 'origin/develop' into Weblate. 2019-09-21 03:53:13 +02:00
Hosted Weblate
a9718eddfd Translated using Weblate (French)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/fr/

Translated using Weblate (Swedish)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/sv/

Translated using Weblate (Spanish)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/es/

Translated using Weblate (Norwegian Bokmål)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/nb_NO/

Translated using Weblate (Swedish)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/sv/

Translated using Weblate (French)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/fr/

Translated using Weblate (Icelandic)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/is/

Translated using Weblate (Catalan)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ca/

Translated using Weblate (Catalan)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ca/

Translated using Weblate (Danish)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/da/

Translated using Weblate (German)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/de/

Translated using Weblate (Turkish)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/tr/

Merge branch 'origin/develop' into Weblate.

Translated using Weblate (Norwegian Bokmål)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/nb_NO/

Translated using Weblate (French)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/fr/

Merge branch 'origin/develop' into Weblate.

Merge branch 'origin/develop' into Weblate.

Translated using Weblate (Swedish)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/sv/

Translated using Weblate (Catalan)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/ca/

Translated using Weblate (Danish)
Translate-URL: https://hosted.weblate.org/projects/onionshare/translations/da/
2019-09-20 12:27:55 +02:00
Miguel Jacq
da355ed8f9 Source string suggestions from the translators on Weblate 2019-09-16 17:58:15 +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
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