diff --git a/src/lib/components/ServerCard.svelte b/src/lib/components/ServerCard.svelte index 2d06eef..16da17e 100644 --- a/src/lib/components/ServerCard.svelte +++ b/src/lib/components/ServerCard.svelte @@ -42,14 +42,13 @@ if (typeof monitor !== 'undefined') { status = monitor.status; } - if (icons.length != 0 && typeof server.icon !== "undefined") { + if (icons.length != 0 && typeof server.icon !== 'undefined') { const rootSplit = server.icon.split('/'); const root = rootSplit[rootSplit.length - 1]; if (server.iconType === IconType.SVG) { checkForImage(server); - } - else { + } else { if (icons.includes(`${root}-36.${server.iconType}`)) { img_source = `${server.icon}-36.${server.iconType}`; } else { @@ -62,7 +61,8 @@
{/if} {:else}{/if} - {server.name} + {server.name} {#if hover.title}
- {#if typeof server.id !== "undefined"} + {#if typeof server.id !== 'undefined'}

- {status == 0 - ? 'Offline' - : status == 1 - ? 'Online' - : status == 2 - ? 'Pending' - : status == 3 - ? 'Maint.' - : 'Loading'} -

+ ? 'text-offline' + : status == 1 + ? 'text-online' + : status == 2 + ? 'text-pending' + : status == 3 + ? 'text-maintenance' + : 'text-maintenance'}" + > + {status == 0 + ? 'Offline' + : status == 1 + ? 'Online' + : status == 2 + ? 'Pending' + : status == 3 + ? 'Maint.' + : 'Loading'} + {/if}

{server.desc}

diff --git a/src/lib/components/ServiceCard.svelte b/src/lib/components/ServiceCard.svelte index cc05270..597c41a 100644 --- a/src/lib/components/ServiceCard.svelte +++ b/src/lib/components/ServiceCard.svelte @@ -87,11 +87,7 @@ {/if} {:else}{/if} - {service.name} + {service.name} {#if hover.title}
- +
- diff --git a/src/routes/Header.svelte b/src/routes/Header.svelte index 28c4887..06b2860 100644 --- a/src/routes/Header.svelte +++ b/src/routes/Header.svelte @@ -12,8 +12,7 @@ @@ -22,8 +21,8 @@ @@ -32,8 +31,8 @@ @@ -42,8 +41,8 @@ diff --git a/src/routes/about/+page.svelte b/src/routes/about/+page.svelte index cae5ea5..7d868f7 100644 --- a/src/routes/about/+page.svelte +++ b/src/routes/about/+page.svelte @@ -1,5 +1,5 @@ @@ -9,12 +9,14 @@

Version: - + {version}

-

Background

Foreground

Muted

diff --git a/src/routes/servers/+page.svelte b/src/routes/servers/+page.svelte index 8402984..ecc60f8 100644 --- a/src/routes/servers/+page.svelte +++ b/src/routes/servers/+page.svelte @@ -4,7 +4,7 @@ import type { Server } from '$lib/types/data-types'; import { io } from 'socket.io-client'; import type { Heartbeat } from '$lib/types/uptime-kuma-types'; - import ServerCard from "$lib/components/ServerCard.svelte"; + import ServerCard from '$lib/components/ServerCard.svelte'; let { data }: { data: { promise: Promise } } = $props(); @@ -43,7 +43,7 @@ }; monitorList.set(monitor.monitorID, monitor); monitorList = new Map(monitorList.entries()); - }) + }); socket.on('heartbeatList', (_, data) => { let recent = data[data.length - 1];