diff options
| author | Fuwn <[email protected]> | 2026-03-01 16:20:51 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-03-01 16:21:02 -0800 |
| commit | eae5d24d9e79e59a19d4721caaeaa0ca650ecb33 (patch) | |
| tree | 1b685bb248e051dfa26d2bfdebe6689402dd93c5 /src/lib/Tools/ActivityHistory/Grid.svelte | |
| parent | chore(tooling): remove legacy eslint and prettier (diff) | |
| download | due.moe-eae5d24d9e79e59a19d4721caaeaa0ca650ecb33.tar.xz due.moe-eae5d24d9e79e59a19d4721caaeaa0ca650ecb33.zip | |
chore(biome): drop formatter style overrides
Diffstat (limited to 'src/lib/Tools/ActivityHistory/Grid.svelte')
| -rw-r--r-- | src/lib/Tools/ActivityHistory/Grid.svelte | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/lib/Tools/ActivityHistory/Grid.svelte b/src/lib/Tools/ActivityHistory/Grid.svelte index 84c182fa..6a931ab2 100644 --- a/src/lib/Tools/ActivityHistory/Grid.svelte +++ b/src/lib/Tools/ActivityHistory/Grid.svelte @@ -1,16 +1,16 @@ <script lang="ts"> import { - fillMissingDays, - type ActivityHistoryEntry, - activityHistory -} from '$lib/Data/AniList/activity'; -import { onMount } from 'svelte'; -import userIdentity from '$stores/identity'; -import type { AniListAuthorisation } from '$lib/Data/AniList/identity'; -import { clearAllParameters } from '../../Utility/parameters'; -import Skeleton from '$lib/Loading/Skeleton.svelte'; -import tooltip from '$lib/Tooltip/tooltip'; -import LogInRestricted from '$lib/Error/LogInRestricted.svelte'; + fillMissingDays, + type ActivityHistoryEntry, + activityHistory, +} from "$lib/Data/AniList/activity"; +import { onMount } from "svelte"; +import userIdentity from "$stores/identity"; +import type { AniListAuthorisation } from "$lib/Data/AniList/identity"; +import { clearAllParameters } from "../../Utility/parameters"; +import Skeleton from "$lib/Loading/Skeleton.svelte"; +import tooltip from "$lib/Tooltip/tooltip"; +import LogInRestricted from "$lib/Error/LogInRestricted.svelte"; export let user: AniListAuthorisation; export let activityData: ActivityHistoryEntry[] | null = null; @@ -20,15 +20,15 @@ let activityHistoryData: ActivityHistoryEntry[]; let baseHue = Math.floor(Math.random() * 360); onMount(async () => { - clearAllParameters(); + clearAllParameters(); - activityHistoryData = activityData || (await activityHistory($userIdentity)); + activityHistoryData = activityData || (await activityHistory($userIdentity)); }); const gradientColour = (amount: number, maxAmount: number, baseHue: number) => { - const lightness = 100 - Math.round((amount / maxAmount) * 50); + const lightness = 100 - Math.round((amount / maxAmount) * 50); - return `hsl(${baseHue}, 100%, ${lightness}%)`; + return `hsl(${baseHue}, 100%, ${lightness}%)`; }; </script> |