Fix some broken links

This commit is contained in:
2022-10-18 14:43:59 +02:00
parent 71a34fc881
commit 922b8b6001
3 changed files with 5 additions and 4 deletions

View File

@@ -65,8 +65,8 @@ onMount(() => {
The list should be formatted as a list of domain names separated by a The list should be formatted as a list of domain names separated by a
space. Like this: 'pixeldrain.com google.com twitter.com' space. Like this: 'pixeldrain.com google.com twitter.com'
</p> </p>
Domain names:<br/>
<form class="form_row" on:submit|preventDefault={save_embed}> <form class="form_row" on:submit|preventDefault={save_embed}>
<div class="shrink">Domain names:</div>
<input class="grow" bind:value={embed_domains} type="text"/> <input class="grow" bind:value={embed_domains} type="text"/>
<button class="shrink" action="submit"><i class="icon">save</i> Save</button> <button class="shrink" action="submit"><i class="icon">save</i> Save</button>
</form> </form>

View File

@@ -257,7 +257,7 @@ onDestroy(() => {
{formatDataVolume(transfer_used, 3)} {formatDataVolume(transfer_used, 3)}
out of out of
{formatDataVolume(transfer_cap, 3)} {formatDataVolume(transfer_cap, 3)}
(<a href="/user/subscription">Set your transfer limit on the subscription page</a>) (<a href="/user/sharing/bandwidth">Set your transfer limit on the sharing page</a>)
<HotlinkProgressBar used={transfer_used} total={transfer_cap}></HotlinkProgressBar> <HotlinkProgressBar used={transfer_used} total={transfer_cap}></HotlinkProgressBar>
{/if} {/if}
@@ -328,7 +328,7 @@ onDestroy(() => {
your subscription plan. These can be files you downloaded from other your subscription plan. These can be files you downloaded from other
people, or other people downloading your files if you have bandwidth people, or other people downloading your files if you have bandwidth
sharing enabled. Bandwidth sharing can be changed on sharing enabled. Bandwidth sharing can be changed on
<a href="/user/subscription">the subscription page</a>. <a href="/user/sharing/bandwidth">the sharing page</a>.
</p> </p>
</section> </section>

View File

@@ -50,7 +50,8 @@ const load_transactions = async () => {
month.total_deducted += row.subscription_charge + row.storage_charge + row.bandwidth_charge month.total_deducted += row.subscription_charge + row.storage_charge + row.bandwidth_charge
}) })
month.total_storage_used /= month.rows.length // Divide the total storage usage by the number of days in a month
month.total_storage_used /= 30.4375
transactions = month transactions = month
} catch (err) { } catch (err) {