Fix clearable text area setup and update routing for multiuser websocket
This commit is contained in:
@@ -226,7 +226,9 @@ function clearableTextAreaSetup() {
|
|||||||
|
|
||||||
textFields.forEach((field) => {
|
textFields.forEach((field) => {
|
||||||
const wrapper = field.closest(".position-relative");
|
const wrapper = field.closest(".position-relative");
|
||||||
|
if (!wrapper) return;
|
||||||
const clearButton = wrapper.querySelector(".clear-input-button");
|
const clearButton = wrapper.querySelector(".clear-input-button");
|
||||||
|
if (!clearButton) return;
|
||||||
|
|
||||||
// Function to toggle the visibility of the clear button
|
// Function to toggle the visibility of the clear button
|
||||||
const toggleClearButton = () => {
|
const toggleClearButton = () => {
|
||||||
|
|||||||
+11
-6
@@ -17,9 +17,14 @@ python manage.py migrate --noinput
|
|||||||
echo "Collecting static files..."
|
echo "Collecting static files..."
|
||||||
python manage.py collectstatic --noinput
|
python manage.py collectstatic --noinput
|
||||||
|
|
||||||
echo "Starting gunicorn..."
|
if [ "${SERVER_TYPE}" = "daphne" ] || [ "${SERVER_TYPE}" = "asgi" ]; then
|
||||||
exec gunicorn rad.wsgi:application \
|
echo "Starting daphne..."
|
||||||
--name rad_gunicorn \
|
exec daphne -b 0.0.0.0 -p 8000 rad.asgi:application
|
||||||
--bind 0.0.0.0:8000 \
|
else
|
||||||
--workers ${GUNICORN_WORKERS:-3} \
|
echo "Starting gunicorn..."
|
||||||
--log-level ${GUNICORN_LOGLEVEL:-info}
|
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
@@ -2,5 +2,5 @@ from django.urls import re_path
|
|||||||
from . import consumers
|
from . import consumers
|
||||||
|
|
||||||
websocket_urlpatterns = [
|
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()),
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user