Commit Graph

72 Commits

Author SHA1 Message Date
Bill Thornton 953073cd28 Use index file for apiclient lib imports 2025-04-22 08:48:34 -04:00
Bill Thornton 5bcbcfbe12 Move server connections to lib 2025-04-22 08:26:43 -04:00
Joshua Ozeri 7d075d03cd Add nav buttons to bookPlayer top bar (#6162)
Co-authored-by: Bill Thornton <thornbill@users.noreply.github.com>
2025-01-10 17:09:15 -05:00
Dmitry Lyzo 3025e9bf48 Ignore modified hotkeys 2024-09-14 02:03:38 +03:00
Dmitry Lyzo b2676c1633 Prevent more default actions for hotkeys 2024-09-14 02:01:10 +03:00
Dmitry Lyzo 4c68f500d9 Use keydown event to get actual modifiers 2024-09-14 02:01:09 +03:00
Bill Thornton 056d802c56 Move globalize to lib 2024-08-14 14:00:09 -04:00
viown 75d78a96b8 Backport pull request #5843 from jellyfin-web/release-10.9.z
Fix swipe gestures on android for book reader

Original-merge: 44afbc2357df70613b56a2d397a6fa41457250ef

Merged-by: thornbill <thornbill@users.noreply.github.com>

Backported-by: thornbill <thornbill@users.noreply.github.com>
2024-08-13 11:53:21 -04:00
thornbill 6bf6e7fd18 Backport pull request #5741 from jellyfin-web/release-10.9.z
Disallow scripted content in epubs

Original-merge: e669a9be0295497b916b4e6181816759d2fa7736

Merged-by: thornbill <thornbill@users.noreply.github.com>

Backported-by: Bill Thornton <thornbill@users.noreply.github.com>
2024-07-21 01:53:31 -04:00
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