style: auto-format codebase with Prettier

Applied formatting to 1487+ files using pnpm format:write
  - TypeScript/JavaScript files
  - Svelte components
  - Astro pages
  - JSON configs
  - Markdown docs

  13 files still need manual review (Astro JSX comments)
This commit is contained in:
Wuesteon 2025-11-27 18:33:16 +01:00
parent 0241f5554c
commit d36b321d9d
3952 changed files with 661498 additions and 739751 deletions

View file

@ -24,11 +24,11 @@
published: 'Live',
beta: 'Beta',
development: 'In Development',
planning: 'Planned'
planning: 'Planned',
},
comingSoonLabel = 'Coming Soon',
openAppLabel = 'Open App',
onAppClick
onAppClick,
}: Props = $props();
let selectedApp = $state<number | null>(null);
@ -41,7 +41,7 @@
published: '#4CAF50',
beta: '#FFD700',
development: '#FF9800',
planning: '#F44336'
planning: '#F44336',
};
return colors[status];
}
@ -91,7 +91,7 @@
const scrollPosition = appIndex * cardWidth;
modalScrollContainer?.scrollTo({
left: scrollPosition,
behavior: 'smooth'
behavior: 'smooth',
});
}, 50);
}
@ -107,21 +107,32 @@
</h3>
<div class="relative">
<div class="flex gap-4 justify-center overflow-x-auto pb-6 scrollbar-hide snap-x snap-mandatory scroll-smooth px-4 py-4" style="perspective: 1000px;">
<div
class="flex gap-4 justify-center overflow-x-auto pb-6 scrollbar-hide snap-x snap-mandatory scroll-smooth px-4 py-4"
style="perspective: 1000px;"
>
{#each apps as app, index}
<button
class="group relative flex-shrink-0 rounded-xl p-5 cursor-pointer snap-center transition-transform hover:scale-105"
style="width: 160px; background-color: {isDark ? 'rgba(255, 255, 255, 0.08)' : 'rgba(255, 255, 255, 0.7)'}; backdrop-filter: blur(10px); border: 1px solid {isDark ? 'rgba(255, 255, 255, 0.1)' : 'rgba(0, 0, 0, 0.1)'};"
onmouseenter={() => hoveredApp = index}
onmouseleave={() => hoveredApp = null}
style="width: 160px; background-color: {isDark
? 'rgba(255, 255, 255, 0.08)'
: 'rgba(255, 255, 255, 0.7)'}; backdrop-filter: blur(10px); border: 1px solid {isDark
? 'rgba(255, 255, 255, 0.1)'
: 'rgba(0, 0, 0, 0.1)'};"
onmouseenter={() => (hoveredApp = index)}
onmouseleave={() => (hoveredApp = null)}
onclick={() => openModal(index)}
>
<div
class="absolute top-3 right-3 w-3 h-3 rounded-full status-indicator"
style="background-color: {getStatusColor(app.status)}; box-shadow: 0 0 8px {getStatusColor(app.status)};"
style="background-color: {getStatusColor(
app.status
)}; box-shadow: 0 0 8px {getStatusColor(app.status)};"
></div>
<div class="mb-2 flex h-20 w-20 mx-auto items-center justify-center rounded-xl transition-transform group-hover:scale-110">
<div
class="mb-2 flex h-20 w-20 mx-auto items-center justify-center rounded-xl transition-transform group-hover:scale-110"
>
{#if app.icon}
<img src={app.icon} alt={app.name} class="w-16 h-16 object-contain" />
{:else}
@ -162,7 +173,12 @@
aria-label="Close modal"
>
<svg class="h-8 w-8 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M6 18L18 6M6 6l12 12"
/>
</svg>
</button>
@ -174,22 +190,42 @@
{#each apps as app, index}
<div
class="flex-shrink-0 rounded-3xl p-8 snap-center shadow-2xl relative"
style="min-width: 360px; max-width: 360px; background-color: {hoveredApp === index ? (isDark ? '#2A2A2A' : '#F5F5F5') : (isDark ? '#1E1E1E' : '#ffffff')}; border: 3px solid {app.color}40; transform: perspective(1000px) rotateX({cardRotations[index]?.rotateX || 0}deg) rotateY({cardRotations[index]?.rotateY || 0}deg); transform-style: preserve-3d; transition: transform 0.1s ease-out, background-color 0.2s ease-out;"
onclick={(e) => { e.stopPropagation(); selectedApp = index; }}
onmouseenter={() => hoveredApp = index}
style="min-width: 360px; max-width: 360px; background-color: {hoveredApp === index
? isDark
? '#2A2A2A'
: '#F5F5F5'
: isDark
? '#1E1E1E'
: '#ffffff'}; border: 3px solid {app.color}40; transform: perspective(1000px) rotateX({cardRotations[
index
]?.rotateX || 0}deg) rotateY({cardRotations[index]?.rotateY ||
0}deg); transform-style: preserve-3d; transition: transform 0.1s ease-out, background-color 0.2s ease-out;"
onclick={(e) => {
e.stopPropagation();
selectedApp = index;
}}
onmouseenter={() => (hoveredApp = index)}
onmousemove={(e) => handleCardMouseMove(e, index, e.currentTarget)}
onmouseleave={() => { handleCardMouseLeave(index); hoveredApp = null; }}
onmouseleave={() => {
handleCardMouseLeave(index);
hoveredApp = null;
}}
onkeydown={() => {}}
role="button"
tabindex="0"
>
<div class="absolute top-4 right-4 flex items-center gap-2">
<span class="text-xs font-medium" style="color: {isDark ? 'rgba(255, 255, 255, 0.7)' : 'rgba(0, 0, 0, 0.7)'};">
<span
class="text-xs font-medium"
style="color: {isDark ? 'rgba(255, 255, 255, 0.7)' : 'rgba(0, 0, 0, 0.7)'};"
>
{getStatusLabel(app.status)}
</span>
<div
class="w-4 h-4 rounded-full status-indicator"
style="background-color: {getStatusColor(app.status)}; box-shadow: 0 0 12px {getStatusColor(app.status)};"
style="background-color: {getStatusColor(
app.status
)}; box-shadow: 0 0 12px {getStatusColor(app.status)};"
></div>
</div>
@ -204,7 +240,10 @@
</div>
{/if}
<h3 class="text-2xl font-bold mb-2 text-center" style="color: {isDark ? '#ffffff' : '#000000'};">
<h3
class="text-2xl font-bold mb-2 text-center"
style="color: {isDark ? '#ffffff' : '#000000'};"
>
{app.name}
</h3>
@ -212,7 +251,10 @@
{app.description}
</p>
<p class="text-sm leading-relaxed mb-6 text-center" style="color: {isDark ? 'rgba(255, 255, 255, 0.7)' : 'rgba(0, 0, 0, 0.7)'};">
<p
class="text-sm leading-relaxed mb-6 text-center"
style="color: {isDark ? 'rgba(255, 255, 255, 0.7)' : 'rgba(0, 0, 0, 0.7)'};"
>
{app.longDescription}
</p>
@ -220,7 +262,11 @@
{#if app.comingSoon}
<div
class="inline-block rounded-full px-5 py-2.5 text-sm font-medium"
style="background-color: {isDark ? 'rgba(255, 255, 255, 0.1)' : 'rgba(0, 0, 0, 0.1)'}; color: {isDark ? 'rgba(255, 255, 255, 0.5)' : 'rgba(0, 0, 0, 0.5)'};"
style="background-color: {isDark
? 'rgba(255, 255, 255, 0.1)'
: 'rgba(0, 0, 0, 0.1)'}; color: {isDark
? 'rgba(255, 255, 255, 0.5)'
: 'rgba(0, 0, 0, 0.5)'};"
>
{comingSoonLabel}
</div>
@ -228,7 +274,10 @@
<button
class="rounded-xl px-8 py-3 text-sm font-semibold transition-all hover:opacity-80 border-2 text-white"
style="background-color: {app.color}60; border-color: {app.color};"
onclick={(e) => { e.stopPropagation(); handleAppAction(app, index); }}
onclick={(e) => {
e.stopPropagation();
handleAppAction(app, index);
}}
>
{openAppLabel}
</button>
@ -256,7 +305,8 @@
}
@keyframes pulse {
0%, 100% {
0%,
100% {
opacity: 1;
}
50% {

View file

@ -67,7 +67,7 @@
message,
confirmLabel = 'Confirm',
cancelLabel = 'Cancel',
loading = false
loading = false,
}: Props = $props();
const variantConfig: Record<
@ -77,18 +77,18 @@
danger: {
iconName: 'alert-triangle',
iconColor: 'text-red-500',
buttonVariant: 'danger'
buttonVariant: 'danger',
},
warning: {
iconName: 'alert-circle',
iconColor: 'text-yellow-500',
buttonVariant: 'primary'
buttonVariant: 'primary',
},
info: {
iconName: 'info',
iconColor: 'text-blue-500',
buttonVariant: 'primary'
}
buttonVariant: 'primary',
},
};
const config = $derived(variantConfig[variant]);

