Commit Graph

1988 Commits

Author SHA1 Message Date
schroda
7d1f2dfe01 [Codegen] Fix gql schema url
Was unintentionally merged
2024-06-14 19:56:51 +02:00
Hosted Weblate
a9fc2f13aa Translations update from Hosted Weblate
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: LawrenceLorenzo <hgasiki1919810@gmail.com>
Co-authored-by: Leonardo de Macedo Sartorello <leo.sartorello98@gmail.com>
Co-authored-by: Vítor Paz <vitorpaz1765n@gmail.com>
Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Co-authored-by: kiramafuyu <794460551@qq.com>
Co-authored-by: marimo <nekomiminimoe@gmail.com>
Co-authored-by: tizio04 <dp2104@gmail.com>
Co-authored-by: yaki <dima280302@gmail.com>
Co-authored-by: 清水汐音 <chenzhongjie19940725@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/suwayomi/suwayomi-webui/es/
Translate-URL: https://hosted.weblate.org/projects/suwayomi/suwayomi-webui/it/
Translate-URL: https://hosted.weblate.org/projects/suwayomi/suwayomi-webui/ja/
Translate-URL: https://hosted.weblate.org/projects/suwayomi/suwayomi-webui/pt/
Translate-URL: https://hosted.weblate.org/projects/suwayomi/suwayomi-webui/ru/
Translate-URL: https://hosted.weblate.org/projects/suwayomi/suwayomi-webui/zh_Hans/
Translation: Suwayomi/Suwayomi-WebUI
2024-06-14 19:51:53 +02:00
schroda
36e943214c Remove "default back to" functionality
Caused an infinite loop, because in case the Reader was the initial opened page, got closed and the back button was pressed, the Reader just got opened again.

This happened because in case it was the initial opened page, closing the Reader did not use the browser back navigation and instead opened the Manga page, resulting in it to be pushed in the history stack with the Reader being the previous page
2024-06-14 15:17:05 +02:00
schroda
87eb5eaf53 Include location search in history stack 2024-06-14 15:17:05 +02:00
schroda
7337c18c7b Use global navigation history stack
The readers history stack was different to the one from the rest of the app, resulting in an infinite loop when using the closing the reader and using the back button in the manga page, since the back button just opened the reader again.

Regression introduced with 4bb458778e
2024-06-14 15:17:05 +02:00
schroda
7266270075 [IssueModerator] Improve unremoved acknowledgment section detection 2024-06-13 20:22:48 +02:00
schroda
6344c21261 Clear library selection after action 2024-06-13 12:17:02 +02:00
schroda
403f657945 Enable ripple effect for nav buttons 2024-06-07 14:48:23 +02:00
schroda
29d54384f5 Remove most "useSetDefaultBackTo" usage
In case the "depth" of the initial opened app page was greater than 2 it was possible to get stuck in a loop of using the back button twice from the initial page to the previous page and back to the initial page...

Instead, in case a page with a greater depth than 0 is opened, the library should just be opened when using the back button.

This way the back button actually behaves like it's intended, as an app back button and not like the browsers back button
2024-06-06 00:00:38 +02:00
schroda
4bb458778e Exclude initial page form history stack
In case the initial opened page had a "depth" of 2 or more, using the back button twice lead to the initial page to get opened again instead of decreasing the depth of the url.

E.g. in case the reader was opened as the initial app page, closing the reader and then clicking the back button caused the reader to get opened again instead of going "back" to the library.
2024-06-05 22:48:00 +02:00
schroda
19e326c8ad Allow partial response for Reader chapter update
It's possible that the "trackProgress" mutation of the "updateChapters" mutation fails, which then would lead to the "mark as read" and "delete chapter" mutation data to be omitted, thus, preventing the cache from being updated with the received mutation data response
2024-06-03 03:09:59 +02:00
schroda
fdf78145f0 [VersionMapping] Update to latest server gql schema changes
Server now supports partial mutation responses.
2024-06-03 03:09:58 +02:00
schroda
44166acb4b [Tooling] Improve typing 2024-05-28 14:24:13 +02:00
schroda
f815d1e1b0 [Tooling] Add requirements for translation contributors as options to script 2024-05-28 14:04:15 +02:00
schroda
74c7bfdfac Update dependencies 2024-05-25 23:27:46 +02:00
schroda
230acc23d5 Prevent scrollbar from shortly disappearing on library category change
Due to the MangaGrid getting unmounted when changing the category, the "y overflow" value got reset to "auto" which caused the scrollbar from disappearing and immediately reappearing again.
This caused the site content to slightly "jump" due to the increase and immediate decrease in is width.

