The next-generation file converter. Open source, fully local* and free forever.
refactor: clear eslint/prettier/svelte-check warnings
JovannMC257920a71345
diff --git a/.prettierignore b/.prettierignoreindex ab78a95..fe2d62f 100644--- a/.prettierignore+++ b/.prettierignore@@ -2,3 +2,5 @@package-lock.jsonpnpm-lock.yamlyarn.lock++src/lib/paraglidediff --git a/.prettierrc b/.prettierrcindex f371e21..cf47e6a 100644--- a/.prettierrc+++ b/.prettierrc@@ -3,5 +3,5 @@"tabWidth": 4,"singleQuote": false,"plugins": ["prettier-plugin-svelte"],- "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]+ "overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]}diff --git a/.vscode/extensions.json b/.vscode/extensions.jsonindex 116d685..629f094 100644--- a/.vscode/extensions.json+++ b/.vscode/extensions.json@@ -1,5 +1,3 @@{- "recommendations": [- "inlang.vs-code-extension"- ]-}\ No newline at end of file+ "recommendations": ["inlang.vs-code-extension"]+}diff --git a/bun.lock b/bun.lockindex 74fc87b..3cd2201 100644--- a/bun.lock+++ b/bun.lock@@ -17,6 +17,7 @@"@mediabunny/flac-encoder": "^1.55.7","@mediabunny/mp3-encoder": "^1.55.7","@stripe/stripe-js": "^9.15.0",+ "@types/node": "^22.20.2","byte-data": "^19.0.1","client-zip": "^2.5.0","clsx": "^2.1.1",@@ -358,6 +359,8 @@"@types/json-schema": ["@types/[email protected]", "", {}, "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA=="],+ "@types/node": ["@types/[email protected]", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-xlvWf4Vs9n1PEVYwP1n4vvG07M6y8WgvJ2t0vbrWTmijsIHp1cS+uJ2kMIRdY3nHZK0nCYKrPeD171+SzF4/zw=="],+"@types/sanitize-html": ["@types/[email protected]", "", { "dependencies": { "htmlparser2": "^10.1" } }, "sha512-n9wjs8bCOTyN/ynwD8s/nTcTreIHB1vf31vhLMGqUPNHaweKC4/fAl4Dj+hUlCTKYgm4P3k83fmiFfzkZ6sgMA=="],"@typescript-eslint/eslint-plugin": ["@typescript-eslint/[email protected]", "", { "dependencies": { "@eslint-community/regexpp": "^4.12.2", "@typescript-eslint/scope-manager": "8.69.0", "@typescript-eslint/type-utils": "8.69.0", "@typescript-eslint/utils": "8.69.0", "@typescript-eslint/visitor-keys": "8.69.0", "ignore": "^7.0.5", "natural-compare": "^1.4.0", "ts-api-utils": "^2.5.0" }, "peerDependencies": { "@typescript-eslint/parser": "^8.69.0", "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0", "typescript": ">=4.8.4 <6.1.0" } }, "sha512-t5jQTKPIgVW1PE6dR6H6Qz5gm8zjMlX5/2gRaOGd9eO6V7J+tQc6iWKukEe7dY8u9HyYasQ0yfF0/FSSTEO2gA=="],@@ -836,6 +839,8 @@"uint8array-extras": ["[email protected]", "", {}, "sha512-rvKSBiC5zqCCiDZ9kAOszZcDvdAHwwIKJG33Ykj43OKcWsnmcBRL09YTU4nOeHZ8Y2a7l1MgTd08SBe9A8Qj6A=="],+ "undici-types": ["[email protected]", "", {}, "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ=="],+"unplugin": ["[email protected]", "", { "dependencies": { "@jridgewell/remapping": "^2.3.5", "acorn": "^8.15.0", "picomatch": "^4.0.3", "webpack-virtual-modules": "^0.6.2" } }, "sha512-5uKD0nqiYVzlmCRs01Fhs2BdkEgBS3SAVP6ndrBsuK42iC2+JHyxM05Rm9G8+5mkmRtzMZGY8Ct5+mliZxU/Ww=="],"update-browserslist-db": ["[email protected]", "", { "dependencies": { "escalade": "^3.2.0", "picocolors": "^1.1.1" }, "peerDependencies": { "browserslist": ">= 4.21.0" }, "bin": { "update-browserslist-db": "cli.js" } }, "sha512-UQ+MSxlhRm1bzjhU+DcuXfjFO1FzNtqhK5+9Yvlp90ItDLk5vT932A0rFu619nf7RVS+Y/VeaUW1jaRDqZ8VJw=="],diff --git a/docker-compose.yml b/docker-compose.ymlindex 44e1092..d943c88 100644--- a/docker-compose.yml+++ b/docker-compose.yml@@ -1,18 +1,18 @@services:- vert:- container_name: vert- image: ghcr.io/vert-sh/vert:latest- build:- context: .- args:- PUB_HOSTNAME: ${PUB_HOSTNAME:-localhost:5173}- PUB_PLAUSIBLE_URL: ${PUB_PLAUSIBLE_URL:-}- PUB_ENV: ${PUB_ENV:-production}- PUB_DISABLE_ALL_EXTERNAL_REQUESTS: ${PUB_DISABLE_ALL_EXTERNAL_REQUESTS:-false}- PUB_VERTD_URL: ${PUB_VERTD_URL:-https://vertd.vert.sh}- PUB_DONATION_URL: ${PUB_DONATION_URL:-https://donations.vert.sh}- PUB_STRIPE_KEY: ${PUB_STRIPE_KEY:-pk_live_51TlrPaFTPjkhEGBSu5Kwy5jJQYxcX5yUUHXiH5g7Xzvb0NKzDqbooc126HjlW35uUkfAgQN2ruEoCuyQynoxpKaA00ojFgQ116}- PUB_DISABLE_FAILURE_BLOCKS: ${PUB_DISABLE_FAILURE_BLOCKS:-false}- restart: unless-stopped- ports:- - ${PORT:-3000}:80+ vert:+ container_name: vert+ image: ghcr.io/vert-sh/vert:latest+ build:+ context: .+ args:+ PUB_HOSTNAME: ${PUB_HOSTNAME:-localhost:5173}+ PUB_PLAUSIBLE_URL: ${PUB_PLAUSIBLE_URL:-}+ PUB_ENV: ${PUB_ENV:-production}+ PUB_DISABLE_ALL_EXTERNAL_REQUESTS: ${PUB_DISABLE_ALL_EXTERNAL_REQUESTS:-false}+ PUB_VERTD_URL: ${PUB_VERTD_URL:-https://vertd.vert.sh}+ PUB_DONATION_URL: ${PUB_DONATION_URL:-https://donations.vert.sh}+ PUB_STRIPE_KEY: ${PUB_STRIPE_KEY:-pk_live_51TlrPaFTPjkhEGBSu5Kwy5jJQYxcX5yUUHXiH5g7Xzvb0NKzDqbooc126HjlW35uUkfAgQN2ruEoCuyQynoxpKaA00ojFgQ116}+ PUB_DISABLE_FAILURE_BLOCKS: ${PUB_DISABLE_FAILURE_BLOCKS:-false}+ restart: unless-stopped+ ports:+ - ${PORT:-3000}:80diff --git a/docs/FAQ.md b/docs/FAQ.mdindex c7887ac..e5d6ed1 100644--- a/docs/FAQ.md+++ b/docs/FAQ.md@@ -34,4 +34,5 @@ Yes! If you would prefer VERT to not make any requests to external services (vidThe only external request VERT will make with this option is to `cdn.jsdelivr.net`, which is used to download FFmpeg's WebAssembly build.### What libraries does VERT use?-VERT uses FFmpeg for audio and video conversion, imagemagick for images and Pandoc for documents. A big thanks to them for maintaining such excellent libraries for so many years.\ No newline at end of file++VERT uses FFmpeg for audio and video conversion, imagemagick for images and Pandoc for documents. A big thanks to them for maintaining such excellent libraries for so many years.diff --git a/docs/GETTING_STARTED.md b/docs/GETTING_STARTED.mdindex df9be32..41ec457 100644--- a/docs/GETTING_STARTED.md+++ b/docs/GETTING_STARTED.md@@ -11,17 +11,20 @@ This file covers how to get started with VERT.### PrerequisitesMake sure you have the following installed:+- [Bun](https://bun.sh/)### InstallationFirst, clone the repository:+```shgit clone https://github.com/VERT-sh/VERTcd VERT/```Install dependencies:+```shbun i```@@ -42,4 +45,4 @@ This will build the site to the `build` folder. You should then use a web server### Using Docker-Check the dedicated [Docker](./DOCKER.md) page.\ No newline at end of file+Check the dedicated [Docker](./DOCKER.md) page.diff --git a/eslint.config.js b/eslint.config.jsindex 0c1d095..20da35c 100644--- a/eslint.config.js+++ b/eslint.config.js@@ -28,13 +28,13 @@ export default ts.config(},},{- ignores: ["build/", ".svelte-kit/", "dist/"],+ ignores: ["build/", ".svelte-kit/", "dist/", "src/lib/paraglide/"],},{files: ["**/*.ts", "**/*.svelte.ts", "**/*.svelte"],rules: {"svelte/no-at-html-tags": "off",- "svelte/valid-compile": "off"+ "svelte/valid-compile": "off",},},);diff --git a/messages/en.json b/messages/en.jsonindex 84a97c8..63105d8 100644--- a/messages/en.json+++ b/messages/en.json@@ -418,7 +418,7 @@"warnings": {"settings_change": "Changed the setting '{setting}' from '{oldValue}' to '{newValue}' for {file} to prevent conversion failure."}- },+ },"privacy": {"title": "Privacy Policy","summary": {diff --git a/package.json b/package.jsonindex 8c5e385..d9cb016 100644--- a/package.json+++ b/package.json@@ -10,7 +10,7 @@"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch","migrate:messages": "node scripts/migrate-language-keys.mjs","format": "prettier --write .",- "lint": "prettier --check .; p=$?; eslint .; e=$?; [ $p -eq 0 ] && [ $e -eq 0 ]"+ "lint": "eslint ."},"devDependencies": {"@inlang/paraglide-js": "^2.25.0",@@ -51,6 +51,7 @@"@mediabunny/flac-encoder": "^1.55.7","@mediabunny/mp3-encoder": "^1.55.7","@stripe/stripe-js": "^9.15.0",+ "@types/node": "^22.20.2","byte-data": "^19.0.1","client-zip": "^2.5.0","clsx": "^2.1.1",diff --git a/postcss.config.js b/postcss.config.jsindex 0f77216..7b75c83 100644--- a/postcss.config.js+++ b/postcss.config.js@@ -1,6 +1,6 @@export default {plugins: {tailwindcss: {},- autoprefixer: {}- }+ autoprefixer: {},+ },};diff --git a/scripts/migrate-language-keys.mjs b/scripts/migrate-language-keys.mjsindex 088df29..547ee94 100644--- a/scripts/migrate-language-keys.mjs+++ b/scripts/migrate-language-keys.mjs@@ -15,7 +15,7 @@ function parseArgs(argv) {dryRun: false,verbose: false,mapOut: "",- files: ""+ files: "",};for (let i = 0; i < argv.length; i += 1) {@@ -39,7 +39,7 @@ function parseArgs(argv) {...args,base: path.resolve(args.base),target: path.resolve(args.target),- dir: path.resolve(args.dir)+ dir: path.resolve(args.dir),};}@@ -147,9 +147,12 @@ function matchGroup(oldPaths, newPaths) {.filter((candidate) => !usedNew.has(candidate)).map((candidate) => ({candidate,- score: scorePathSimilarity(oldPath, candidate)+ score: scorePathSimilarity(oldPath, candidate),}))- .sort((a, b) => b.score - a.score || a.candidate.localeCompare(b.candidate));+ .sort(+ (a, b) =>+ b.score - a.score || a.candidate.localeCompare(b.candidate),+ );if (candidates.length === 0) continue;const best = candidates[0];@@ -197,7 +200,7 @@ function buildMigrationMap(baseJson, targetJson) {unresolved.push({oldPath,value: JSON.parse(valueKey),- candidateCount: newPaths.length+ candidateCount: newPaths.length,});}}@@ -266,7 +269,9 @@ function resolveTargetFiles(args) {.filter((name) => name.endsWith(".json")).map((name) => path.join(args.dir, name));- return files.filter((filePath) => filePath !== args.base && filePath !== args.target);+ return files.filter(+ (filePath) => filePath !== args.base && filePath !== args.target,+ );}function migrateLocaleFile(filePath, migrationMap, options) {@@ -276,7 +281,9 @@ function migrateLocaleFile(filePath, migrationMap, options) {let skippedConflicts = 0;let unchanged = 0;- const entries = [...migrationMap.entries()].sort((a, b) => b[0].split(".").length - a[0].split(".").length);+ const entries = [...migrationMap.entries()].sort(+ (a, b) => b[0].split(".").length - a[0].split(".").length,+ );const planned = [];const plannedNewPaths = [];@@ -290,27 +297,45 @@ function migrateLocaleFile(filePath, migrationMap, options) {const existingNew = getAtPath(original, newPath);if (existingNew !== undefined) {if (JSON.stringify(existingNew) === JSON.stringify(oldValue)) {- planned.push({ oldPath, newPath, oldValue, targetAlreadyMatched: true });+ planned.push({+ oldPath,+ newPath,+ oldValue,+ targetAlreadyMatched: true,+ });plannedNewPaths.push(newPath);continue;}skippedConflicts += 1;- if (options.verbose) console.warn(`[conflict] ${path.basename(filePath)}: ${oldPath} -> ${newPath}`);+ if (options.verbose)+ console.warn(+ `[conflict] ${path.basename(filePath)}: ${oldPath} -> ${newPath}`,+ );continue;}- planned.push({ oldPath, newPath, oldValue, targetAlreadyMatched: false });+ planned.push({+ oldPath,+ newPath,+ oldValue,+ targetAlreadyMatched: false,+ });plannedNewPaths.push(newPath);}for (const plan of planned) {if (!plan.targetAlreadyMatched) {setAtPath(json, plan.newPath, plan.oldValue);- if (options.verbose) console.log(`[move] ${path.basename(filePath)}: ${plan.oldPath} -> ${plan.newPath}`);+ if (options.verbose)+ console.log(+ `[move] ${path.basename(filePath)}: ${plan.oldPath} -> ${plan.newPath}`,+ );}- const becomesParentCategory = plannedNewPaths.some((newPath) => newPath.startsWith(`${plan.oldPath}.`));+ const becomesParentCategory = plannedNewPaths.some((newPath) =>+ newPath.startsWith(`${plan.oldPath}.`),+ );if (becomesParentCategory) {moved += 1;continue;@@ -330,15 +355,22 @@ function main() {const baseJson = readJson(args.base);const targetJson = readJson(args.target);- const { migrationMap, unresolved } = buildMigrationMap(baseJson, targetJson);+ const { migrationMap, unresolved } = buildMigrationMap(+ baseJson,+ targetJson,+ );if (args.mapOut) {const output = {base: args.base,target: args.target,generatedAt: new Date().toISOString(),- mapping: Object.fromEntries([...migrationMap.entries()].sort(([a], [b]) => a.localeCompare(b))),- unresolved+ mapping: Object.fromEntries(+ [...migrationMap.entries()].sort(([a], [b]) =>+ a.localeCompare(b),+ ),+ ),+ unresolved,};writeJson(path.resolve(args.mapOut), output);}@@ -358,7 +390,9 @@ function main() {totalMoved += result.moved;totalConflicts += result.skippedConflicts;if (result.changed) filesChanged += 1;- console.log(`${path.basename(filePath)}: moved=${result.moved}, conflicts=${result.skippedConflicts}`);+ console.log(+ `${path.basename(filePath)}: moved=${result.moved}, conflicts=${result.skippedConflicts}`,+ );}console.log(`\nGenerated mapping entries: ${migrationMap.size}`);@@ -366,7 +400,8 @@ function main() {console.log(`Files changed: ${filesChanged}/${files.length}`);console.log(`Total keys moved: ${totalMoved}`);console.log(`Conflicts skipped: ${totalConflicts}`);- if (args.dryRun) console.log("Dry run mode enabled: no files were written.");+ if (args.dryRun)+ console.log("Dry run mode enabled: no files were written.");}try {diff --git a/src/app.d.ts b/src/app.d.tsindex 29ed65b..fce00eb 100644--- a/src/app.d.ts+++ b/src/app.d.ts@@ -1,3 +1,4 @@+/* eslint-disable @typescript-eslint/no-unused-vars */import "@poppanator/sveltekit-svg/dist/svg";type EventPayload = {@@ -250,9 +251,7 @@ declare global {// interface Platform {}}}-declare module "svelte/elements" {- // eslint-disable-next-line @typescript-eslint/no-unused-varsinterface HTMLAttributes<T> {[key: `event-${string}`]: string | undefined | null;}diff --git a/src/lib/components/functional/Uploader.svelte b/src/lib/components/functional/Uploader.svelteindex c7fa037..a9a95c5 100644--- a/src/lib/components/functional/Uploader.svelte+++ b/src/lib/components/functional/Uploader.svelte@@ -4,9 +4,7 @@import clsx from "clsx";import { onMount } from "svelte";import { effects, files } from "$lib/store/index.svelte";- import { converters } from "$lib/converters";import { goto } from "$app/navigation";- import { page } from "$app/state";import { m } from "$lib/paraglide/messages";type Props = {@@ -23,7 +21,7 @@fileInput.click();};- const handleFileChange = (e: Event) => {+ const handleFileChange = () => {if (!fileInput) return;const oldLength = files.files.length;files.add(fileInput.files);diff --git a/src/lib/components/functional/popups/Dialog.svelte b/src/lib/components/functional/popups/Dialog.svelteindex f3065a4..b9cda8f 100644--- a/src/lib/components/functional/popups/Dialog.svelte+++ b/src/lib/components/functional/popups/Dialog.svelte@@ -1,7 +1,12 @@<script lang="ts">import { duration, fade, fly } from "$lib/util/animation";import { removeDialog } from "$lib/store/DialogProvider";- import { BanIcon, CheckIcon, InfoIcon, TriangleAlert } from "@lucide/svelte";+ import {+ BanIcon,+ CheckIcon,+ InfoIcon,+ TriangleAlert,+ } from "@lucide/svelte";import { quintOut } from "svelte/easing";import type { Dialog as DialogType } from "$lib/store/DialogProvider";diff --git a/src/lib/components/functional/popups/Modal.svelte b/src/lib/components/functional/popups/Modal.svelteindex d012496..d21f1f4 100644--- a/src/lib/components/functional/popups/Modal.svelte+++ b/src/lib/components/functional/popups/Modal.svelte@@ -1,7 +1,7 @@<script lang="ts">import { duration, fade } from "$lib/util/animation";+ import type { SearchIcon } from "@lucide/svelte";import { quintOut } from "svelte/easing";- import type { Icon as IconType } from "@lucide/svelte";interface ModalButton {text: string;@@ -10,10 +10,11 @@}interface Props {- icon: typeof IconType;+ icon: typeof SearchIcon;title: string;color: string;buttons: ModalButton[];+ // eslint-disable-next-line @typescript-eslint/no-explicit-anychildren: () => any;onclose?: () => void;}diff --git a/src/lib/components/layout/Footer.svelte b/src/lib/components/layout/Footer.svelteindex 02ef6bd..c861128 100644--- a/src/lib/components/layout/Footer.svelte+++ b/src/lib/components/layout/Footer.svelte@@ -1,7 +1,9 @@-<script lang="ts">+<script lang="ts" context="module">import { GITHUB_URL_VERT, DISCORD_URL } from "$lib/util/consts";import { m } from "$lib/paraglide/messages";+ declare const __COMMIT_HASH__: string | undefined;+const commitHash =__COMMIT_HASH__ && __COMMIT_HASH__ !== "unknown"? __COMMIT_HASH__diff --git a/src/lib/components/layout/Gradients.svelte b/src/lib/components/layout/Gradients.svelteindex 6db02e6..a816851 100644--- a/src/lib/components/layout/Gradients.svelte+++ b/src/lib/components/layout/Gradients.svelte@@ -2,11 +2,7 @@import { page } from "$app/state";import { duration, transition } from "$lib/util/animation";import VertVBig from "$lib/assets/vert-bg.svg?component";- import {- files,- gradientColor,- showGradient,- } from "$lib/store/index.svelte";+ import { files, gradientColor } from "$lib/store/index.svelte";import { quintOut } from "svelte/easing";import { fade } from "$lib/util/animation";import { Tween } from "svelte/motion";@@ -51,7 +47,8 @@},);- // svelte-ignore state_referenced_locally This is handled in the effect below+ // svelte-ignore state_referenced_locally+ // this is handled in the effect belowlet at = new Tween(color.at, {duration,easing: quintOut,diff --git a/src/lib/components/layout/Navbar/Base.svelte b/src/lib/components/layout/Navbar/Base.svelteindex 43d0a23..aa48407 100644--- a/src/lib/components/layout/Navbar/Base.svelte+++ b/src/lib/components/layout/Navbar/Base.svelte@@ -16,7 +16,6 @@SettingsIcon,SunIcon,UploadIcon,- type Icon as IconType,} from "@lucide/svelte";import { quintOut } from "svelte/easing";import Panel from "../../visual/Panel.svelte";@@ -30,7 +29,7 @@name: string;url: string;activeMatch: (pathname: string) => boolean;- icon: typeof IconType;+ icon: typeof UploadIcon;badge?: number;}[]>([diff --git a/src/lib/components/visual/Toast.svelte b/src/lib/components/visual/Toast.svelteindex 99cccef..5a066f8 100644--- a/src/lib/components/visual/Toast.svelte+++ b/src/lib/components/visual/Toast.svelte@@ -43,10 +43,12 @@let Icon = $derived(Icons[type]);let msg = $state<SvelteComponent<ToastProps>>();+ // eslint-disable-next-line @typescript-eslint/no-explicit-anyconst title = $derived(((msg as any)?.title as string) ?? "");// intentionally unused. this is so tailwind can generate the css for these colours as it doesn't detect if it's dynamically loaded// this would lead to the colours not being generated in the final css file by tailwind+ // eslint-disable-next-line @typescript-eslint/no-unused-varsconst colourVariants = ["border-accent-pink-alt","border-accent-red-alt",diff --git a/src/lib/components/visual/Tooltip.svelte b/src/lib/components/visual/Tooltip.svelteindex 493569a..4e22976 100644--- a/src/lib/components/visual/Tooltip.svelte+++ b/src/lib/components/visual/Tooltip.svelte@@ -1,6 +1,7 @@<script lang="ts">import { fade } from "$lib/util/animation";interface Props {+ // eslint-disable-next-line @typescript-eslint/no-explicit-anychildren: () => any;text: string;className?: string;@@ -9,7 +10,7 @@let { children, text, className, position = "top" }: Props = $props();let showTooltip = $state(false);- let timeout: NodeJS.Timeout | null = null;+ let timeout: ReturnType<typeof setTimeout> | null = null;let triggerElement: HTMLElement;let tooltipElement = $state<HTMLElement>();let tooltipPosition = $state({ x: 0, y: 0 });diff --git a/src/lib/converters/converter.svelte.ts b/src/lib/converters/converter.svelte.tsindex dc35583..902e19b 100644--- a/src/lib/converters/converter.svelte.ts+++ b/src/lib/converters/converter.svelte.ts@@ -7,11 +7,7 @@ import type {} from "$lib/types/conversion-settings";export type WorkerStatus =- | "not-ready"- | "downloading"- | "ready"- | "partially-ready"- | "error";+ "not-ready" | "downloading" | "ready" | "partially-ready" | "error";export class FormatInfo {public name: string;@@ -50,7 +46,7 @@ export class Converter {public status: WorkerStatus = $state("not-ready");public readonly reportsProgress: boolean = false;- private timeoutId?: NodeJS.Timeout;+ private timeoutId?: ReturnType<typeof setTimeout>;constructor(public readonly timeout: number = 10) {this.startTimeout();diff --git a/src/lib/converters/vertd/vertd.svelte.ts b/src/lib/converters/vertd/vertd.svelte.tsindex 7c38574..cd4dc91 100644--- a/src/lib/converters/vertd/vertd.svelte.ts+++ b/src/lib/converters/vertd/vertd.svelte.ts@@ -113,12 +113,7 @@ export const vertdFetch: {// ws typesexport type ConversionSpeed =- | "verySlow"- | "slower"- | "slow"- | "medium"- | "fast"- | "ultraFast";+ "verySlow" | "slower" | "slow" | "medium" | "fast" | "ultraFast";const vertdSpeedValues: ConversionSpeed[] = ["verySlow",diff --git a/src/lib/sections/about/Sponsors.svelte b/src/lib/sections/about/Sponsors.svelteindex d1282cb..c07d44c 100644--- a/src/lib/sections/about/Sponsors.svelte+++ b/src/lib/sections/about/Sponsors.svelte@@ -9,7 +9,7 @@import lily from "$lib/assets/lily.jpeg";let copied = false;- let timeoutId: NodeJS.Timeout | null = null;+ let timeoutId: ReturnType<typeof setTimeout> | null = null;function copyToClipboard() {try {diff --git a/src/lib/sections/settings/vertdSettings.svelte.ts b/src/lib/sections/settings/vertdSettings.svelte.tsindex 1f660d7..c8819f5 100644--- a/src/lib/sections/settings/vertdSettings.svelte.ts+++ b/src/lib/sections/settings/vertdSettings.svelte.ts@@ -8,10 +8,7 @@ const LOCATIONS = [];export type VertdInner =- | { type: "auto" }- | { type: "eu" }- | { type: "us" }- | { type: "custom" };+ { type: "auto" } | { type: "eu" } | { type: "us" } | { type: "custom" };export const getVertdCustomHeaders = (): Record<string, string> => {const raw = Settings.instance.settings.vertdCustomHeaders.trim();diff --git a/src/lib/store/index.svelte.ts b/src/lib/store/index.svelte.tsindex f7b9f97..ef7a0ff 100644--- a/src/lib/store/index.svelte.ts+++ b/src/lib/store/index.svelte.ts@@ -377,13 +377,7 @@ class Files {public add(file: FileList | null | undefined): void;public add(file:- | VertFile- | File- | VertFile[]- | File[]- | FileList- | null- | undefined,+ VertFile | File | VertFile[] | File[] | FileList | null | undefined,) {if (!file) return;if (Array.isArray(file) || file instanceof FileList) {diff --git a/src/lib/util/parse/dicom.ts b/src/lib/util/parse/dicom.tsindex fbb9c4e..7938bf2 100644--- a/src/lib/util/parse/dicom.ts+++ b/src/lib/util/parse/dicom.ts@@ -19,7 +19,9 @@ export const renderDicomToPng = async (input: Uint8Array) => {try {await renderer.render(image, 0);return new Uint8Array(- await (await canvas.convertToBlob({ type: "image/png" })).arrayBuffer(),+ await (+ await canvas.convertToBlob({ type: "image/png" })+ ).arrayBuffer(),);} finally {renderer.destroy();diff --git a/src/lib/util/parse/qoa.ts b/src/lib/util/parse/qoa.tsindex 1f53332..3fd2447 100644--- a/src/lib/util/parse/qoa.ts+++ b/src/lib/util/parse/qoa.ts@@ -82,13 +82,17 @@ export const encodeWav = (// copy pcm bytesconst uint8 = new Uint8Array(buffer);- uint8.set(new Uint8Array(pcm.buffer, pcm.byteOffset, pcm.byteLength), headerSize);+ uint8.set(+ new Uint8Array(pcm.buffer, pcm.byteOffset, pcm.byteLength),+ headerSize,+ );return uint8;};const writeString = (view: DataView, offset: number, str: string) => {- for (let i = 0; i < str.length; i++) view.setUint8(offset + i, str.charCodeAt(i));+ for (let i = 0; i < str.length; i++)+ view.setUint8(offset + i, str.charCodeAt(i));};const interleaveChannelData = (channelData: Float32Array[]) => {diff --git a/src/lib/util/toast.svelte.ts b/src/lib/util/toast.svelte.tsindex a7e3d75..a860228 100644--- a/src/lib/util/toast.svelte.ts+++ b/src/lib/util/toast.svelte.ts@@ -82,8 +82,7 @@ export type ComponentToastOptions<T> = BaseToastOptions & {};export type ToastOptions<T = unknown> =- | StringToastOptions- | ComponentToastOptions<T>;+ StringToastOptions | ComponentToastOptions<T>;// const toasts = writable<Toast[]>([]);diff --git a/static/manifest.json b/static/manifest.jsonindex 7f83167..d6ba108 100644--- a/static/manifest.json+++ b/static/manifest.json@@ -30,4 +30,4 @@"purpose": "maskable"}]-}\ No newline at end of file+}diff --git a/static/sw.js b/static/sw.jsindex 0b4991f..77ce5c3 100644--- a/static/sw.js+++ b/static/sw.js@@ -74,7 +74,7 @@ self.addEventListener("fetch", (event) => {return; // Let the request go through normally if not a target URL}- // else intercept request+ // else intercept requestevent.respondWith(caches.match(request).then((cachedResponse) => {if (cachedResponse) {@@ -124,9 +124,9 @@ self.addEventListener("fetch", (event) => {});self.addEventListener("message", (event) => {- if (!event.data) return;- const type = event.data.type;- const port = event.ports?.[0];+ if (!event.data) return;+ const type = event.data.type;+ const port = event.ports?.[0];if (type === "GET_CACHE_INFO") {if (!port) return;diff --git a/tsconfig.json b/tsconfig.jsonindex 0b2d886..c6403f2 100644--- a/tsconfig.json+++ b/tsconfig.json@@ -1,5 +1,6 @@{"extends": "./.svelte-kit/tsconfig.json",+ "types": ["node"],"compilerOptions": {"allowJs": true,"checkJs": true,