diff options
| author | Fuwn <[email protected]> | 2023-12-22 03:14:58 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-12-22 03:14:58 -0800 |
| commit | f940a4712a626cd261d736f40c65703363dc272a (patch) | |
| tree | 3730f9e5377717aaad34e553dd5b8102aa6fd2d6 /src/lib/Tools | |
| parent | feat(wrapped): full-year activity history (diff) | |
| download | due.moe-f940a4712a626cd261d736f40c65703363dc272a.tar.xz due.moe-f940a4712a626cd261d736f40c65703363dc272a.zip | |
fix(lib): remove leftovers
Diffstat (limited to 'src/lib/Tools')
| -rw-r--r-- | src/lib/Tools/ActivityHistory.svelte | 26 | ||||
| -rw-r--r-- | src/lib/Tools/Wrapped.svelte | 1 |
2 files changed, 0 insertions, 27 deletions
diff --git a/src/lib/Tools/ActivityHistory.svelte b/src/lib/Tools/ActivityHistory.svelte index 8194ad0a..e0ad7e58 100644 --- a/src/lib/Tools/ActivityHistory.svelte +++ b/src/lib/Tools/ActivityHistory.svelte @@ -18,7 +18,6 @@ let activityHistoryData: Promise<ActivityHistoryEntry[]>; let currentUserIdentity = { name: '', id: -1 }; - let baseHue = Math.floor(Math.random() * 360); let generated = false; onMount(async () => { @@ -39,12 +38,6 @@ // return date; // }; - const gradientColour = (amount: number, maxAmount: number, baseHue: number) => { - const lightness = 100 - Math.round((amount / maxAmount) * 50); - - return `hsl(${baseHue}, 100%, ${lightness}%)`; - }; - const screenshot = async () => { let element = document.querySelector('.grid') as HTMLElement; @@ -122,22 +115,3 @@ {/if} {/await} {/if} - -<style> - .grid { - display: grid; - grid-template-columns: repeat(52, 1fr); - grid-template-rows: repeat(7, 1fr); - /* gap: 2px; */ - grid-auto-flow: column; - width: min-content; - background-color: white; - } - .grid-item { - width: 20px; - height: 20px; - /* width: 3.25vw; */ - /* height: 3.25vw; */ - /* border: 1px solid #ccc; */ - } -</style> diff --git a/src/lib/Tools/Wrapped.svelte b/src/lib/Tools/Wrapped.svelte index a3db5a06..6195a1a5 100644 --- a/src/lib/Tools/Wrapped.svelte +++ b/src/lib/Tools/Wrapped.svelte @@ -7,7 +7,6 @@ import { onMount } from 'svelte'; import { wrapped } from '$lib/AniList/wrapped.js'; import { - activityHistory, fullActivityHistory, activityHistory as getActivityHistory } from '$lib/AniList/activity.js'; |