Skip to content

Commit 6737afd

Browse files
committed
fix: format
1 parent c326572 commit 6737afd

57 files changed

Lines changed: 8029 additions & 4909 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pnpm-lock.yaml

Lines changed: 6999 additions & 3924 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/Header.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const currentPath = Astro.url.pathname;
1818
class="flex items-center gap-2 text-lg font-semibold"
1919
aria-label="Startseite"
2020
>
21-
<Icon name="lucide:sparkles" class="h-5 w-5 text-primary" />
21+
<Icon name="lucide:sparkles" class="text-primary h-5 w-5" />
2222
{name}
2323
</a>
2424

src/components/RootLayout.astro

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,14 @@ const ogImageURL = ogImage ? new URL(ogImage, Astro.site) : undefined;
5656
<script>
5757
if (import.meta.hot) {
5858
import.meta.hot.on("vite:beforeFullReload", (payload) => {
59-
const until = (window as Window & { __veSuppressReloadUntil?: number }).__veSuppressReloadUntil;
59+
const until = (
60+
window as Window & { __veSuppressReloadUntil?: number }
61+
).__veSuppressReloadUntil;
6062
if (!until || Date.now() >= until) return;
61-
if ("preventDefault" in payload && typeof payload.preventDefault === "function") {
63+
if (
64+
"preventDefault" in payload &&
65+
typeof payload.preventDefault === "function"
66+
) {
6267
payload.preventDefault();
6368
}
6469
// Reload stylesheets in place so CSS changes (new Tailwind utilities,

src/components/VisualEditorLoader.astro

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,35 @@ const { enabled = import.meta.env.PUBLIC_VISUAL_EDITOR === "true" } =
1010
{
1111
enabled && (
1212
<>
13-
<script is:inline>
14-
window.__VISUAL_EDITOR_CONFIG__ = { enabled: true };
15-
</script>
16-
<script is:inline src="https://cdn.sitedraft.de/editor.js" type="module" />
17-
<style is:inline>
18-
.ve-loading-indicator {
19-
position: fixed;
20-
bottom: 16px;
21-
right: 16px;
22-
width: 10px;
23-
height: 10px;
24-
background: #3b82f6;
25-
border-radius: 50%;
26-
z-index: 99999;
27-
pointer-events: none;
28-
animation: ve-fade-out 0.4s ease 1s forwards;
29-
}
30-
@keyframes ve-fade-out {
31-
to {
32-
opacity: 0;
13+
<script
14+
is:inline
15+
set:html={`window.__VISUAL_EDITOR_CONFIG__ = { enabled: true };`}
16+
/>
17+
<script
18+
is:inline
19+
src="https://cdn.sitedraft.de/editor.js"
20+
type="module"
21+
/>
22+
<style
23+
is:inline
24+
set:html={`
25+
.ve-loading-indicator {
26+
position: fixed;
27+
bottom: 16px;
28+
right: 16px;
29+
width: 10px;
30+
height: 10px;
31+
background: #3b82f6;
32+
border-radius: 50%;
33+
z-index: 99999;
34+
pointer-events: none;
35+
animation: ve-fade-out 0.4s ease 1s forwards;
3336
}
34-
}
35-
</style>
37+
@keyframes ve-fade-out {
38+
to { opacity: 0; }
39+
}
40+
`}
41+
/>
3642
<div class="ve-loading-indicator" />
3743
</>
3844
)

src/components/ui/accordion.tsx

Lines changed: 24 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import * as React from "react"
2-
import { Accordion as AccordionPrimitive } from "radix-ui"
1+
import * as React from "react";
2+
import { Accordion as AccordionPrimitive } from "radix-ui";
33

4-
import { cn } from "@/lib/utils"
5-
import { ChevronDownIcon, ChevronUpIcon } from "lucide-react"
4+
import { cn } from "@/lib/utils";
5+
import { ChevronDownIcon, ChevronUpIcon } from "lucide-react";
66

77
function Accordion({
88
className,
@@ -13,11 +13,11 @@ function Accordion({
1313
data-slot="accordion"
1414
className={cn(
1515
"flex w-full flex-col overflow-hidden rounded-2xl border",
16-
className
16+
className,
1717
)}
1818
{...props}
1919
/>
20-
)
20+
);
2121
}
2222

2323
function AccordionItem({
@@ -27,10 +27,10 @@ function AccordionItem({
2727
return (
2828
<AccordionPrimitive.Item
2929
data-slot="accordion-item"
30-
className={cn("not-last:border-b data-open:bg-muted/50", className)}
30+
className={cn("data-open:bg-muted/50 not-last:border-b", className)}
3131
{...props}
3232
/>
33-
)
33+
);
3434
}
3535

3636
function AccordionTrigger({
@@ -43,17 +43,23 @@ function AccordionTrigger({
4343
<AccordionPrimitive.Trigger
4444
data-slot="accordion-trigger"
4545
className={cn(
46-
"group/accordion-trigger relative flex flex-1 items-start justify-between gap-6 border border-transparent p-4 text-left text-sm font-medium transition-all outline-none hover:underline disabled:pointer-events-none disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground",
47-
className
46+
"group/accordion-trigger **:data-[slot=accordion-trigger-icon]:text-muted-foreground relative flex flex-1 items-start justify-between gap-6 border border-transparent p-4 text-left text-sm font-medium transition-all outline-none hover:underline disabled:pointer-events-none disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4",
47+
className,
4848
)}
4949
{...props}
5050
>
5151
{children}
52-
<ChevronDownIcon data-slot="accordion-trigger-icon" className="pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden" />
53-
<ChevronUpIcon data-slot="accordion-trigger-icon" className="pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline" />
52+
<ChevronDownIcon
53+
data-slot="accordion-trigger-icon"
54+
className="pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden"
55+
/>
56+
<ChevronUpIcon
57+
data-slot="accordion-trigger-icon"
58+
className="pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline"
59+
/>
5460
</AccordionPrimitive.Trigger>
5561
</AccordionPrimitive.Header>
56-
)
62+
);
5763
}
5864

5965
function AccordionContent({
@@ -64,19 +70,19 @@ function AccordionContent({
6470
return (
6571
<AccordionPrimitive.Content
6672
data-slot="accordion-content"
67-
className="overflow-hidden px-4 text-sm data-open:animate-accordion-down data-closed:animate-accordion-up"
73+
className="data-open:animate-accordion-down data-closed:animate-accordion-up overflow-hidden px-4 text-sm"
6874
{...props}
6975
>
7076
<div
7177
className={cn(
72-
"h-(--radix-accordion-content-height) pt-0 pb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4",
73-
className
78+
"[&_a]:hover:text-foreground h-(--radix-accordion-content-height) pt-0 pb-4 [&_a]:underline [&_a]:underline-offset-3 [&_p:not(:last-child)]:mb-4",
79+
className,
7480
)}
7581
>
7682
{children}
7783
</div>
7884
</AccordionPrimitive.Content>
79-
)
85+
);
8086
}
8187

82-
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent }
88+
export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };

src/components/ui/alert-dialog.tsx

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
import * as React from "react"
2-
import { AlertDialog as AlertDialogPrimitive } from "radix-ui"
1+
import * as React from "react";
2+
import { AlertDialog as AlertDialogPrimitive } from "radix-ui";
33

4-
import { cn } from "@/lib/utils"
5-
import { Button } from "@/components/ui/button"
4+
import { cn } from "@/lib/utils";
5+
import { Button } from "@/components/ui/button";
66

77
function AlertDialog({
88
...props
99
}: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {
10-
return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />
10+
return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />;
1111
}
1212

1313
function AlertDialogTrigger({
1414
...props
1515
}: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {
1616
return (
1717
<AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />
18-
)
18+
);
1919
}
2020

2121
function AlertDialogPortal({
2222
...props
2323
}: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {
2424
return (
2525
<AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />
26-
)
26+
);
2727
}
2828

2929
function AlertDialogOverlay({
@@ -34,20 +34,20 @@ function AlertDialogOverlay({
3434
<AlertDialogPrimitive.Overlay
3535
data-slot="alert-dialog-overlay"
3636
className={cn(
37-
"fixed inset-0 z-50 bg-black/30 duration-100 supports-backdrop-filter:backdrop-blur-sm data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0",
38-
className
37+
"data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0 fixed inset-0 z-50 bg-black/30 duration-100 supports-backdrop-filter:backdrop-blur-sm",
38+
className,
3939
)}
4040
{...props}
4141
/>
42-
)
42+
);
4343
}
4444

4545
function AlertDialogContent({
4646
className,
4747
size = "default",
4848
...props
4949
}: React.ComponentProps<typeof AlertDialogPrimitive.Content> & {
50-
size?: "default" | "sm"
50+
size?: "default" | "sm";
5151
}) {
5252
return (
5353
<AlertDialogPortal>
@@ -56,13 +56,13 @@ function AlertDialogContent({
5656
data-slot="alert-dialog-content"
5757
data-size={size}
5858
className={cn(
59-
"group/alert-dialog-content fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-6 rounded-4xl bg-popover p-6 text-popover-foreground shadow-xl ring-1 ring-foreground/5 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-md dark:ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95",
60-
className
59+
"group/alert-dialog-content bg-popover text-popover-foreground ring-foreground/5 dark:ring-foreground/10 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95 fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-6 rounded-4xl p-6 shadow-xl ring-1 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-md",
60+
className,
6161
)}
6262
{...props}
6363
/>
6464
</AlertDialogPortal>
65-
)
65+
);
6666
}
6767

6868
function AlertDialogHeader({
@@ -74,11 +74,11 @@ function AlertDialogHeader({
7474
data-slot="alert-dialog-header"
7575
className={cn(
7676
"grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]",
77-
className
77+
className,
7878
)}
7979
{...props}
8080
/>
81-
)
81+
);
8282
}
8383

8484
function AlertDialogFooter({
@@ -90,11 +90,11 @@ function AlertDialogFooter({
9090
data-slot="alert-dialog-footer"
9191
className={cn(
9292
"flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end",
93-
className
93+
className,
9494
)}
9595
{...props}
9696
/>
97-
)
97+
);
9898
}
9999

100100
function AlertDialogMedia({
@@ -105,12 +105,12 @@ function AlertDialogMedia({
105105
<div
106106
data-slot="alert-dialog-media"
107107
className={cn(
108-
"mb-2 inline-flex size-16 items-center justify-center rounded-full bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-8",
109-
className
108+
"bg-muted mb-2 inline-flex size-16 items-center justify-center rounded-full sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-8",
109+
className,
110110
)}
111111
{...props}
112112
/>
113-
)
113+
);
114114
}
115115

116116
function AlertDialogTitle({
@@ -122,11 +122,11 @@ function AlertDialogTitle({
122122
data-slot="alert-dialog-title"
123123
className={cn(
124124
"font-heading text-lg font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2",
125-
className
125+
className,
126126
)}
127127
{...props}
128128
/>
129-
)
129+
);
130130
}
131131

132132
function AlertDialogDescription({
@@ -137,12 +137,12 @@ function AlertDialogDescription({
137137
<AlertDialogPrimitive.Description
138138
data-slot="alert-dialog-description"
139139
className={cn(
140-
"text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground",
141-
className
140+
"text-muted-foreground *:[a]:hover:text-foreground text-sm text-balance md:text-pretty *:[a]:underline *:[a]:underline-offset-3",
141+
className,
142142
)}
143143
{...props}
144144
/>
145-
)
145+
);
146146
}
147147

148148
function AlertDialogAction({
@@ -160,7 +160,7 @@ function AlertDialogAction({
160160
{...props}
161161
/>
162162
</Button>
163-
)
163+
);
164164
}
165165

166166
function AlertDialogCancel({
@@ -178,7 +178,7 @@ function AlertDialogCancel({
178178
{...props}
179179
/>
180180
</Button>
181-
)
181+
);
182182
}
183183

184184
export {
@@ -194,4 +194,4 @@ export {
194194
AlertDialogPortal,
195195
AlertDialogTitle,
196196
AlertDialogTrigger,
197-
}
197+
};

0 commit comments

Comments
 (0)