fix: solve svelte-check errors & warnings

also fixed turkish's variables - make sure to not change anything inside {}'s!
This commit is contained in:
Maya 2025-10-27 17:46:52 +03:00
parent 6411a0b5b0
commit e4f2c80913
No known key found for this signature in database
7 changed files with 13 additions and 13 deletions

View File

@ -228,12 +228,12 @@
},
"workers": {
"errors": {
"general": "{dosya} dönüştürülürken hata oluştu: {message}",
"cancel": "{dosya} için dönüştürme işlemi iptal edilirken hata oluştu: {message}",
"general": "{file} dönüştürülürken hata oluştu: {message}",
"cancel": "{file} için dönüştürme işlemi iptal edilirken hata oluştu: {message}",
"magick": "Magick işlemi sırasında hata oluştu, görsel dönüştürme işlemi beklendiği gibi çalışmayabilir.",
"ffmpeg": "ffmpeg yüklenirken hata oluştu, bazı özellikler çalışmayabilir.",
"no_audio": "Ses akışı bulunamadı.",
"invalid_rate": "Geçersiz örnekleme hızı: {hız}Hz"
"invalid_rate": "Geçersiz örnekleme hızı: {rate}Hz"
}
}
}

View File

@ -17,7 +17,7 @@
></div>
{/if}
<style>
<style lang="postcss">
.dragoverlay {
animation: dragoverlay-animation 3s infinite linear;
}

View File

@ -9,7 +9,7 @@
let { children, text, className, position = "top" }: Props = $props();
let showTooltip = $state(false);
let timeout: number = 0;
let timeout: NodeJS.Timeout | null = null;
let triggerElement: HTMLElement;
let tooltipElement = $state<HTMLElement>();
let tooltipPosition = $state({ x: 0, y: 0 });
@ -51,7 +51,7 @@
function hide() {
showTooltip = false;
clearTimeout(timeout);
if (timeout) clearTimeout(timeout);
}
$effect(() => {
@ -94,7 +94,7 @@
</span>
{/if}
<style>
<style lang="postcss">
.tooltip {
--border-size: 1px;
@apply fixed bg-panel-alt text-foreground border border-stone-400 dynadark:border-white drop-shadow-lg text-xs rounded-full pointer-events-none z-[999] max-w-xs break-words whitespace-normal;

View File

@ -38,7 +38,7 @@ export class Converter {
public status: WorkerStatus = $state("not-ready");
public readonly reportsProgress: boolean = false;
private timeoutId?: number;
private timeoutId?: NodeJS.Timeout;
constructor(public readonly timeout: number = 10) {
this.startTimeout();

View File

@ -9,7 +9,7 @@
import { ToastManager } from "$lib/toast/index.svelte";
let copied = false;
let timeoutId: number | undefined;
let timeoutId: NodeJS.Timeout | null = null;
function copyToClipboard() {
try {
@ -73,7 +73,7 @@
</div>
</Panel>
<style>
<style lang="postcss">
#email {
@apply font-mono bg-gray-200 rounded-md px-1 text-inherit no-underline dynadark:bg-panel-alt dynadark:text-white;
}

View File

@ -228,7 +228,7 @@ async function pandoc(
);
if (folders.length > 0) {
const file = new File(
[out_file.data],
[new Uint8Array(Array.from(out_file.data))],
`${in_name.split(".").slice(0, -1).join(".")}${out_ext}`,
);
const filteredMap = new Map<string, PandocFsEntry>();
@ -279,7 +279,7 @@ const pandocToFiles = (entries: PandocEntries, parent = ""): File[] => {
const nestedFiles = pandocToFiles(entry.entries, fullPath);
flattened.push(...nestedFiles);
} else {
const file = new File([entry.data], fullPath);
const file = new File([new Uint8Array(Array.from(entry.data))], fullPath);
flattened.push(file);
}
}

View File

@ -293,7 +293,7 @@
</div>
</div>
<style>
<style lang="postcss">
.file-category-card {
@apply bg-panel rounded-2xl p-5 shadow-panel relative;
}