Commit Graph

312 Commits

Author SHA1 Message Date
John Livingston
5cdbcec3e8
Performance improvement: don't load all vCards when right menu is not visible (partially fix #106) 2024-02-06 16:43:10 +01:00
John Livingston
bfef57b1a5
Implement #305: UI/UX improvement:
Don't group "followup" messages, and always display avatar/nickname/datetime besides messages, even when it is the same user as previous one.
2024-01-31 18:23:32 +01:00
John Livingston
5d4bfceb73
Hidden force_default_hide_muc_participants query parameter, for testing
purpose.
2024-01-31 18:12:53 +01:00
John Livingston
f01c5f5aa4
fix. 2024-01-17 17:35:12 +01:00
John Livingston
ee9c5f523c
Occupant sorting is now done by ConverseJS:
It was a bug, i made a PR on ConverseJS to fix it.
2024-01-17 11:18:07 +01:00
John Livingston
873067d2a2
Fix #136: display anonymous users at the end of the participants list 2024-01-16 18:52:18 +01:00
John Livingston
17dd0b5a34
Fix build-converse. 2024-01-16 17:49:31 +01:00
John Livingston
21efc85523
Performance improvments:
* build-conversejs.sh: adding the ability to use a specific commit (to
  include some patches that are not upstream for now)
