Commit Graph
1277 Commits
Author SHA1 Message Date
schroda 5a5b12a9e1 [ESLint] Prefer named exports (#427) 2023-10-28 00:32:02 +02:00
schroda 68e7b4b16d Feature/library global update exclude manga with state (#281)
* Extract global update settings

* Add option to exclude mangas with specific state from global update
2023-10-27 23:39:05 +02:00
schroda c8f02b3b8c [ESLint] Add "no-unused-imports" plugin (#426) 2023-10-27 21:19:45 +02:00
schroda 76d1ba835c Merge pull request #395 from schroda/feature/use_graphql
Feature/use graphql
2023-10-27 21:10:07 +02:00
schroda 09c7e804ba Refresh library mangas after update
the gql updater subscription currently return stale data, thus, the mangas do net get updated in the cache
2023-10-27 21:03:37 +02:00
schroda b1aaeb4d5d Show loading text for include/exclude categories setting
Due to setting categories to be an empty array by default, the loading text was never shown
2023-10-27 21:03:37 +02:00
schroda 2ad9ccd9bd Use gql for loading default category mangas 2023-10-27 20:23:47 +02:00
schroda b6382bb33a Load only category mangas that are in the library 2023-10-27 20:23:47 +02:00
schroda 2297f36efb Add manga to default categories when adding to library 2023-10-27 20:23:47 +02:00
schroda e2fed69c90 Optimistically refresh categories on reordering 2023-10-27 20:23:46 +02:00
schroda b7e1afd4f4 Update refetching queries and evicting cache data 2023-10-27 20:23:46 +02:00
schroda 5263a1102c Rename "doRequestNew" to "doRequest" 2023-10-27 20:23:46 +02:00
schroda b3a432ed2e Update typings 2023-10-27 20:23:46 +02:00
schroda 16ebfcb51f Correctly update extensions language selection
Was only updated after clicking "OK" once.
This was caused due only updating the language selection once the app language was changed or in case the selected languages (after clicking "OK") changed
2023-10-27 20:23:45 +02:00
schroda fbcc1fb91a Add optional options arg to all requests 2023-10-27 20:23:45 +02:00
schroda d3e15e9d3b Use gql for "subscriptions" 2023-10-27 20:23:45 +02:00
schroda b79fbcf71d Setup graphql subscriptions 2023-10-27 20:23:45 +02:00
schroda 6a1c302e45 Remove SWR 2023-10-27 20:23:44 +02:00
schroda 09f48c2c17 Use gql for "backups" 2023-10-27 20:23:44 +02:00
schroda e2f34f1f47 Use gql for "fetchMore" workaround
The "loading" and "networkStatus" state do not get correctly updated when e.g. calling "fetchMore".
This seems to happen because an abort signal is passed on every hook call.
Due to passing this signal, the passed args to the hook change, and thus, it looks like apollo considers this a completely new hook call.
By preventing the signal from being passed, the hook correctly updates these states, but, on the contrary, it is not possible to abort these requests anymore
2023-10-27 20:23:44 +02:00
schroda aad87463f3 [Codegen] Use gql for "loading chapters" 2023-10-27 20:23:44 +02:00
schroda 78049282a7 Use gql for "sources" - preferences 2023-10-27 20:23:05 +02:00
schroda dcead5a801 Preserve selected filters on browser back navigation 2023-10-27 20:23:05 +02:00
schroda 12dd973179 Use gql for "mangas" VI - source mangas filter 2023-10-27 20:23:05 +02:00
schroda 3297c7d96c Use gql for "mangas" V - update manga categories 2023-10-27 20:23:05 +02:00
schroda 87aef85683 Use gql for "mangas" IV - source mangas popular/latest 2023-10-27 20:23:04 +02:00
schroda 0a73496cba Use gql for "mangas" III - global search 2023-10-27 20:23:04 +02:00
schroda af9d49e5e9 Use gql for "mangas" II - category mangas 2023-10-27 20:23:04 +02:00
schroda 89dc053f00 Use gql for "mangas" I - get manga 2023-10-27 20:23:04 +02:00
schroda a5b4b95bce Use gql for "updater" 2023-10-27 20:23:03 +02:00
schroda 222f8f5c9b Use gql for "downloader" 2023-10-27 20:23:03 +02:00
schroda ca18e750bf Use gql for "categories" 2023-10-27 20:23:03 +02:00
schroda f0d55c01c8 Use gql for "updating chapters" 2023-10-27 20:23:03 +02:00
schroda c75e184c57 Use gql for "updating mangas" 2023-10-27 20:23:02 +02:00
schroda e1f338d013 Use gql for "sources" 2023-10-27 20:23:02 +02:00
schroda 4a80e18cd0 Use gql for "extensions" 2023-10-27 20:23:02 +02:00
schroda 81cfeedbba Use gql for "checkForUpdate" 2023-10-27 20:23:02 +02:00
schroda 59468bc568 Use gql for "about" 2023-10-27 20:23:01 +02:00
schroda 80cb06dfd5 Use gql for "global metadata" 2023-10-27 20:23:01 +02:00
schroda b9480736c3 Log apollo errors 2023-10-27 20:23:01 +02:00
schroda 181eb6c811 Add graphql logic to RequestManager 2023-10-27 20:23:01 +02:00
schroda 0ee47c872b Introduce "BaseClient" 2023-10-27 20:23:01 +02:00
schroda a0b686497f Move "RestClient" in sub folder 2023-10-27 20:23:00 +02:00
schroda bffc1669e2 Move "RequestManager" in sub folder 2023-10-27 20:23:00 +02:00
schroda 1c794c24b5 Setup intellij "GraphQL" plugin 2023-10-27 20:23:00 +02:00
schroda 87ddf2f844 [Codegen] Generate files
Even if they are generated files, they should be checked-in so that it's possible to check out an old commit and still have the same files as they were at the time the commit was created.
In case they wouldn't be checked-in and the schema has changed in the meantime, there is no possible way to build the same generated files anymore
2023-10-27 20:22:56 +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
schroda 10a57d3388 Change "moduleResolution" to "node"
"bundler" causes a tsc issue with the generated graphql file where the imported file can't be found.
2023-10-27 20:19:05 +02:00
schroda 1b4497db46 Setup "graphql-codgen" 2023-10-27 20:19:04 +02:00
schroda 55c1c51edd Create queries, mutations and subscriptions 2023-10-27 20:18:37 +02:00