style: apply prettier formatting to svelte and ts files
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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 ?? ""));
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user