1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-22 07:18:25 +02:00

Minify CSS and JavaScript files

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-06-02 19:47:35 +02:00
parent 635606eb13
commit 5e2add90a8
29 changed files with 113 additions and 51 deletions

View File

@ -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"

View File

@ -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 #}
<link rel="manifest" href="{% static "chat.webmanifest" %}">
<link rel="manifest" href="{% static "tfjm/chat.webmanifest" %}">
{% endblock %}
{% block content-title %}{% endblock %}
@ -16,5 +17,5 @@
{% block extrajavascript %}
{# Ce script contient toutes les données pour la gestion du chat. #}
<script src="{% static 'chat.js' %}"></script>
{% javascript 'chat' %}
{% endblock %}

View File

@ -1,4 +1,4 @@
{% load i18n static %}
{% load i18n pipeline static %}
<!DOCTYPE html>
{% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %}
@ -15,23 +15,21 @@
<link rel="shortcut icon" href="{% static "favicon.ico" %}">
<meta name="theme-color" content="#ffffff">
{# Bootstrap CSS #}
<link rel="stylesheet" href="{% static 'bootstrap/css/bootstrap.min.css' %}">
<link rel="stylesheet" href="{% static 'fontawesome/css/all.css' %}">
<link rel="stylesheet" href="{% static 'fontawesome/css/v4-shims.css' %}">
{# Bootstrap + Font Awesome CSS #}
{% stylesheet 'bootstrap_fontawesome' %}
{# Bootstrap JavaScript #}
<script src="{% static 'bootstrap/js/bootstrap.bundle.min.js' %}"></script>
{% javascript 'bootstrap' %}
{# Webmanifest PWA permettant l'installation de l'application sur un écran d'accueil, pour navigateurs supportés #}
<link rel="manifest" href="{% static "chat.webmanifest" %}">
<link rel="manifest" href="{% static "tfjm/chat.webmanifest" %}">
</head>
<body class="d-flex w-100 h-100 flex-column">
{% include "chat/content.html" with fullscreen=True %}
{# Inclusion du script permettant de gérer le thème sombre et le thème clair #}
<script src="{% static 'theme.js' %}"></script>
{% javascript 'theme' %}
{# Inclusion du script gérant le chat #}
<script src="{% static 'chat.js' %}"></script>
{% javascript 'chat' %}
</body>
</html>

View File

@ -1,4 +1,4 @@
{% load i18n static %}
{% load i18n pipeline static %}
<!DOCTYPE html>
{% get_current_language as LANGUAGE_CODE %}{% get_current_language_bidi as LANGUAGE_BIDI %}
@ -16,15 +16,13 @@
<meta name="theme-color" content="#ffffff">
{# Bootstrap CSS #}
<link rel="stylesheet" href="{% static 'bootstrap/css/bootstrap.min.css' %}">
<link rel="stylesheet" href="{% static 'fontawesome/css/all.css' %}">
<link rel="stylesheet" href="{% static 'fontawesome/css/v4-shims.css' %}">
{% stylesheet 'bootstrap_fontawesome' %}
{# Bootstrap JavaScript #}
<script src="{% static 'bootstrap/js/bootstrap.bundle.min.js' %}"></script>
{% javascript 'bootstrap' %}
{# Webmanifest PWA permettant l'installation de l'application sur un écran d'accueil, pour navigateurs supportés #}
<link rel="manifest" href="{% static "chat.webmanifest" %}">
<link rel="manifest" href="{% static "tfjm/chat.webmanifest" %}">
</head>
<body class="d-flex w-100 h-100 flex-column">
<div class="container">
@ -33,6 +31,6 @@
</div>
{# Inclusion du script permettant de gérer le thème sombre et le thème clair #}
<script src="{% static 'theme.js' %}"></script>
{% javascript 'theme' %}
</body>
</html>