Commit Graph

14 Commits

Author SHA1 Message Date
schroda
b673047517 Update to server gql library update changes 2025-03-23 04:04:08 +01:00
schroda
9d74380e94 Convert to ESM 2024-12-24 13:42:01 +01:00
schroda
3d21266f92 Reduce requested manga data in queries 2024-07-09 00:30:15 +02:00
schroda
4b30e9bc48 Reduce requested extension data in queries 2024-07-09 00:21:51 +02:00
schroda
7556ea9b38 Reduce requested source data in queries 2024-07-09 00:21:49 +02:00
schroda
2fa1de578c Reduce requested chapter data in queries 2024-07-09 00:21:46 +02:00
schroda
9b8ace003d Reduce requested category data in queries 2024-07-03 23:24:50 +02:00
schroda
511b1f7c5e Specify type of custom scalars 2024-03-29 00:45:38 +01:00
schroda
3973eda089 [ServerMapping][Codegen] Update to latest server gql MangaType changes (#546) 2024-01-11 03:53:06 +01:00
schroda
05fa3d0732 Fix/chapter not getting deleted after being read (#532)
* Create permanent subscriptions

The subscriptions have to be permanently open, otherwise, the cache gets outdated.

E.g. in case a view is open, which does not subscribe to the download updates, finished downloads are never received and thus, data of existing chapters/mangas in the cache get outdated

* [Codegen][Tool] Get latest data from cache for automatic chapter deletion after reading

The manga chapters query is on "standby" to prevent the reader from rerender in case the underlying query data updates, which would cause the reader to jump back to the beginning of the last read page.
Thus, when checking if the chapter should be automatically deleted, the data from the query can't be used, since it is outdated.
2024-01-01 22:40:39 +01:00
schroda
980da657d9 [Codegen] Check cache before executing query for a single item (#513)
E.g. in case a manga was already loaded through the category mangas query, the query for that specific manga should not run against the server if it hasn't been executed before
2023-12-25 21:20:07 +01:00
schroda
3b147b1b46 Fix/update gql after server changes (#469)
* [Codegen] Update files

* Update "AboutServer"

* Cache "WebUIUpdateInfo"
2023-11-24 01:33:56 +01:00
schroda
aad87463f3 [Codegen] Use gql for "loading chapters" 2023-10-27 20:23:44 +02:00
schroda
0087d3a87b [Tool][Codegen] Add script to post format the generated graphql file
Makes it possible to modify the generated graphql file by codegen.
2023-10-27 20:19:05 +02:00