Commit Graph
491 Commits
Author SHA1 Message Date
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 55c1c51edd Create queries, mutations and subscriptions 2023-10-27 20:18:37 +02:00
Robert Perez 3155c1d602 Add option to offset first page in double page reader (#418)
* added toggle for doublespreads

* changing pages works as intended

* undid package.json changes

* deleted packege lock json

* curPage changes when changing invertDoublePage

* changed yarn.lock

* it switches better now

* fixed formatting

* changed it to offset first page

* fixed flipping when switching

* offset first page hides when double page is not enabled

* removed uncreachable line
2023-09-28 00:36:47 +02:00
9daf71d85c Translations update from Hosted Weblate (#411)
Translated using Weblate (Spanish)

Spanish: currently translated at 100.0% (201 of 201 strings)

Translations update from Hosted Weblate

Translated using Weblate (Korean)

Korean: currently translated at 48.2% (97 of 201 strings)




Translate-URL: https://hosted.weblate.org/projects/suwayomi/tachidesk-webui/es/
Translate-URL: https://hosted.weblate.org/projects/suwayomi/tachidesk-webui/ko/
Translation: Suwayomi/Tachidesk-WebUI

Co-authored-by: PedroJLR <jacobnchrono@gmail.com>
Co-authored-by: jun <jtrobin@daum.net>
2023-09-17 23:06:17 +02:00
Robert Perez 686f9d605f Improvements on double page (#417)
* going to next chapter and prev page works now

* cleaned comments

* updated mapping file

* changed version back

* Fixed chapters being read.

* fixed comments
2023-09-06 20:39:46 +02:00
schroda c23799f0e0 Update "UpdateStatus" type to server changes (#413)
The "UpdateStatus" was updated in https://github.com/Suwayomi/Tachidesk-Server/pull/657 on the server side
2023-08-28 23:47:40 +02:00
schroda 38b69297f4 Add new languages to resources (#409) 2023-08-18 00:27:55 +02:00
Hosted Weblateandxconkhi9x 5d032d3748 Translations update from Hosted Weblate
Translated using Weblate (Vietnamese)

Vietnamese: currently translated at 100.0% (201 of 201 strings)

Translations update from Hosted Weblate

Added translation using Weblate (Vietnamese)

Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: xconkhi9x <bighih2@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/suwayomi/tachidesk-webui/vi/
Translation: Suwayomi/Tachidesk-WebUI
2023-08-18 00:19:05 +02:00
schroda dd0ab4cb86 Show "inLibraryIndicator" in "VerticalGrid" (#408) 2023-08-16 19:07:54 +02:00
schroda 48fe8d23e9 Fix/vite tsconfig setup (#404)
* Use "create-vite"s tsconfig files setup

The previous tsconfig file caused issues with vite throwing "missing identifiers of modules" errors

* Remove unused React imports

Starting with React 17 the nex JSX transform is being used
2023-08-14 21:43:06 +02:00
schroda 637118ad7a Add new languages to resources (#402) 2023-08-11 17:40:40 +02:00
e061fc348c Translations update from Hosted Weblate
Translated using Weblate (Spanish)

Spanish: currently translated at 100.0% (201 of 201 strings)

Translations update from Hosted Weblate

Translated using Weblate (Spanish)

Spanish: currently translated at 100.0% (201 of 201 strings)

Translations update from Hosted Weblate

Translated using Weblate (Arabic)

Arabic: currently translated at 7.9% (16 of 201 strings)

Translations update from Hosted Weblate

Translated using Weblate (Chinese (Traditional))

Chinese (Traditional): currently translated at 100.0% (201 of 201 strings)

Translations update from Hosted Weblate

Translated using Weblate (Italian)

Italian: currently translated at 7.9% (16 of 201 strings)

Translations update from Hosted Weblate

Added translation using Weblate (Italian)

Translations update from Hosted Weblate

Translated using Weblate (Korean)

Korean: currently translated at 1.9% (4 of 201 strings)

Added translation using Weblate (Korean)

Co-authored-by: Carlos Nahuel Morocho <nahuelmorocho@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Wip -Sama (Wip-Sama SmasterMega) <sgro.orlando@gmail.com>
Co-authored-by: caref <notneofy@gmail.com>
Co-authored-by: expertjun <jtrobin@naver.com>
Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Co-authored-by: 蓝云Reyes <i@muir.fun>
Translate-URL: https://hosted.weblate.org/projects/suwayomi/tachidesk-webui/ar/
Translate-URL: https://hosted.weblate.org/projects/suwayomi/tachidesk-webui/es/
Translate-URL: https://hosted.weblate.org/projects/suwayomi/tachidesk-webui/it/
Translate-URL: https://hosted.weblate.org/projects/suwayomi/tachidesk-webui/ko/
Translate-URL: https://hosted.weblate.org/projects/suwayomi/tachidesk-webui/zh_Hant/
Translation: Suwayomi/Tachidesk-WebUI
2023-08-11 17:33:04 +02:00
schroda 31dca431e4 Feature/use vite with swc (#400)
* Add vite-env.d.ts

Should have been added with bc99728dcd

* Update readmes

* Use vites SWC plugin
2023-08-11 17:30:22 +02:00
schroda e4745ee812 [ESLint] Fix issues (#397) 2023-07-13 14:23:20 +02:00
schroda 04f7831dc4 Use proper button radius (#393) 2023-07-04 21:55:39 +02:00
schroda 5279339b86 Feature/update i18next to v23.x (#391)
* Update i18next to v23.x

Update to version 23.2.7

* Use new "ParseKeys" (old: "TFuncKey") type

* Remove unnecessary casts to string

Not needed anymore with the latest version
2023-07-04 21:53:25 +02:00
schroda 09b10cd5ab Fix/back button not working without browser history (#389)
* Introduce local history stack

To be able to know if the browser back navigation should be used, it is sometimes necessary to know which the previous page was.
E.g. it should not be used in case the current page is the manga page and the previous one is the reader.

* Handle cases where there is no previous page in the history stack

* Always use a button for the navigation back button

* Navigate from base route to library by replacing the current location

The base route should not be included in the history
2023-06-26 20:40:35 +02:00
schroda 7857645800 Enable changing include/exclude state of "default" category (#387)
The "default" handling was changed, which makes it possible to change the include/exclude state
2023-06-24 12:54:18 +02:00
schroda 67b4bbbdcf Do not use and mutate global array 2023-06-24 12:41:27 +02:00
schroda 5c0dcf1f6c Rename function 2023-06-24 12:41:27 +02:00
schroda 084308a833 Fix typo 2023-06-24 12:39:01 +02:00
schroda 95ca2fabae Group obsolete extensions 2023-06-24 12:39:01 +02:00
schroda 2bbfb5272f Add new languages to resources 2023-06-24 12:38:37 +02:00