From db4bde54e6734ad04b54a317e036613f983dacc3 Mon Sep 17 00:00:00 2001 From: Richard Bergsma Date: Wed, 11 Jun 2025 21:48:11 +0200 Subject: [PATCH] Refactor UptimeStatus component to improve data fetching and user experience - Removed UpdateTimer component and integrated countdown functionality directly into UptimeStatusIsland. - Implemented sessionStorage caching for system status data to enhance performance and user experience. - Added visual countdown display for the next update, improving user awareness of data refresh timing. - Updated privacy policy to clarify the use of sessionStorage for caching non-personal data. --- src/components/UptimeStatus.astro | 3 - src/components/UptimeStatusIsland.jsx | 160 ++++++++++++++++++++++---- src/pages/[lang]/privacy.astro | 3 + 3 files changed, 142 insertions(+), 24 deletions(-) diff --git a/src/components/UptimeStatus.astro b/src/components/UptimeStatus.astro index ad319b9..7c0ba02 100644 --- a/src/components/UptimeStatus.astro +++ b/src/components/UptimeStatus.astro @@ -1,11 +1,8 @@ --- import UptimeStatusIsland from './UptimeStatusIsland.jsx'; -import UpdateTimer from './UpdateTimer.jsx'; --- - {}} /> -