style: apply prettier formatting to svelte and ts files
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -145,7 +145,12 @@
|
|||||||
{#if isViewerOpen}
|
{#if isViewerOpen}
|
||||||
<div class="fixed inset-0 z-50 flex items-center justify-center animate-fade-in">
|
<div class="fixed inset-0 z-50 flex items-center justify-center animate-fade-in">
|
||||||
<!-- Backdrop -->
|
<!-- 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 -->
|
<!-- Viewer Content -->
|
||||||
<div class="relative w-[90vw] h-[90vh] flex flex-col animate-slide-up">
|
<div class="relative w-[90vw] h-[90vh] flex flex-col animate-slide-up">
|
||||||
|
|||||||
@@ -963,7 +963,8 @@ export default {
|
|||||||
avatar: "Avatar",
|
avatar: "Avatar",
|
||||||
banner: "Banner",
|
banner: "Banner",
|
||||||
model_photo: "Model photo",
|
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_uploaded: "Model photo uploaded",
|
||||||
model_photo_failed: "Model photo upload failed",
|
model_photo_failed: "Model photo upload failed",
|
||||||
is_admin: "Administrator",
|
is_admin: "Administrator",
|
||||||
|
|||||||
@@ -25,7 +25,11 @@
|
|||||||
let tags = $state<string[]>(untrack(() => data.article.tags ?? []));
|
let tags = $state<string[]>(untrack(() => data.article.tags ?? []));
|
||||||
let featured = $state(untrack(() => data.article.featured ?? false));
|
let featured = $state(untrack(() => data.article.featured ?? false));
|
||||||
let publishDate = $state(
|
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 imageId = $state<string | null>(untrack(() => data.article.image ?? null));
|
||||||
let authorId = $state(untrack(() => data.article.author?.id ?? ""));
|
let authorId = $state(untrack(() => data.article.author?.id ?? ""));
|
||||||
|
|||||||
@@ -23,7 +23,9 @@
|
|||||||
let premium = $state(untrack(() => data.video.premium ?? false));
|
let premium = $state(untrack(() => data.video.premium ?? false));
|
||||||
let featured = $state(untrack(() => data.video.featured ?? false));
|
let featured = $state(untrack(() => data.video.featured ?? false));
|
||||||
let uploadDate = $state(
|
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 imageId = $state<string | null>(untrack(() => data.video.image ?? null));
|
||||||
let movieId = $state<string | null>(untrack(() => data.video.movie ?? null));
|
let movieId = $state<string | null>(untrack(() => data.video.movie ?? null));
|
||||||
|
|||||||
@@ -493,8 +493,10 @@
|
|||||||
seek(percentage);
|
seek(percentage);
|
||||||
}}
|
}}
|
||||||
onkeydown={(e) => {
|
onkeydown={(e) => {
|
||||||
if (e.key === "ArrowRight") seek(((playbackProgress + 1) / data.recording.duration) * 100);
|
if (e.key === "ArrowRight")
|
||||||
else if (e.key === "ArrowLeft") seek(((playbackProgress - 1) / data.recording.duration) * 100);
|
seek(((playbackProgress + 1) / data.recording.duration) * 100);
|
||||||
|
else if (e.key === "ArrowLeft")
|
||||||
|
seek(((playbackProgress - 1) / data.recording.duration) * 100);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in New Issue
Block a user