diff --git a/Dockerfile b/Dockerfile index b00506d..d8e9ec4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,10 +3,12 @@ FROM python:3.12-alpine ENV PYTHONUNBUFFERED 1 ENV DJANGO_ALLOW_ASYNC_UNSAFE 1 -RUN apk add --no-cache gettext nginx gcc git libc-dev libffi-dev libxml2-dev libxslt-dev postgresql-dev libmagic texlive texmf-dist-latexextra +RUN apk add --no-cache gettext nginx gcc git libc-dev libffi-dev libxml2-dev libxslt-dev npm postgresql-dev libmagic texlive texmf-dist-latexextra RUN apk add --no-cache bash +RUN npm install -g yuglify + RUN mkdir /code /code/docs WORKDIR /code COPY requirements.txt /code/requirements.txt diff --git a/chat/static/chat.webmanifest b/chat/static/tfjm/chat.webmanifest similarity index 79% rename from chat/static/chat.webmanifest rename to chat/static/tfjm/chat.webmanifest index 156d0a1..109e19f 100644 --- a/chat/static/chat.webmanifest +++ b/chat/static/tfjm/chat.webmanifest @@ -4,19 +4,19 @@ "display": "standalone", "icons": [ { - "src": "tfjm-square.svg", + "src": "/static/tfjm/img/tfjm-square.svg", "sizes": "any", "type": "image/svg+xml", "purpose": "maskable" }, { - "src": "tfjm-512.png", + "src": "/static/tfjm/img/tfjm-512.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" }, { - "src": "tfjm-192.png", + "src": "/static/tfjm/img/tfjm-192.png", "sizes": "192x192", "type": "image/png", "purpose": "maskable" diff --git a/chat/static/chat.js b/chat/static/tfjm/js/chat.js similarity index 100% rename from chat/static/chat.js rename to chat/static/tfjm/js/chat.js diff --git a/chat/templates/chat/chat.html b/chat/templates/chat/chat.html index f214d3a..5588aab 100644 --- a/chat/templates/chat/chat.html +++ b/chat/templates/chat/chat.html @@ -2,10 +2,11 @@ {% load static %} {% load i18n %} +{% load pipeline %} {% block extracss %} {# Webmanifest PWA permettant l'installation de l'application sur un écran d'accueil, pour navigateurs supportés #} - + {% endblock %} {% block content-title %}{% endblock %} @@ -16,5 +17,5 @@ {% block extrajavascript %} {# Ce script contient toutes les données pour la gestion du chat. #} - + {% javascript 'chat' %} {% endblock %} diff --git a/chat/templates/chat/fullscreen.html b/chat/templates/chat/fullscreen.html index 1d354c3..20d2f21 100644 --- a/chat/templates/chat/fullscreen.html +++ b/chat/templates/chat/fullscreen.html @@ -1,4 +1,4 @@ -{% load i18n static %} +{% load i18n pipeline static %} {% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %} @@ -15,23 +15,21 @@ - {# Bootstrap CSS #} - - - + {# Bootstrap + Font Awesome CSS #} + {% stylesheet 'bootstrap_fontawesome' %} {# Bootstrap JavaScript #} - + {% javascript 'bootstrap' %} {# Webmanifest PWA permettant l'installation de l'application sur un écran d'accueil, pour navigateurs supportés #} - +
{% include "chat/content.html" with fullscreen=True %} {# Inclusion du script permettant de gérer le thème sombre et le thème clair #} - +{% javascript 'theme' %} {# Inclusion du script gérant le chat #} - +{% javascript 'chat' %}