From 43336c04b4c646699ca004acdda6638bb7b3d241 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 24 Dec 2023 03:05:43 -0800 Subject: refactor(tools): activity history to module --- src/lib/Tools/ActivityHistory.svelte | 117 ----------------------------------- 1 file changed, 117 deletions(-) delete mode 100644 src/lib/Tools/ActivityHistory.svelte (limited to 'src/lib/Tools/ActivityHistory.svelte') diff --git a/src/lib/Tools/ActivityHistory.svelte b/src/lib/Tools/ActivityHistory.svelte deleted file mode 100644 index 811241fa..00000000 --- a/src/lib/Tools/ActivityHistory.svelte +++ /dev/null @@ -1,117 +0,0 @@ - - -{#if user === undefined} - Please log in to view this page. -{:else} - {#await activityHistoryData} - Loading activity history ... 33% - {:then activities} - {#if activities === undefined} - Loading activities ... 66% - {:else} - {@const filledActivities = fillMissingDays(activities)} - - - -

- -

- - {#if generated} -

- {/if} - -

Generate grid image

- -
- - Days in risk of developing an activity history hole. (days with one activity) - - -
    - {#each filledActivities as activity} - {#if activity.amount === 0} -
  • - {new Date( - activity.date * 1000 + new Date().getTimezoneOffset() * 60 * 1000 - ).toDateString()} -
  • - {/if} - {/each} -
-
- {/if} - {/await} -{/if} -- cgit v1.2.3