feat: better update page

feat: hide manual update steps as "unsafe" if OTA is available

resolves #155
This commit is contained in:
2025-02-12 16:00:50 +01:00
parent 9266702cbb
commit 075d05dd0b
6 changed files with 264 additions and 91 deletions

View File

@@ -0,0 +1,20 @@
<script lang="ts">
import AnimatedNumber from "$lib/components/AnimatedNumber.svelte";
import { onDestroy, onMount } from "svelte";
let interval: ReturnType<typeof setInterval>;
let value = $state(Math.round(Math.random() * 100));
onMount(() => {
interval = setInterval(() => {
value = Math.round(Math.random() * 100);
}, 2000);
});
onDestroy(() => {
clearInterval(interval);
});
</script>
<p>The number is <AnimatedNumber {value} /></p>