Commit Graph
100 Commits
Author SHA1 Message Date
schroda 9d280577be Remove add/remove library button in migration mode from manga cards (#730) 2024-04-11 02:02:31 +02:00
schroda 37224122e6 Enable add/remove manga from library in source global search on long press (#729)
Was supposed to be added with 29860482a6
2024-04-11 02:02:25 +02:00
schroda 9a738775f1 Fix/search bar search disappearing after submit (#728)
* Correctly update search string on location change

Regression introduced with aab3e25031

* Remove unnecessary usage of "useSessionStorage"

This did not add anything and made no sense
2024-04-10 23:46:08 +02:00
schroda f036f01f70 Fix/properly reset cache and queues on server url change and backup import (#725)
* Reset cache on server url change

* Reset image queue

* Completely reset apollo store
2024-04-10 01:23:08 +02:00
schroda d74bd2f80d Allow editing SOCKS and basic auth settings while disabled (#726)
In case these settings were disabled, the other dependent settings were not editable.
This prevented them from being set up as needed before enabling them
2024-04-10 01:22:58 +02:00
schroda 6c43e974e2 Fetch images via html img elements (#727) 2024-04-10 01:22:47 +02:00
schroda 00f5e8d76f Remove track record total chapter as max value for number input (#723)
In case the tracker does not have a total chapter number, it was impossible to manually change the last read chapter
2024-04-09 23:37:52 +02:00
schroda 53de29f263 Unregister existing service workers (#722)
In case some other app was served on the same domain which registered a service worker, this service worker was incorrectly used and never unregistered
2024-04-09 23:37:41 +02:00
schroda 0490851deb [VersionMapping] Require server version "r1514" for preview (#718)
Forgotten in 5edb14aefcda2f54b89975c36f327d7fe84e3c86...
2024-04-07 21:49:04 +02:00
schroda 5edb14aefc Feature/settings auto downlaod add new exclude reuploads setting (#717)
* [Codegen] Update generated files

* [Tooling] Run ts-node with transpile only option

* Add new ignore re-uploads from auto download setting
2024-04-07 21:47:07 +02:00
schroda 1b28ae27fa Feature/cleanup manga card (#716)
* Extract manga badge components

* Extract list/grid manga card

* Disable default promise error handler in production
2024-04-07 21:30:47 +02:00
schroda ca8daab0da Change manga in library state on long press in list mode (#715)
Was forgotten in 29860482a6
2024-04-07 21:19:12 +02:00
schroda 29860482a6 Feature/browse source manga long press remove add manga from library (#710)
* Extract CategorySelect usage into hook

* Extract logic to change manga in library state into hook

* Change manga in library state on long press when browsing source
2024-04-07 15:33:08 +02:00
schroda aab3e25031 Feature/improve restoring grid snapshots (#713)
* Update local storage functions

* Update local storage hooks

* Add session storage

* Improve storing virtuoso grid snapshot

* Use "useSyncExternalStore" for browser storage access

* Get rid of location replacements in "AppbarSearch"

Use session storage instead to prevent reloading the page all the time due to changing the location

* Get rid of location replacements in "SourceMangas"

Use session storage instead to prevent reloading the page all the time due to changing the location
2024-04-07 15:22:03 +02:00
schroda ea2f9dc5a4 Prevent TypeError (#712)
Somehow the grid ref was undefined after the resize observer was already connected.
This should not be possible, so just disconnect the observer in case this still happens
2024-04-07 15:21:46 +02:00
schroda d68d9b7ed2 Remove usage of z-index for manga badges (#711)
Caused the badges to be over some components which they were not intended to be
2024-04-07 15:21:36 +02:00
schroda 41d876e156 Feature/utilize long press (#709)
* Open manga action menu on long press

* Open chapter action menu on long press
2024-04-07 15:21:25 +02:00
schroda ecd9b7478b Add range selection (#707) 2024-04-05 02:03:00 +02:00
schroda 568aaebc3e Trigger refresh only when initially open the track component (#704)
Due to triggering the refresh in the TrackerActiveCard it was triggered everytime this component got rendered, which was also the case when closing the track search
2024-04-03 22:34:48 +02:00
schroda 26cbe15964 [SKIP CI] Fix/issue moderator workflow (#703)
* [IssueModerator] Disable unused options

* [IssueModerator] Fix regexes of rules
2024-04-03 22:32:20 +02:00
schroda 827fa5a171 [SKIP CI] Feature/improve issue moderator workflow (#701)
* [IssueModerator] Improve un-removed "acknowledgment" section detection

* [IssueModerator] Check for invalid issue types in title

* [IssueModerator] Try to ensure short descriptive title

* [IssueModerator] Try to prevent questions in the title
2024-04-03 16:30:25 +02:00
schroda b1ce977dcd Wait for initial page to be rendered before scrolling it into view (#696)
The ResizeObserver triggers the first time when the element has a height of 0, which apparently did not work with scrolling it into view.

Due to immediately disconnecting the observer, the next resize event, which would successfully scroll the page into view, was never handled

Regression introduced with 0c1abebaf4
2024-04-01 13:17:50 +02:00
schroda c4139b5d51 Only trigger track progress on last page read (#693) 2024-04-01 02:30:58 +02:00
schroda 0d0cd54249 Fetch latest track data from tracker (#692) 2024-04-01 02:06:35 +02:00
schroda 46fc7f6bdc Use correct translation key for remote track deletion (#691) 2024-04-01 01:23:04 +02:00
schroda 5a2f77d124 Trigger track progress on last page read of chapter (#690) 2024-04-01 01:22:49 +02:00
schroda 4f7a05f6fe Add bookmarked filter in library (#687) 2024-04-01 01:12:26 +02:00
schroda fe2cb682b6 Use first unread chapter for continue read buttons (#689) 2024-04-01 00:57:47 +02:00
schroda 9674b18d28 Feature/tracking unbind use new mutation (#688)
* [Codegen] Update generated files

* Use new "unbindTrack" mutation

* Add option to delete remote track on unbind

* [VersionMapping] Require server version "r1510" for preview
2024-04-01 00:45:44 +02:00
schroda 8d265f1ddf Install dependencies from lock file in github actions (#686) 2024-03-31 23:36:39 +02:00
schroda dc1a6cbd16 Feature/update dependencies (#685)
* Update dependencies

* Add missing "graphql" peer dependency
2024-03-31 23:34:40 +02:00
schroda 25b7d149ba Refetch GET_MANGAS query on track unbind mutation (#684)
GET_CATEGORY_MANGAS is only used for the default category
2024-03-31 17:23:52 +02:00
schroda d59f90f787 Consider track filters for library filtered out message (#683) 2024-03-30 16:07:29 +01:00
schroda 21acbd5f48 Fix/tracking updating score (#682)
* Use SelectSetting for updating track score

* Create custom Select component
2024-03-29 18:57:52 +01:00
schroda 374e71f521 Highlight library filter icon as active for tracker filter (#681) 2024-03-29 16:55:07 +01:00
schroda fa1169337f Fix/manga track binding card styling (#680)
* Fix missing box shadow of active tracker card

Due to missing side paddings the box shadow wasn't visible

* Extract tracker card styling

* Prevent breaking title when selecting manga

* Limit max lines of titles
2024-03-29 16:54:53 +01:00
schroda 74f945dd59 Use correct translation key (#679) 2024-03-29 00:51:14 +01:00
schroda 74cf4b7c50 Add option to use img tag to fetch images
MangaUpdates covers could not be fetched via the fetch api because there were cors issues
2024-03-29 00:45:38 +01:00
schroda 816cbee145 Add library filter for trackers 2024-03-29 00:45:38 +01:00
schroda 511b1f7c5e Specify type of custom scalars 2024-03-29 00:45:38 +01:00
schroda 7990ffda71 Add track action to manga action menu in library 2024-03-29 00:45:38 +01:00
schroda 5dbf1ce30c Implement showing/updating/removing tracker bindings 2024-03-29 00:45:38 +01:00
schroda 66c57a542b Implement binding manga to tracker 2024-03-29 00:45:38 +01:00
schroda f913f5ec32 Show image placeholder
Instead of trying to load invalid url
2024-03-29 00:45:38 +01:00
schroda 21eda17bc1 Add "SearchTextField" 2024-03-29 00:45:38 +01:00
schroda d22bfaa55c Implement tracker login and logout 2024-03-29 00:45:38 +01:00
schroda daa3426754 Add "PasswordTextField" 2024-03-29 00:45:38 +01:00
schroda 23c353d52e Prevent fragment inside MUI Menu (#678) 2024-03-29 00:15:31 +01:00
schroda 1b81e1e824 Fix/manga details buttons (#677)
* Move button icon on top of text on small screens

* Fix colors of buttons

In case a manga is in the library all buttons were colored blue instead of only the library button.
Use white as default color since buttons can also be disabled and with a grey default color it's not easy to tell if the button is disabled or not

* Remove wrapping "button" inside "a" tag
2024-03-29 00:15:03 +01:00
schroda 999c5954f3 Use correct chapter list for guard condition (#676)
In case of the "mark_prev_read" as read action, the passed chapter list was empty and thus the guard to exit early was incorrectly triggered
2024-03-27 21:11:41 +01:00
schroda 64ac49fa41 Support older browsers (#674) 2024-03-26 23:39:25 +01:00
schroda 6fc70121c6 Fix/manually deleting chapter ignores bookmark (#675)
* Rename "Chapters::isAutoDeletable" to "isDeletable"

* Rename "Chapters::getAutoDeletable" to "getDeletable"

* Prevent manually deleting bookmarked chapters unless allowed
2024-03-26 23:39:04 +01:00
schroda 06b2bca340 Add prioritization to image requests (#671)
In the reader the preloaded page requests were triggered before the actual page got rendered and thus, the image request of the rendered page had to wait for all the preloaded images to finish
2024-03-24 19:08:36 +01:00
schroda 34aeac9c33 Preload pages in single page mode (#670) 2024-03-24 15:05:31 +01:00
schroda 1d49945caa Fix check for fetch abortion error (#668) 2024-03-24 15:03:29 +01:00
schroda a96038bcb7 Prevent image loading placeholder for cached images (#669)
Give the image time to get loaded from the cache before setting the loading state
2024-03-24 15:03:20 +01:00
schroda 6186cb0ea3 Optionally hide library manga when browsing source (#665) 2024-03-23 23:44:46 +01:00
schroda 66d6c95dfd Feature/automatically load more pages until scrollbar is visible (#667)
* Rename "grifRed" to "gridWrapperRef"

* Automatically fetch more pages until scrollbar is visible
2024-03-23 23:34:33 +01:00
schroda 83635faf95 Cache first page of source manga fetch response (#666) 2024-03-23 23:34:20 +01:00
schroda 452ac4fd9a Properly disable open source button in manga page (#663) 2024-03-22 03:33:19 +01:00
schroda 0ad08360a2 Remove image url port replacement (#664)
This was unintentionally added
2024-03-22 03:33:09 +01:00
schroda bee4d4aab8 [ESLint] Enable caching (#661) 2024-03-19 22:46:39 +01:00
schroda 0c1abebaf4 Disconnect resize observer after restoring initial page (#660)
Everytime the reader width got changed, the resize observer triggered the initial page to get scrolled into view again
2024-03-19 22:46:31 +01:00
schroda 0c22a9012e Feature/cleanup metadata related logic (#657)
* Remove unnecessary parameter from "requestUpdateServerMetadata"

* Streamline updating metadata server settings

* Move metadata related logic
2024-03-16 16:21:15 +01:00
schroda aea5dad0ce Remember last used migration flags (#656) 2024-03-16 14:02:54 +01:00
schroda 318c4a5040 Add option to delete downloaded chapters on migration (#655) 2024-03-16 13:45:54 +01:00
schroda 31d53ed182 Remove search page from the history after migrating (#654) 2024-03-16 13:45:47 +01:00
schroda c005316f56 Feature/update iso languages (#652)
* Extract iso language list to new file

* Update iso language list

* Add function to get full iso language object

* Change i18n resource key of "Norwegian Bokmål"
2024-03-09 02:52:34 +01:00
schroda eede189eec Fix/build push master workflow (#651) 2024-03-09 02:11:08 +01:00
schroda 5e6c1c1c1b Add new languages to resources (#650) 2024-03-09 01:56:13 +01:00
schroda 2047d76ad9 Update workflow actions (#649)
* Update workflow actions

* Fix tsc issues
2024-03-09 00:24:48 +01:00
schroda 550c576725 Feature/update dependencies (#648)
* Update to node v20.11.1

* Update dependencies
2024-03-08 23:31:56 +01:00
schroda 2d1d889ef5 Run eslint on commit (#647) 2024-03-08 22:42:48 +01:00
schroda ed74f7c851 Make remaining image requests abortable (#645) 2024-03-08 00:24:01 +01:00
schroda 535cb1b359 Fix/save active device only in local storage (#643)
* Save "activeDevice" in the local storage

* Set default back to for "DeviceSetting"
2024-03-07 01:12:35 +01:00
schroda c0c30163c3 Validate device name (#642)
allow only
 - 16 chars
 - letters
 - numbers
 - "-"
 - "_"
2024-03-06 23:44:05 +01:00
schroda a3bc98c632 Consider more ui settings as global (#641) 2024-03-06 23:23:49 +01:00
schroda 4aec3c94ef Feature/support settings per device (#640)
* Optionally prevent deletion and mutation of "MutableListSetting" items

* Save server metadata per device

This makes it possible to e.g. have different settings on a desktop and a smartphone.
2024-03-06 23:07:48 +01:00
schroda 6cff75e257 Feature/limit concurrent image requests (#639)
Prevent exhausting the available concurrent requests to the same domain by the browser with just image requests.

This prevents e.g. when browsing a slow source from having 6 concurrent image requests and having to wait for the next page request until one of those requests has finished
2024-03-05 02:11:40 +01:00
schroda daf6b50249 Fix/deprioritize image requests (#638)
* Use "fetch" instead of "axios"

Axios does not support prioritizing requests

* Deprioritize image requests

The browser requests images (<img>) with low priority by default.
Due to switching to loading images via axios (f852ce70e7), the image requests had the same priority as other requests and thus blocked e.g. xhr requests
2024-03-05 02:07:05 +01:00
schroda 0f3549ead9 Fix/manga migrate option shown for non library manga on large screens (#637)
This happened only on large screens
2024-03-04 20:40:47 +01:00
schroda 224df1300f Feature/improve back navigation button (#636)
* Improve detection of last page in history

* Use "useBackButton" in reader
2024-03-04 20:40:14 +01:00
schroda f0fc31ceac Fix/spinner image not able to be opened in new tab or saved (#635)
After the object url has been revoked the image can't be used anymore
2024-03-03 23:07:12 +01:00
schroda fb0622e209 Add chapter action to open chapter on source (#634) 2024-03-02 16:11:39 +01:00
schroda 8bdf035ca7 Feature/add option to remove manga from categories when removing from library (#633)
* Optionally remove manga categories when removing them from library

* Use "Mangas::removeFromLibrary"

* Handle uncatched promises
2024-03-02 15:28:58 +01:00
schroda c5a5c4b8af Fix/add manga to library without dialog not adding default categories (#632)
* Add default categories when adding manga to library without dialog

* Add manga to library and update categories in one mutation
2024-03-02 15:26:15 +01:00
schroda eb233aef3d Feature/improve add to library category selection dialog (#631)
* Create "Categories" util class

* Only show add to library category selection in case categories exist

* Add edit categories button in select categories dialog

* Add option to disable add to library dialog to the dialog
2024-03-02 15:23:12 +01:00
schroda 92fe3eaaa6 Feature/update issue templates (#630)
* Update issue templates with latest versions from the server

* Add additional points to "bug_report" issue template
2024-03-02 01:29:15 +01:00
schroda c9a4ed620c Add "issue_moderator" github workflow (#629) 2024-03-02 01:23:30 +01:00
schroda 79d35404d3 Fix/double page mode not aborting preload image requests (#628)
* Use request manager to preload images in DoublePagedPager

Was forgotten to update along with f852ce70e7

The requests for the preload also never got aborted

* Revoke object urls after load
2024-03-01 18:27:46 +01:00
schroda d242552751 Add width to image loading placeholder in horizontal mode (#627) 2024-03-01 18:27:35 +01:00
schroda 2a72cd43db Use "a" tag for manual backup creation download link (#626)
5017ba9932 did not fix the problem
2024-03-01 18:27:28 +01:00
schroda f852ce70e7 Abort image requests on unmount (#624) 2024-03-01 01:17:23 +01:00
schroda 900a6c1609 Fix restoring initial page in vertical and horizontal pager (#622)
The initial page was scrolled into view before it had a height which resulted in the scroll position to stay at the top of the screen
2024-03-01 01:17:13 +01:00
schroda c538af4462 Prevent unnecessary chapter updated due to restoring last read page (#621)
When resuming a chapter and restoring the last read page, a chapter update was send for the just restored page
2024-03-01 01:17:03 +01:00
schroda 90b6c3a0fa [Tooling] Print contributors of release with changelog script (#619) 2024-02-23 21:19:35 +01:00
schroda e310ec3ba7 [Release] Version 1.0.0 (#501) 2024-02-23 20:35:38 +01:00
schroda 21bb931a74 Use full available width for reader component (#618)
Due to horizontally centering the flex-box items via "alignItems", the items did not stretch anymore, which is the default value for "alignItems" and thus, did not take up the available width.

Regression introduced with ab0ecf4da0
2024-02-22 19:24:27 +01:00
schroda 629b742140 Feature/settings add new socks proxy settings (#617)
* Add new socks settings

* [VersionMapping] Require server version "r1493" for preview
2024-02-22 00:25:12 +01:00
schroda ab0ecf4da0 Center page number correctly (#616) 2024-02-21 23:39:12 +01:00