From 59743dcaa87920a5125915454e0afa0a22b05ee7 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sun, 15 Feb 2026 19:36:03 -0800 Subject: Vanilla JS (v3): Redesign to 2-pane glassmorphism, fix CSP errors, fix Settings view, and achieve 80% test coverage --- frontend-vanilla/src/components/FeedItem.ts | 38 +++++++++++++++++++++++------ 1 file changed, 31 insertions(+), 7 deletions(-) (limited to 'frontend-vanilla/src/components/FeedItem.ts') diff --git a/frontend-vanilla/src/components/FeedItem.ts b/frontend-vanilla/src/components/FeedItem.ts index 3bf72c2..e58aac8 100644 --- a/frontend-vanilla/src/components/FeedItem.ts +++ b/frontend-vanilla/src/components/FeedItem.ts @@ -1,11 +1,35 @@ -import type { Feed } from '../types'; +import type { Item } from '../types'; -export function createFeedItem(feed: Feed, isActive: boolean): string { - return ` -
  • - - ${feed.title || feed.url} - +export function createFeedItem(item: Item): string { + const date = new Date(item.publish_date).toLocaleDateString(); + return ` +
  • + + + ${(item.full_content || item.description) ? ` +
    + ${item.full_content || item.description} +
    + ` : ''}
  • `; } -- cgit v1.2.3