perf improvements

This commit is contained in:
Michael Freno
2026-01-04 14:53:30 -05:00
parent 111712e969
commit a620a9f4c5
10 changed files with 303 additions and 1750 deletions

View File

@@ -105,6 +105,21 @@ export interface PostWithCommentsAndLikes {
total_comments: number;
last_edited_date?: string | null;
}
export interface PostCardData {
id: number;
category: "blog" | "project";
title: string;
subtitle: string;
banner_photo: string;
date?: string | null;
published: number;
author_id: string;
reads: number;
attachments: string;
total_likes: number;
total_comments: number;
}
export interface PostWithTags {
id: number;
category: "blog" | "project"; // this is no longer used