diff options
| author | Fuwn <[email protected]> | 2024-10-09 00:41:20 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-09 00:41:43 -0700 |
| commit | 998b63a35256ac985a5a2714dd1ca451af4dfd8a (patch) | |
| tree | 50796121a9d5ab0330fdc5d7e098bda2860d9726 /src/lib/Tools/Wrapped/Top/Activity.svelte | |
| parent | feat(graphql): add badgeCount field (diff) | |
| download | due.moe-998b63a35256ac985a5a2714dd1ca451af4dfd8a.tar.xz due.moe-998b63a35256ac985a5a2714dd1ca451af4dfd8a.zip | |
chore(prettier): use spaces instead of tabs
Diffstat (limited to 'src/lib/Tools/Wrapped/Top/Activity.svelte')
| -rw-r--r-- | src/lib/Tools/Wrapped/Top/Activity.svelte | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/src/lib/Tools/Wrapped/Top/Activity.svelte b/src/lib/Tools/Wrapped/Top/Activity.svelte index 03f15b5d..a91bedfb 100644 --- a/src/lib/Tools/Wrapped/Top/Activity.svelte +++ b/src/lib/Tools/Wrapped/Top/Activity.svelte @@ -1,42 +1,42 @@ <script lang="ts"> - import type { ActivityHistoryEntry } from '$lib/Data/AniList/activity'; - import identity from '$stores/identity'; - import type { Wrapped } from '$lib/Data/AniList/wrapped'; - import proxy from '$lib/Utility/proxy'; + import type { ActivityHistoryEntry } from '$lib/Data/AniList/activity'; + import identity from '$stores/identity'; + import type { Wrapped } from '$lib/Data/AniList/wrapped'; + import proxy from '$lib/Utility/proxy'; - export let wrapped: Wrapped; - export let year: number; - export let activities: ActivityHistoryEntry[]; - export let useFullActivityHistory: boolean; - export let updateWidth: () => void; + export let wrapped: Wrapped; + export let year: number; + export let activities: ActivityHistoryEntry[]; + export let useFullActivityHistory: boolean; + export let updateWidth: () => void; - const currentYear = new Date(Date.now()).getFullYear(); + const currentYear = new Date(Date.now()).getFullYear(); </script> <div class="grid-item image-grid avatar-grid category top-category"> - <a href={`https://anilist.co/user/${$identity.name}`} target="_blank"> - <img src={proxy(wrapped.avatar.large)} alt="User Avatar" on:load={updateWidth} /> - </a> - <div> - <div> - <a href={`https://anilist.co/user/${$identity.name}`} target="_blank"> - <b> - {$identity.name} - </b> - </a> - </div> - <div> - Status Posts: {wrapped.activities.statusCount} - </div> - <div> - Messages: {wrapped.activities.messageCount} - </div> - <div> - Days Active: {#if year !== currentYear} - ?/365 - {:else} - {activities.length}/{useFullActivityHistory ? 365 : 189} - {/if} - </div> - </div> + <a href={`https://anilist.co/user/${$identity.name}`} target="_blank"> + <img src={proxy(wrapped.avatar.large)} alt="User Avatar" on:load={updateWidth} /> + </a> + <div> + <div> + <a href={`https://anilist.co/user/${$identity.name}`} target="_blank"> + <b> + {$identity.name} + </b> + </a> + </div> + <div> + Status Posts: {wrapped.activities.statusCount} + </div> + <div> + Messages: {wrapped.activities.messageCount} + </div> + <div> + Days Active: {#if year !== currentYear} + ?/365 + {:else} + {activities.length}/{useFullActivityHistory ? 365 : 189} + {/if} + </div> + </div> </div> |