From 80ce84e2fea099dc743ee9a8d1910305d3110fe7 Mon Sep 17 00:00:00 2001 From: Alessandro Schwaiger Date: Sat, 23 Mar 2024 16:00:41 +0100 Subject: [PATCH 01/17] Tracking via Suwayomi works fine now --- .run/Dev.run.xml | 1 + build.gradle | 4 + .../dialog/tracking/tracking-dialog.css | 7 + schemas/schema.graphql | 293 ++++++++++++++++-- .../tachideskvaadinui/api/AuthAPI.java | 32 +- .../dialog/tracking/TrackingDialog.java | 104 +++++-- .../tracking/TrackingMangaChoiceDialog.java | 53 ++-- .../tracking/provider/AniListProvider.java | 39 +++ .../tracking/provider/SuwayomiProvider.java | 37 +++ .../tracking/provider/TrackerProvider.java | 34 ++ .../data/tracking/Tracker.java | 5 + .../tracking/search/TrackerSearchResult.java | 129 ++++++++ .../services/SuwayomiSettingsService.java | 2 +- .../TrackingCommunicationService.java | 1 + .../services/WebClientService.java | 14 + .../SuwayomiSettingsClient.java | 2 +- .../suwayomi/SuwayomiTrackingClient.java | 173 +++++++++++ .../{ => tracker}/AniListAPIService.java | 3 +- .../tracker/MyAnimeListAPIService.java | 14 + .../tracker/SuwayomiTrackingService.java | 114 +++++++ .../tachideskvaadinui/view/AniListView.java | 2 +- .../tachideskvaadinui/view/MangaView.java | 11 +- src/main/resources/schema/self.graphql | 1 + 23 files changed, 997 insertions(+), 78 deletions(-) create mode 100644 src/main/java/online/hatsunemiku/tachideskvaadinui/component/dialog/tracking/provider/AniListProvider.java create mode 100644 src/main/java/online/hatsunemiku/tachideskvaadinui/component/dialog/tracking/provider/SuwayomiProvider.java create mode 100644 src/main/java/online/hatsunemiku/tachideskvaadinui/component/dialog/tracking/provider/TrackerProvider.java create mode 100644 src/main/java/online/hatsunemiku/tachideskvaadinui/data/tracking/search/TrackerSearchResult.java rename src/main/java/online/hatsunemiku/tachideskvaadinui/services/client/{ => suwayomi}/SuwayomiSettingsClient.java (96%) create mode 100644 src/main/java/online/hatsunemiku/tachideskvaadinui/services/client/suwayomi/SuwayomiTrackingClient.java rename src/main/java/online/hatsunemiku/tachideskvaadinui/services/{ => tracker}/AniListAPIService.java (99%) create mode 100644 src/main/java/online/hatsunemiku/tachideskvaadinui/services/tracker/MyAnimeListAPIService.java create mode 100644 src/main/java/online/hatsunemiku/tachideskvaadinui/services/tracker/SuwayomiTrackingService.java create mode 100644 src/main/resources/schema/self.graphql diff --git a/.run/Dev.run.xml b/.run/Dev.run.xml index 5ab3628f..3fb1c8f7 100644 --- a/.run/Dev.run.xml +++ b/.run/Dev.run.xml @@ -3,6 +3,7 @@