Commit Graph

234 Commits

Author SHA1 Message Date
Mehdi Benadel 854bb8fb27 Move configuration row to shared 2024-05-28 13:43:07 +02:00
Mehdi Benadel 2c81d9a052 lint update 2024-05-28 13:43:07 +02:00
Mehdi Benadel 67abb5279f expose peertubeHelpers to TranslationDirective 2024-05-28 13:43:07 +02:00
Mehdi Benadel d95312aa11 More cleanup 2024-05-28 13:43:07 +02:00
Mehdi Benadel 0f99d66ac4 fixing errors from linting 2024-05-28 13:43:07 +02:00
Mehdi Benadel fb7f44692c fix linting 2024-05-28 13:43:07 +02:00
Mehdi Benadel f549142ae4 Several fixes around channel configuration 2024-05-28 13:43:07 +02:00
Mehdi Benadel 5ef429e9f2 update css handling on dynamic table form 2024-05-28 13:43:07 +02:00
John Livingston 0672dc24a0 Typescript and lit version change + fix form submit. 2024-05-28 13:43:07 +02:00
John Livingston 59825a15d6 Fix 2024-05-28 13:43:07 +02:00
John Livingston 732f7aedcd REUSE compliance. 2024-05-28 13:43:07 +02:00
John Livingston 1d14bbbda0 Cleaning more stuff. 2024-05-28 13:43:07 +02:00
John Livingston b72b23d6ae Cleaning some stuff. 2024-05-28 13:43:07 +02:00
Mehdi Benadel 0491539dfd Fix button style 2024-05-28 13:43:07 +02:00
Mehdi Benadel fb3a5d26aa Fixing ShadowDOM situation with CSS 2024-05-28 13:43:07 +02:00
Mehdi Benadel de974eae22 Better structure + channel home in LitElement format 2024-05-28 13:43:07 +02:00
Mehdi Benadel 687c4742f7 Technically working options. Need CSS fix (plugin CSS not loaded) and data validation 2024-05-28 13:43:07 +02:00
Mehdi Benadel 9ea26dfd26 Using ChannelConfigurationElement + Adding TranslationDirective
and a lots of fixes
2024-05-28 13:43:07 +02:00
Mehdi Benadel 0fe9fb4dca Adding some LitElements including DynamicTableFormElement 2024-05-28 13:43:07 +02:00
Mehdi Benadel 2638e137b3 Begin integrating components with lit 2024-05-28 13:43:07 +02:00
Mehdi Benadel 9ff4abfce4 added attempt at dynamic listing 2024-05-28 13:43:07 +02:00
John Livingston 5a14e3f755
New setting to listen C2S connection on non-localhost interfaces (#377). 2024-05-27 16:32:40 +02:00
John Livingston d5c327565c
Adding SPDX headers (WIP) 2024-05-23 11:42:14 +02:00
John Livingston e85bf05585
Better "become moderator" icon. 2024-05-22 17:40:16 +02:00
John Livingston 93397708ba
Fix "become moderator" icon. 2024-05-22 17:35:23 +02:00
John Livingston da75765bdb
Changing defaults MUC affiliation (#385):
* For Peertube moderators/admins, we add a button "Promote". Clicking on it will promote them as MUC owner.
2024-05-17 15:18:32 +02:00
John Livingston 024186ba2c
Adding some standard OpenID Connect providers (Google, Facebook) (WIP):
* refactoring, to allow several OIDC singletons
* settings for google and facebook
* backend code
2024-04-22 13:03:31 +02:00
John Livingston 6c13d2e377
Possibility to configure an OpenID Connect provider on the instance level WIP (#128). 2024-04-19 09:58:33 +02:00
John Livingston 514cc1d159
Possibility to configure an OpenID Connect provider on the instance level WIP (#128). 2024-04-19 09:58:32 +02:00
John Livingston 64f9ff752a
Fix error messages. 2024-04-04 17:02:21 +02:00
John Livingston 0719d25f35
Fix #48: Proper 404 and 403 pages when trying to open non-existant chatroom (WIP). 2024-04-04 14:58:24 +02:00
John Livingston 972306aa3e
Fix visual glitch. 2024-04-03 17:36:01 +02:00
John Livingston 543f18c727
Fix Typescript. 2024-04-03 16:48:43 +02:00
John Livingston df8dd8c764
dirty linting fix 2024-04-03 16:05:25 +02:00
John Livingston 2672290367
TODO/FIXME 2024-04-03 16:00:28 +02:00
John Livingston 3dcc05bf26
Share dialog: new page when no option is selected. 2024-04-03 15:54:58 +02:00
John Livingston 08fa8c28f4
Dirty hack to prevent some click event to default to href=# 2024-04-03 15:06:18 +02:00
John Livingston e5e6c6f953
Room list: using new chat page 2024-04-03 12:13:44 +02:00
John Livingston 610040b253
Some styling and html fixes. 2024-04-02 17:40:43 +02:00
John Livingston 612a9f622d
Embeddeding chat without iframe besieds videos WIP 2024-03-28 15:06:15 +01:00
John Livingston ba52d4e3d8
Reconnect livechat in embedded mode. 2024-03-28 12:22:30 +01:00
John Livingston 8988a85ec9
Refactoring + new embedded chat:
* moving conversejs plugin in separate files
* disconnecting embedded chat on navigation-end
2024-03-27 16:26:32 +01:00
John Livingston 67a1a6e32d
New embedded chat: spinner while loading 2024-03-26 17:38:40 +01:00
John Livingston b6478f0f9e
New chat integration:
* refactoring
* cleaning
* using peertubeHelpers to get authent info when available
2024-03-26 15:38:22 +01:00
John Livingston 4cf2cd3ac8
New fullpage chat: better CSS 2024-03-26 14:49:47 +01:00
John Livingston e04d553d0b
New full screen chat WIP + code refactoring. 2024-03-26 11:12:44 +01:00
John Livingston 22a675e915
WIP new full screen chat 2024-03-26 11:10:02 +01:00
John Livingston bd695bdb27
New fullscreen chat WIP:
* Fullscreen chat: now uses a custom page (in other words: when opening the chat in a new tab, you will have the Peertube menu). WIP
* some code refactoring (getBaseRoute moved to util/uri, ...)
2024-03-26 11:09:46 +01:00
John Livingston de15b7d480
Slow mode duration:
* channel option is no more a default value, but the current value
* changing naming in accordance
* changing labels and documentation
2024-03-07 17:56:27 +01:00
John Livingston 3a9c17fba8
Slow Mode (#192): help button + fix field css 2024-02-22 14:53:41 +01:00
John Livingston 3d9237624d
Naming:
* changing delay by duration for slow mode options
* better labels
2024-02-16 17:35:55 +01:00
John Livingston cf179d7f72
Slow mode WIP (#192):
* default delay is configurable in channel's chat rooms options.
2024-02-16 17:35:53 +01:00
John Livingston 73922680c1
Fix #276: Peertube v6.0.0 compatibility in chatrooms page:
Using channel.avatars if channel.avatar is not available.
2023-11-16 10:46:58 +01:00
John Livingston 89c3eae9b1
labels 2023-09-26 14:58:59 +02:00
John Livingston 89fb6a7ac6
Don't validate hidden fields. 2023-09-26 14:28:06 +02:00
John Livingston 03dfa3de6f
Help button. 2023-09-26 14:21:32 +02:00
John Livingston eb99369bea
Fix button margin 2023-09-26 14:15:29 +02:00
John Livingston b8aef07182
Forbidden words comment field. 2023-09-25 13:16:15 +02:00
John Livingston 06b9417650
Channel configuration UI: form validation. 2023-09-25 12:51:15 +02:00
John Livingston e9ff502646
Help links. 2023-09-22 20:39:50 +02:00
John Livingston d80cedfee5
Auto ban anonymous IP:
* New settings: "Ban anonymous user's IP when user is banned from a chatroom":
  * if enabled, every time a streamer bans an anonymous user, it will ban its IP on the chat server,
  * banned IPs are logged on disk, so server's admin can use them to feed fail2ban (for example),
  * option disabled by default, because could be used to create trapped-rooms on public servers
2023-09-22 18:17:54 +02:00
John Livingston 562073fc09
Channel conf UI WIP 2023-09-22 16:45:09 +02:00
John Livingston af115e984b
Fix help button 2023-09-22 16:45:09 +02:00
John Livingston 679baf024c
Moving Mustache templates content in separate files. 2023-09-22 16:45:09 +02:00
John Livingston aa71a302f6
Channel Configuration UI WIP 2023-09-22 16:45:08 +02:00
John Livingston cc673bd3cb
Refactoring. 2023-09-22 16:45:08 +02:00
John Livingston 567a5e80ab
Link to channel options in room list 2023-09-22 16:45:08 +02:00
John Livingston eed88e9339
UI WIP. 2023-09-22 16:45:08 +02:00
John Livingston d77a276fac
Channel configuration UI WIP 2023-09-22 16:45:08 +02:00
John Livingston f00bac5eb1
Channel configuration UI + disabling bannedJIDs (for now) 2023-09-22 16:45:07 +02:00
John Livingston 501e958c4b
Channels list UI 2023-09-22 16:45:07 +02:00
John Livingston 19264fb915
Channels list UI 2023-09-22 16:45:07 +02:00
John Livingston 4fe972dc10
Configure bot name + refactoring. 2023-09-22 16:45:07 +02:00
John Livingston f97e54d499
Moderation Bot integration WIP:
* Start and stop the bot WIP
* Prosody: removing the BOSH module from the global scope (must only be present on relevant virtualhosts)
* Some refactoring
2023-09-22 16:45:06 +02:00
John Livingston d410d4e08e
Settings to disable the bot and the advances channel configuration 2023-09-22 16:45:02 +02:00
John Livingston 5373fb1570
Renaming 'moderation' pages to 'configuration'. 2023-09-22 16:45:02 +02:00
John Livingston d0ba7d017d
External Components interface configuration:
You can now configure on which network interfaces Prosody will listen for external components.
2023-09-22 16:45:02 +02:00
John Livingston 28c586fc09
Fix missing channel name. 2023-09-22 16:45:02 +02:00
John Livingston 0987a036a0
Moderation configuration screen: WIP. 2023-09-22 16:45:01 +02:00
John Livingston 09b1c889ff
Fix sort. 2023-09-22 16:45:01 +02:00
John Livingston a25c4822fa
Moderation configuration screen: WIP. 2023-09-22 16:45:01 +02:00
John Livingston 02728bb38d
Moderation configuration screen: WIP. 2023-09-22 16:45:01 +02:00
John Livingston efb8710f67
Moderation configuration screen: WIP. 2023-09-22 16:45:01 +02:00
John Livingston 5ecff1d916
Localized help urls:
Links to documentation are now using the front-end language to point to the translated documentation page
(except for some links generated from the backend, in the diagnostic tool for example).

Partial fix for #224.
2023-09-06 17:58:54 +02:00
John Livingston 9621f717d1
Adding a help button in the share chat modal. 2023-07-27 16:39:05 +02:00
John Livingston 3fd6b9b563
Links to online documentation:
* Adding a help button on top of the chat, that links to the online documentation on frama.io.
* Replaced github.io documentation links by frama.io documentation.
* Adding links to the documentation in the diagnostic tool.
2023-07-26 18:16:30 +02:00
John Livingston f73ccbbf7e
Localization refactoring:
* the front-end now use global constants, based on the translation key
* build-client.js use the ESBuild "define" directive to replace these
  globals at compile time, by the english value
* build:client must now be called after build:languages
* moving the loadLoc and loc backend functions in a separate lib
2023-06-12 19:36:14 +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 1bd5c4decc
Better xmpp share link (#114) 2023-04-14 11:57:01 +02:00
John Livingston 801798852c Prosody: new settings to provide a custom certificates dir 2023-04-14 11:33:41 +02:00
John Livingston 4a28991497 XMPP client connection WIP:
Adding an option in the «share chat» dialog to display the XMPP room
address.
2023-04-14 11:33:41 +02:00
John Livingston 4d9d9d39b0 XMPP clients connections WIP:
* new option to allow external xmpp account s2s connections
* settings to setup the port and network interfaces
* documentation WIP

Related to issue #114
2023-04-14 11:33:41 +02:00
John Livingston 9d18e401a7
Implements #153: Settings translations (#155)
Implementing a new translating system, so we can more easily translate
settings strings. Indeed, these strings are difficult to embed in
JSON format.

We still use JSON files for standard strings, but in addition we have
dedicated YAML files to translate settings strings.

There is a new build-languages.js script that merge all translations in JSON files.

Other modifications:
* Eslint: ignoring documentation and build scripts.
* french settings translations.
2023-02-15 11:54:48 +01:00
John Livingston 42c21ead94
Moving `public` directory away:
Moving `public/images` dir to `assets/images`, because it conflicts with gitlab CI/CD for documentation.
Moving `assets/styles.css` to `assets/styles/styles.css`.

Related to #117.
2023-02-14 10:19:55 +01:00
John Livingston ce9d531db7
Share chat link popup: add an option to generate an iframe.
Implements #110, and #92 partially.
2023-01-11 19:24:13 +01:00
John Livingston c178213e19
Use ESBuild for frontend build.
Replacing webpack by ESBuild for client code compilation (as in the
official quickstart plugin).

So we can remove deprecated webpack dependencies.

Note: webpack is still used for ConverseJS build.
This may be removed soon.

Related to issue #122.
2022-12-12 19:31:29 +01:00
John Livingston 7906ddf625
Prosody mode only:
Removing old modes (ConverseJS and External URI).
Work in progress.
2022-10-10 18:08:20 +02:00
John Livingston 01a052d380
Fix #97 #54: Settings to hide the chat for anonymous users 2022-04-11 18:12:12 +02: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 7db856ce0f
Using types declarations from the official @peertube/peertube-types package. 2022-01-11 01:29:33 +01:00