aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Database/IndexedDB
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-08-24 02:38:40 -0700
committerFuwn <[email protected]>2024-08-24 02:42:01 -0700
commit32c7545faae4f33c94a045408789c9b9ef7de53a (patch)
tree3ce6632bd710b4453749f0e71186027683415843 /src/lib/Database/IndexedDB
parentfeat(SequelCatcher): side stories toggle (diff)
downloaddue.moe-32c7545faae4f33c94a045408789c9b9ef7de53a.tar.xz
due.moe-32c7545faae4f33c94a045408789c9b9ef7de53a.zip
refactor(Data): rename database references
Diffstat (limited to 'src/lib/Database/IndexedDB')
-rw-r--r--src/lib/Database/IndexedDB/activities.ts22
-rw-r--r--src/lib/Database/IndexedDB/chapters.ts22
-rw-r--r--src/lib/Database/IndexedDB/user.ts23
3 files changed, 0 insertions, 67 deletions
diff --git a/src/lib/Database/IndexedDB/activities.ts b/src/lib/Database/IndexedDB/activities.ts
deleted file mode 100644
index 6a505ff3..00000000
--- a/src/lib/Database/IndexedDB/activities.ts
+++ /dev/null
@@ -1,22 +0,0 @@
-import type { ActivitiesPage } from '$lib/Data/AniList/activity';
-import Dexie, { type Table } from 'dexie';
-
-export interface ActivityPage {
- page: number;
- data: ActivitiesPage;
-}
-
-export class ActivityDatabase extends Dexie {
- activities: Table<ActivityPage>;
-
- constructor() {
- super('activities');
- this.version(1).stores({
- activities: 'page, data'
- });
-
- this.activities = this.table('activities');
- }
-}
-
-export const database = new ActivityDatabase();
diff --git a/src/lib/Database/IndexedDB/chapters.ts b/src/lib/Database/IndexedDB/chapters.ts
deleted file mode 100644
index 0f77f0a0..00000000
--- a/src/lib/Database/IndexedDB/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();
diff --git a/src/lib/Database/IndexedDB/user.ts b/src/lib/Database/IndexedDB/user.ts
deleted file mode 100644
index e7285a07..00000000
--- a/src/lib/Database/IndexedDB/user.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import type { AniListAuthorisation } from '$lib/Data/AniList/identity';
-import Dexie, { type Table } from 'dexie';
-
-export interface User {
- id: number;
- user: AniListAuthorisation;
- lastNotificationID: number | null;
-}
-
-export class UserDatabase extends Dexie {
- users: Table<User>;
-
- constructor() {
- super('users');
- this.version(1).stores({
- users: 'id, user, lastNotificationID'
- });
-
- this.users = this.table('users');
- }
-}
-
-export const database = new UserDatabase();