Linting changes

This commit is contained in:
Neshura 2024-01-04 01:36:35 +01:00
parent abea3f1be9
commit 3525fdfcd1
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
6 changed files with 51 additions and 59 deletions

View file

@ -6,6 +6,5 @@
<Header />
<div class="h-full pt-16">
<slot />
<slot />
</div>

View file

@ -12,8 +12,7 @@
<Button
variant="ghost"
href="/"
class="{button} + {!($page.url.pathname === '/')
|| 'border-secondary text-secondary'}"
class="{button} + {!($page.url.pathname === '/') || 'border-secondary text-secondary'}"
>
Home
</Button>
@ -22,8 +21,8 @@
<Button
variant="ghost"
href="/servers"
class="{button} + {!$page.url.pathname.startsWith('/servers')
|| 'border-secondary text-secondary'}"
class="{button} + {!$page.url.pathname.startsWith('/servers') ||
'border-secondary text-secondary'}"
>
Servers
</Button>
@ -32,8 +31,8 @@
<Button
variant="ghost"
href="/services"
class="{button} + {!$page.url.pathname.startsWith('/services')
|| 'border-secondary text-secondary'}"
class="{button} + {!$page.url.pathname.startsWith('/services') ||
'border-secondary text-secondary'}"
>
Services
</Button>
@ -42,8 +41,8 @@
<Button
variant="ghost"
href="/about"
class="{button} + {!$page.url.pathname.startsWith('/about')
|| 'border-secondary text-secondary'}"
class="{button} + {!$page.url.pathname.startsWith('/about') ||
'border-secondary text-secondary'}"
>
About
</Button>

View file

@ -1,5 +1,5 @@
<script lang="ts">
import { version } from '$app/environment'
import { version } from '$app/environment';
</script>
<svelte:head>
@ -9,12 +9,14 @@
<p>
Version:
<a href="https://forgejo.neshweb.net/Neshweb-Sites/main-site/releases/tag/{version}" class="hover:underline">
<a
href="https://forgejo.neshweb.net/Neshweb-Sites/main-site/releases/tag/{version}"
class="hover:underline"
>
{version}
</a>
</p>
<p class="text-background">Background</p>
<p class="text-foreground">Foreground</p>
<p class="text-muted">Muted</p>

View file

@ -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<string> } } = $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];