From 18c744c1cfeac48d90d855e14f50218d01b4df71 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sat, 25 Jan 2025 19:17:42 -0500 Subject: [PATCH 01/17] fixed formatting --- frontend/index.html | 25 ++++++++++++---------- frontend/src/helperComponents/Anime.svelte | 8 +++++-- 2 files changed, 20 insertions(+), 13 deletions(-) diff --git a/frontend/index.html b/frontend/index.html index f1320c8..0cc61d9 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -1,13 +1,16 @@ - + - - - - AniTrack - - -
- - - + + + + AniTrack + + +
+ + + diff --git a/frontend/src/helperComponents/Anime.svelte b/frontend/src/helperComponents/Anime.svelte index 20a0531..53651ca 100644 --- a/frontend/src/helperComponents/Anime.svelte +++ b/frontend/src/helperComponents/Anime.svelte @@ -38,6 +38,7 @@ } from "../../wailsjs/go/main/App"; import { AddAnimeServiceToTable } from "../helperModules/AddAnimeServiceToTable.svelte"; import { CheckIfAniListLoggedInAndLoadWatchList } from "../helperModules/CheckIfAniListLoggedInAndLoadWatchList.svelte"; + import Datepicker from "./Datepicker.svelte"; let isAniListLoggedIn: boolean; let isMalLoggedIn: boolean; @@ -413,6 +414,7 @@ } +/B

{title} @@ -483,8 +485,9 @@ 1) ? 'border-red-500 border-[2px] text-rose-300 focus:ring-red-500 focus:border-red-500' : 'bg-gray-700 hover:bg-gray-600 border-gray-600 text-white focus:ring-blue-500 focus:border-blue-500'} w-24" - bind:value={currentAniListAnime.data.MediaList - .progress} + bind:value={ + currentAniListAnime.data.MediaList.progress + } required /> + + {/if} + + {#if isOpen || inline} + + {/if} + + + From c9c66508290a41c2077de643ab33ca8a82df55de Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sat, 25 Jan 2025 22:50:35 -0500 Subject: [PATCH 03/17] significantly improved datepicker --- frontend/src/helperComponents/Anime.svelte | 142 +++++++++--------- .../src/helperComponents/Datepicker.svelte | 6 +- .../helperFunctions/convertAniListDateIn.ts | 37 +++++ .../convertAniListDateToString.ts | 17 --- .../convertDateStringToAniList.ts | 22 --- .../helperFunctions/convertDateToAniList.ts | 39 +++++ 6 files changed, 152 insertions(+), 111 deletions(-) create mode 100644 frontend/src/helperFunctions/convertAniListDateIn.ts delete mode 100644 frontend/src/helperFunctions/convertAniListDateToString.ts delete mode 100644 frontend/src/helperFunctions/convertDateStringToAniList.ts create mode 100644 frontend/src/helperFunctions/convertDateToAniList.ts diff --git a/frontend/src/helperComponents/Anime.svelte b/frontend/src/helperComponents/Anime.svelte index 53651ca..95a46c2 100644 --- a/frontend/src/helperComponents/Anime.svelte +++ b/frontend/src/helperComponents/Anime.svelte @@ -11,7 +11,10 @@ import { Button } from "flowbite-svelte"; import type { AniListGetSingleAnime } from "../anilist/types/AniListCurrentUserWatchListType"; import Rating from "./Rating.svelte"; - import convertAniListDateToString from "../helperFunctions/convertAniListDateToString"; + import { + convertAniListDateToString, + convertAniListDateToDate, + } from "../helperFunctions/convertAniListDateIn"; import AnimeTable from "./AnimeTable.svelte"; import type { MALAnime, @@ -25,7 +28,10 @@ StatusOptions, } from "../helperTypes/StatusTypes"; import type { AniListUpdateVariables } from "../anilist/types/AniListTypes"; - import convertDateStringToAniList from "../helperFunctions/convertDateStringToAniList"; + import { + convertDateStringToAniList, + convertDateToAniList, + } from "../helperFunctions/convertDateToAniList"; import { AniListDeleteEntry, AniListUpdateEntry, @@ -39,6 +45,7 @@ import { AddAnimeServiceToTable } from "../helperModules/AddAnimeServiceToTable.svelte"; import { CheckIfAniListLoggedInAndLoadWatchList } from "../helperModules/CheckIfAniListLoggedInAndLoadWatchList.svelte"; import Datepicker from "./Datepicker.svelte"; + const re = /^([0-9]{4})-([0-9]{2})-([0-9]{2})/; let isAniListLoggedIn: boolean; let isMalLoggedIn: boolean; @@ -79,10 +86,10 @@ (option) => currentAniListAnime.data.MediaList.status === option.aniList, )[0]; - const startedAtDate = convertAniListDateToString( + let startedAtDate: Date | null = convertAniListDateToDate( currentAniListAnime.data.MediaList.startedAt, ); - const completedAtDate = convertAniListDateToString( + let completedAtDate: Date | null = convertAniListDateToDate( currentAniListAnime.data.MediaList.completedAt, ); @@ -104,19 +111,34 @@ notes: currentAniListAnime.data.MediaList.notes, }); - if (isMalLoggedIn) + if (isMalLoggedIn) { + let startDate = ""; + let finishDate = ""; + if (currentMalAnime.my_list_status.start_date !== "") { + const startArray = re.exec( + currentMalAnime.my_list_status.start_date, + ); + startDate = `${startArray[2]}-${startArray[3]}-${startArray[1]}`; + } + if (currentMalAnime.my_list_status.finish_date !== "") { + const finishArray = re.exec( + currentMalAnime.my_list_status.finish_date, + ); + finishDate = `${finishArray[2]}-${finishArray[3]}-${finishArray[1]}`; + } AddAnimeServiceToTable({ id: `m-${currentMalAnime.id}`, title: currentMalAnime.title, service: "MyAnimeList", progress: currentMalAnime.my_list_status.num_episodes_watched, status: currentMalAnime.my_list_status.status, - startedAt: currentMalAnime.my_list_status.start_date, - completedAt: currentMalAnime.my_list_status.finish_date, + startedAt: startDate, + completedAt: finishDate, score: currentMalAnime.my_list_status.score, repeat: currentMalAnime.my_list_status.num_times_rewatched, notes: currentMalAnime.my_list_status.comments, }); + } if (isSimklLoggedIn && Object.keys(currentSimklAnime).length > 0) AddAnimeServiceToTable({ @@ -138,8 +160,8 @@ rating: number; episodes: number; status: StatusOption; - startedAt: string; - completedAt: string; + startedAt: Date | null; + completedAt: Date | null; repeat: number; notes: string; } = { @@ -151,8 +173,8 @@ mal: "", simkl: "", }, - startedAt: "", - completedAt: "", + startedAt: null, + completedAt: null, repeat: 0, notes: "", }; @@ -189,8 +211,8 @@ score: submitData.rating, repeat: submitData.repeat, notes: submitData.notes, - startedAt: convertDateStringToAniList(submitData.startedAt), - completedAt: convertDateStringToAniList(submitData.completedAt), + startedAt: convertDateToAniList(startedAtDate), + completedAt: convertDateToAniList(completedAtDate), }; await AniListUpdateEntry(body).then( (value: AniListGetSingleAnime) => { @@ -245,6 +267,20 @@ value.my_list_status.comments = malAnimeReturn.comments; return value; }); + let startDate = ""; + let finishDate = ""; + if (currentMalAnime.my_list_status.start_date !== "") { + const startArray = re.exec( + currentMalAnime.my_list_status.start_date, + ); + startDate = `${startArray[2]}-${startArray[3]}-${startArray[1]}`; + } + if (currentMalAnime.my_list_status.finish_date !== "") { + const finishArray = re.exec( + currentMalAnime.my_list_status.finish_date, + ); + finishDate = `${finishArray[2]}-${finishArray[3]}-${finishArray[1]}`; + } AddAnimeServiceToTable({ id: `m-${currentMalAnime.id}`, title: currentMalAnime.title, @@ -252,8 +288,8 @@ progress: currentMalAnime.my_list_status.num_episodes_watched, status: currentMalAnime.my_list_status.status, - startedAt: currentMalAnime.my_list_status.start_date, - completedAt: currentMalAnime.my_list_status.finish_date, + startedAt: startDate, + completedAt: finishDate, score: currentMalAnime.my_list_status.score, repeat: currentMalAnime.my_list_status .num_times_rewatched, @@ -414,7 +450,6 @@ } -/B

