diff --git a/main.py b/main.py index 1e1d949..d020f08 100644 --- a/main.py +++ b/main.py @@ -173,7 +173,7 @@ MAX_MESSAGE_LEN = 10_000 # ⚠️ Версия UI — единый источник. БАМПАТЬ ПРИ КАЖДОМ ДЕПЛОЕ (формат: YYYY-MM-DD + буква). # Фронт берёт её через GET /api/version (chat.html + admin.html, элемент .app-version). -APP_VERSION = "2026-06-10a" +APP_VERSION = "2026-06-10b" # Audit: path → action name mapping _AUDIT_MAP = [ diff --git a/static/admin.html b/static/admin.html index a7a38f2..9197a98 100644 --- a/static/admin.html +++ b/static/admin.html @@ -35,7 +35,27 @@ a { color: var(--accent); text-decoration: none; } .btn { padding: .5rem 1rem; background: var(--accent); color: #fff; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: .85rem; } .btn:hover { background: #a83830; } .btn-sm { padding: 2px 8px; font-size: .7rem; margin: 1px; cursor: pointer; border: 1px solid var(--border); border-radius: 3px; background: var(--card); } + +/* ===== Тёмная тема (общая с чатом; выбор хранится в localStorage['theme']) ===== */ +html { color-scheme: light; } +:root[data-theme="dark"] { + color-scheme: dark; + --bg: #16140f; --card: #211d17; --text: #ece4d7; --muted: #a89c8a; + --accent: #d9695c; --border: #3a332a; + --sidebar: #201c16; --sidebar-text: #d8cdbd; --sidebar-active: #d9695c; --green: #3fa066; +} +:root[data-theme="dark"] th { background: #2a2620; } +:root[data-theme="dark"] td { border-top-color: #2f2820; } +:root[data-theme="dark"] table, :root[data-theme="dark"] .stat-card { box-shadow: 0 1px 4px rgba(0,0,0,.4); } +:root[data-theme="dark"] .btn:hover { background: #c2564a; } + @@ -47,6 +67,7 @@ a { color: var(--accent); text-decoration: none; } Сессии Журнал Файлы + 🌙 Тёмная тема ← Вернуться в чат
diff --git a/static/register.html b/static/register.html index bd6f08f..1aff495 100644 --- a/static/register.html +++ b/static/register.html @@ -23,9 +23,28 @@ button:disabled { background: var(--border); cursor: not-allowed; } .link:hover { text-decoration: underline; } .step { display: none; } .step.active { display: block; } + +/* ===== Тёмная тема (общая с чатом; выбор в localStorage['theme']) ===== */ +html { color-scheme: light; } +:root[data-theme="dark"] { + color-scheme: dark; + --bg: #16140f; --card: #211d17; --text: #ece4d7; --muted: #a89c8a; + --accent: #d9695c; --border: #3a332a; --green: #3fa066; +} +:root[data-theme="dark"] .card { box-shadow: 0 2px 16px rgba(0,0,0,.5); } +:root[data-theme="dark"] input { background: #262019; color: var(--text); } +:root[data-theme="dark"] button:hover { background: #c2564a; } +#theme-fab { position: fixed; top: .8rem; right: .8rem; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; font-size: 1rem; line-height: 1; } + +

Регистрация

Сметный ИИ-ассистент

diff --git a/static/security.html b/static/security.html index 5877e11..2335e05 100644 --- a/static/security.html +++ b/static/security.html @@ -29,9 +29,30 @@ th { background: var(--bg); font-weight: 600; } .back:hover { text-decoration: underline; } .compare-good { color: #2b8a3e; } .compare-bad { color: #c92a2a; } + +/* ===== Тёмная тема (общая с чатом; выбор в localStorage['theme']) ===== */ +html { color-scheme: light; } +:root[data-theme="dark"] { + color-scheme: dark; + --bg: #16140f; --bg-card: #211d17; --text: #ece4d7; --text-muted: #a89c8a; + --border: #3a332a; --accent: #d9695c; + --shadow-md: 0 8px 28px rgba(0,0,0,.55); +} +:root[data-theme="dark"] strong { color: #ece4d7; } +:root[data-theme="dark"] .highlight { background: #2a2410; } +:root[data-theme="dark"] .compare-good { color: #5fc27e; } +:root[data-theme="dark"] .compare-bad { color: #ff8585; } +#theme-fab { position: fixed; top: .8rem; right: .8rem; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text); cursor: pointer; font-size: 1rem; line-height: 1; } + +