View file

@ -68,7 +68,7 @@
loading = false,
error = null,
maxWidth = 'md',
submitDisabled = false
submitDisabled = false,
}: Props = $props();
async function handleSubmit(e: Event) {
@ -87,7 +87,9 @@
<form onsubmit={handleSubmit} onkeydown={handleKeydown} class="space-y-4">
<!-- Error message -->
{#if error}
<div class="rounded-lg bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 p-3">
<div
class="rounded-lg bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 p-3"
>
<Text variant="small" class="text-red-600 dark:text-red-400">
{error}
</Text>

View file

@ -14,7 +14,16 @@
showHeader?: boolean;
}
let { visible, onClose, title, icon, children, footer, maxWidth = 'lg', showHeader = true }: Props = $props();
let {
visible,
onClose,
title,
icon,
children,
footer,
maxWidth = 'lg',
showHeader = true,
}: Props = $props();
const maxWidthClasses = {
sm: 'max-w-sm',
@ -22,7 +31,7 @@
lg: 'max-w-lg',
xl: 'max-w-xl',
'2xl': 'max-w-2xl',
'3xl': 'max-w-3xl'
'3xl': 'max-w-3xl',
};
function handleBackdropClick(e: MouseEvent) {
@ -54,7 +63,9 @@
<!-- Modal Content -->
<!-- svelte-ignore a11y_no_static_element_interactions -->
<div
class="relative flex max-h-[90vh] w-full {maxWidthClasses[maxWidth]} flex-col rounded-xl border border-theme bg-menu shadow-xl"
class="relative flex max-h-[90vh] w-full {maxWidthClasses[
maxWidth
]} flex-col rounded-xl border border-theme bg-menu shadow-xl"
onclick={(e) => e.stopPropagation()}
onkeydown={(e) => e.stopPropagation()}
>