aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Database/chapters.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-07-25 00:19:44 -0700
committerFuwn <[email protected]>2024-07-25 00:20:23 -0700
commit2d9235070856c0a5032ddf47f7b1dc7cc5cceb60 (patch)
tree4677f0355872a0f7f55d38a372ec5e3870771182 /src/lib/Database/chapters.ts
parentfeat(notifications): allow unsubscribe (diff)
downloaddue.moe-2d9235070856c0a5032ddf47f7b1dc7cc5cceb60.tar.xz
due.moe-2d9235070856c0a5032ddf47f7b1dc7cc5cceb60.zip
refactor(Database): separate providers
Diffstat (limited to 'src/lib/Database/chapters.ts')
-rw-r--r--src/lib/Database/chapters.ts22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/lib/Database/chapters.ts b/src/lib/Database/chapters.ts
deleted file mode 100644
index 0f77f0a0..00000000
--- a/src/lib/Database/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('chapters');
- this.version(1).stores({
- chapters: 'id, chapters, volumes'
- });
-
- this.chapters = this.table('chapters');
- }
-}
-
-export const database = new ChapterDatabase();