aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Tools/Tracker
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-05-29 23:44:08 +0000
committerFuwn <[email protected]>2026-05-29 23:44:08 +0000
commit49879c43ebd9f36ec19f4c02fa2b121314126286 (patch)
treebbf1e42eba5996640ffcc7f44d07245cdf2c5e5c /src/lib/Tools/Tracker
parentchore(biome): scope linting to remove Svelte false positives (diff)
downloaddue.moe-49879c43ebd9f36ec19f4c02fa2b121314126286.tar.xz
due.moe-49879c43ebd9f36ec19f4c02fa2b121314126286.zip
style: apply biome autofixes and resolve remaining lint findingsHEADmain
Auto-fixed cosmetic findings (import ordering, obj["k"]->obj.k, optional chaining, template literals, Date.now, parseInt radix, useless ternaries/ switch cases). Resolved the non-autofixable rest by hand: - Senpy: static-only class -> object literal (no this/static reliance). - app.html: var global shim -> window.global = window (keeps the shim, drops the unused-var flag). - biome-ignore with rationale for the logout document.cookie clear and the holodule scrape non-null assertion. Verified: biome check 0 diagnostics, svelte-check 0/0, 24/24 unit tests.
Diffstat (limited to 'src/lib/Tools/Tracker')
-rw-r--r--src/lib/Tools/Tracker/Tool.svelte9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/Tools/Tracker/Tool.svelte b/src/lib/Tools/Tracker/Tool.svelte
index 3185e79b..c8977bc9 100644
--- a/src/lib/Tools/Tracker/Tool.svelte
+++ b/src/lib/Tools/Tracker/Tool.svelte
@@ -1,11 +1,11 @@
<script lang="ts">
-import Spacer from "$lib/Layout/Spacer.svelte";
+import { onMount } from "svelte";
+import { get } from "svelte/store";
import { v6 as uuidv6 } from "uuid";
import { database, type TrackerEntry } from "$lib/Database/IDB/tracker";
-import { onMount } from "svelte";
+import Spacer from "$lib/Layout/Spacer.svelte";
import Message from "$lib/Loading/Message.svelte";
import locale from "$stores/locale";
-import { get } from "svelte/store";
let url = "";
let title = "";
@@ -47,7 +47,8 @@ const addEntry = async (url: string, title: string, progress: number) => {
const existing = listAccess.find((entry) => entry.url === url)?.title;
error = (
- get(locale)().tools.tracker?.entryExists ?? "Entry with URL already exists: {url}"
+ get(locale)().tools.tracker?.entryExists ??
+ "Entry with URL already exists: {url}"
).replace("{url}", existing ?? "");
return;