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} +
+
- -
+ +
-
- - - - - -