first commit

This commit is contained in:
Lars Behrends
2026-04-09 10:29:11 +02:00
commit dda118a2f7
36 changed files with 14470 additions and 0 deletions

45
src/types.ts Normal file
View File

@@ -0,0 +1,45 @@
export type MediaCategory = 'Anime' | 'Movies' | 'Music' | 'Books' | 'Adult' | 'Consoles' | 'Games';
export interface Media {
id: string;
title: string;
year: string;
poster: string;
category: MediaCategory;
aspectRatio?: '2/3' | '16/9' | '1/1';
type?: 'TV' | 'Movie' | 'OVA' | 'ONA' | 'Album' | 'Single' | 'Hardcover' | 'E-book' | 'Console' | 'Game';
banner?: string;
description?: string;
rating?: number;
genres?: string[];
tags?: string[];
studios?: string[];
status?: 'watching' | 'completed' | 'planned' | 'dropped' | 'reading' | 'listening' | 'playing' | 'on-hold';
episodes?: Episode[];
staff?: Staff[];
}
export interface Episode {
id: string;
number: number;
title: string;
date: string;
duration: string;
description: string;
thumbnail: string;
}
export interface Staff {
id: string;
name: string;
role: string;
photo: string;
characterName: string;
characterImage: string;
mediaId?: string;
mediaTitle?: string;
bio?: string;
birthDate?: string;
birthPlace?: string;
occupations?: string[];
}