From 33fb2a607faedabcf2cf544ad6752b7547c1a7fc Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Wed, 17 Apr 2024 09:59:32 +0100 Subject: [PATCH] Add icons to menu and versions page --- src/routes/more/+page.svelte | 26 ++++++++++++++++---------- src/routes/more/versions/+page.svelte | 8 +++++++- 2 files changed, 23 insertions(+), 11 deletions(-) diff --git a/src/routes/more/+page.svelte b/src/routes/more/+page.svelte index d1706da..16eee29 100644 --- a/src/routes/more/+page.svelte +++ b/src/routes/more/+page.svelte @@ -1,19 +1,20 @@ @@ -22,6 +23,7 @@ {#each links as item}
+

{item.title}

@@ -37,8 +39,12 @@ border-width: 1px; border-style: solid; border-left: none; + padding-left: 0.5rem; border-right: none; height: 50px; + display: flex; + align-items: center; + margin-bottom: 0.5rem; } a { text-decoration: none; diff --git a/src/routes/more/versions/+page.svelte b/src/routes/more/versions/+page.svelte index ffbb41f..249926b 100644 --- a/src/routes/more/versions/+page.svelte +++ b/src/routes/more/versions/+page.svelte @@ -6,6 +6,7 @@ import LargeLogo from '$lib/images/large-logo.svelte'; import { version, versionTag } from '$lib/stores/version'; import { getApiUrl } from '$lib/scripts/upstream'; + import { IconBrandGolang, IconBrandJavascript, IconBrandPython, IconBrandSvelte, IconBrandTypescript, IconFileTypeSql } from '@tabler/icons-svelte'; const title = 'Versions'; async function getData() { @@ -24,6 +25,7 @@ {:then data}

+ Web-app version
{version}{#if versionTag}-{versionTag}{/if}

+
API Server version
{data?.backend || 'Unknown'}

+
DB Manager version
{data?.['db-manager'] || 'Unknown'}

+
MQ Client version
{data?.['mq-client'] || 'Not installed'}

{:catch}

- Web-app Version
{version}-{versionTag} +
+ Web-app Version
{version}{#if versionTag}-{versionTag}{/if}

Unable to fetch server versions