gijl/lv-storage / llama.cpp /tools /ui /src /lib /components /pwa /PwaRefreshAlert.svelte
gijl's picture
download
raw
868 Bytes
<script lang="ts">
import { Button } from '$lib/components/ui/button';
import * as Card from '$lib/components/ui/card';
let { forceReload, needRefresh: needRefreshProp, updateServiceWorker } = $props();
let needRefresh = $derived(needRefreshProp ?? false);
</script>
{#if needRefresh}
<Card.Root class="overflow-hidden gap-1 py-5">
<Card.Header class="px-5">
<Card.Title class="text-sm font-medium">Update available</Card.Title>
</Card.Header>
<Card.Content class="gap-6 grid px-5">
<p class="text-xs text-muted-foreground">A new version is available. Reload to update.</p>
<Button
class="justify-self-end-safe"
onclick={() => {
updateServiceWorker();
if (forceReload) {
window.location.reload();
}
needRefresh = false;
}}
size="sm"
>
Reload
</Button>
</Card.Content>
</Card.Root>
{/if}

Xet Storage Details

Size:
868 Bytes
·
Xet hash:
729f504436732d06af41e9677443173bc9c8821079516534ae5cf44b8cc18055

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.