From e3e9084792f19837300c3454c74b34224134200d Mon Sep 17 00:00:00 2001 From: poignatov Date: Wed, 4 Feb 2026 17:26:52 +0300 Subject: [PATCH] =?UTF-8?q?4.16.2:=20=D0=A3=D0=BF=D1=80=D0=BE=D1=89=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B0=D0=B4=D0=BC=D0=B8=D0=BD-=D0=BF?= =?UTF-8?q?=D0=B0=D0=BD=D0=B5=D0=BB=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VERSION | 2 +- play-life-backend/admin.html | 105 ----------------------------------- play-life-web/package.json | 2 +- 3 files changed, 2 insertions(+), 107 deletions(-) diff --git a/VERSION b/VERSION index 27593c8..469f283 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -4.16.1 +4.16.2 diff --git a/play-life-backend/admin.html b/play-life-backend/admin.html index 799c82e..320a8c9 100644 --- a/play-life-backend/admin.html +++ b/play-life-backend/admin.html @@ -210,36 +210,6 @@

🎯 Play Life Backend - Admin Panel

- -
-

- 📨 Message Post - -

- - -
-
- - -
-

- 📈 Daily Report Trigger - -

-

- Нажмите кнопку для отправки ежедневного отчёта по Score и Целям в Telegram (обычно отправляется автоматически в 23:59). -

- -
-
-

@@ -347,46 +317,6 @@ resultEl.appendChild(div); } - async function sendMessage() { - const text = document.getElementById('messageText').value.trim(); - if (!text) { - alert('Пожалуйста, введите сообщение'); - return; - } - - showStatus('messageStatus', 'loading', 'Отправка...'); - showResult('messageResult', null, false, true); - - try { - const response = await fetch(`${getApiUrl()}/message/post`, { - method: 'POST', - headers: getAuthHeaders(), - body: JSON.stringify({ - body: { - text: text - } - }) - }); - - if (handleAuthError(response)) { - return; - } - - const data = await response.json(); - - if (response.ok) { - showStatus('messageStatus', 'success', 'Успешно'); - showResult('messageResult', data, false); - } else { - showStatus('messageStatus', 'error', 'Ошибка'); - showResult('messageResult', data, true); - } - } catch (error) { - showStatus('messageStatus', 'error', 'Ошибка'); - showResult('messageResult', { error: error.message }, true); - } - } - async function setupWeeklyGoals() { showStatus('goalsStatus', 'loading', 'Обновление...'); showResult('goalsResult', null, false, true); @@ -416,41 +346,6 @@ } } - async function triggerDailyReport() { - showStatus('dailyReportStatus', 'loading', 'Отправка...'); - showResult('dailyReportResult', null, false, true); - - try { - const response = await fetch(`${getApiUrl()}/daily-report/trigger`, { - method: 'POST', - headers: getAuthHeaders() - }); - - if (handleAuthError(response)) { - return; - } - - const data = await response.json(); - - if (response.ok) { - showStatus('dailyReportStatus', 'success', 'Успешно'); - showResult('dailyReportResult', data, false); - } else { - showStatus('dailyReportStatus', 'error', 'Ошибка'); - showResult('dailyReportResult', data, true); - } - } catch (error) { - showStatus('dailyReportStatus', 'error', 'Ошибка'); - showResult('dailyReportResult', { error: error.message }, true); - } - } - - // Разрешаем отправку формы по Enter (Ctrl+Enter для textarea) - document.getElementById('messageText').addEventListener('keydown', function(e) { - if (e.ctrlKey && e.key === 'Enter') { - sendMessage(); - } - }); diff --git a/play-life-web/package.json b/play-life-web/package.json index 8cc0916..5c6020f 100644 --- a/play-life-web/package.json +++ b/play-life-web/package.json @@ -1,6 +1,6 @@ { "name": "play-life-web", - "version": "4.16.1", + "version": "4.16.2", "type": "module", "scripts": { "dev": "vite",