From 414ab5314440139e5a1abf604b77bcb49f590d26 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Sun, 9 Jun 2024 02:39:18 -0700 Subject: [PATCH] refac: banners --- src/lib/components/admin/Settings.svelte | 40 +---- .../components/admin/Settings/Banners.svelte | 137 ------------------ .../admin/Settings/Interface.svelte | 118 ++++++++++++++- 3 files changed, 117 insertions(+), 178 deletions(-) delete mode 100644 src/lib/components/admin/Settings/Banners.svelte diff --git a/src/lib/components/admin/Settings.svelte b/src/lib/components/admin/Settings.svelte index 65cfbeb85..f668da2ff 100644 --- a/src/lib/components/admin/Settings.svelte +++ b/src/lib/components/admin/Settings.svelte @@ -1,13 +1,12 @@ - -
{ - updateBanners(); - saveHandler(); - }} -> -
-
-
-
- {$i18n.t('Banners')} -
- - -
-
- {#each banners as banner, bannerIdx} -
-
- - - - -
- - - -
-
- - -
- {/each} -
-
-
-
- -
-
diff --git a/src/lib/components/admin/Settings/Interface.svelte b/src/lib/components/admin/Settings/Interface.svelte index 3a4dae780..d5edb25e7 100644 --- a/src/lib/components/admin/Settings/Interface.svelte +++ b/src/lib/components/admin/Settings/Interface.svelte @@ -1,10 +1,20 @@
- {#if $user.role === 'admin'} -
+
+
+
+
+ {$i18n.t('Banners')} +
+ + +
+
+ {#each banners as banner, bannerIdx} +
+
+ + + + +
+ + + +
+
+ + +
+ {/each} +
+
+ + {#if $user.role === 'admin'}