Fix clearable text area setup and update routing for multiuser websocket

This commit is contained in:
Ross
2026-06-17 22:04:20 +01:00
parent 86a1a935e1
commit 56cd257474
3 changed files with 14 additions and 7 deletions
+2
View File
@@ -226,7 +226,9 @@ function clearableTextAreaSetup() {
textFields.forEach((field) => {
const wrapper = field.closest(".position-relative");
if (!wrapper) return;
const clearButton = wrapper.querySelector(".clear-input-button");
if (!clearButton) return;
// Function to toggle the visibility of the clear button
const toggleClearButton = () => {
+11 -6
View File
@@ -17,9 +17,14 @@ python manage.py migrate --noinput
echo "Collecting static files..."
python manage.py collectstatic --noinput
echo "Starting gunicorn..."
exec gunicorn rad.wsgi:application \
--name rad_gunicorn \
--bind 0.0.0.0:8000 \
--workers ${GUNICORN_WORKERS:-3} \
--log-level ${GUNICORN_LOGLEVEL:-info}
if [ "${SERVER_TYPE}" = "daphne" ] || [ "${SERVER_TYPE}" = "asgi" ]; then
echo "Starting daphne..."
exec daphne -b 0.0.0.0 -p 8000 rad.asgi:application
else
echo "Starting gunicorn..."
exec gunicorn rad.wsgi:application \
--name rad_gunicorn \
--bind 0.0.0.0:8000 \
--workers ${GUNICORN_WORKERS:-3} \
--log-level ${GUNICORN_LOGLEVEL:-info}
fi
+1 -1
View File
@@ -2,5 +2,5 @@ from django.urls import re_path
from . import consumers
websocket_urlpatterns = [
re_path(r'^/ws/multiuser/(?P<room_name>[\w-]+)/$', consumers.MultiuserConsumer.as_asgi()),
re_path(r'^/?ws/multiuser/(?P<room_name>[\w-]+)/$', consumers.MultiuserConsumer.as_asgi()),
]