Update to svelte 5
This commit is contained in:
@@ -1,11 +1,14 @@
|
||||
<script>
|
||||
<script lang="ts">
|
||||
import ProgressBar from "util/ProgressBar.svelte";
|
||||
import { formatDataVolume } from "util/Formatting"
|
||||
import { user } from "lib/UserStore";
|
||||
|
||||
export let total = 0
|
||||
export let used = 0
|
||||
let { total = 0, used = 0 }: {
|
||||
total?: number;
|
||||
used?: number;
|
||||
} = $props();
|
||||
|
||||
$: frac = used / total
|
||||
let frac = $derived(used / total)
|
||||
</script>
|
||||
|
||||
<ProgressBar total={total} used={used}></ProgressBar>
|
||||
@@ -31,7 +34,7 @@ $: frac = used / total
|
||||
files have a daily download limit and hotlinking is disabled.
|
||||
</p>
|
||||
|
||||
{#if window.user.monthly_transfer_cap > 0}
|
||||
{#if $user.monthly_transfer_cap > 0}
|
||||
<p>
|
||||
You have a billshock limit configured. <a
|
||||
href="/user/sharing/bandwidth">increase or disable the limit</a> to
|
||||
@@ -53,7 +56,7 @@ $: frac = used / total
|
||||
and hotlinking is disabled.
|
||||
</p>
|
||||
|
||||
{#if window.user.monthly_transfer_cap > 0}
|
||||
{#if $user.monthly_transfer_cap > 0}
|
||||
<p>
|
||||
You have a billshock limit configured. <a
|
||||
href="/user/sharing/bandwidth">increase or disable the limit</a> to
|
||||
|
||||
Reference in New Issue
Block a user