From 78ef78fda1e9112285d81e59285a9bed063c00c6 Mon Sep 17 00:00:00 2001 From: vrubelroman Date: Sat, 24 Oct 2026 11:58:22 +0300 Subject: [PATCH] =?UTF-8?q?Site:=20no=20=C2=ABfree=20and=20open=20source?= =?UTF-8?q?=C2=BB=20line;=20recent=20downloads=20without=20bots,=20long=20?= =?UTF-8?q?cells=20wrap?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 --- website/server/src/main.rs | 8 ++++---- website/site/i18n/de.json | 1 - website/site/i18n/en.json | 1 - website/site/i18n/es.json | 1 - website/site/i18n/fr.json | 1 - website/site/i18n/it.json | 1 - website/site/i18n/ru.json | 1 - website/site/index.html | 1 - website/static/css/site.css | 3 +-- 9 files changed, 5 insertions(+), 13 deletions(-) diff --git a/website/server/src/main.rs b/website/server/src/main.rs index ff0c5d2..2d9f3e9 100644 --- a/website/server/src/main.rs +++ b/website/server/src/main.rs @@ -931,10 +931,10 @@ async fn stats(State(state): State, headers: HeaderMap) -> Response { ); let mut recent = String::from( - "

Последние скачивания (все, включая отсеянные)

", + "

Последние скачивания (без ботов; ваши и из локальной сети — серым)

Время (UTC)ФайлВерсияГдеЯзыкОткудаКто
", ); if let Ok(mut stmt) = db.prepare( - "SELECT ts, platform, version, country, region, city, lang, referrer, kind, ua FROM downloads ORDER BY id DESC LIMIT 50", + "SELECT ts, platform, version, country, region, city, lang, referrer, kind, ua FROM downloads WHERE kind <> 'bot' ORDER BY id DESC LIMIT 50", ) { let rows = stmt.query_map([], |r| { (0..10) @@ -950,14 +950,13 @@ async fn stats(State(state): State, headers: HeaderMap) -> Response { .join(" · "); let who = match row[8].as_str() { "human" => "человек", - "bot" => "бот", "owner" => "вы", "local" => "локальная сеть", other => other, }; let class = if row[8] == "human" { "" } else { " class=muted" }; recent.push_str(&format!( - "", + "", esc(&row[0].replace('T', " ").replace('Z', "")), esc(platform_label(&row[1])), esc(&row[2]), @@ -982,6 +981,7 @@ section.wide{{margin-top:16px}} h2{{font-size:15px;margin:0 0 10px}} table{{border-collapse:collapse;width:100%}} td,th{{padding:4px 6px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}} .summary td{{padding:10px 8px}} .summary td:first-child{{white-space:normal}} .big{{font-size:24px;font-weight:600}} .grid td:first-child{{max-width:230px;overflow:hidden;text-overflow:ellipsis}} .num{{text-align:right;width:60px}} .bar{{width:40%}} .bar span{{display:block;height:8px;border-radius:4px;background:var(--accent)}} +.recent td.wrap{{white-space:normal;overflow-wrap:anywhere;min-width:120px}} .muted{{color:var(--muted)}} .chart{{display:flex;gap:3px;height:150px}} .chart div{{flex:1;display:flex;flex-direction:column;text-align:center}} .chart p{{flex:1;margin:0;display:flex;align-items:flex-end;justify-content:center;gap:1px}} diff --git a/website/site/i18n/de.json b/website/site/i18n/de.json index 014b32a..b5d399e 100644 --- a/website/site/i18n/de.json +++ b/website/site/i18n/de.json @@ -33,7 +33,6 @@ "see_all": "Alle Downloads", "platforms": "Plattformen", "badge_macos": "macOS · Apple Silicon", - "free_line": "Kostenlos und Open Source. Kein Konto, keine Werbung, kein Tracking.", "started": "Ihr Download hat begonnen.", "try_again": "Nicht gestartet? Erneut versuchen", "choose_another": "Andere Datei wählen", diff --git a/website/site/i18n/en.json b/website/site/i18n/en.json index 103879f..4153d41 100644 --- a/website/site/i18n/en.json +++ b/website/site/i18n/en.json @@ -33,7 +33,6 @@ "see_all": "See all downloads", "platforms": "Platforms", "badge_macos": "macOS · Apple silicon", - "free_line": "Free and open source. No account, no ads, no tracking.", "started": "Your download has started.", "try_again": "Didn't start? Try again", "choose_another": "Choose another file", diff --git a/website/site/i18n/es.json b/website/site/i18n/es.json index 6069fab..f9ca74f 100644 --- a/website/site/i18n/es.json +++ b/website/site/i18n/es.json @@ -33,7 +33,6 @@ "see_all": "Todas las descargas", "platforms": "Plataformas", "badge_macos": "macOS · Apple silicon", - "free_line": "Gratis y de código abierto. Sin cuenta, sin anuncios, sin rastreo.", "started": "Tu descarga ha comenzado.", "try_again": "¿No empezó? Inténtalo de nuevo", "choose_another": "Elegir otro archivo", diff --git a/website/site/i18n/fr.json b/website/site/i18n/fr.json index 26b01c6..7888e10 100644 --- a/website/site/i18n/fr.json +++ b/website/site/i18n/fr.json @@ -33,7 +33,6 @@ "see_all": "Tous les téléchargements", "platforms": "Plateformes", "badge_macos": "macOS · Apple silicon", - "free_line": "Gratuit et open source. Sans compte, sans publicité, sans pistage.", "started": "Votre téléchargement a commencé.", "try_again": "Il n'a pas démarré ? Réessayer", "choose_another": "Choisir un autre fichier", diff --git a/website/site/i18n/it.json b/website/site/i18n/it.json index da5976c..025b786 100644 --- a/website/site/i18n/it.json +++ b/website/site/i18n/it.json @@ -33,7 +33,6 @@ "see_all": "Tutti i download", "platforms": "Piattaforme", "badge_macos": "macOS · Apple silicon", - "free_line": "Gratuito e open source. Niente account, niente pubblicità, niente tracciamento.", "started": "Il download è iniziato.", "try_again": "Non è partito? Riprova", "choose_another": "Scegli un altro file", diff --git a/website/site/i18n/ru.json b/website/site/i18n/ru.json index c8f93ad..84d51ce 100644 --- a/website/site/i18n/ru.json +++ b/website/site/i18n/ru.json @@ -33,7 +33,6 @@ "see_all": "Все загрузки", "platforms": "Платформы", "badge_macos": "macOS · Apple silicon", - "free_line": "Бесплатно и с открытым кодом. Без регистрации, рекламы и слежки.", "started": "Загрузка началась.", "try_again": "Не началась? Попробуйте ещё раз", "choose_another": "Выбрать другой файл", diff --git a/website/site/index.html b/website/site/index.html index c66f6d0..9265e32 100644 --- a/website/site/index.html +++ b/website/site/index.html @@ -89,7 +89,6 @@
  • Flatpak
  • Android
  • -

    {{t:free_line}}

    diff --git a/website/static/css/site.css b/website/static/css/site.css index 44ffc85..fdb7e8b 100644 --- a/website/static/css/site.css +++ b/website/static/css/site.css @@ -84,10 +84,9 @@ p { margin: 0 0 12px; } .cta .note.warn { color: var(--warn); } .mobile p { color: var(--text-2); max-width: 52ch; } .mobile .btn { margin-right: 16px; } -.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 8px; } +.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 56px; } .badges a { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border: 1px solid var(--border); border-radius: 14px; font-size: 13px; color: var(--text-2); } .badges a:hover { border-color: var(--border-strong); color: var(--text); text-decoration: none; } -.free { font-size: 13px; color: var(--text-2); margin-bottom: 48px; } @media (max-width: 639px) { .hero { padding-top: 48px; } .hero h1 { font-size: 32px; } .hero .sub { font-size: 17px; } } .started { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; margin-top: 16px; max-width: 640px; position: relative; font-size: 15px; }
    Время (UTC)ФайлВерсияГдеЯзыкОткудаКто
    {}{}{}{place}{}{}{who}
    {}{}{}{place}{}{}{who}