rDrama/files/templates/chat.html
TLSM aaea25808f
Integrate chat from upstream
Substantially borrowed from upstream ref: 13a208ee88e55 (before they
started editing generated artefacts instead of source).

Integrated, including:
  - Remove previously removed features: emoji, hats, and name colors
  - Compensate for lack of unified root template
  - Add React build process to Dockerfile and `bootstrap/init.sh`
  - Preliminary integration of chat websocket workers

For testing, modify `supervisord.conf.dev` to put chat on port 80 and
the site service on some other port. Then visit: http://localhost/chat

Still to do:
  - Access control for specific small-groups (and admins probably):
    Set the values somewhere (site_settings.json? Redis?) and use for
    authorization in `chat_is_allowed`.
  - Proxying only /chat to the websocket workers
  - Chat persistance across restarts: either Redis devops or to DB
2023-07-04 13:10:27 -04:00

24 lines
692 B
HTML

{% extends "default.html" %}
{% block pagetype %}chat{% endblock %}
{% block fixedMobileBarJS %}
<link rel="stylesheet" href="{{'css/chat_done.css' | asset}}">
{% endblock %}
{% block Banner %}{% endblock %}
{% block mobilenavbar %}{% endblock %}
{% block defaultContainer %}
{% include "component/modal/expanded_image.html" %}
<div
id="root"
data-id="{{v.id}}"
data-username="{{v.username}}"
data-admin="{{v.admin_level >= PERMS['CHAT_MODERATION']}}"
data-sitename="{{SITE_ID}}"
data-themecolor="{{v.themecolor}}"
data-avatar="{{v.profile_url}}">
</div>
<script>window.global = window</script>
<script defer src="{{'js/chat_done.js' | asset}}"></script>
{% endblock %}