style: apply prettier formatting to svelte and ts files
Some checks failed
Build and Push Backend Image / build (push) Successful in 1m3s
Build and Push Frontend Image / build (push) Has been cancelled

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-08 11:49:43 +01:00
parent 627ce75719
commit af4a11b73c
5 changed files with 20 additions and 6 deletions

View File

@@ -25,7 +25,11 @@
let tags = $state<string[]>(untrack(() => data.article.tags ?? []));
let featured = $state(untrack(() => data.article.featured ?? false));
let publishDate = $state(
untrack(() => data.article.publish_date ? new Date(data.article.publish_date).toISOString().slice(0, 16) : ""),
untrack(() =>
data.article.publish_date
? new Date(data.article.publish_date).toISOString().slice(0, 16)
: "",
),
);
let imageId = $state<string | null>(untrack(() => data.article.image ?? null));
let authorId = $state(untrack(() => data.article.author?.id ?? ""));

View File

@@ -23,7 +23,9 @@
let premium = $state(untrack(() => data.video.premium ?? false));
let featured = $state(untrack(() => data.video.featured ?? false));
let uploadDate = $state(
untrack(() => data.video.upload_date ? new Date(data.video.upload_date).toISOString().slice(0, 16) : ""),
untrack(() =>
data.video.upload_date ? new Date(data.video.upload_date).toISOString().slice(0, 16) : "",
),
);
let imageId = $state<string | null>(untrack(() => data.video.image ?? null));
let movieId = $state<string | null>(untrack(() => data.video.movie ?? null));

View File

@@ -493,8 +493,10 @@
seek(percentage);
}}
onkeydown={(e) => {
if (e.key === "ArrowRight") seek(((playbackProgress + 1) / data.recording.duration) * 100);
else if (e.key === "ArrowLeft") seek(((playbackProgress - 1) / data.recording.duration) * 100);
if (e.key === "ArrowRight")
seek(((playbackProgress + 1) / data.recording.duration) * 100);
else if (e.key === "ArrowLeft")
seek(((playbackProgress - 1) / data.recording.duration) * 100);
}}
>
<div