init proj

This commit is contained in:
ld3zian 2025-03-07 15:04:34 -07:00
parent aa0c03b86b
commit fd14c1a80c
48 changed files with 10041 additions and 1 deletions

53
src/lib/types.ts Normal file
View file

@ -0,0 +1,53 @@
export interface Comic {
id: string;
chap: string;
updated_at: string;
md_comics: {
title: string;
slug: string;
genres: number[];
md_covers: ComicCover[];
content_rating: 'safe' | 'suggestive' | 'erotica';
comic_type: ComicType;
};
}
export interface Genre {
id: number;
name: string;
}
export interface FeedMapping {
slugs: string[];
lang: string;
}
export type ComicType = 'manga' | 'manhwa' | 'manhua' | 'all';
export interface ComicCover {
b2key: string;
width?: number;
height?: number;
}
export interface Announcement {
message: string;
type: 'info' | 'warning' | 'success';
dismissible?: boolean;
link?: {
text: string;
url: string;
};
}
export interface ChapterDetail {
id: string;
chap: string;
title: string;
created_at: string;
md_comics: {
title: string;
slug: string;
md_covers?: ComicCover[];
};
}