Introduce a new eBook reader with support for EPUB, MOBI, AZW3, and FB2 formats (#2258)

Co-authored-by: acx10 <acx10@users.noreply.github.com>
This commit is contained in:
ACX
2026-01-15 20:39:52 -07:00
committed by GitHub
co-authored by acx10
parent 775887b55f
commit 8c35f2415c
107 changed files with 13351 additions and 1733 deletions
@@ -0,0 +1,24 @@
CREATE TABLE IF NOT EXISTS ebook_viewer_preference
(
id BIGINT AUTO_INCREMENT PRIMARY KEY,
user_id BIGINT NOT NULL,
book_id BIGINT NOT NULL,
font_family VARCHAR(128) NULL,
font_size INT NULL,
gap FLOAT NULL,
hyphenate BOOLEAN NULL,
is_dark BOOLEAN NULL,
justify BOOLEAN NULL,
line_height FLOAT NULL,
max_block_size INT NULL,
max_column_count INT NULL,
max_inline_size INT NULL,
theme VARCHAR(64) NULL,
flow VARCHAR(32) NULL,
UNIQUE (user_id, book_id),
CONSTRAINT fk_ebook_viewer_preference_user FOREIGN KEY (user_id) REFERENCES users (id) ON DELETE CASCADE,
CONSTRAINT fk_ebook_viewer_preference_book FOREIGN KEY (book_id) REFERENCES book (id) ON DELETE CASCADE
);
ALTER TABLE user_book_progress
ADD COLUMN IF NOT EXISTS epub_progress_href VARCHAR(1000);