diff --git a/src/lib/components/ServiceCard.svelte b/src/lib/components/ServiceCard.svelte index 4fca7f6..97005bf 100644 --- a/src/lib/components/ServiceCard.svelte +++ b/src/lib/components/ServiceCard.svelte @@ -1,14 +1,14 @@
(hover.title = false)} > {#if service.icon} - {#if img_source != ""} + {#if img_source != ''} {service.name} Logo {:else} {/if} - {:else} - - {/if} + {:else}{/if} - import { cn } from "$lib/utils"; - import type { HTMLAttributes } from "svelte/elements"; + import { cn } from '$lib/utils'; + import type { HTMLAttributes } from 'svelte/elements'; type $$Props = HTMLAttributes; - let className: $$Props["class"] = undefined; + let className: $$Props['class'] = undefined; export { className as class }; -
+
diff --git a/src/lib/types/data-types.ts b/src/lib/types/data-types.ts index bcdb283..54aafc5 100644 --- a/src/lib/types/data-types.ts +++ b/src/lib/types/data-types.ts @@ -10,9 +10,9 @@ export type Service = { }; export enum IconType { - SVG = "svg", - AVIF = "avif", - PNG = "png", - WEBP = "webp", - JPG = "jpg", -} \ No newline at end of file + SVG = 'svg', + AVIF = 'avif', + PNG = 'png', + WEBP = 'webp', + JPG = 'jpg' +} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index fcf1dd3..2b9f176 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,8 +1,8 @@ - Home - + Home +
-

Home Page

+

Home Page

diff --git a/src/routes/about/+page.svelte b/src/routes/about/+page.svelte index 4216832..a4197f7 100644 --- a/src/routes/about/+page.svelte +++ b/src/routes/about/+page.svelte @@ -1,4 +1,4 @@ - About - - \ No newline at end of file + About + + diff --git a/src/routes/assets/icons/+server.ts b/src/routes/assets/icons/+server.ts index 30087b5..1518902 100644 --- a/src/routes/assets/icons/+server.ts +++ b/src/routes/assets/icons/+server.ts @@ -1,10 +1,10 @@ -import * as fs from "fs"; -import {json} from "@sveltejs/kit"; +import * as fs from 'fs'; +import { json } from '@sveltejs/kit'; export function GET() { - let content = fs.readdirSync("static/assets/icons"); + let content = fs.readdirSync('static/assets/icons'); - content = content.filter((entry) => entry != ".directory") + content = content.filter((entry) => entry != '.directory'); - return json(content); -} \ No newline at end of file + return json(content); +} diff --git a/src/routes/data/services/+server.ts b/src/routes/data/services/+server.ts index 652b3e1..f0512f6 100644 --- a/src/routes/data/services/+server.ts +++ b/src/routes/data/services/+server.ts @@ -1,10 +1,10 @@ -import * as fs from "fs"; -import {json} from "@sveltejs/kit"; +import * as fs from 'fs'; +import { json } from '@sveltejs/kit'; export function GET() { - const content = fs.readFileSync("static/data/services.json").toString(); + const content = fs.readFileSync('static/data/services.json').toString(); - let data = JSON.parse(content) + let data = JSON.parse(content); - return json(data); -} \ No newline at end of file + return json(data); +} diff --git a/src/routes/servers/+page.svelte b/src/routes/servers/+page.svelte index d41bd02..767e81f 100644 --- a/src/routes/servers/+page.svelte +++ b/src/routes/servers/+page.svelte @@ -1,4 +1,4 @@ - Servers - - \ No newline at end of file + Servers + + diff --git a/src/routes/services/+page.svelte b/src/routes/services/+page.svelte index c05836a..d3a484a 100644 --- a/src/routes/services/+page.svelte +++ b/src/routes/services/+page.svelte @@ -9,27 +9,26 @@ let icons: readonly string[] = $state.frozen([]); async function get(url: string): Promise { - let res = await fetch(url) + let res = await fetch(url); if (res.ok) { - let data = await res.json() - return data - } - else { - return Promise.reject() + let data = await res.json(); + return data; + } else { + return Promise.reject(); } } $effect(() => { - get("/data/services").then((data: Service[]) => { - services = data - }) - }) + get('/data/services').then((data: Service[]) => { + services = data; + }); + }); $effect(() => { - get("/assets/icons").then((data: string[]) => { - icons = data - }) - }) + get('/assets/icons').then((data: string[]) => { + icons = data; + }); + });