fix(ui): explain missing GitHub token row on FREE banner

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Андрей Бобырев
2026-05-15 05:10:06 +03:00
parent 29c01e11ac
commit 24ce104aea
4 changed files with 20 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "amnezia-admin", "name": "amnezia-admin",
"version": "1.2.24", "version": "1.2.25",
"private": true, "private": true,
"description": "amnezia_web — базовая панель AmneziaWG (FREE: просмотр и удаление клиентов; полная версия — PRO).", "description": "amnezia_web — базовая панель AmneziaWG (FREE: просмотр и удаление клиентов; полная версия — PRO).",
"license": "MIT", "license": "MIT",

View File

@@ -415,6 +415,13 @@ function applyEditionPayload(data) {
act.append(cap, row, msg); act.append(cap, row, msg);
if (preservedInstallLog) act.appendChild(preservedInstallLog); if (preservedInstallLog) act.appendChild(preservedInstallLog);
editionBanner.appendChild(act); 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 { } else {
stopCommunityInstallLogPolling(); stopCommunityInstallLogPolling();

View File

@@ -7,7 +7,7 @@
<link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet"> <link href="https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700&family=JetBrains+Mono:wght@400;600&display=swap" rel="stylesheet">
<link rel="stylesheet" href="/styles.css?v=1.2.23"> <link rel="stylesheet" href="/styles.css?v=1.2.25">
<script> <script>
(function () { (function () {
try { try {
@@ -313,6 +313,6 @@
</div> </div>
</dialog> </dialog>
<script src="/app.js?v=1.2.23" type="module"></script> <script src="/app.js?v=1.2.25" type="module"></script>
</body> </body>
</html> </html>

View File

@@ -1252,6 +1252,16 @@ tr:last-child td {
color: var(--ok) !important; 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 { .edition-banner-install-log {
margin-top: 0.75rem; margin-top: 0.75rem;
} }