* Using patched ConverseJS for performance improvment (related to #96):
  * debounce MUC sidebar rendering in ConverseJS (Fix #138)
  * force history pruning, even if messages keep coming (Fix #140)
2024-01-16 12:27:44 +01:00
John Livingston
ee48b01ae7
UI/UX improvment:
Hide nickname changes when previous nickname was like "Anonymous 12345".
Helps to improve performances when massive anonymous users are joining (#138), and prevent displaying unnecessary messages (#111).
2024-01-15 17:48:56 +01:00
John Livingston
5e60060052
Anonymous chat user: store last nickname in localStorage, and expires
after 12 hours
2024-01-09 17:56:33 +01:00
John Livingston
e3a61b95b6
Fix #287: add a label before the anonymous nickname prompt. 2024-01-09 16:55:13 +01:00
John Livingston
a56467c6cd
Authenticated users: if current user nickname is already used in the room, automatically add a suffix. 2024-01-09 16:17:47 +01:00
John Livingston
d0a250a91d
Better Anonymous chat user UX:
* Remember the chosen nickname in sessionStorage, to avoid entering it again too often.
* Fix: if an anonymous chat user enter spaces in the nickname choice, it will allows them to keep the random nickname.
2024-01-09 12:54:30 +01:00
John Livingston
6d7a8199ae
Fix #140:using ConverseJS prune_messages_above to purge old messages, keeping only last 100. 2023-12-21 16:01:29 +01:00
John Livingston
0cc6298229
ConverseJS 10.1.6. 2023-09-04 12:16:14 +02:00
John Livingston
79f30b5350
Fix css linting for currentcolor (instead of currentColor) 2023-09-04 12:11:29 +02:00
John Livingston
83233c32a4
Rollback ConverseJS make command 2023-08-22 12:04:29 +02:00
mose
32216ec164 change src_dir for converse shallow clone to vendor 2023-08-15 16:35:28 +02:00
mose
1d03e29578 build converse another way, and upgrade to v10 2023-08-15 16:35:28 +02:00
John Livingston
d33795f7a1
Code refactoring WIP:
Cleaning the way ConverseJS parameters are given to the full page.
2023-08-01 17:01:09 +02:00
John Livingston
3bc05d88df
Chat Federation: using S2S if available.
* if both local and remote instance have external XMPP connections enabled, the user joins the remote room with his local account
* some code refactoring (builtin.ts)

Note: documentation and settings descriptions are to do.

Related to #112
2023-05-31 16:52:47 +02:00
John Livingston
5d323b2dfd
Chat Federation, connection to remote chat:
Front-end connect using BOSH or WS directly on the remote server.
If use is logged-in, his nickname is use as default nickname.
2023-04-21 16:56:48 +02:00
John Livingston
d6030afabc
ConverseJS: in readonly mode, don't show any info messages (except when disconnected).
Related to #111 #133 #134
2023-01-16 18:04:20 +01:00
John Livingston
f1fe010409
ConverseJS: remove browser notifications, and browser tab message count. 2023-01-12 11:53:12 +01:00
John Livingston
0545a1034a
ConverseJS optimization:
* ConverseJS: Don't send state notifications. #134
* ConverseJS: Don't show join/leave messages. #134
2023-01-12 11:46:02 +01:00
John Livingston
3f47c3c65a
Refactoring and simplification (#122) 2023-01-11 18:05:18 +01:00
John Livingston
a25cdb44ef
Fix WS timeouts:
Nginx as also a timeout. Seems to be 30s. So we ping every 25s, and set an intermediate timeout for Prosody.
2022-11-01 11:58:02 +01:00
John Livingston
90e86a130a
Fix Websocket timeouts:
* defining a ping_interval in ConverseJS
* defining a longer c2s_close_timeout in Prosody configuration
2022-11-01 11:37:24 +01:00
John Livingston
7944567b33
Fix ConverseJS v10.0.0: dark_theme should be equal to theme. 2022-10-31 18:03:40 +01:00
John Livingston
a8200a5724
ConverseJS v10.0.0: checkout upstream
Using Converse v10.0.0. WIP
2022-10-31 17:39:08 +01:00
John Livingston
6f8c7b8a93
Websocket for builtin Prosody. WIP 2022-10-13 10:47:33 +02:00
John Livingston
8426218caf
Better implementation. 2022-08-07 12:40:18 +02:00
John Livingston
36cda4a9b4
Adding an easy way to customize background transparency in OBS and co. 2022-08-07 11:51:07 +02:00
John Livingston
75c1cd8ee5
ConverseJS livechatDisconnectOnUnloadPlugin (commented code, does not work). 2022-01-16 20:05:09 +01:00
John Livingston
2704a1a327
Builtin Prosody: using ConverseJS clear_cache_on_logout=true and allow_user_trust_override=false parameters 2022-01-16 19:29:20 +01:00
John Livingston
80ac08bd18
Transparent background + fix
* Builtin Prosody, Share chat url: option to have a transparent background (for streaming integration).
* Builtin Prosody, Share chat url: fixed new day hidding when no scrollbar in readonly mode.
2022-01-16 17:50:11 +01:00
John Livingston
91c1c35649
Shorter random nickname. 2022-01-10 03:06:16 +01:00
John Livingston
c69ebd2680
Auto viewer mode (WIP). 2022-01-07 19:57:42 +01:00
John Livingston
4e69a2d8e6
Auto viewer mode (WIP). 2022-01-07 19:28:07 +01:00
John Livingston
9a4608863b
Auto viewer mode (WIP). 2022-01-07 19:20:28 +01:00
John Livingston
69380bd8e4
Fix import for ConverseJS 9. 2022-01-07 16:35:12 +01:00
John Livingston
8f42dd6c28
Also hide separators when readonly=noscroll. 2022-01-07 02:15:39 +01:00
John Livingston
7e13f61aa7
Revert v5.2.1, as it was not the bug. 2022-01-07 01:40:35 +01:00
John Livingston
0f0682036c
ConverseJS Peertube theme: hide avatars under 250px width instead of 576px. 2022-01-05 20:22:33 +01:00
John Livingston
563e42c640
Fix errors. 2022-01-04 17:49:41 +01:00
John Livingston
04b1945239
Builtin Prosody, Share chat url: ability to show/hide the scrollbar in readonly mode. 2022-01-04 17:42:03 +01:00
John Livingston
5296de6a91
Fix ConverseJS: livechatWindowTitlePlugin was broken. 2022-01-04 04:23:13 +01:00
John Livingston
a3484ac963
Trying to fix an OBS cache problem, where OBS can't connect to the chat after a plugin update. 2022-01-03 18:27:56 +01:00
John Livingston
365e2630e2
ConverseJS: Remove spoilers as it is buggy. 2022-01-03 17:20:39 +01:00
John Livingston
a0d313ffee
Fix dropdown colors. 2022-01-03 17:03:16 +01:00
John Livingston
b255770836
Fix CSS for ConverseJS v9. 2022-01-03 16:10:57 +01:00
John Livingston
564b1b7735
Fix ConverseJS 9 integration. 2022-01-03 14:54:04 +01:00
John Livingston
79876e1750
ConverseJS 9.0.0: first attempt to integrate. 2022-01-03 14:13:58 +01:00
John Livingston
148b28ef84
ConverseJS Readonly mode. Changing muc_mention_autocomplete_min_chars. 2021-12-14 13:02:15 +01:00
John Livingston
c19db4dc9c
Builtin ConverseJS mode: fix advanced controls hiding. 2021-12-14 11:59:36 +01:00
John Livingston
e260f84584
Fix emoji picker colors. 2021-11-30 18:57:58 +01:00
John Livingston
7f6a2cd7ee
ConverseJS: document title set to the room name. 2021-11-26 17:42:45 +01:00
John Livingston
6119225c2d
ConverseJS: removed inline image display
Two reasons:
- security (can leak IP, ...)
- avoid visual glitchs when picture is too big
2021-11-24 15:59:28 +01:00
John Livingston
d2b0000279
Peertube theme: fix message action dropdown colors. 2021-11-24 15:52:55 +01:00
John Livingston
e2d445e6d8
Peertube theme: fix colors for .correcting ; colors for spoilers. 2021-11-24 15:11:48 +01:00
John Livingston
752fafe376
Peertube theme: underline links in chat messages. 2021-11-23 19:07:20 +01:00
John Livingston
74236028ac
Fix iframe unwanted horizontal scrollbar. 2021-11-23 18:10:01 +01:00
John Livingston
8e0613622f
Peertube theme: fix login form background colors. 2021-11-23 17:30:12 +01:00
John Livingston
3e3e5dd980
Peertube theme: fix moderation/affiliations colors. 2021-11-23 17:20:36 +01:00
John Livingston
f334f17e8d
Peertube theme: fix title and login form colors. 2021-11-23 17:05:23 +01:00
John Livingston
8412c225d4
Peertube theme: fix secondary buttons colors. 2021-11-23 16:53:52 +01:00
John Livingston
eb3155c2a1
Peertube theme: fix form background color. 2021-11-23 16:46:01 +01:00
John Livingston
1b6e8f0822
Peertube theme: fix modal close button color. 2021-11-23 16:39:49 +01:00
John Livingston
49ea8a70a8
Peertube theme: fix secondary buttons colors. 2021-11-23 16:35:31 +01:00
John Livingston
09c2b676ba
Peertube theme: fix modal background color. 2021-11-23 16:32:13 +01:00
John Livingston
c56003264f
CSS: fix converse-chat-toolbar colors. 2021-11-23 16:10:02 +01:00
John Livingston
12b9b80871
CSS: margin when avatar hidden. 2021-11-23 15:21:02 +01:00
John Livingston
d45893a22c
ConverseJS theme: Fix margin when hidding avatars. 2021-11-22 14:50:55 +01:00
John Livingston
8999133dcc
Autocolors
WIP on a new feature: trying to guess current Peertube theme's colors,
and apply them to ConverseJS.
2021-11-19 16:45:10 +01:00
John Livingston
9b20042aad
ConverseJS: theme settings. 2021-11-18 11:08:12 +01:00
John Livingston
8b41fa7a20
ConverseJS Peertube theme: bigger occupants sidebar when width is not big enough. 2021-11-17 11:57:52 +01:00
John Livingston
63111a0687
Fixing some colors. 2021-11-17 11:48:43 +01:00
John Livingston
d5b212712b
Peertube theme: hide avatars when width<576px. 2021-11-17 11:34:01 +01:00
John Livingston
b593d4fc76
CSS: trying to map ConverseJS vars to peertube colors. 2021-11-10 17:35:35 +01:00
John Livingston
77975ffdb6
CSS Work In Progress
* new peertube theme for ConverseJS
* CSS linting
* splash screen
* defining CSS variables
2021-11-09 17:45:54 +01:00
John Livingston
aa156d3c06
New splash screen. 2021-11-09 16:13:11 +01:00
John Livingston
ab8dac1bba
Better CSS customization. 2021-11-09 16:10:33 +01:00
John Livingston
af55d50c93
Fix typo. 2021-11-09 16:10:33 +01:00
John Livingston
65845fe9f6
New ConverseJS entry point. Using it to add custom CSS. 2021-11-09 16:10:32 +01:00
John Livingston
9e640dd5bc
Adding custom webpack file for ConverseJS. 2021-11-09 16:10:32 +01:00
John Livingston
679992146b
Building ConverseJS ourself. 2021-11-09 16:10:25 +01:00
John Livingston
523269a392
Some comments. 2021-08-06 17:52:32 +02:00
John Livingston
2d3726a087 Refactoring. 2021-05-18 19:13:47 +02:00
John Livingston
c1db044133 ConverseJS is using sessionStorage rather than localStorage. 2021-05-18 19:09:29 +02:00
John Livingston
4a644aafae Try to tweak the ConverseJS keepalive parameter to avoid some bugs. 2021-05-18 19:00:26 +02:00
John Livingston
afb27bacc6 Adding a try/catch for debugging purpose. 2021-05-18 18:48:19 +02:00
John Livingston
d4b8c8b2e2 Using getBaseStaticRoute for index.html urls. 2021-05-18 18:17:13 +02:00
John Livingston
3c5d74cc1a Change some ConverseJS parameters. 2021-05-06 12:34:42 +02:00
John Livingston
61dfa0b79f WIP. 2021-05-05 18:35:28 +02:00
John Livingston
c895778175 Comment. 2021-05-05 18:16:59 +02:00
John Livingston
1fe320a59d Removing auto_reconnect, because it cant work without prebind login mode. 2021-05-05 18:13:15 +02:00
John Livingston
24a036925b Fix auto_focus. 2021-05-05 18:09:33 +02:00
John Livingston
0cc9570e58 Fix allow_message_corrections. 2021-05-05 18:03:38 +02:00
John Livingston
5a82f9aa93 ConverseJS: show the toolbar when in fullscreen. 2021-05-05 17:32:50 +02:00
John Livingston
e5d5da4d07 Builtin Prosody: allow moderation operations. 2021-05-05 17:20:06 +02:00
John Livingston
ad2d7742e9 Prosody: use the user nickname. 2021-05-04 16:33:32 +02:00
John Livingston
76adc7124f Prosody auth, first working code:
* generated password on an api call
* use this password to authenticate on prosody
* using helper getAuthUser when available, else fallback to custom code
2021-05-04 13:00:44 +02:00
John Livingston
4a4ffaae2d Prosody auth WIP. 2021-05-03 20:37:23 +02:00
John Livingston
a74954a0cb Builtin conversejs: using typescript. 2021-05-03 18:30:02 +02:00
John Livingston
84723ee261 Fix converseJS: show the participant list when not in iframe. 2021-05-02 14:41:54 +02:00
John Livingston
3dd8718744 Eslint: configure for standard-typescript (backend), and separate configurations depending on folders. 2021-04-07 17:20:28 +02:00
John Livingston
8246e12297 ConverseJS fixes and documentation:
* using version 7.0.4
* update documentation and example files
* disable discover_connection_methods option
2021-02-21 16:13:48 +01:00
John Livingston
765542ef31 Fix some html attributes and add a content-type. 2021-02-21 15:21:30 +01:00
John Livingston
40d6ade8b6 Look & feel for builtin chat. 2021-02-20 23:29:07 +01:00
John Livingston
409f9358e9 Fix missing CSS. 2021-02-20 23:18:49 +01:00
John Livingston
39ab460d68 Rewriting the way ConverseJS is builtin. 2021-02-20 23:12:12 +01:00
John Livingston
d9e461f984 Builtin ConverseJS:
* Building with webpack. TODO: include assets.
* Page template
2021-02-20 20:42:41 +01:00