From 1ec9d92eb2123b33e153a86962521d336e182a0d Mon Sep 17 00:00:00 2001 From: wukko Date: Wed, 17 Jul 2024 13:32:07 +0600 Subject: [PATCH] web/updates: clean up components --- web/src/components/misc/ChangelogEntry.svelte | 41 ++++---- .../misc/ChangelogEntryWrapper.svelte | 1 + web/src/routes/updates/+page.svelte | 96 +++++++++---------- 3 files changed, 70 insertions(+), 68 deletions(-) diff --git a/web/src/components/misc/ChangelogEntry.svelte b/web/src/components/misc/ChangelogEntry.svelte index 7991e304..902aa7ef 100644 --- a/web/src/components/misc/ChangelogEntry.svelte +++ b/web/src/components/misc/ChangelogEntry.svelte @@ -4,6 +4,27 @@ export let date: string; export let banner: { file: string, alt: string } | undefined; + +
+

+
{ version }
+
{ title }
+

+ { date } +
+ {#if banner} + {banner.alt} + {/if} +
+ +
+
+
+ -
-

-
{ version }
-
{ title }
-

- { date } -
- {#if banner} - {banner.alt} - {/if} -
- -
-
-
diff --git a/web/src/components/misc/ChangelogEntryWrapper.svelte b/web/src/components/misc/ChangelogEntryWrapper.svelte index 3821fa42..6dc6e56a 100644 --- a/web/src/components/misc/ChangelogEntryWrapper.svelte +++ b/web/src/components/misc/ChangelogEntryWrapper.svelte @@ -6,6 +6,7 @@ export let date = ''; export let banner = undefined; + diff --git a/web/src/routes/updates/+page.svelte b/web/src/routes/updates/+page.svelte index 5cbaf12f..3691e055 100644 --- a/web/src/routes/updates/+page.svelte +++ b/web/src/routes/updates/+page.svelte @@ -62,6 +62,54 @@ $: currentIndex, loadChangelog(); + + + {$t("general.cobalt")}: {$t("tabs.updates")} + + + + + +
+ {#if changelog} +
+ +
+
+ +
+ + +
+
+
+ +
+ {/if} +
+ - - - - {$t("general.cobalt")}: {$t("tabs.updates")} - - - - - -
- {#if changelog} -
- -
-
- -
- - -
-
-
- -
- {/if} -