From 48f0c30d47d62e4f35706edb93a1bb2f97eba14c Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.net>
Date: Sun, 1 Mar 2026 16:04:11 -0800
Subject: chore(biome): enable svelte formatting

---
 src/lib/Tools/Tracker/Tool.svelte | 96 +++++++++++++++++++--------------------
 1 file changed, 48 insertions(+), 48 deletions(-)

(limited to 'src/lib/Tools/Tracker/Tool.svelte')

diff --git a/src/lib/Tools/Tracker/Tool.svelte b/src/lib/Tools/Tracker/Tool.svelte
index a3705fbe..1849cbb1 100644
--- a/src/lib/Tools/Tracker/Tool.svelte
+++ b/src/lib/Tools/Tracker/Tool.svelte
@@ -1,70 +1,70 @@
 <script lang="ts">
-  import Spacer from '$lib/Layout/Spacer.svelte';
-  import { v6 as uuidv6 } from 'uuid';
-  import { database, type TrackerEntry } from '$lib/Database/IDB/tracker';
-  import { onMount } from 'svelte';
-  import Message from '$lib/Loading/Message.svelte';
+import Spacer from '$lib/Layout/Spacer.svelte';
+import { v6 as uuidv6 } from 'uuid';
+import { database, type TrackerEntry } from '$lib/Database/IDB/tracker';
+import { onMount } from 'svelte';
+import Message from '$lib/Loading/Message.svelte';
 
-  let url = '';
-  let title = '';
-  let progress = 0;
-  let error = '';
-  let masterList: TrackerEntry[] | null = null;
-  let confirmDelete = 0;
+let url = '';
+let title = '';
+let progress = 0;
+let error = '';
+let masterList: TrackerEntry[] | null = null;
+let confirmDelete = 0;
 
-  $: listAccess = masterList || [];
+$: listAccess = masterList || [];
 
-  onMount(async () => {
-    masterList = await database.entries.toArray();
-  });
+onMount(async () => {
+  masterList = await database.entries.toArray();
+});
 
-  const adjustEntry = (id: string, to: number) => {
-    const entry = listAccess.find((entry) => entry.id === id);
+const adjustEntry = (id: string, to: number) => {
+  const entry = listAccess.find((entry) => entry.id === id);
 
-    if (!entry) return;
+  if (!entry) return;
 
-    entry.progress = Math.max(0, to);
+  entry.progress = Math.max(0, to);
 
-    database.entries.update(id, { progress: entry.progress });
+  database.entries.update(id, { progress: entry.progress });
 
-    masterList = listAccess.map((entry) =>
-      entry.id === id ? { ...entry, progress: entry.progress } : entry
-    );
-  };
+  masterList = listAccess.map((entry) =>
+    entry.id === id ? { ...entry, progress: entry.progress } : entry
+  );
+};
 
-  const addEntry = async (url: string, title: string, progress: number) => {
-    if (!url || !title) {
-      error = 'URL and title are required fields';
+const addEntry = async (url: string, title: string, progress: number) => {
+  if (!url || !title) {
+    error = 'URL and title are required fields';
 
-      return;
-    }
+    return;
+  }
 
-    if (listAccess.some((entry) => entry.url === url)) {
-      error =
-        'Entry with URL already exists: ' + listAccess.find((entry) => entry.url === url)?.title;
+  if (listAccess.some((entry) => entry.url === url)) {
+    error =
+      'Entry with URL already exists: ' + listAccess.find((entry) => entry.url === url)?.title;
 
-      return;
-    }
+    return;
+  }
 
-    await database.entries.add({ url, title, progress, id: uuidv6() });
+  await database.entries.add({ url, title, progress, id: uuidv6() });
 
-    masterList = await database.entries.toArray();
-  };
+  masterList = await database.entries.toArray();
+};
 
-  const deleteEntry = async (id: string) => {
-    if (confirmDelete !== 1) {
-      confirmDelete = 1;
-      error = 'Click again to confirm deletion';
+const deleteEntry = async (id: string) => {
+  if (confirmDelete !== 1) {
+    confirmDelete = 1;
+    error = 'Click again to confirm deletion';
 
-      return;
-    }
+    return;
+  }
 
-    await database.entries.delete(id);
+  await database.entries.delete(id);
 
-    masterList = await database.entries.toArray();
-    confirmDelete = 0;
-    error = '';
-  };
+  masterList = await database.entries.toArray();
+  confirmDelete = 0;
+  error = '';
+};
 </script>
 
 <div class="card">
-- 
cgit v1.2.3

