From 3320dc95ca47757166226cff650058de947fb404 Mon Sep 17 00:00:00 2001 From: Zichao Lin Date: Mon, 6 Jul 2026 20:34:52 +0800 Subject: [PATCH] feat(dashboard): replace Chart.js with pure HTML/CSS bar chart, flags render correctly --- app/templates/dashboard.html | 37 +++++++++++------------------------- 1 file changed, 11 insertions(+), 26 deletions(-) diff --git a/app/templates/dashboard.html b/app/templates/dashboard.html index 0bd3476..3022e35 100644 --- a/app/templates/dashboard.html +++ b/app/templates/dashboard.html @@ -62,7 +62,17 @@ {% if country_stats %}

🌍 国家/地区分布

- + {% set max_count = country_stats[0][1] if country_stats else 1 %} + {% for code, count in country_stats %} +
+ {{ code|flag }} {{ code }} +
+
+ {{ count }} +
+
+
+ {% endfor %}
{% endif %} @@ -136,29 +146,4 @@

创建一个 Profile 开始管理你的明信片

{% endif %} -{% if country_stats %} - - -{% endif %} {% endblock %}