mirror of
https://github.com/andrey271192/amnezia_web.git
synced 2026-09-20 14:41:59 +00:00
fix(ui): explain missing GitHub token row on FREE banner
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
<link rel="preconnect" href="https://fonts.googleapis.com">
|
||||
<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 rel="stylesheet" href="/styles.css?v=1.2.23">
|
||||
<link rel="stylesheet" href="/styles.css?v=1.2.25">
|
||||
<script>
|
||||
(function () {
|
||||
try {
|
||||
@@ -313,6 +313,6 @@
|
||||
</div>
|
||||
</dialog>
|
||||
|
||||
<script src="/app.js?v=1.2.23" type="module"></script>
|
||||
<script src="/app.js?v=1.2.25" type="module"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user