Related commit 871908eba9
2024-05-24 17:31:49 +02:00
schroda
3492c103a7 Fix tsc issue of incorrect translation key 2024-05-24 14:04:19 +02:00
schroda
fee93c22eb Reduce padding of DownloadQueue items 2024-05-23 14:03:59 +02:00
schroda
bbe8a56779 Cleanup rendering of bookmark icon of ChapterCards
Gets rid of "position" and "top" usage
2024-05-23 13:54:32 +02:00
schroda
af9e77524b Prevent ChapterCard height change on selection
Due to the Checkbox being smaller than the vertical menu icon the ChapterCard was reduced in height, which caused the chapters in the list to jump up sightly.

This issue was introduced by 0ab6549a20 due to changing the line height of the chapter name
2024-05-23 13:52:45 +02:00
schroda
1b408c8065 Remove margin from virtuoso list item
margin breaks virtuosos height calculation
2024-05-23 13:50:54 +02:00
schroda
cf996d67bb Add "isMobileWidth" util function 2024-05-23 02:37:40 +02:00
schroda
809e8a32bd Remove "react-device-detect" dependency 2024-05-23 02:31:59 +02:00
schroda
297ec2580b Copy manga title on long press 2024-05-23 02:28:43 +02:00
schroda
f64320ad05 Remove missed static string 2024-05-23 01:22:13 +02:00
schroda
64c1ad6de3 Fix i18n type checking 2024-05-23 01:22:12 +02:00
schroda
43d05df78e Set Metadata title color to "secondary text"
The important information is the "value" instead of the "title", thus, the "value" should stand out more
2024-05-23 01:22:10 +02:00
schroda
c9cf516473 Use Typography in MangaDetails 2024-05-23 00:40:20 +02:00
schroda
0ab6549a20 Limit lines of chapter names of ChapterCard 2024-05-22 23:28:56 +02:00
schroda
5cfa6d8445 Limit lines of chapter name of update cards 2024-05-22 23:28:56 +02:00
schroda
857b0204d3 Limit lines of manga title of update cards 2024-05-22 23:28:54 +02:00
schroda
ea6eac5066 Consider tracker logged out if token is expired
Server returns logged in state for a tracker even while the token has expired
2024-05-22 23:24:05 +02:00
schroda
871908eba9 Always show vertical scrollbar on "body" instead of "html" element
Due to setting the html elements "y overflow" to "auto" after a manga grid got unmounted (d21521625b), MUIs "scroll lock" of "modals" was broken in the reader.

For some reason the scrollbar does not get locked and instead, due to the added padding, the pages jumped slightly upward.

