Выбор тарифа
-Экраны тарифов пока сверстаны без подключения
-From 2df4d2d7709eed5daa2aea43c8fc80190c6bf3c9 Mon Sep 17 00:00:00 2001
From: 3252a8 <3252a8@proton.me>
Date: Thu, 30 Apr 2026 00:06:31 +0300
Subject: [PATCH] feat: tune webapp visual
---
.dockerignore | 1 +
.gitignore | 1 +
Dockerfile | 3 +
bot/app/web/frontend/src/App.svelte | 1621 +-
bot/app/web/frontend/src/PreviewBoard.svelte | 7 +-
.../src/lib/components/ui/dialog.svelte | 5 +-
.../src/lib/components/ui/input.svelte | 5 +
bot/app/web/frontend/src/styles.css | 790 +-
bot/app/web/subscription_webapp.py | 57 +-
bot/app/web/templates/subscription_webapp.css | 1175 --
.../web/templates/subscription_webapp.html | 4 +-
bot/app/web/templates/subscription_webapp.js | 14138 ----------------
.../subscription_webapp.tailwind.css | 916 -
locales/en.json | 122 +-
locales/ru.json | 122 +-
15 files changed, 2092 insertions(+), 16875 deletions(-)
delete mode 100644 bot/app/web/templates/subscription_webapp.css
delete mode 100644 bot/app/web/templates/subscription_webapp.js
delete mode 100644 bot/app/web/templates/subscription_webapp.tailwind.css
diff --git a/.dockerignore b/.dockerignore
index c8a6475..4ce4d8e 100644
--- a/.dockerignore
+++ b/.dockerignore
@@ -28,6 +28,7 @@ tmp/
# WebApp build artifacts (regenerated inside Docker)
bot/app/web/templates/subscription_webapp.css
+bot/app/web/templates/subscription_webapp.js
bot/app/web/templates/subscription_webapp.min.*.js
# Byte-compiled / optimized / DLL files
diff --git a/.gitignore b/.gitignore
index fbbc6d4..3dca910 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,6 +12,7 @@ node_modules/
# WebApp build artifacts (regenerated by `npm run build:webapp` / Docker build)
bot/app/web/templates/subscription_webapp.css
+bot/app/web/templates/subscription_webapp.js
bot/app/web/templates/subscription_webapp.min.*.js
tmp
.claude
diff --git a/Dockerfile b/Dockerfile
index c664076..dd1f6db 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -37,9 +37,12 @@ COPY . .
# Replace template assets with freshly built ones
RUN rm -f bot/app/web/templates/subscription_webapp.css \
+ bot/app/web/templates/subscription_webapp.js \
bot/app/web/templates/subscription_webapp.min.*.js
COPY --from=webapp-builder /webapp/bot/app/web/templates/subscription_webapp.css \
bot/app/web/templates/subscription_webapp.css
+COPY --from=webapp-builder /webapp/bot/app/web/templates/subscription_webapp.js \
+ bot/app/web/templates/subscription_webapp.js
COPY --from=webapp-builder /webapp/bot/app/web/templates/subscription_webapp.min.*.js \
bot/app/web/templates/
diff --git a/bot/app/web/frontend/src/App.svelte b/bot/app/web/frontend/src/App.svelte
index de703a2..5df0bc5 100644
--- a/bot/app/web/frontend/src/App.svelte
+++ b/bot/app/web/frontend/src/App.svelte
@@ -1,29 +1,30 @@
-
Войдите в свой аккаунт
{subscription.end_date_text ? `до ${subscription.end_date_text}` : subscription.remaining_text}
+{subscription.end_date_text ? t("wa_until_date", { date: subscription.end_date_text }) : subscription.remaining_text}
+Экраны тарифов пока сверстаны без подключения
-Выберите срок подписки
-Выберите пакет трафика
-Остаток 12 дней будет пересчитан
-{referral.webapp_link || referral.bot_link || "Ссылка пока недоступна"}
- Друг получит +3 дня к подписке после регистрации.
+{t("wa_referral_bonus_once_note")}
+ {/if} +{referral.webapp_link || referral.bot_link || t("wa_link_unavailable")}
+ {t("wa_referral_bonus_paid_intro")}
+ {/if} + {#each referralBonusDetails as bonus, index (bonus.months || index)} +{t("wa_referral_bonus_not_configured")}
+ {/if}{promoStatus}
{/if}{description}
{/if}