feat(digest): базовая реализация раздела дайджестов (CRUD, закрепление, список) без вложений

This commit is contained in:
dev
2026-11-04 00:15:54 +03:00
parent 46f5e8ee95
commit 05043f99ec
11 changed files with 540 additions and 2 deletions
+9
View File
@@ -21,6 +21,10 @@
.post-task-hint { margin-top:6px; padding:6px 10px; border-radius:6px; background:rgba(239,68,68,.08); border:1px solid rgba(239,68,68,.3); color:#b91c1c; font-size:12px; line-height:1.4; }
.post-task-actions { display:flex; gap:6px; flex-wrap:wrap; margin-top:8px; }
.post-task-actions .btn-xs { padding:4px 10px; font-size:12px; }
.digest-dash-item { border:1px solid var(--border); border-radius:10px; padding:10px 12px; margin-bottom:8px; background:var(--card); }
.digest-dash-title { font-weight:600; font-size:.92rem; margin:0 0 4px 0; word-break:break-word; }
.digest-dash-body { font-size:.86rem; line-height:1.5; color:var(--text); margin-bottom:6px; word-break:break-word; }
.digest-dash-foot { font-size:.78rem; color:var(--muted); display:flex; gap:8px; align-items:center; }
</style>
</head>
<body data-page="dashboard">
@@ -86,6 +90,11 @@
<a class="action-btn" href="bans.html"><span class="aic"><i data-lucide="ban"></i></span>Блокировки</a>
</div>
</div>
<div class="dash-card">
<h3><span class="ic"><i data-lucide="newspaper"></i></span> Дайджест</h3>
<div class="digest-dash-list" id="dashDigest"></div>
<div class="dash-link-row"><a href="digest.html">Все сообщения →</a></div>
</div>
<div class="dash-card">
<h3><span class="ic"><i data-lucide="trophy"></i></span> Топ учеников</h3>
<div class="top-list" id="topList"></div>