diff --git a/svelte/src/speedtest/Speedtest.svelte b/svelte/src/speedtest/Speedtest.svelte
index a3ef0b1..bc769d6 100644
--- a/svelte/src/speedtest/Speedtest.svelte
+++ b/svelte/src/speedtest/Speedtest.svelte
@@ -140,7 +140,7 @@ onMount(() => {
// Parse the results saved in the URL, if any
if (window.location.hash[0] === "#") {
const hash = window.location.hash.replace("#", "");
- const result = hash.replace("#", "").split('&').reduce((res, item) => {
+ const result = hash.split('&').reduce((res, item) => {
const parts = item.split('=')
const n = Number(parts[1])
if (n !== NaN) {
diff --git a/svelte/src/user_home/Home.svelte b/svelte/src/user_home/Home.svelte
index 100b220..0bfb307 100644
--- a/svelte/src/user_home/Home.svelte
+++ b/svelte/src/user_home/Home.svelte
@@ -1,5 +1,5 @@
- {#if patreon_response !== ""}
- {#if patreon_response === "error"}
-
- An error occurred while linking Patreon subscription. Please try
- again later.
-
- {:else if patreon_response === "pledge_not_found"}
-
-
- We were not able to find your payment on Patreon. Please
- wait until the payment is confirmed and try again. Even if
- the payment says confirmed on Patreon itself it takes a
- while before it's communicated to pixeldrain. Please wait at
- least 10 minutes and try again.
-
-
- If it has been more than 30 minutes, your payment is
- complete and your account is still not upgraded please
- contact me at support@pixeldrain.com, or send me a message
- on Patreon.
-
-
- {:else if patreon_response === "success"}
-
- Success! Your Patreon pledge has been linked to your pixeldrain
- account. You are now able to use Pro features.
-
- {/if}
-
- {/if}
-
Account information
Username: {window.user.username}
-
E-mail address: {window.user.email}
+
+ {#if window.user.email === ""}
+ No e-mail address configured. You will not be able to recover
+ your account if you lose your password. Set an e-mail address on
+ the settings page.
+ {:else}
+ E-mail address: {window.user.email}
+ (configure)
+ {/if}
+
- Current account balance:
- (deposit credit)
- {#if window.user.subscription.id === ""}
-
- You have account credit but no active subscription. Activate
- a subscription on the subscriptions page
- {/if}
-
- {/if}
+
+ Current account balance:
+ (deposit credit /
+ transaction log)
+
+ {#if window.user.balance_micro_eur > 0 && window.user.subscription.id === ""}
+
+ You have account credit but no active subscription. Activate
+ a subscription on the subscriptions page
+ {/if}
+
{#if window.user.subscription.storage_space === -1}
@@ -259,8 +227,8 @@ onDestroy(() => {
{/if}
{#if transfer_cap === -1}
- Premium transfer used in the last 30 days: {formatDataVolume(transfer_used, 3)}.
- Configure limit
+ Premium transfer used in the last 30 days: {formatDataVolume(transfer_used, 3)}
+ (configure limit)
{:else}
Transfer cap:
{formatDataVolume(transfer_used, 3)}
diff --git a/svelte/src/user_home/PatreonActivationResult.svelte b/svelte/src/user_home/PatreonActivationResult.svelte
new file mode 100644
index 0000000..1b1b935
--- /dev/null
+++ b/svelte/src/user_home/PatreonActivationResult.svelte
@@ -0,0 +1,80 @@
+
+
+
+{#if patreon_result !== ""}
+ {#if patreon_result === "error"}
+
+ An error occurred while linking Patreon subscription. Please try
+ again later.
+
+
+ If it has been more than 30 minutes, your payment is complete and
+ the upgrade still fails please contact me on Patreon or through
+ e-mail at support@pixeldrain.com.
+
+
+ When contacting support please provide the following information:
+ Server response: {patreon_message}
+ Server error code: {patreon_error}
+
+ {:else if patreon_result === "pledge_not_found"}
+
+
+ We were not able to find your payment on Patreon. Please
+ wait until the payment is confirmed and try again. Even if
+ the payment says confirmed on Patreon itself it takes a
+ while before it's communicated to pixeldrain. Please wait at
+ least 10 minutes and try again.
+
+
+ If it has been more than 30 minutes, your payment is complete
+ and the upgrade still fails please contact me on Patreon or
+ through e-mail at support@pixeldrain.com.
+
+
+ When contacting support please provide the following
+ information: Server response: {patreon_message} Server
+ error code: {patreon_error}
+
+
+ {:else if patreon_result === "success"}
+
+ Success! Your Patreon pledge has been linked to your pixeldrain
+ account. You are now able to use Pro features.
+
- Activating a prepaid subscription will not cancel your active
- Patreon subscription. Go to Patreon's
- memberships
- page to end your subscription there.
-
-
- If you enable a prepaid plan here your Patreon subscription will
- be overridden. If you wish to go back to your Patreon plan use
- the Link Patreon subscription button on
- the home page to link your Patreon account back to pixeldrain.
-
-
- {/if}
+
Manage subscription
- Current account balance:
+ On pixeldrain you can freely switch between active subscription plans
+ when you want. When switching from Patreon to Prepaid/free you should
+ separately cancel your subscription on Patreon. That does not happen automatically.
+ Pixeldrain cannot modify your Patreon membership in any way.
Prepaid subscriptions are charged daily based on usage. When you reach
@@ -92,23 +97,65 @@ onMount(() => {
a positive balance to activate the subscription again.
+ This subscription is managed by Patreon. You will need to purchase a plan on Patreon before you
+ can activate this subscription. After your purchase you can
+ click the "Link Patreon" button and your account will be
+ upgraded.
+
File expire after 240 days for Pro, and never on the other plans
+
+
+
- Prepaid
+ Prepaid (credit )
{#if subscription === "prepaid"}
Currently active
{:else}
-
+
+ You will need a positive account balance to activate this
+ plan. If you currently have a Patreon subscription active,
+ then enabling prepaid will not cancel that subscription. You
+ can end your subscription on Patreon.com.
+