From 31c8bc68aeccb79a6cf2dcf8a20845092586d0d3 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Thu, 3 Aug 2023 16:17:33 -0700 Subject: [PATCH] refactor: uptime expire time formatting --- components/Brand/Loading.vue | 55 ++++++++ components/UserProfile.ce.vue | 2 +- components/UserProfile/CallbackFeedback.vue | 56 +++++++- components/UserProfile/DropdownLaunchpad.vue | 6 +- components/UserProfile/UptimeExpire.vue | 24 ++-- composables/time.ts | 140 +++++++++++++++++++ helpers/time/buildTimeString.ts | 42 ------ helpers/time/dateDiff.ts | 11 -- helpers/time/dateFormat.ts | 9 -- helpers/time/preciseDateDiff.ts | 72 ---------- types/time.ts | 10 -- 11 files changed, 268 insertions(+), 159 deletions(-) create mode 100644 composables/time.ts delete mode 100644 helpers/time/buildTimeString.ts delete mode 100644 helpers/time/dateDiff.ts delete mode 100644 helpers/time/dateFormat.ts delete mode 100644 helpers/time/preciseDateDiff.ts delete mode 100644 types/time.ts diff --git a/components/Brand/Loading.vue b/components/Brand/Loading.vue index a13f4b0e9..5bd212143 100644 --- a/components/Brand/Loading.vue +++ b/components/Brand/Loading.vue @@ -85,3 +85,58 @@ withDefaults(defineProps(), { /> + + diff --git a/components/UserProfile.ce.vue b/components/UserProfile.ce.vue index 5a2e95d0c..426db926e 100644 --- a/components/UserProfile.ce.vue +++ b/components/UserProfile.ce.vue @@ -79,7 +79,7 @@ onBeforeMount(() => {
- +
diff --git a/components/UserProfile/CallbackFeedback.vue b/components/UserProfile/CallbackFeedback.vue index 2b1746fca..9dd4d6d19 100644 --- a/components/UserProfile/CallbackFeedback.vue +++ b/components/UserProfile/CallbackFeedback.vue @@ -193,7 +193,12 @@ const accountActionStatusCopy = computed((): { text: string; } => { :error="keyInstallStatus === 'failed'" :text="keyInstallStatusCopy.text" > - +