Commit Graph

63 Commits

Author SHA1 Message Date
Vincent Lark 55f5a78f5e Use escapeHTML on book chapter titles 2023-11-08 12:41:58 -05:00
Vincent Lark 38d8cafc73 Render the toplevel TOC items bolder 2023-11-08 12:41:58 -05:00
Vincent Lark 7a495aff30 Show nested chapters in bookplayer TOC 2023-11-08 12:41:58 -05:00
Yasin Silavi a8e6eaff48 Remove comment out code 2023-09-11 12:13:49 -04:00
Bill Thornton f35a8151e0 Add prefer optional chaining rule 2023-07-06 13:39:48 -04:00
Bill Thornton 6f3aa2f1df Fix eslint issues 2023-03-29 00:38:22 -04:00
Lukas Lüftinger 2fc010fe6e correctly use userSettings.theme() in bookPlayer 2023-03-14 23:38:47 +01:00
Lukas Lüftinger e9613a7131 make data variables used in bookPlayer theming const 2023-03-14 23:36:06 +01:00
Lukas Lüftinger e6171364ca fix linting 2023-03-14 23:36:06 +01:00
Lukas Lüftinger 2eb15411ba fix epub theme selection 2023-03-14 23:36:06 +01:00
Lukas Lüftinger d75dbc1b3b fix linting issues 2023-03-14 23:36:06 +01:00
Lukas Lüftinger 581f5c7bb9 add buttons to increase and decrease font sizes in book-player 2023-03-14 23:35:19 +01:00
Lukas Lüftinger 727f6e450b add button to bookplayer to rotate through dark, sepia and light themes 2023-03-14 23:35:19 +01:00
Bill Thornton 64ecc3eae7 Add plugin types 2023-03-08 11:08:19 -05:00
Bill Thornton 0a0e45d155 Replace apiclient event bus with local version 2022-10-14 10:58:16 -04:00
Bill Thornton b426b6e2bf Fix sonarjs prefer-single-boolean-return 2022-10-11 03:11:41 -04:00
Patrick Farwick cb9e7ba432 Add epubjs theme support to the book player
Add a dark theme to the book player via epubjs. The theme itself uses
the dark theme of Jellyfin and only changes the colour of the text.

For everything but the text, the dark theme from Jellyfin is retained.
Should any other theme than the dark theme be chosen by the user, epubjs
falls back to it's default theme.
2022-09-23 15:35:54 +00:00
Bill Thornton 02a0aa911c Fix invalid link color value again 2022-09-16 10:18:17 -04:00
Bill Thornton fd5033a8b6 Fix link text invalid color value 2022-09-16 10:06:36 -04:00
Bill Thornton 8791d32ed2 Fix missing curly brace 2022-09-16 10:03:35 -04:00
rourien a0fb4313c9 Make book table of contents prettier
Changes the way the table of contents looks. The two biggest parts are hiding the bullets in the list, making each link black and hiding the link underline. This makes them look more like buttons than web links. The #dialogToc changes resize the table of contents based on the length of the list and the length of the longest chapter name rather than have the table of contents take up most of the screen for a short and small list. The link text size was also increased from 92% to 120%.
2022-08-24 22:11:43 -06:00
Tobias Speicher e0486e49c6 Replace deprecated String.prototype.substr()
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-04-21 18:42:42 +02:00
Bill Thornton 396f4b1ed2 Merge pull request #3547 from thornbill/touching-books
Fix touch events in epub player

(cherry picked from commit 5ede3c8e47b22ce0d101896a3255ad077b3d5dc1)
Signed-off-by: Joshua Boniface <joshua@boniface.me>
2022-04-17 15:41:21 -04:00
Bill Thornton f286641328 Add no-duplicate-imports rule and fix issue 2022-04-01 00:46:55 -04:00
Dmitry Lyzo 119df2cc99 Add aria-hidden to button icons 2022-02-25 01:52:14 +03:00
Bill Thornton ad1e8d3cd0 Merge pull request #3351 from jellyfin/fix-bookplayer-blank
Fix starting of book player with a blank page
2022-01-20 10:12:53 -05:00
Patrick Farwick d4907ac522 Remove the timer from progress saving for epubs 2022-01-19 23:11:56 +00:00
Dmitry Lyzo 9688b31de4 Fix starting of book player with a blank page 2022-01-20 01:46:13 +03:00
Patrick Farwick 22d6c99f44 Update the resume button after stopping 2022-01-19 21:26:48 +00:00
Bill Thornton 709ef906cc Fix screenfull imports 2021-11-10 13:00:29 -05:00
Nathan Mascitelli b04fff2089 Give space for buttons to sit above text 2021-09-04 10:51:56 -04:00
Nathan Mascitelli 2ab4a87f64 ESLint fixes 2021-04-28 22:01:03 -04:00
Nathan Mascitelli ff2720ebf2 Add fullscreen ability to books 2021-04-25 18:11:52 -04:00
Bill Thornton 5b86b97e63 Fix epub player height 2021-01-28 14:03:26 -05:00
Bill Thornton 464da392b9 Fix touch support in epub reader 2020-12-16 01:19:10 -05:00
Bill Thornton 7cd8fd9aa5 Fix stylelint error 2020-11-25 13:58:34 -05:00
Bill Thornton 0584bc1ad5 Use spans for icons 2020-11-23 01:15:43 -05:00
Bill Thornton 4c8a3666e3 Remove duplicate top rule 2020-11-22 02:36:53 -05:00
Bill Thornton c4aebce2b1 Update epub player styles and force pagination 2020-11-22 02:31:48 -05:00
Bill Thornton 629a279491 Fix bookplayer issues 2020-11-22 02:08:19 -05:00
Bill Thornton 491c7962e5 Fix mobile prev/next buttons for bookplayer 2020-11-22 02:08:19 -05:00
vitorsemeano a48d466e6a fixes for lint errors
added missing packages for lint
removed unecessary babel/polyfill
2020-11-05 23:21:35 +00:00
vitorsemeano 5071aedcea extracted connectionManager from site.js
new module ServerConnections for ConnectionManager
all code adapted to this new module
removed Events and ConnectionManager from eslintrc
2020-11-05 23:12:23 +00:00
Bill Thornton a71b0314d4 Fix apiclient imports 2020-11-05 23:11:47 +00:00
MrTimscampi 7d9208e951 WIP 2020-11-05 23:09:09 +00:00
MrTimscampi bfb8c7c1f6 Make import paths ES6-compatible 2020-11-05 22:58:26 +00:00
dkanada 3f55a79d74 fix minor issues with book players 2020-10-21 16:00:33 +09:00
dkanada 6b302ed20b merge branch master into pdf-reader 2020-10-20 13:22:09 +09:00
Daniyar Itegulov 14583cf18e Add next/prev chapter buttons for mobile devices
Also removes touch events as they interfere with continuous scrolling
2020-09-14 18:51:03 +10:00
Daniyar Itegulov 270f585b26 Make book plugin render EPUBs continuously for mobile devices 2020-09-14 14:50:08 +10:00