MUI uses the "body" element to lock the scrollbar, and thus, using this element as well instead of "html" fixes this problem, since the manually set "overflow" value gets overwritten by MUI and thus, won't mess with its logic.
2024-05-22 23:06:17 +02:00
schroda
e9ee43b9b4 Use "DayJs" instead of "Date" 2024-05-21 22:22:12 +02:00
schroda
09ee5e6862 Extract dayjs setup into file 2024-05-21 20:45:13 +02:00
schroda
d889be558e Remove unnecessary "??" operator usage 2024-05-20 17:44:27 +02:00
schroda
d21521625b Always show vertical scrollbar while manga grid is rendered
To prevent jittering (https://github.com/Suwayomi/Suwayomi-WebUI/issues/758) caused by react-virtuoso
2024-05-20 17:44:27 +02:00
schroda
b207639445 Change scrollbar styling 2024-05-20 16:59:10 +02:00
schroda
37a371863f Set css color scheme via MUI 2024-05-20 16:23:11 +02:00
schroda
c6b99478f3 Fix missing flaresolverr link
The spaces are important so that i18n correctly converts the translation to the actual text.

Regression introduced with 3a7c93ea06
2024-05-20 15:00:04 +02:00
schroda
2b2686d323 Always include scanlator in case multiple scanlators exist
Makes more sense compared to the previous logic - to only show the scanlator in case "skip dupe chapters" setting was disabled and duplicated chapters existed - which was also not properly implemented, to be always able to tell if chapters of different scanlators might be viewed
2024-05-14 23:06:36 +02:00
schroda
a65ca228fe Keep initial opened chapter as duplicate reference
In case "skip duplicated chapters" is enabled and the next chapter is from a different scanlator, the initial opened chapter should still be used to remove duplicated chapters.

Otherwise, the original scanlator would get lost and the scanlator of the next chapter would get used, which was only a fallback chapter, because the initial chapters scanlator did not have a next chapter.
2024-05-13 04:04:41 +02:00
schroda
ca747b383e Show chapter title in Reader chapter select 2024-05-13 03:40:45 +02:00
schroda
d726793e3d Sanitize tracker summaries
The summaries can include invalid html tags which caused issues when trying to render them since these tags do not exist.

Known issue:
The invalid tags will get escaped, however, when they include a space (e.g. "<Author's Notes>" everything after the space is missing (e.g. will be "<Author's>")
2024-05-13 03:28:46 +02:00
schroda
c5d8b20528 Always allow clearing download queue
It's possible that the queue only contains a failed invalid (does not exist anymore in the database) chapter which then causes graphql errors.
In this case the queue was considered empty which prevented it from getting cleared.
Without being able to clear it, the error could not be fixed.
2024-05-13 01:38:29 +02:00
schroda
760de9e791 Fetch "chapters with state" sorted by asc "source order"
It was possible that the chapters were out of order which e.g. could cause issues with selecting the next chapters to download
2024-05-13 01:24:13 +02:00
schroda
3bc6777043 [SKIP CI][Tooling] Add script to create translation changelog 2024-05-11 16:25:32 +02:00
schroda
1325fe6baf Update CHANGELOG formatting 2024-05-11 01:53:21 +02:00
schroda
b581c0d896 Add new languages to resources 2024-05-11 01:28:25 +02:00
Hosted Weblate
2ef34210e2 Translations update from Hosted Weblate
Co-authored-by: Akhlak Ur Rahman <akhlak.pro.red@gmail.com>
Co-authored-by: Darkon Rabbit <dark.rabbit.set@gmail.com>
Co-authored-by: Fordas <fordas15@gmail.com>
Co-authored-by: Graham Morin <graham.morin@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: João Vitor Santos de Alencar <joaovitosanto132@gmail.com>
Co-authored-by: Nguyễn Trung Đức <vaicato16@gmail.com>
Co-authored-by: Yon <genjilolic@gmail.com>
Co-authored-by: gallegonovato <fran-carro@hotmail.es>
Co-authored-by: Василий <jintaxi97@gmail.com>
Co-authored-by: 張景富 <okpo2188513@gmail.com>
Co-authored-by: 清水汐音 <chenzhongjie19940725@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/suwayomi/suwayomi-webui/bn/
Translate-URL: https://hosted.weblate.org/projects/suwayomi/suwayomi-webui/es/
Translate-URL: https://hosted.weblate.org/projects/suwayomi/suwayomi-webui/fr/
Translate-URL: https://hosted.weblate.org/projects/suwayomi/suwayomi-webui/ja/
Translate-URL: https://hosted.weblate.org/projects/suwayomi/suwayomi-webui/pt/
Translate-URL: https://hosted.weblate.org/projects/suwayomi/suwayomi-webui/ru/
Translate-URL: https://hosted.weblate.org/projects/suwayomi/suwayomi-webui/vi/
Translate-URL: https://hosted.weblate.org/projects/suwayomi/suwayomi-webui/zh_Hans/
Translate-URL: https://hosted.weblate.org/projects/suwayomi/suwayomi-webui/zh_Hant/
Translation: Suwayomi/Suwayomi-WebUI
2024-05-11 01:21:51 +02:00