8 major features: trafilatura, digest, ntfy actions, templates, FTS5 search, backup/restore, proxy, RSS reader
build-and-push / docker (push) Has been cancelled

- Full article extraction via trafilatura (fetch_full_article)
- Digest mode with configurable period (digest_enabled, digest_period_hours)
- ntfy Actions buttons (Open article, Open feed)
- Notification templates with {title}, {body}, {link}, {source}, {image_url}
- FTS5 full-text search in notification history
- Database backup/restore (download/upload .db)
- HTTP/SOCKS proxy for RSS feed fetching (proxy_url setting)
- Built-in RSS reader tab with categories, unread counts, article detail view
- Auto-category 'Общее' for feeds without a category
- Article storage (Article table) for reader
- DigestEntry model for pending digest entries

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
dimon
2026-06-03 20:47:46 +08:00
parent f8d2c31658
commit 834092a3ec
13 changed files with 1414 additions and 44 deletions
+51
View File
@@ -133,6 +133,8 @@ h1, h2, h3 { margin: 0; font-weight: 600; }
}
.chip.topic { background: rgba(79, 124, 255, .16); color: #aebfff; }
.chip.tg { background: rgba(34, 158, 217, .18); color: #7fd0f0; }
.chip.cat { background: rgba(168, 85, 247, .18); color: #c9a2f5; }
.chip.full { background: rgba(245, 158, 11, .16); color: #fbbf24; }
.feed-status { font-size: 12.5px; color: var(--muted); }
.feed-status .ok { color: var(--success); }
.feed-status .err { color: var(--danger); }
@@ -316,3 +318,52 @@ details.adv[open] { padding-bottom: 8px; }
.np-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; word-break: break-word; }
.np-body { font-size: 13.5px; color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.ntfy-preview img { max-width: 100%; border-radius: 8px; margin-top: 10px; display: block; }
/* ---------- Reader layout ---------- */
.reader-layout {
display: grid;
grid-template-columns: 200px 1fr;
gap: 20px;
min-height: 60vh;
}
@media (max-width: 700px) {
.reader-layout { grid-template-columns: 1fr; }
}
.reader-sidebar { position: sticky; top: 80px; align-self: start; }
.reader-cats { display: flex; flex-direction: column; gap: 4px; }
.reader-cat {
padding: 8px 14px; border-radius: 8px; cursor: pointer;
font-size: 14px; font-weight: 500; transition: .15s;
display: flex; justify-content: space-between; align-items: center;
}
.reader-cat:hover { background: rgba(255,255,255,.04); }
.reader-cat.active { background: rgba(79,124,255,.16); color: var(--primary); }
.reader-cat .badge {
background: var(--primary); color: #fff; font-size: 11px;
padding: 1px 7px; border-radius: 999px; min-width: 20px; text-align: center;
}
/* Article rows */
.article-row {
display: flex; gap: 12px; padding: 14px 16px;
border-bottom: 1px solid var(--border); cursor: pointer; transition: .1s;
}
.article-row:hover { background: rgba(255,255,255,.03); }
.article-row.unread { border-left: 3px solid var(--primary); }
.article-dot { color: var(--primary); font-size: 12px; flex-shrink: 0; margin-top: 3px; }
.article-content { flex: 1; min-width: 0; }
.article-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.article-meta { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; font-size: 12.5px; }
.article-body-preview {
font-size: 13px; color: var(--muted); white-space: pre-wrap;
display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
/* Article detail (full view) */
.article-body {
font-size: 15px; line-height: 1.7; margin-top: 20px;
padding: 20px; background: var(--bg-soft); border-radius: 12px;
white-space: pre-wrap; word-break: break-word;
}
.article-body img { max-width: 100%; border-radius: 8px; margin: 12px 0; }
#reader-back { margin-bottom: 16px; }