From f954f77a6d2d32f5fd1bb173860743c651d456e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9A=D0=BE=D1=88=D0=BA=D0=B8=D0=BD=20=D0=A1=D0=B5=D1=80?= =?UTF-8?q?=D0=B3=D0=B5=D0=B9?= Date: Thu, 4 Dec 2025 12:35:08 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BB=D0=BE=D0=BA=D0=B0=D0=BB=D1=8C=D0=BD=D0=BE=20=D0=B1=D0=B8?= =?UTF-8?q?=D0=B1=D0=BB=D0=B8=D0=BE=D1=82=D0=B5=D0=BA=D1=83=20chart=20js.?= =?UTF-8?q?=20=D0=A1=D0=B4=D0=B5=D0=BB=D0=B0=D0=BB=20=D1=81=D0=B5=D0=BA?= =?UTF-8?q?=D1=80=D0=B5=D1=82=D0=BD=D1=83=D1=8E=20=D1=81=D1=82=D0=B0=D1=82?= =?UTF-8?q?=D0=B8=D1=81=D1=82=D0=B8=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../templates/mainapp/secret_stats.html | 971 ++++++++++++++++++ .../mainapp/templates/mainapp/statistics.html | 5 +- dbapp/mainapp/urls.py | 2 + dbapp/mainapp/views/secret_stats.py | 287 ++++++ dbapp/static/chartjs/chart-datalabels.js | 7 + dbapp/static/chartjs/chart.js | 14 + dbapp/static/chartjs/color.esm.js | 591 +++++++++++ 7 files changed, 1875 insertions(+), 2 deletions(-) create mode 100644 dbapp/mainapp/templates/mainapp/secret_stats.html create mode 100644 dbapp/mainapp/views/secret_stats.py create mode 100644 dbapp/static/chartjs/chart-datalabels.js create mode 100644 dbapp/static/chartjs/chart.js create mode 100644 dbapp/static/chartjs/color.esm.js diff --git a/dbapp/mainapp/templates/mainapp/secret_stats.html b/dbapp/mainapp/templates/mainapp/secret_stats.html new file mode 100644 index 0000000..0a02e59 --- /dev/null +++ b/dbapp/mainapp/templates/mainapp/secret_stats.html @@ -0,0 +1,971 @@ +{% load static %} + + + + + + 🎉 Итоги {{ year }} года + + + + + + + +
+ + +
+ +
+ + + + + +
+ +
+ + +
+
+
🎉 Ваш {{ year }} год
+
в цифрах
+
Итоги работы системы геолокации
+
+
+ + +
+
+
За {{ year }} год вы получили
+
0
+
точек геолокации
+
по 0 объектам
+ + {% if busiest_day %} +
+
🔥 Самый активный день
+
{{ busiest_day.date|date:"d.m.Y" }}
+
{{ busiest_day.points }} точек
+
+ {% endif %} +
+
+ + +
+
+
✨ Новые открытия
+
0
+
новых излучений
+
впервые обнаруженных в {{ year }} году
+
по 0 объектам
+ + {% if new_emission_objects %} +
+ {% for obj in new_emission_objects %} +
+
{{ obj.name }}
+
{{ obj.info }} • {{ obj.ownership }}
+
+ {% endfor %} +
+ {% endif %} +
+
+ + +
+
+
📡 Спутники
+
0
+
спутников с данными
+ +
+ {% for sat in satellite_stats %} +
+
{{ sat.parameter_obj__id_satellite__name }}
+
+ {{ sat.points_count }} точек • + {{ sat.sources_count }} объектов +
+
+ {% endfor %} +
+ +
+
Распределение точек по спутникам
+ +
+
+
+ + +
+
+
⏰ Когда вы работали
+
Анализ по времени
+ +
+
+
+
По месяцам
+ +
+
+
+
+
По дням недели
+ +
+
+
+ +
+
По часам
+ +
+
+
+ + +
+
+
🏆 Итоги {{ year }}
+ +
+
+
+
{{ total_points }}
+
Точек ГЛ
+
+
+
+
+
{{ total_sources }}
+
Объектов
+
+
+
+
+
{{ new_emissions_count }}
+
Новых излучений
+
+
+
+
+
{{ satellite_count }}
+
Спутников
+
+
+
+ +
+
🌟 Топ-10 объектов по количеству точек
+ +
+ +
+
До встречи в {{ year|add:1 }}! 🚀
+
+
+
+ + + + + + diff --git a/dbapp/mainapp/templates/mainapp/statistics.html b/dbapp/mainapp/templates/mainapp/statistics.html index df7007e..5d48a83 100644 --- a/dbapp/mainapp/templates/mainapp/statistics.html +++ b/dbapp/mainapp/templates/mainapp/statistics.html @@ -286,8 +286,9 @@ {% endblock %} {% block extra_js %} - - + + +