Remove warning about download slowdowns as it's no longer true

This commit is contained in:
2025-05-15 23:57:56 +02:00
parent 732fdb8687
commit 9c8c9bb5f5
6 changed files with 13 additions and 26 deletions

View File

@@ -109,7 +109,7 @@ export const seek = delta => {
<br/><br/> <br/><br/>
{#if file.show_ads} {#if file.show_ads}
<BandwidthUsage file={file} on:reload/> <BandwidthUsage/>
{/if} {/if}
</div> </div>

View File

@@ -1,33 +1,20 @@
<script> <script lang="ts">
import { formatDataVolume } from "util/Formatting"; import { formatDataVolume } from "util/Formatting";
import TextBlock from "layout/TextBlock.svelte" import TextBlock from "layout/TextBlock.svelte"
import ProgressBar from "util/ProgressBar.svelte"; import ProgressBar from "util/ProgressBar.svelte";
import { stats } from "lib/StatsSocket" import { stats } from "lib/StatsSocket"
export let file = {
size: 0,
}
$: transfer_left = $stats.limits.transfer_limit - $stats.limits.transfer_limit_used
</script> </script>
{#if $stats.limits_init} {#if $stats.limits_init}
<TextBlock center={true}> <TextBlock center={true}>
{#if file.size > transfer_left}
<div class="highlight_yellow">
This file is too large to download completely with your current
transfer limit. The first {formatDataVolume(transfer_left, 3)}
will download at full speed, but the remaining
{formatDataVolume(file.size - transfer_left, 3)} will take
longer
</div>
{/if}
<p> <p>
You have used {formatDataVolume($stats.limits.transfer_limit_used, 3)} of You have used
your daily {formatDataVolume($stats.limits.transfer_limit, 3)} transfer {formatDataVolume($stats.limits.transfer_limit_used, 3)}
limit. When the transfer limit is exceeded your download speed will of your daily
be reduced. {formatDataVolume($stats.limits.transfer_limit, 3)}
transfer limit. When the transfer limit is exceeded the download
speed for new downloads will be limited. Exceeding the limit no
longer affects running downloads.
</p> </p>
<p> <p>

View File

@@ -34,5 +34,5 @@ let file = {
</IconBlock> </IconBlock>
{#if file.show_ads} {#if file.show_ads}
<BandwidthUsage file={file} on:reload/> <BandwidthUsage/>
{/if} {/if}

View File

@@ -211,7 +211,7 @@ const video_keydown = e => {
</IconBlock> </IconBlock>
{#if file.show_ads} {#if file.show_ads}
<BandwidthUsage file={file} on:reload/> <BandwidthUsage/>
{/if} {/if}
{/if} {/if}

View File

@@ -101,7 +101,7 @@ const recursive_set_url = (parent_path, file) => {
</IconBlock> </IconBlock>
{#if file.show_ads} {#if file.show_ads}
<BandwidthUsage file={file} on:reload/> <BandwidthUsage/>
{/if} {/if}
{#if status === "finished"} {#if status === "finished"}

View File

@@ -83,7 +83,7 @@ export const checkout = async (state: CheckoutState) => {
const form = new FormData() const form = new FormData()
form.set("amount", String(state.amount * 1e6)) form.set("amount", String(state.amount * 1e6))
form.set("network", state.provider.name) form.set("network", state.provider.name)
form.set("country", state.country.alpha2) form.set("country", state.country.alpha3)
if (state.provider.need_name) { if (state.provider.need_name) {
form.set("name", state.name) form.set("name", state.name)