diff options
| author | Fuwn <[email protected]> | 2023-12-17 04:39:54 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-12-17 04:39:54 -0800 |
| commit | 439bfdbfb54714feaaf37bb00377c6fb1f9bc12b (patch) | |
| tree | d28b3997a95e26bd273e5c822f60c2c3d809e21b /src/lib/Media/chapters.ts | |
| parent | refactor(anime): move cache (diff) | |
| download | due.moe-439bfdbfb54714feaaf37bb00377c6fb1f9bc12b.tar.xz due.moe-439bfdbfb54714feaaf37bb00377c6fb1f9bc12b.zip | |
refactor(manga): move database
Diffstat (limited to 'src/lib/Media/chapters.ts')
| -rw-r--r-- | src/lib/Media/chapters.ts | 22 |
1 files changed, 0 insertions, 22 deletions
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<Chapter>; - - constructor() { - super('chapterDatabase'); - this.version(1).stores({ - chapters: 'id, chapters, volumes' - }); - - this.chapters = this.table('chapters'); - } -} - -export const chapterDatabase = new ChapterDatabase(); |