From 439bfdbfb54714feaaf37bb00377c6fb1f9bc12b Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 17 Dec 2023 04:39:54 -0800 Subject: refactor(manga): move database --- src/lib/Media/chapters.ts | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 src/lib/Media/chapters.ts (limited to 'src/lib/Media/chapters.ts') diff --git a/src/lib/Media/chapters.ts b/src/lib/Media/chapters.ts deleted file mode 100644 index a8a4d716..00000000 --- a/src/lib/Media/chapters.ts +++ /dev/null @@ -1,22 +0,0 @@ -import Dexie, { type Table } from 'dexie'; - -export interface Chapter { - id: number; - chapters: number | null; - volumes: number | null; -} - -export class ChapterDatabase extends Dexie { - chapters: Table; - - constructor() { - super('chapterDatabase'); - this.version(1).stores({ - chapters: 'id, chapters, volumes' - }); - - this.chapters = this.table('chapters'); - } -} - -export const chapterDatabase = new ChapterDatabase(); -- cgit v1.2.3