From 24ce104aea5220a1c4244ee5c62b294962bd2e31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=91=D0=BE=D0=B1?= =?UTF-8?q?=D1=8B=D1=80=D0=B5=D0=B2?= Date: Fri, 15 May 2026 05:10:06 +0300 Subject: [PATCH] fix(ui): explain missing GitHub token row on FREE banner Co-authored-by: Cursor --- package.json | 2 +- public/app.js | 7 +++++++ public/index.html | 4 ++-- public/styles.css | 10 ++++++++++ 4 files changed, 20 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d170f65..5c41a61 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "amnezia-admin", - "version": "1.2.24", + "version": "1.2.25", "private": true, "description": "amnezia_web — базовая панель AmneziaWG (FREE: просмотр и удаление клиентов; полная версия — PRO).", "license": "MIT", diff --git a/public/app.js b/public/app.js index 057d4d5..a5001a8 100644 --- a/public/app.js +++ b/public/app.js @@ -415,6 +415,13 @@ function applyEditionPayload(data) { act.append(cap, row, msg); if (preservedInstallLog) act.appendChild(preservedInstallLog); editionBanner.appendChild(act); + } else { + const hint = document.createElement("p"); + hint.className = "edition-banner-no-activation muted"; + hint.setAttribute("role", "note"); + hint.textContent = + "Строки для GitHub‑токена нет специально: эта возможность была отключена при установке FREE. Чтобы она появилась здесь под кнопкой Boosty — переустановите панель с INSTALL_FREE_COMMUNITY_ACTIVATION=1 (README, раздел «Установка для клиента»), либо задайте ALLOW_COMMUNITY_GITHUB_ACTIVATION=1 в переменных контейнера; также помогает файл .install-free-github-pro-opt-in в каталоге данных панели и повторный запуск install.sh."; + editionBanner.appendChild(hint); } } else { stopCommunityInstallLogPolling(); diff --git a/public/index.html b/public/index.html index 96f9d8a..3121452 100644 --- a/public/index.html +++ b/public/index.html @@ -7,7 +7,7 @@ - + + diff --git a/public/styles.css b/public/styles.css index a612d9a..1f1ee20 100644 --- a/public/styles.css +++ b/public/styles.css @@ -1252,6 +1252,16 @@ tr:last-child td { color: var(--ok) !important; } +.edition-banner-no-activation { + margin: 0.85rem 0 0; + padding-top: 0.75rem; + border-top: 1px dashed rgba(125, 211, 252, 0.28); + width: 100%; + font-size: 0.82rem; + line-height: 1.45; + max-width: 52rem; +} + .edition-banner-install-log { margin-top: 0.75rem; }