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": { "workers": {
"errors": { "errors": {
"general": "{dosya} dönüştürülürken hata oluştu: {message}", "general": "{file} 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}", "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.", "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.", "ffmpeg": "ffmpeg yüklenirken hata oluştu, bazı özellikler çalışmayabilir.",
"no_audio": "Ses akışı bulunamadı.", "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> ></div>
{/if} {/if}
<style> <style lang="postcss">
.dragoverlay { .dragoverlay {
animation: dragoverlay-animation 3s infinite linear; animation: dragoverlay-animation 3s infinite linear;
} }

View File

@ -9,7 +9,7 @@
let { children, text, className, position = "top" }: Props = $props(); let { children, text, className, position = "top" }: Props = $props();
let showTooltip = $state(false); let showTooltip = $state(false);
let timeout: number = 0; let timeout: NodeJS.Timeout | null = null;
let triggerElement: HTMLElement; let triggerElement: HTMLElement;
let tooltipElement = $state<HTMLElement>(); let tooltipElement = $state<HTMLElement>();
let tooltipPosition = $state({ x: 0, y: 0 }); let tooltipPosition = $state({ x: 0, y: 0 });
@ -51,7 +51,7 @@
function hide() { function hide() {
showTooltip = false; showTooltip = false;
clearTimeout(timeout); if (timeout) clearTimeout(timeout);
} }
$effect(() => { $effect(() => {
@ -94,7 +94,7 @@
</span> </span>
{/if} {/if}
<style> <style lang="postcss">
.tooltip { .tooltip {
--border-size: 1px; --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; @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 status: WorkerStatus = $state("not-ready");
public readonly reportsProgress: boolean = false; public readonly reportsProgress: boolean = false;
private timeoutId?: number; private timeoutId?: NodeJS.Timeout;
constructor(public readonly timeout: number = 10) { constructor(public readonly timeout: number = 10) {
this.startTimeout(); this.startTimeout();

View File

@ -9,7 +9,7 @@
import { ToastManager } from "$lib/toast/index.svelte"; import { ToastManager } from "$lib/toast/index.svelte";
let copied = false; let copied = false;
let timeoutId: number | undefined; let timeoutId: NodeJS.Timeout | null = null;
function copyToClipboard() { function copyToClipboard() {
try { try {
@ -73,7 +73,7 @@
</div> </div>
</Panel> </Panel>
<style> <style lang="postcss">
#email { #email {
@apply font-mono bg-gray-200 rounded-md px-1 text-inherit no-underline dynadark:bg-panel-alt dynadark:text-white; @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) { if (folders.length > 0) {
const file = new File( const file = new File(
[out_file.data], [new Uint8Array(Array.from(out_file.data))],
`${in_name.split(".").slice(0, -1).join(".")}${out_ext}`, `${in_name.split(".").slice(0, -1).join(".")}${out_ext}`,
); );
const filteredMap = new Map<string, PandocFsEntry>(); const filteredMap = new Map<string, PandocFsEntry>();
@ -279,7 +279,7 @@ const pandocToFiles = (entries: PandocEntries, parent = ""): File[] => {
const nestedFiles = pandocToFiles(entry.entries, fullPath); const nestedFiles = pandocToFiles(entry.entries, fullPath);
flattened.push(...nestedFiles); flattened.push(...nestedFiles);
} else { } else {
const file = new File([entry.data], fullPath); const file = new File([new Uint8Array(Array.from(entry.data))], fullPath);
flattened.push(file); flattened.push(file);
} }
} }

View File

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