From c377e55b9aef4dca85ba8a05a41f8c5a663c322f Mon Sep 17 00:00:00 2001 From: Nathan Arthur Date: Sun, 17 Nov 2024 15:18:07 -0500 Subject: [PATCH] add General Settings section --- src/components/GeneralSettings.svelte | 138 ++++++++++++++++++++++++++ src/pages/account.astro | 5 + 2 files changed, 143 insertions(+) create mode 100644 src/components/GeneralSettings.svelte diff --git a/src/components/GeneralSettings.svelte b/src/components/GeneralSettings.svelte new file mode 100644 index 0000000..b43763f --- /dev/null +++ b/src/components/GeneralSettings.svelte @@ -0,0 +1,138 @@ + + +{#if loading} +
Loading settings...
+{:else} +
+
+ {#if error} +
{error}
+ {/if} + {#if success} +
{success}
+ {/if} + + + + + + + + +
+
+{/if} + + diff --git a/src/pages/account.astro b/src/pages/account.astro index 0d513eb..f7c3331 100644 --- a/src/pages/account.astro +++ b/src/pages/account.astro @@ -1,6 +1,8 @@ --- import Layout from '../layouts/Layout.astro'; +import GeneralSettings from '../components/GeneralSettings.svelte'; import PasswordSettings from '../components/PasswordSettings.svelte'; +import GeneralSettings from '../components/GeneralSettings.svelte'; import PaymentSettings from '../components/PaymentSettings.svelte'; import ApiSettings from '../components/ApiSettings.svelte'; --- @@ -11,6 +13,9 @@ import ApiSettings from '../components/ApiSettings.svelte';
Loading account...