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

@@ -145,7 +145,12 @@
{#if isViewerOpen}
<div class="fixed inset-0 z-50 flex items-center justify-center animate-fade-in">
<!-- Backdrop -->
<button type="button" class="absolute inset-0 bg-black/95 backdrop-blur-xl cursor-default" onclick={closeViewer} aria-label="Close viewer"></button>
<button
type="button"
class="absolute inset-0 bg-black/95 backdrop-blur-xl cursor-default"
onclick={closeViewer}
aria-label="Close viewer"
></button>
<!-- Viewer Content -->
<div class="relative w-[90vw] h-[90vh] flex flex-col animate-slide-up">

View File

@@ -963,7 +963,8 @@ export default {
avatar: "Avatar",
banner: "Banner",
model_photo: "Model photo",
model_photo_hint: "Used in model cards and on the model profile page. Avatar is used for comments and article authors.",
model_photo_hint:
"Used in model cards and on the model profile page. Avatar is used for comments and article authors.",
model_photo_uploaded: "Model photo uploaded",
model_photo_failed: "Model photo upload failed",
is_admin: "Administrator",

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