Daniel 46ac5d5531 Save reader settings per manga in Meta (#216)
* [#213] Add missing "meta" property

- IManga
- IMangaCard (optional)
- IChapter
- ICategory

* [#213] Add util functions for handling metadata

- global server
- manga
- chapter
- category

* [#213] Use "ReaderSettings" from the manga metadata

- get ReaderSettings from manga metadata
- remove unnecessary check "make sure settings has all the keys"
    in case the stored settings in the metadata are outdated they will be filled with default values

* [#213] Reload manga only in case "mangaId" changed

In case the chapter is still from the same manga, a reload is unnecessary

* [#213] Only update the changed reader setting

Otherwise the app has to send patch requests to the server for every setting even if it didn't change

* [#213] Hide "openButton" on first render in case "navBar" is shown

The "openButton" was always set to be visible event in case the navBar was shown on the first render

* [#213] Open the "ReaderNavBar" if needed after receiving new settings

Otherwise, the drawer won't open in case the "navBar" was hidden on the first render since the default state in that case was set to false

* [#213] Update "ReaderSettings" after receiving the manga response

Otherwise, the default settings aren't getting removed

* [#213] Hide/Show "OpenButton" when opening/closing the drawer

Otherwise, the button stays hidden until it gets updated due to scrolling

* [#213] Keep "ReaderNavBar" state when opening prev/next chapter

In case the navBar wasn't sticky but opened, it got closed when the prev/next chapter got opened

* [#213] Prevent "ReaderNavBar" from closing when changing "staticNav" setting
2023-01-06 19:45:29 +03:30
2021-08-08 04:45:35 +04:30
2021-09-02 14:15:03 +04:30
2022-11-24 12:11:03 +03:30
2021-08-18 05:12:57 +04:30
2021-11-10 22:53:20 +03:30
2021-08-18 05:34:00 +04:30
2022-02-21 01:44:11 +03:30
2021-09-02 14:15:03 +04:30
2022-11-07 20:23:43 +03:30

Hold up!

If you got here hoping to download Tachidesk-WebUI, go back and download Tachidesk-Server, Tachidesk-WebUI is distributed as an embedded web interface along with Tachidesk-Server.

Tachidesk-WebUI

WebUI doesn't have it's own Tachidesk distribution and is version locked by Tachidesk-Server, In other words the Tachidesk-WebUI distribution is actually the Tachidesk-Server distribution.

Online builds of WebUI of are always available here. Make sure to set your Tachidesk-Server hostname in Settings or you'll get infinite loading. Also note that its the latest revision of WebUI and might not work correctly if you connect to a stable build of Tachidesk-Server.

You can find minified builds of WebUI in Tachidesk-WebUI-preview

Contributing and Technical info

See CONTRIBUTING.md.

License

Copyright (C) Contributors to the Suwayomi project

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Description
Material You styled Suwayomi WebUI
Readme 26 MiB
Languages
TypeScript 99.9%