{title} @@ -559,34 +594,16 @@ class="text-left block mb-2 text-sm font-medium text-white" >Date Started -
-
- -
- - -
+
-
-
- -
- -
+
-
+
-

- AniList -

+ +
-
From 3ec5eb1a0372e5fed11b5bb1dc1810d07b93a113 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Wed, 5 Feb 2025 21:36:23 -0500 Subject: [PATCH 07/17] began transition to tanstack table --- frontend/package.json | 1 + frontend/src/helperComponents/Anime.svelte | 2 + .../AnimeTableTanstack.svelte | 118 ++++++++++++++++++ 3 files changed, 121 insertions(+) create mode 100644 frontend/src/helperComponents/AnimeTableTanstack.svelte diff --git a/frontend/package.json b/frontend/package.json index 00febc3..dd516c5 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -17,6 +17,7 @@ "svelte": "^4.0.0", "svelte-check": "^3.4.3", "svelte-headless-table": "^0.18.2", + "@tanstack/svelte-table": "^8.20.5", "svelte-preprocess": "^5.0.3", "svelte-spa-router": "^4.0.1", "tailwind-merge": "^2.5.2", diff --git a/frontend/src/helperComponents/Anime.svelte b/frontend/src/helperComponents/Anime.svelte index 8287446..d5e9c88 100644 --- a/frontend/src/helperComponents/Anime.svelte +++ b/frontend/src/helperComponents/Anime.svelte @@ -45,6 +45,7 @@ import { AddAnimeServiceToTable } from "../helperModules/AddAnimeServiceToTable.svelte"; import { CheckIfAniListLoggedInAndLoadWatchList } from "../helperModules/CheckIfAniListLoggedInAndLoadWatchList.svelte"; import Datepicker from "./Datepicker.svelte"; + import AnimeTableTanstack from "./AnimeTableTanstack.svelte"; const re = /^([0-9]{4})-([0-9]{2})-([0-9]{2})/; let isAniListLoggedIn: boolean; @@ -710,6 +711,7 @@
+
diff --git a/frontend/src/helperComponents/AnimeTableTanstack.svelte b/frontend/src/helperComponents/AnimeTableTanstack.svelte new file mode 100644 index 0000000..628ce14 --- /dev/null +++ b/frontend/src/helperComponents/AnimeTableTanstack.svelte @@ -0,0 +1,118 @@ + + +
+ + + {#each $table.getHeaderGroups() as headerGroup} + + {#each headerGroup.headers as header} + + {/each} + + {/each} + + + {#each $table.getRowModel().rows as row} + + {#each row.getVisibleCells() as cell} + + {/each} + + {/each} + +
+ {#if !header.isPlaceholder} + + {/if} +
+ +
+ +
From 45845c2a69e9309911721d0973d95d8b8816c25c Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Fri, 7 Feb 2025 22:57:05 -0500 Subject: [PATCH 08/17] finished switch from svelte table to tanstack table --- frontend/src/helperComponents/Anime.svelte | 1461 ++++++++--------- .../src/helperComponents/AnimeTable.svelte | 265 +-- .../AnimeTableTanstack.svelte | 118 -- 3 files changed, 870 insertions(+), 974 deletions(-) delete mode 100644 frontend/src/helperComponents/AnimeTableTanstack.svelte diff --git a/frontend/src/helperComponents/Anime.svelte b/frontend/src/helperComponents/Anime.svelte index d5e9c88..34f950c 100644 --- a/frontend/src/helperComponents/Anime.svelte +++ b/frontend/src/helperComponents/Anime.svelte @@ -1,133 +1,273 @@ -

- {title} -

-
-
- {title} Cover Image + {title} +

+
+
+ {title} Cover Image + +
+ +
+
+
+ +
+ + - + +
+
+ / {currentAniListAnime.data.MediaList.media.nextAiringEpisode + .episode !== 0 + ? currentAniListAnime.data.MediaList.media.nextAiringEpisode + .episode - 1 + : currentAniListAnime.data.MediaList.media.episodes} +
+ {#if currentAniListAnime.data.MediaList.media.nextAiringEpisode.episode !== 0} +
+ of {currentAniListAnime.data.MediaList.media.episodes} +
+ {/if}
-
-
-
- -
- - - -
-
- / {currentAniListAnime.data.MediaList.media - .nextAiringEpisode.episode !== 0 - ? currentAniListAnime.data.MediaList.media - .nextAiringEpisode.episode - 1 - : currentAniListAnime.data.MediaList.media.episodes} -
- {#if currentAniListAnime.data.MediaList.media.nextAiringEpisode.episode !== 0} -
- of {currentAniListAnime.data.MediaList.media - .episodes} -
- {/if} -
- -
- - - {#each statusOptions as option} - - {/each} - -
-
-
-
- - -
-
- - -
-
- - -
-
-
-
- - -
-
+ bind:value={startingAnilistStatusOption} + > + {#each statusOptions as option} + + {/each} +
+
+
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + +
+
-
-
+
+
+ + -
+ on:click={async () => { + await CheckIfAniListLoggedInAndLoadWatchList(); + return push("/"); + }} + > + Go Home +
- - +
+ -
-
+
+
-
+ + + Delete Entries + +
+
+ + -
+ on:click={async () => { + await CheckIfAniListLoggedInAndLoadWatchList(); + return push("/"); + }} + > + Go Home +
+
-
-

Summary

-

{@html currentAniListAnime.data.MediaList.media.description}

-
+
+

Summary

+

{@html currentAniListAnime.data.MediaList.media.description}

+
diff --git a/frontend/src/helperComponents/AnimeTable.svelte b/frontend/src/helperComponents/AnimeTable.svelte index 8aa25b9..cd6a2d0 100644 --- a/frontend/src/helperComponents/AnimeTable.svelte +++ b/frontend/src/helperComponents/AnimeTable.svelte @@ -1,119 +1,166 @@ -
- - - {#each $headerRows as headerRow (headerRow.id)} - - - {#each headerRow.cells as cell (cell.id)} - - - - {/each} - - +
+
+
-
- - {#if props.sort.order === "asc"} - ⬇️ - {:else if props.sort.order === "desc"} - ⬆️ - {/if} -
-
+ + {#each $table.getHeaderGroups() as headerGroup} + + {#each headerGroup.headers as header} + {/each} - - - {#each $rows as row (row.id)} - - - {#each row.cells as cell (cell.id)} - - - - {/each} - - + + {/each} + + + {#each $table.getRowModel().rows as row} + + {#each row.getVisibleCells() as cell} + {/each} - + + {/each} +
+ {#if !header.isPlaceholder} +
+ + {#if header.column.getIsSorted().toString() === "asc"} + ⬆️ + {:else if header.column.getIsSorted().toString() === "desc"} + ⬇️ + {/if} +
+ {/if} +
- -
+ +
+
+ + + + + +
diff --git a/frontend/src/helperComponents/AnimeTableTanstack.svelte b/frontend/src/helperComponents/AnimeTableTanstack.svelte deleted file mode 100644 index 628ce14..0000000 --- a/frontend/src/helperComponents/AnimeTableTanstack.svelte +++ /dev/null @@ -1,118 +0,0 @@ - - -
- - - {#each $table.getHeaderGroups() as headerGroup} - - {#each headerGroup.headers as header} - - {/each} - - {/each} - - - {#each $table.getRowModel().rows as row} - - {#each row.getVisibleCells() as cell} - - {/each} - - {/each} - -
- {#if !header.isPlaceholder} - - {/if} -
- -
- -
From 0c6a8a40c33a93b8476a84da6179623d541d9733 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Fri, 7 Feb 2025 22:58:39 -0500 Subject: [PATCH 09/17] removed unused import --- frontend/src/helperComponents/Anime.svelte | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/frontend/src/helperComponents/Anime.svelte b/frontend/src/helperComponents/Anime.svelte index 34f950c..391849a 100644 --- a/frontend/src/helperComponents/Anime.svelte +++ b/frontend/src/helperComponents/Anime.svelte @@ -25,10 +25,7 @@ import { writable } from "svelte/store"; import type { StatusOption, StatusOptions } from "../helperTypes/StatusTypes"; import type { AniListUpdateVariables } from "../anilist/types/AniListTypes"; - import { - convertDateStringToAniList, - convertDateToAniList, - } from "../helperFunctions/convertDateToAniList"; + import { convertDateToAniList } from "../helperFunctions/convertDateToAniList"; import { AniListDeleteEntry, AniListUpdateEntry, From ee8dd2e8669101a7ddce1e0c2ae278e39c3730b4 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sat, 15 Feb 2025 18:47:52 -0500 Subject: [PATCH 10/17] upgraded go packages --- frontend/wailsjs/runtime/runtime.d.ts | 2 +- go.mod | 16 ++-- go.sum | 109 -------------------------- 3 files changed, 9 insertions(+), 118 deletions(-) delete mode 100644 go.sum diff --git a/frontend/wailsjs/runtime/runtime.d.ts b/frontend/wailsjs/runtime/runtime.d.ts index 94778df..4445dac 100644 --- a/frontend/wailsjs/runtime/runtime.d.ts +++ b/frontend/wailsjs/runtime/runtime.d.ts @@ -134,7 +134,7 @@ export function WindowIsFullscreen(): Promise; // [WindowSetSize](https://wails.io/docs/reference/runtime/window#windowsetsize) // Sets the width and height of the window. -export function WindowSetSize(width: number, height: number): Promise; +export function WindowSetSize(width: number, height: number): void; // [WindowGetSize](https://wails.io/docs/reference/runtime/window#windowgetsize) // Gets the width and height of the window. diff --git a/go.mod b/go.mod index 02a6a0c..713fed9 100644 --- a/go.mod +++ b/go.mod @@ -1,11 +1,11 @@ module AniTrack -go 1.23 +go 1.24 require ( github.com/99designs/keyring v1.2.2 github.com/tidwall/gjson v1.18.0 - github.com/wailsapp/wails/v2 v2.9.2 + github.com/wailsapp/wails/v2 v2.10.0 ) require ( @@ -31,7 +31,7 @@ require ( github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c // indirect github.com/pkg/errors v0.9.1 // indirect github.com/rivo/uniseg v0.4.7 // indirect - github.com/samber/lo v1.47.0 // indirect + github.com/samber/lo v1.49.1 // indirect github.com/tidwall/match v1.1.1 // indirect github.com/tidwall/pretty v1.2.1 // indirect github.com/tkrajina/go-reflector v0.5.8 // indirect @@ -39,11 +39,11 @@ require ( github.com/valyala/fasttemplate v1.2.2 // indirect github.com/wailsapp/go-webview2 v1.0.19 // indirect github.com/wailsapp/mimetype v1.4.1 // indirect - golang.org/x/crypto v0.32.0 // indirect - golang.org/x/net v0.34.0 // indirect - golang.org/x/sys v0.29.0 // indirect - golang.org/x/term v0.28.0 // indirect - golang.org/x/text v0.21.0 // indirect + golang.org/x/crypto v0.33.0 // indirect + golang.org/x/net v0.35.0 // indirect + golang.org/x/sys v0.30.0 // indirect + golang.org/x/term v0.29.0 // indirect + golang.org/x/text v0.22.0 // indirect ) // replace github.com/wailsapp/wails/v2 v2.9.1 => /home/nymusicman/go/pkg/mod diff --git a/go.sum b/go.sum deleted file mode 100644 index 882ec03..0000000 --- a/go.sum +++ /dev/null @@ -1,109 +0,0 @@ -github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= -github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= -github.com/99designs/keyring v1.2.2 h1:pZd3neh/EmUzWONb35LxQfvuY7kiSXAq3HQd97+XBn0= -github.com/99designs/keyring v1.2.2/go.mod h1:wes/FrByc8j7lFOAGLGSNEg8f/PaI3cgTBqhFkHUrPk= -github.com/bep/debounce v1.2.1 h1:v67fRdBA9UQu2NhLFXrSg0Brw7CexQekrBwDMM8bzeY= -github.com/bep/debounce v1.2.1/go.mod h1:H8yggRPQKLUhUoqrJC1bO2xNya7vanpDl7xR3ISbCJ0= -github.com/danieljoos/wincred v1.2.2 h1:774zMFJrqaeYCK2W57BgAem/MLi6mtSE47MB6BOJ0i0= -github.com/danieljoos/wincred v1.2.2/go.mod h1:w7w4Utbrz8lqeMbDAK0lkNJUv5sAOkFi7nd/ogr0Uh8= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/dvsekhvalnov/jose2go v1.8.0 h1:LqkkVKAlHFfH9LOEl5fe4p/zL02OhWE7pCufMBG2jLA= -github.com/dvsekhvalnov/jose2go v1.8.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= -github.com/go-ole/go-ole v1.3.0 h1:Dt6ye7+vXGIKZ7Xtk4s6/xVdGDQynvom7xCFEdWr6uE= -github.com/go-ole/go-ole v1.3.0/go.mod h1:5LS6F96DhAwUc7C+1HLexzMXY1xGRSryjyPPKW6zv78= -github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= -github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= -github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk= -github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= -github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= -github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= -github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= -github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e h1:Q3+PugElBCf4PFpxhErSzU3/PY5sFL5Z6rfv4AbGAck= -github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e/go.mod h1:alcuEEnZsY1WQsagKhZDsoPCRoOijYqhZvPwLG0kzVs= -github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= -github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE= -github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= -github.com/labstack/echo/v4 v4.13.3 h1:pwhpCPrTl5qry5HRdM5FwdXnhXSLSY+WE+YQSeCaafY= -github.com/labstack/echo/v4 v4.13.3/go.mod h1:o90YNEeQWjDozo584l7AwhJMHN0bOC4tAfg+Xox9q5g= -github.com/labstack/gommon v0.4.2 h1:F8qTUNXgG1+6WQmqoUWnz8WiEU60mXVVw0P4ht1WRA0= -github.com/labstack/gommon v0.4.2/go.mod h1:QlUFxVM+SNXhDL/Z7YhocGIBYOiwB0mXm1+1bAPHPyU= -github.com/leaanthony/debme v1.2.1 h1:9Tgwf+kjcrbMQ4WnPcEIUcQuIZYqdWftzZkBr+i/oOc= -github.com/leaanthony/debme v1.2.1/go.mod h1:3V+sCm5tYAgQymvSOfYQ5Xx2JCr+OXiD9Jkw3otUjiA= -github.com/leaanthony/go-ansi-parser v1.6.1 h1:xd8bzARK3dErqkPFtoF9F3/HgN8UQk0ed1YDKpEz01A= -github.com/leaanthony/go-ansi-parser v1.6.1/go.mod h1:+vva/2y4alzVmmIEpk9QDhA7vLC5zKDTRwfZGOp3IWU= -github.com/leaanthony/gosod v1.0.4 h1:YLAbVyd591MRffDgxUOU1NwLhT9T1/YiwjKZpkNFeaI= -github.com/leaanthony/gosod v1.0.4/go.mod h1:GKuIL0zzPj3O1SdWQOdgURSuhkF+Urizzxh26t9f1cw= -github.com/leaanthony/slicer v1.6.0 h1:1RFP5uiPJvT93TAHi+ipd3NACobkW53yUiBqZheE/Js= -github.com/leaanthony/slicer v1.6.0/go.mod h1:o/Iz29g7LN0GqH3aMjWAe90381nyZlDNquK+mtH2Fj8= -github.com/leaanthony/u v1.1.1 h1:TUFjwDGlNX+WuwVEzDqQwC2lOv0P4uhTQw7CMFdiK7M= -github.com/leaanthony/u v1.1.1/go.mod h1:9+o6hejoRljvZ3BzdYlVL0JYCwtnAsVuN9pVTQcaRfI= -github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU= -github.com/matryer/is v1.4.1 h1:55ehd8zaGABKLXQUe2awZ99BD/PTc2ls+KV/dXphgEQ= -github.com/matryer/is v1.4.1/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU= -github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE= -github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= -github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= -github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= -github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= -github.com/mtibben/percent v0.2.1/go.mod h1:KG9uO+SZkUp+VkRHsCdYQV3XSZrrSpR3O9ibNBTZrns= -github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= -github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= -github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= -github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU= -github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= -github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= -github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ= -github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= -github.com/samber/lo v1.47.0 h1:z7RynLwP5nbyRscyvcD043DWYoOcYRv3mV8lBeqOCLc= -github.com/samber/lo v1.47.0/go.mod h1:RmDH9Ct32Qy3gduHQuKJ3gW1fMHAnE/fAzQuf6He5cU= -github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= -github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= -github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= -github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= -github.com/tidwall/gjson v1.18.0 h1:FIDeeyB800efLX89e5a8Y0BNH+LOngJyGrIWxG2FKQY= -github.com/tidwall/gjson v1.18.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= -github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= -github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= -github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= -github.com/tidwall/pretty v1.2.1 h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4= -github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= -github.com/tkrajina/go-reflector v0.5.8 h1:yPADHrwmUbMq4RGEyaOUpz2H90sRsETNVpjzo3DLVQQ= -github.com/tkrajina/go-reflector v0.5.8/go.mod h1:ECbqLgccecY5kPmPmXg1MrHW585yMcDkVl6IvJe64T4= -github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= -github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= -github.com/valyala/fasttemplate v1.2.2 h1:lxLXG0uE3Qnshl9QyaK6XJxMXlQZELvChBOCmQD0Loo= -github.com/valyala/fasttemplate v1.2.2/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= -github.com/wailsapp/go-webview2 v1.0.19 h1:7U3QcDj1PrBPaxJNCui2k1SkWml+Q5kvFUFyTImA6NU= -github.com/wailsapp/go-webview2 v1.0.19/go.mod h1:qJmWAmAmaniuKGZPWwne+uor3AHMB5PFhqiK0Bbj8kc= -github.com/wailsapp/mimetype v1.4.1 h1:pQN9ycO7uo4vsUUuPeHEYoUkLVkaRntMnHJxVwYhwHs= -github.com/wailsapp/mimetype v1.4.1/go.mod h1:9aV5k31bBOv5z6u+QP8TltzvNGJPmNJD4XlAL3U+j3o= -github.com/wailsapp/wails/v2 v2.9.2 h1:Xb5YRTos1w5N7DTMyYegWaGukCP2fIaX9WF21kPPF2k= -github.com/wailsapp/wails/v2 v2.9.2/go.mod h1:uehvlCwJSFcBq7rMCGfk4rxca67QQGsbg5Nm4m9UnBs= -golang.org/x/crypto v0.32.0 h1:euUpcYgM8WcP71gNpTqQCn6rC2t6ULUPiOzfWaXVVfc= -golang.org/x/crypto v0.32.0/go.mod h1:ZnnJkOaASj8g0AjIduWNlq2NRxL0PlBrbKVyZ6V/Ugc= -golang.org/x/net v0.0.0-20210505024714-0287a6fb4125/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= -golang.org/x/net v0.34.0 h1:Mb7Mrk043xzHgnRM88suvJFwzVrRfHEHJEl5/71CKw0= -golang.org/x/net v0.34.0/go.mod h1:di0qlW3YNM5oh6GqDGQr92MyTozJPmybPK4Ev/Gm31k= -golang.org/x/sys v0.0.0-20200810151505-1b9f1253b3ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.29.0 h1:TPYlXGxvx1MGTn2GiZDhnjPA9wZzZeGKHHmKhHYvgaU= -golang.org/x/sys v0.29.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.28.0 h1:/Ts8HFuMR2E6IP/jlo7QVLZHggjKQbhu/7H0LJFr3Gg= -golang.org/x/term v0.28.0/go.mod h1:Sw/lC2IAUZ92udQNf3WodGtn4k/XoLyZoh8v/8uiwek= -golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.21.0 h1:zyQAAkrwaneQ066sspRyJaG9VNi/YJ1NfzcGB3hZ/qo= -golang.org/x/text v0.21.0/go.mod h1:4IBbMaMmOPCJ8SecivzSH54+73PCFmPWxNTLm+vZkEQ= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b h1:QRR6H1YWRnHb4Y/HeNFCTJLFVxaq6wH4YuVdsUOr75U= -gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= -gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= From 4509e479bca86d18ca58ecefd006bf3c103c7c0a Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sat, 15 Feb 2025 18:48:03 -0500 Subject: [PATCH 11/17] upgraded go packages --- go.sum | 110 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 go.sum diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..f12e046 --- /dev/null +++ b/go.sum @@ -0,0 +1,110 @@ +github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 h1:/vQbFIOMbk2FiG/kXiLl8BRyzTWDw7gX/Hz7Dd5eDMs= +github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4/go.mod h1:hN7oaIRCjzsZ2dE+yG5k+rsdt3qcwykqK6HVGcKwsw4= +github.com/99designs/keyring v1.2.2 h1:pZd3neh/EmUzWONb35LxQfvuY7kiSXAq3HQd97+XBn0= +github.com/99designs/keyring v1.2.2/go.mod h1:wes/FrByc8j7lFOAGLGSNEg8f/PaI3cgTBqhFkHUrPk= +github.com/bep/debounce v1.2.1 h1:v67fRdBA9UQu2NhLFXrSg0Brw7CexQekrBwDMM8bzeY= +github.com/bep/debounce v1.2.1/go.mod h1:H8yggRPQKLUhUoqrJC1bO2xNya7vanpDl7xR3ISbCJ0= +github.com/danieljoos/wincred v1.2.2 h1:774zMFJrqaeYCK2W57BgAem/MLi6mtSE47MB6BOJ0i0= +github.com/danieljoos/wincred v1.2.2/go.mod h1:w7w4Utbrz8lqeMbDAK0lkNJUv5sAOkFi7nd/ogr0Uh8= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/dvsekhvalnov/jose2go v1.8.0 h1:LqkkVKAlHFfH9LOEl5fe4p/zL02OhWE7pCufMBG2jLA= +github.com/dvsekhvalnov/jose2go v1.8.0/go.mod h1:QsHjhyTlD/lAVqn/NSbVZmSCGeDehTB/mPZadG+mhXU= +github.com/go-ole/go-ole v1.3.0 h1:Dt6ye7+vXGIKZ7Xtk4s6/xVdGDQynvom7xCFEdWr6uE= +github.com/go-ole/go-ole v1.3.0/go.mod h1:5LS6F96DhAwUc7C+1HLexzMXY1xGRSryjyPPKW6zv78= +github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2 h1:ZpnhV/YsD2/4cESfV5+Hoeu/iUR3ruzNvZ+yQfO03a0= +github.com/godbus/dbus v0.0.0-20190726142602-4481cbc300e2/go.mod h1:bBOAhwG1umN6/6ZUMtDFBMQR8jRg9O75tm9K00oMsK4= +github.com/godbus/dbus/v5 v5.1.0 h1:4KLkAxT3aOY8Li4FRJe/KvhoNFFxo0m6fNuFUO8QJUk= +github.com/godbus/dbus/v5 v5.1.0/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA= +github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= +github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= +github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c h1:6rhixN/i8ZofjG1Y75iExal34USq5p+wiN1tpie8IrU= +github.com/gsterjov/go-libsecret v0.0.0-20161001094733-a6f4afe4910c/go.mod h1:NMPJylDgVpX0MLRlPy15sqSwOFv/U1GZ2m21JhFfek0= +github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e h1:Q3+PugElBCf4PFpxhErSzU3/PY5sFL5Z6rfv4AbGAck= +github.com/jchv/go-winloader v0.0.0-20210711035445-715c2860da7e/go.mod h1:alcuEEnZsY1WQsagKhZDsoPCRoOijYqhZvPwLG0kzVs= +github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= +github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= +github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= +github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= +github.com/labstack/echo/v4 v4.13.3 h1:pwhpCPrTl5qry5HRdM5FwdXnhXSLSY+WE+YQSeCaafY= +github.com/labstack/echo/v4 v4.13.3/go.mod h1:o90YNEeQWjDozo584l7AwhJMHN0bOC4tAfg+Xox9q5g= +github.com/labstack/gommon v0.4.2 h1:F8qTUNXgG1+6WQmqoUWnz8WiEU60mXVVw0P4ht1WRA0= +github.com/labstack/gommon v0.4.2/go.mod h1:QlUFxVM+SNXhDL/Z7YhocGIBYOiwB0mXm1+1bAPHPyU= +github.com/leaanthony/debme v1.2.1 h1:9Tgwf+kjcrbMQ4WnPcEIUcQuIZYqdWftzZkBr+i/oOc= +github.com/leaanthony/debme v1.2.1/go.mod h1:3V+sCm5tYAgQymvSOfYQ5Xx2JCr+OXiD9Jkw3otUjiA= +github.com/leaanthony/go-ansi-parser v1.6.1 h1:xd8bzARK3dErqkPFtoF9F3/HgN8UQk0ed1YDKpEz01A= +github.com/leaanthony/go-ansi-parser v1.6.1/go.mod h1:+vva/2y4alzVmmIEpk9QDhA7vLC5zKDTRwfZGOp3IWU= +github.com/leaanthony/gosod v1.0.4 h1:YLAbVyd591MRffDgxUOU1NwLhT9T1/YiwjKZpkNFeaI= +github.com/leaanthony/gosod v1.0.4/go.mod h1:GKuIL0zzPj3O1SdWQOdgURSuhkF+Urizzxh26t9f1cw= +github.com/leaanthony/slicer v1.6.0 h1:1RFP5uiPJvT93TAHi+ipd3NACobkW53yUiBqZheE/Js= +github.com/leaanthony/slicer v1.6.0/go.mod h1:o/Iz29g7LN0GqH3aMjWAe90381nyZlDNquK+mtH2Fj8= +github.com/leaanthony/u v1.1.1 h1:TUFjwDGlNX+WuwVEzDqQwC2lOv0P4uhTQw7CMFdiK7M= +github.com/leaanthony/u v1.1.1/go.mod h1:9+o6hejoRljvZ3BzdYlVL0JYCwtnAsVuN9pVTQcaRfI= +github.com/matryer/is v1.4.0/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU= +github.com/matryer/is v1.4.1 h1:55ehd8zaGABKLXQUe2awZ99BD/PTc2ls+KV/dXphgEQ= +github.com/matryer/is v1.4.1/go.mod h1:8I/i5uYgLzgsgEloJE1U6xx5HkBQpAZvepWuujKwMRU= +github.com/mattn/go-colorable v0.1.14 h1:9A9LHSqF/7dyVVX6g0U9cwm9pG3kP9gSzcuIPHPsaIE= +github.com/mattn/go-colorable v0.1.14/go.mod h1:6LmQG8QLFO4G5z1gPvYEzlUgJ2wF+stgPZH1UqBm1s8= +github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= +github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mtibben/percent v0.2.1 h1:5gssi8Nqo8QU/r2pynCm+hBQHpkB/uNK7BJCFogWdzs= +github.com/mtibben/percent v0.2.1/go.mod h1:KG9uO+SZkUp+VkRHsCdYQV3XSZrrSpR3O9ibNBTZrns= +github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e h1:fD57ERR4JtEqsWbfPhv4DMiApHyliiK5xCTNVSPiaAs= +github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= +github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c h1:+mdjkGKdHQG3305AYmdv1U2eRNDiU2ErMBj1gwrq8eQ= +github.com/pkg/browser v0.0.0-20240102092130-5ac0b6a4141c/go.mod h1:7rwL4CYBLnjLxUqIJNnCWiEdr3bn6IUYi15bNlnbCCU= +github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= +github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= +github.com/rivo/uniseg v0.4.7 h1:WUdvkW8uEhrYfLC4ZzdpI2ztxP1I582+49Oc5Mq64VQ= +github.com/rivo/uniseg v0.4.7/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= +github.com/samber/lo v1.49.1 h1:4BIFyVfuQSEpluc7Fua+j1NolZHiEHEpaSEKdsH0tew= +github.com/samber/lo v1.49.1/go.mod h1:dO6KHFzUKXgP8LDhU0oI8d2hekjXnGOu0DB8Jecxd6o= +github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY= +github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA= +github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA= +github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= +github.com/tidwall/gjson v1.18.0 h1:FIDeeyB800efLX89e5a8Y0BNH+LOngJyGrIWxG2FKQY= +github.com/tidwall/gjson v1.18.0/go.mod h1:/wbyibRr2FHMks5tjHJ5F8dMZh3AcwJEMf5vlfC0lxk= +github.com/tidwall/match v1.1.1 h1:+Ho715JplO36QYgwN9PGYNhgZvoUSc9X2c80KVTi+GA= +github.com/tidwall/match v1.1.1/go.mod h1:eRSPERbgtNPcGhD8UCthc6PmLEQXEWd3PRB5JTxsfmM= +github.com/tidwall/pretty v1.2.0/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= +github.com/tidwall/pretty v1.2.1 h1:qjsOFOWWQl+N3RsoF5/ssm1pHmJJwhjlSbZ51I6wMl4= +github.com/tidwall/pretty v1.2.1/go.mod h1:ITEVvHYasfjBbM0u2Pg8T2nJnzm8xPwvNhhsoaGGjNU= +github.com/tkrajina/go-reflector v0.5.8 h1:yPADHrwmUbMq4RGEyaOUpz2H90sRsETNVpjzo3DLVQQ= +github.com/tkrajina/go-reflector v0.5.8/go.mod h1:ECbqLgccecY5kPmPmXg1MrHW585yMcDkVl6IvJe64T4= +github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw= +github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc= +github.com/valyala/fasttemplate v1.2.2 h1:lxLXG0uE3Qnshl9QyaK6XJxMXlQZELvChBOCmQD0Loo= +github.com/valyala/fasttemplate v1.2.2/go.mod h1:KHLXt3tVN2HBp8eijSv/kGJopbvo7S+qRAEEKiv+SiQ= +github.com/wailsapp/go-webview2 v1.0.19 h1:7U3QcDj1PrBPaxJNCui2k1SkWml+Q5kvFUFyTImA6NU= +github.com/wailsapp/go-webview2 v1.0.19/go.mod h1:qJmWAmAmaniuKGZPWwne+uor3AHMB5PFhqiK0Bbj8kc= +github.com/wailsapp/mimetype v1.4.1 h1:pQN9ycO7uo4vsUUuPeHEYoUkLVkaRntMnHJxVwYhwHs= +github.com/wailsapp/mimetype v1.4.1/go.mod h1:9aV5k31bBOv5z6u+QP8TltzvNGJPmNJD4XlAL3U+j3o= +github.com/wailsapp/wails/v2 v2.10.0 h1:kfpWnfdNL1nXq0PyqAVPPDQY2pxkqcqWab01NGh3a6w= +github.com/wailsapp/wails/v2 v2.10.0/go.mod h1:zrebnFV6MQf9kx8HI4iAv63vsR5v67oS7GTEZ7Pz1TY= +golang.org/x/crypto v0.33.0 h1:IOBPskki6Lysi0lo9qQvbxiQ+FvsCC/YWOecCHAixus= +golang.org/x/crypto v0.33.0/go.mod h1:bVdXmD7IV/4GdElGPozy6U7lWdRXA4qyRVGJV57uQ5M= +golang.org/x/net v0.0.0-20210505024714-0287a6fb4125/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= +golang.org/x/net v0.35.0 h1:T5GQRQb2y08kTAByq9L4/bz8cipCdA8FbRTXewonqY8= +golang.org/x/net v0.35.0/go.mod h1:EglIi67kWsHKlRzzVMUD93VMSWGFOMSZgxFjparz1Qk= +golang.org/x/sys v0.0.0-20200810151505-1b9f1253b3ed/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc= +golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= +golang.org/x/term v0.29.0 h1:L6pJp37ocefwRRtYPKSWOWzOtWSxVajvz2ldH/xi3iU= +golang.org/x/term v0.29.0/go.mod h1:6bl4lRlvVuDgSf3179VpIxBF0o10JUpXWOnI7nErv7s= +golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= +golang.org/x/text v0.22.0 h1:bofq7m3/HAFvbF51jz3Q9wLg3jkvSPuiZu/pD1XwgtM= +golang.org/x/text v0.22.0/go.mod h1:YRoo4H8PVmsu+E3Ou7cqLVH8oXWIHVoX0jqUWALQhfY= +golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= +gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b h1:QRR6H1YWRnHb4Y/HeNFCTJLFVxaq6wH4YuVdsUOr75U= +gopkg.in/check.v1 v1.0.0-20200902074654-038fdea0a05b/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= From 61f8f5dd8425942ac59001766e416735fd1e73aa Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sat, 15 Feb 2025 18:48:17 -0500 Subject: [PATCH 12/17] removed println from simkl body --- SimklFunctions.go | 1 - 1 file changed, 1 deletion(-) diff --git a/SimklFunctions.go b/SimklFunctions.go index a7be06a..156cf4f 100644 --- a/SimklFunctions.go +++ b/SimklFunctions.go @@ -262,7 +262,6 @@ func (a *App) SimklSearch(aniListAnime MediaList) SimklAnime { if len(anime) == 0 { url = "https://api.simkl.com/search/id?mal=" + strconv.Itoa(aniListAnime.Media.IDMal) respBody = SimklHelper("GET", url, nil) - fmt.Println(string(respBody)) err = json.Unmarshal(respBody, &anime) } From 1a083deb545998891c3528d583af47a0800ab2e9 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sat, 15 Feb 2025 21:12:36 -0500 Subject: [PATCH 13/17] reverted back to svelte-headless-table --- frontend/package.json | 3 +- frontend/src/helperComponents/Anime.svelte | 1448 +++++++++-------- .../src/helperComponents/AnimeTable.svelte | 265 ++- 3 files changed, 851 insertions(+), 865 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index dd516c5..2e17b27 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -16,8 +16,7 @@ "postcss": "^8.4.45", "svelte": "^4.0.0", "svelte-check": "^3.4.3", - "svelte-headless-table": "^0.18.2", - "@tanstack/svelte-table": "^8.20.5", + "svelte-headless-table": "^0.18.3", "svelte-preprocess": "^5.0.3", "svelte-spa-router": "^4.0.1", "tailwind-merge": "^2.5.2", diff --git a/frontend/src/helperComponents/Anime.svelte b/frontend/src/helperComponents/Anime.svelte index 391849a..8287446 100644 --- a/frontend/src/helperComponents/Anime.svelte +++ b/frontend/src/helperComponents/Anime.svelte @@ -1,270 +1,132 @@
-

- {title} -

-
-
- {title} Cover Image - -
- -
-
-
- -
- - + {title} +

+
+
+ {title} Cover Image - -
-
- / {currentAniListAnime.data.MediaList.media.nextAiringEpisode - .episode !== 0 - ? currentAniListAnime.data.MediaList.media.nextAiringEpisode - .episode - 1 - : currentAniListAnime.data.MediaList.media.episodes} -
- {#if currentAniListAnime.data.MediaList.media.nextAiringEpisode.episode !== 0} -
- of {currentAniListAnime.data.MediaList.media.episodes} -
- {/if} +
-
- - + +
+
+ / {currentAniListAnime.data.MediaList.media + .nextAiringEpisode.episode !== 0 + ? currentAniListAnime.data.MediaList.media + .nextAiringEpisode.episode - 1 + : currentAniListAnime.data.MediaList.media.episodes} +
+ {#if currentAniListAnime.data.MediaList.media.nextAiringEpisode.episode !== 0} +
+ of {currentAniListAnime.data.MediaList.media + .episodes} +
+ {/if} + + +
+ + + bind:value={startingAnilistStatusOption} + > + {#each statusOptions as option} + + {/each} + +
+ +
+
+ + +
+
+ + +
+
+ + +
+
+
+
+ + +
+
- -
-
- - -
-
- - -
-
- - -
-
-
-
- - -
-
- -
-
- - + + on:click={async () => { + await CheckIfAniListLoggedInAndLoadWatchList(); + return push("/"); + }} + > + Go Home + +
- - + -
-
- -
-
- +
+
- - - - Sync Changes - - + + on:click={async () => { + await CheckIfAniListLoggedInAndLoadWatchList(); + return push("/"); + }} + > + Go Home + +
- -
-

Summary

-

{@html currentAniListAnime.data.MediaList.media.description}

-
+
+

Summary

+

{@html currentAniListAnime.data.MediaList.media.description}

+
diff --git a/frontend/src/helperComponents/AnimeTable.svelte b/frontend/src/helperComponents/AnimeTable.svelte index cd6a2d0..76ee5bc 100644 --- a/frontend/src/helperComponents/AnimeTable.svelte +++ b/frontend/src/helperComponents/AnimeTable.svelte @@ -1,166 +1,119 @@ -
-
- - - {#each $table.getHeaderGroups() as headerGroup} - - {#each headerGroup.headers as header} - +
+
- {#if !header.isPlaceholder} -
- - {#if header.column.getIsSorted().toString() === "asc"} - ⬆️ - {:else if header.column.getIsSorted().toString() === "desc"} - ⬇️ - {/if} -
- {/if} -
+ + {#each $headerRows as headerRow (headerRow.id)} + + + {#each headerRow.cells as cell (cell.id)} + + + + {/each} + + {/each} - - {/each} - - - {#each $table.getRowModel().rows as row} - - {#each row.getVisibleCells() as cell} - + + + {#each $rows as row (row.id)} + + + {#each row.cells as cell (cell.id)} + + + + {/each} + + {/each} - - {/each} - +
+
+ + {#if props.sort.order === "asc"} + ⬇️ + {:else if props.sort.order === "desc"} + ⬆️ + {/if} +
+
- -
+ +
-
- - - - - -
From b39f19f03aba71024c2618f255d9cd1681f5e2e8 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Mon, 17 Feb 2025 20:03:16 -0500 Subject: [PATCH 14/17] added REST private env to gitignore --- .gitignore | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 44b7bdb..dd7cdb5 100644 --- a/.gitignore +++ b/.gitignore @@ -29,4 +29,7 @@ package.json.md5 package-lock.json .idea .env -environment.go \ No newline at end of file +environment.go + +# REST (http files) +http-client.private.env.json From 4e6f910e74d3921d50ca79f8545c25204b3802c3 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Mon, 17 Feb 2025 20:03:53 -0500 Subject: [PATCH 15/17] format change --- AniListFunctions.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/AniListFunctions.go b/AniListFunctions.go index 539f5d4..069f2ec 100644 --- a/AniListFunctions.go +++ b/AniListFunctions.go @@ -202,7 +202,7 @@ func (a *App) AniListSearch(query string) any { perPage } media (search: $search, type: $listType) { - id + id idMal title { romaji @@ -415,8 +415,8 @@ func (a *App) AniListUpdateEntry(updateBody AniListUpdateVariables) AniListGetSi }{ Query: ` mutation( - $mediaId:Int, - $progress:Int, + $mediaId:Int, + $progress:Int, $status:MediaListStatus, $score:Float, $repeat:Int, @@ -425,15 +425,15 @@ func (a *App) AniListUpdateEntry(updateBody AniListUpdateVariables) AniListGetSi $completedAt:FuzzyDateInput, ){ SaveMediaListEntry( - mediaId:$mediaId, - progress:$progress, + mediaId:$mediaId, + progress:$progress, status:$status, score:$score, repeat:$repeat, notes:$notes, startedAt:$startedAt completedAt:$completedAt - ){ + ){ id mediaId userId @@ -528,7 +528,7 @@ func (a *App) AniListDeleteEntry(mediaListId int) DeleteAniListReturn { ){ DeleteMediaListEntry( id:$id, - ){ + ){ deleted } } From 068e568ec642e8a02b9dce5e6ac2c0b687dda591 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Mon, 17 Feb 2025 20:50:10 -0500 Subject: [PATCH 16/17] added AniList GET REST items --- rest/AniTrack/Get Items/AniChart.http | 79 ++++++++++++++++ rest/AniTrack/Get Items/AniList Item.http | 83 +++++++++++++++++ .../AniList MediaList User Query.http | 70 ++++++++++++++ rest/AniTrack/Get Items/AniList Search.http | 44 +++++++++ .../Get Items/GetAniListUserWatchingList.http | 93 +++++++++++++++++++ rest/AniTrack/GetAuthorizationToken.http | 0 rest/AniTrack/Load AniList Oauth Page.http | 0 rest/http-client.env.json | 18 ++++ 8 files changed, 387 insertions(+) create mode 100644 rest/AniTrack/Get Items/AniChart.http create mode 100644 rest/AniTrack/Get Items/AniList Item.http create mode 100644 rest/AniTrack/Get Items/AniList MediaList User Query.http create mode 100644 rest/AniTrack/Get Items/AniList Search.http create mode 100644 rest/AniTrack/Get Items/GetAniListUserWatchingList.http create mode 100644 rest/AniTrack/GetAuthorizationToken.http create mode 100644 rest/AniTrack/Load AniList Oauth Page.http create mode 100644 rest/http-client.env.json diff --git a/rest/AniTrack/Get Items/AniChart.http b/rest/AniTrack/Get Items/AniChart.http new file mode 100644 index 0000000..2a17738 --- /dev/null +++ b/rest/AniTrack/Get Items/AniChart.http @@ -0,0 +1,79 @@ +# @name AniChart + +POST https://graphql.anilist.co +Accept: applicaton/json +X-REQUEST-TYPE: Graphql + +query ($page: Int, $perPage: Int, $airingAt_greater:Int) { + Page(page: $page, perPage: $perPage) { + pageInfo { + total + perPage + currentPage + lastPage + hasNextPage + } + airingSchedules(airingAt_greater:$airingAt_greater){ + id + airingAt + timeUntilAiring + episode + mediaId + media{ + id + title{ + english + romaji + native + } + type + format + status + startDate{ + year + month + day + } + endDate{ + year + month + day + } + season + seasonYear + episodes + duration + coverImage{ + medium + large + color + extraLarge + } + bannerImage + genres + averageScore + meanScore + popularity + trending + favourites + tags{ + id + name + description + category + rank + isGeneralSpoiler + isMediaSpoiler + isAdult + } + isAdult + } + } + } +} + +{ + "page": 50, + "perPage": 20, + "airingAt_greater": 1730260800 +} diff --git a/rest/AniTrack/Get Items/AniList Item.http b/rest/AniTrack/Get Items/AniList Item.http new file mode 100644 index 0000000..9da6f8a --- /dev/null +++ b/rest/AniTrack/Get Items/AniList Item.http @@ -0,0 +1,83 @@ +# @name AniList Item + +POST https://graphql.anilist.co +Accept: applicaton/json +X-REQUEST-TYPE: Graphql +Authorization: Bearer {{ANILIST_ACCESS_TOKEN}} + +query ($userId: Int, $mediaId: Int, $listType: MediaType) { + MediaList(mediaId: $mediaId, userId: $userId, type: $listType) { + id + mediaId + userId + media { + id + idMal + tags { + id + name + description + rank + isMediaSpoiler + isAdult + } + title { + romaji + english + native + } + description + coverImage { + large + } + season + seasonYear + status + episodes + nextAiringEpisode { + airingAt + timeUntilAiring + episode + } + isAdult + } + status + startedAt { + year + month + day + } + completedAt { + year + month + day + } + notes + progress + score + repeat + user { + id + name + avatar { + large + medium + } + statistics { + anime { + count + statuses { + status + count + } + } + } + } + } +} + +{ + "userId": 413504, + "mediaId": 170998, + "listType": "ANIME" +} diff --git a/rest/AniTrack/Get Items/AniList MediaList User Query.http b/rest/AniTrack/Get Items/AniList MediaList User Query.http new file mode 100644 index 0000000..426b780 --- /dev/null +++ b/rest/AniTrack/Get Items/AniList MediaList User Query.http @@ -0,0 +1,70 @@ +# @name AniList MediaList User Query + +POST https://graphql.anilist.co +Accept: applicaton/json +X-REQUEST-TYPE: Graphql + +query( + $page: Int + $perPage: Int + $userId: Int + $listType: MediaType + $status: MediaListStatus +) { + Page(page: $page, perPage: $perPage) { + pageInfo { + total + perPage + currentPage + lastPage + hasNextPage + } + mediaList(userId: $userId, type: $listType, status: $status) { + id + mediaId + userId + media { + id + idMal + title { + romaji + english + native + } + description + coverImage { + large + } + season + seasonYear + episodes + } + status + notes + progress + score + repeat + user { + id + statistics { + anime { + count + statuses { + status + count + } + } + } + } + } + } +} + + +{ + "page": 1, + "perPage": 20, + "userId": 413504, + "listType": "ANIME", + "status": "CURRENT" +} diff --git a/rest/AniTrack/Get Items/AniList Search.http b/rest/AniTrack/Get Items/AniList Search.http new file mode 100644 index 0000000..5d18fa5 --- /dev/null +++ b/rest/AniTrack/Get Items/AniList Search.http @@ -0,0 +1,44 @@ +# @name AniList Search + +POST https://graphql.anilist.co +Accept: applicaton/json +X-REQUEST-TYPE: Graphql + +query ($search: String!, $listType: MediaType) { + Page (page: 1, perPage: 100) { + pageInfo { + total + currentPage + lastPage + hasNextPage + perPage + } + media (search: $search, type: $listType) { + id + idMal + title { + romaji + english + native + } + description + coverImage { + large + } + season + seasonYear + status + episodes + nextAiringEpisode{ + airingAt + timeUntilAiring + episode + } + } + } + } + +{ + "search": "dan-da-dan", + "listType": "ANIME" +} diff --git a/rest/AniTrack/Get Items/GetAniListUserWatchingList.http b/rest/AniTrack/Get Items/GetAniListUserWatchingList.http new file mode 100644 index 0000000..1596ca6 --- /dev/null +++ b/rest/AniTrack/Get Items/GetAniListUserWatchingList.http @@ -0,0 +1,93 @@ +# @name GetAniListUserWatchList + +POST https://graphql.anilist.co +Accept: applicaton/json +X-REQUEST-TYPE: Graphql + +query ( + $page: Int + $perPage: Int + $userId: Int + $listType: MediaType + $status: MediaListStatus + $sort: [MediaListSort] +) { + Page(page: $page, perPage: $perPage) { + pageInfo { + total + perPage + currentPage + lastPage + hasNextPage + } + mediaList(userId: $userId, type: $listType, status: $status, sort: $sort) { + id + mediaId + userId + media { + id + idMal + title { + romaji + english + native + } + description + coverImage { + large + } + season + seasonYear + status + episodes + nextAiringEpisode { + airingAt + timeUntilAiring + episode + } + } + status + startedAt { + year + month + day + } + completedAt { + year + month + day + } + notes + progress + score + repeat + user { + id + name + avatar { + large + medium + } + statistics { + anime { + count + statuses { + status + count + } + } + } + } + } + } +} + + +{ + "page": 1, + "perPage": 20, + "userId": 413504, + "listType": "ANIME", + "status": "CURRENT", + "sort": "UPDATED_TIME_DESC" +} diff --git a/rest/AniTrack/GetAuthorizationToken.http b/rest/AniTrack/GetAuthorizationToken.http new file mode 100644 index 0000000..e69de29 diff --git a/rest/AniTrack/Load AniList Oauth Page.http b/rest/AniTrack/Load AniList Oauth Page.http new file mode 100644 index 0000000..e69de29 diff --git a/rest/http-client.env.json b/rest/http-client.env.json new file mode 100644 index 0000000..c0da0c1 --- /dev/null +++ b/rest/http-client.env.json @@ -0,0 +1,18 @@ +{ + "$schema": "https://raw.githubusercontent.com/mistweaverco/kulala.nvim/main/schemas/http-client.env.schema.json", + "dev": { + "ANILIST_APP_ID": "", + "ANILIST_SECRET": "", + "SIMKL_CLIENT_ID": "", + "SIMKL_CLIENT_SECRET": "", + "MAL_CLIENT_ID": "", + "MAL_CLIENT_SECRET": "", + "ANILIST_ACCESS_TOKEN": "", + "ANILSIT_CODE": "", + "SIMKL_AUTH_TOKEN": "", + "MAL_CODE": "", + "MAL_VERIFIER": "", + "MAL_USER": "", + "MAL_ACCESS_TOKEN": "" + } +} From 4d9c54a1163af4fa82ccc77a9ee98cc16d144697 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Mon, 17 Feb 2025 21:02:30 -0500 Subject: [PATCH 17/17] added AniList Auth Pages --- rest/AniTrack/GetAuthorizationToken.http | 3 +++ rest/AniTrack/Load AniList Oauth Page.http | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/rest/AniTrack/GetAuthorizationToken.http b/rest/AniTrack/GetAuthorizationToken.http index e69de29..16325e7 100644 --- a/rest/AniTrack/GetAuthorizationToken.http +++ b/rest/AniTrack/GetAuthorizationToken.http @@ -0,0 +1,3 @@ +# @name GetAuthorizationToken + +GET https://anilist.co/api/v2/oauth/authorize?client_id={{ANILIST_APP_ID}}&redirect_uri=http://localhost:6734/callback&response_type=code diff --git a/rest/AniTrack/Load AniList Oauth Page.http b/rest/AniTrack/Load AniList Oauth Page.http index e69de29..b2cc304 100644 --- a/rest/AniTrack/Load AniList Oauth Page.http +++ b/rest/AniTrack/Load AniList Oauth Page.http @@ -0,0 +1,11 @@ +# @name Load AniList Oauth Token + +POST https://anilist.co/api/v2/oauth/token +Content-Type: application/x-www-form-urlencoded +Accept: application/json + +grant_type=authorization_code +client_id={{ANILIST_APP_ID}} +client_secret={{ANILIST_SECRET_ID}} +redirect_uri=http://localhost:6734/callback +code={{ANILIST_CODE}}