ref(frontend) several minor updates

This commit is contained in:
lumither committed 2025-10-08 12:42:54 -04:00
1 parent 88c2ad8664
commit cd39abbd45
12 files changed
+417 -39

No files matched your search

+14 -12
View File
@@ -1,20 +1,22 @@
import { fetchNocturneJson } from '@/src/api/endpoint';
const DEFAULT_PAGE_SIZE = 6;
const DEFAULT_PAGE_SIZE = 8;
export interface Post {
id: string,
identifier: string,
title: string,
subtitle: string,
tags: string[]
category: string,
date_created: Date,
date_updated: Date | null,
header_img: string | null
}
export interface PostListResponse {
data: {
posts: {
id: string,
identifier: string,
title: string,
subtitle: string,
tags: string[]
category: string,
date_created: Date,
date_updated: Date | null,
header_img: string | null
}[],
posts: Post[],
pagination: {
page: number,
page_count: number,
+6
View File
@@ -0,0 +1,6 @@
import { ClassValue, clsx } from 'clsx';
import { twMerge } from 'tailwind-merge';
export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs));
}