certs: генерация TLS в entrypoint и bind-mount certs; UI отзывов и иконка модуля

- TLS-сертификат вынесен из Dockerfile в entrypoint.sh, генерируется только при отсутствии в certs/; certs подключён bind-mount, чтобы переживать пересборку
- Отзывы: кнопки «Изменить»/«Удалить» переведены на icon-btn, добавлена AI-подложка для обработанных записей
- Журнал: иконка модуля в карточке отчёта берётся из названия модуля
- AGENTS.md: обновлён раздел Docker/Compose и Tailscale
This commit is contained in:
dev
2026-10-12 00:57:02 +03:00
parent 449ff00259
commit 230dc3ec4d
8 changed files with 35 additions and 12 deletions
+7
View File
@@ -112,6 +112,12 @@ function reportCardMetaHTML(e) {
return html;
}
function moduleIconText(name) {
const s = (name || '').trim().slice(0, 2);
if (!s) return '';
return s.charAt(0).toUpperCase() + s.slice(1).toLowerCase();
}
function renderReportCard(e) {
const photo = document.getElementById('reportCardPhoto');
const noPhoto = document.getElementById('reportCardNoPhoto');
@@ -147,6 +153,7 @@ function renderReportCard(e) {
const toolBadge = document.getElementById('reportCardModule').parentElement;
const tool = e.module_name || '';
document.getElementById('reportCardModule').textContent = tool;
document.getElementById('reportCardModuleIcon').textContent = moduleIconText(tool);
toolBadge.hidden = !reportCardFieldOn('module') || !tool;
document.getElementById('reportCardMeta').innerHTML = reportCardMetaHTML(e);
}