diff --git a/svelte/src/home_page/FeatureTable.svelte b/svelte/src/home_page/FeatureTable.svelte
deleted file mode 100644
index c23ff43..0000000
--- a/svelte/src/home_page/FeatureTable.svelte
+++ /dev/null
@@ -1,353 +0,0 @@
-
-
-
- Nova features two different payment modes. We offer a monthly
- subscription which is managed by Patreon, and a Prepaid subscription
- which supports a dozen different payment providers. With Prepaid you pay
- in advance to charge your credit, then usage will be subtracted from
- your account credit. For low usage Prepaid is usually better as the
- monthly fee is much lower.
-
- The minimum fee is only charged when usage is less than €1. - This calculation is per day, the €1 amount is divided by the - number of days in the month and if your usage is lower than - that, you will be charged the minimum fee. -
-- Free users are limited to downloading 6 GB per day, this - limit is linked to your IP address, even if you are logged - in to an account. -
-- When the download limit is exceeded the download speed is - reduced to 1 MiB/s. You can have at most three concurrent - downloads running. -
-- The transfer limit is used for downloading, sharing and - hotlinking files. -
-- Paid plans do not have a concurrent connection limit. -
-- Prepaid does not have a transfer limit, instead you are - charged for what you use at a rate of €1 per terabyte - downloaded. This applies to downloading your own files, - other people's files and others downloading your files (if - you have hotlinking enabled in your account settings). -
-- Paid plans do not have a concurrent connection limit. -
-- Files expire when they have not been downloaded in the last - 120 days. A download is counted when more than 10% of the - whole file was downloaded in a single request. -
-- The Pro plan has 240 day file expiry. The same rules apply - as the free plan. Higher Patreon subscription plans are - available where files do not expire at all. -
-- Files don't expire while your Prepaid plan is active. If - your credit runs out you have one week to top up your - balance. If you fail to do so your files will revert to the - regular file expiry rules. -
-+ Your balance is too far below zero to bill more data transfer. + Top up your credit to continue sharing files. +
+ + paid Top up credit + {:else}Upgrade your plan or enable diff --git a/svelte/src/user_home/SharingSettings.svelte b/svelte/src/user_home/SharingSettings.svelte index 2f3f548..81304a3 100644 --- a/svelte/src/user_home/SharingSettings.svelte +++ b/svelte/src/user_home/SharingSettings.svelte @@ -3,11 +3,12 @@ import { onMount } from "svelte"; import { formatDataVolume, formatEuros } from "util/Formatting"; import ProgressBar from "util/ProgressBar.svelte"; import { loading_run } from "lib/Loading"; -import { get_endpoint, put_user } from 'lib/NovaAPI'; +import { get_endpoint, period_price, put_user } from 'lib/NovaAPI'; import SuccessMessage from 'util/SuccessMessage.svelte'; import { user } from "lib/UserStore"; let success_message: SuccessMessage = $state() + let transfer_cap = $state($user === null ? 0 : $user.monthly_transfer_cap / 1e12) const update_user = async (e: SubmitEvent) => { @@ -99,6 +100,12 @@ onMount(async () => { {formatEuros($user.subscription.price_per_tb_bandwidth, 2)} per TB for data transfer.
++ This usage is charged from your account credit afterwards. When + your balance is more than {formatEuros(period_price($user), 2)} below zero + (the price of your subscription period) the limits of your plan + apply again, until you top up your credit. +