Updated Prettier formatting
CI / Docker Lint (push) Successful in 29s

This commit is contained in:
2026-01-13 15:00:22 +01:00
parent 90fa82234d
commit 899d27f468
13 changed files with 44 additions and 45 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{ {
"endOfLine": "lf", "endOfLine": "auto",
"plugins": ["prettier-plugin-tailwindcss"], "plugins": ["prettier-plugin-tailwindcss"],
"tailwindStylesheet": "./src/index.css" "tailwindStylesheet": "./src/index.css"
} }
+1 -1
View File
@@ -18,4 +18,4 @@
"hooks": "@/hooks" "hooks": "@/hooks"
}, },
"iconLibrary": "lucide" "iconLibrary": "lucide"
} }
+1 -1
View File
@@ -1,5 +1,5 @@
export default { export default {
plugins: { plugins: {
'@tailwindcss/postcss': {}, "@tailwindcss/postcss": {},
}, },
}; };
+2 -1
View File
@@ -23,7 +23,8 @@ export function useAPIRoomAvailability(filter: SearchPeriodRequest | null) {
export function useAPIRoomPrices(filter: SearchPeriodRequest | null) { export function useAPIRoomPrices(filter: SearchPeriodRequest | null) {
const { data, isLoading, error } = useSWR( const { data, isLoading, error } = useSWR(
filter ? ["/api/search/prices", filter] : null, filter ? ["/api/search/prices", filter] : null,
([url, request]) => fetcherUnwraperWithFilter<RoomPriceSearchResponse[]>(url, request), ([url, request]) =>
fetcherUnwraperWithFilter<RoomPriceSearchResponse[]>(url, request),
); );
return { return {
+2 -2
View File
@@ -41,7 +41,7 @@ function AppFooter() {
isMailLoading; isMailLoading;
const getCompanyElement = () => { const getCompanyElement = () => {
if (isLoading) { if (isLoading) {
return <Skeleton className="h-[64px]" />; return <Skeleton className="h-16" />;
} }
return ( return (
@@ -63,7 +63,7 @@ function AppFooter() {
const getContactElement = () => { const getContactElement = () => {
if (isLoading) { if (isLoading) {
return <Skeleton className="w-[64px]" />; return <Skeleton className="w-16" />;
} }
return ( return (
+22 -22
View File
@@ -1,13 +1,13 @@
import * as React from "react" import * as React from "react";
import { AlertDialog as AlertDialogPrimitive } from "radix-ui" import { AlertDialog as AlertDialogPrimitive } from "radix-ui";
import { cn } from "@/lib/utils" import { cn } from "@/lib/utils";
import { buttonVariants } from "@/components/ui/button" import { buttonVariants } from "@/components/ui/button";
function AlertDialog({ function AlertDialog({
...props ...props
}: React.ComponentProps<typeof AlertDialogPrimitive.Root>) { }: React.ComponentProps<typeof AlertDialogPrimitive.Root>) {
return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} /> return <AlertDialogPrimitive.Root data-slot="alert-dialog" {...props} />;
} }
function AlertDialogTrigger({ function AlertDialogTrigger({
@@ -15,7 +15,7 @@ function AlertDialogTrigger({
}: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) { }: React.ComponentProps<typeof AlertDialogPrimitive.Trigger>) {
return ( return (
<AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} /> <AlertDialogPrimitive.Trigger data-slot="alert-dialog-trigger" {...props} />
) );
} }
function AlertDialogPortal({ function AlertDialogPortal({
@@ -23,7 +23,7 @@ function AlertDialogPortal({
}: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) { }: React.ComponentProps<typeof AlertDialogPrimitive.Portal>) {
return ( return (
<AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} /> <AlertDialogPrimitive.Portal data-slot="alert-dialog-portal" {...props} />
) );
} }
function AlertDialogOverlay({ function AlertDialogOverlay({
@@ -34,12 +34,12 @@ function AlertDialogOverlay({
<AlertDialogPrimitive.Overlay <AlertDialogPrimitive.Overlay
data-slot="alert-dialog-overlay" data-slot="alert-dialog-overlay"
className={cn( className={cn(
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50", "fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:animate-in data-[state=open]:fade-in-0",
className className,
)} )}
{...props} {...props}
/> />
) );
} }
function AlertDialogContent({ function AlertDialogContent({
@@ -52,13 +52,13 @@ function AlertDialogContent({
<AlertDialogPrimitive.Content <AlertDialogPrimitive.Content
data-slot="alert-dialog-content" data-slot="alert-dialog-content"
className={cn( className={cn(
"bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg", "fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 sm:max-w-lg",
className className,
)} )}
{...props} {...props}
/> />
</AlertDialogPortal> </AlertDialogPortal>
) );
} }
function AlertDialogHeader({ function AlertDialogHeader({
@@ -71,7 +71,7 @@ function AlertDialogHeader({
className={cn("flex flex-col gap-2 text-center sm:text-left", className)} className={cn("flex flex-col gap-2 text-center sm:text-left", className)}
{...props} {...props}
/> />
) );
} }
function AlertDialogFooter({ function AlertDialogFooter({
@@ -83,11 +83,11 @@ function AlertDialogFooter({
data-slot="alert-dialog-footer" data-slot="alert-dialog-footer"
className={cn( className={cn(
"flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
className className,
)} )}
{...props} {...props}
/> />
) );
} }
function AlertDialogTitle({ function AlertDialogTitle({
@@ -100,7 +100,7 @@ function AlertDialogTitle({
className={cn("text-lg font-semibold", className)} className={cn("text-lg font-semibold", className)}
{...props} {...props}
/> />
) );
} }
function AlertDialogDescription({ function AlertDialogDescription({
@@ -110,10 +110,10 @@ function AlertDialogDescription({
return ( return (
<AlertDialogPrimitive.Description <AlertDialogPrimitive.Description
data-slot="alert-dialog-description" data-slot="alert-dialog-description"
className={cn("text-muted-foreground text-sm", className)} className={cn("text-sm text-muted-foreground", className)}
{...props} {...props}
/> />
) );
} }
function AlertDialogAction({ function AlertDialogAction({
@@ -125,7 +125,7 @@ function AlertDialogAction({
className={cn(buttonVariants(), className)} className={cn(buttonVariants(), className)}
{...props} {...props}
/> />
) );
} }
function AlertDialogCancel({ function AlertDialogCancel({
@@ -137,7 +137,7 @@ function AlertDialogCancel({
className={cn(buttonVariants({ variant: "outline" }), className)} className={cn(buttonVariants({ variant: "outline" }), className)}
{...props} {...props}
/> />
) );
} }
export { export {
@@ -152,4 +152,4 @@ export {
AlertDialogDescription, AlertDialogDescription,
AlertDialogAction, AlertDialogAction,
AlertDialogCancel, AlertDialogCancel,
} };
+3 -1
View File
@@ -102,7 +102,9 @@ function FormLabel({
); );
} }
function FormControl({ ...props }: React.ComponentProps<typeof SlotPrimitive.Slot>) { function FormControl({
...props
}: React.ComponentProps<typeof SlotPrimitive.Slot>) {
const { error, formItemId, formDescriptionId, formMessageId } = const { error, formItemId, formDescriptionId, formMessageId } =
useFormField(); useFormField();
+3 -7
View File
@@ -1,11 +1,9 @@
@import 'tailwindcss'; @import "tailwindcss";
@import "tw-animate-css"; @import "tw-animate-css";
@custom-variant dark (&:is(.dark *)); @custom-variant dark (&:is(.dark *));
@theme inline { @theme inline {
--radius-sm: calc(var(--radius) - 4px); --radius-sm: calc(var(--radius) - 4px);
--radius-md: calc(var(--radius) - 2px); --radius-md: calc(var(--radius) - 2px);
@@ -78,7 +76,6 @@
} }
:root { :root {
--radius: 0.625rem; --radius: 0.625rem;
--background: oklch(1 0 0); --background: oklch(1 0 0);
@@ -145,7 +142,6 @@
} }
.dark { .dark {
--background: oklch(0.147 0.004 49.25); --background: oklch(0.147 0.004 49.25);
--foreground: oklch(0.985 0.001 106.423); --foreground: oklch(0.985 0.001 106.423);
@@ -221,8 +217,8 @@
/* SomniaRooms Extended CSS */ /* SomniaRooms Extended CSS */
@utility grid-cols-40/60 { @utility grid-cols-40/60 {
grid-template-columns: 40% 60%; grid-template-columns: 40% 60%;
} }
@utility grid-cols-60/40 { @utility grid-cols-60/40 {
grid-template-columns: 60% 40%; grid-template-columns: 60% 40%;
} }
+3 -3
View File
@@ -1,6 +1,6 @@
import { clsx, type ClassValue } from "clsx" import { clsx, type ClassValue } from "clsx";
import { twMerge } from "tailwind-merge" import { twMerge } from "tailwind-merge";
export function cn(...inputs: ClassValue[]) { export function cn(...inputs: ClassValue[]) {
return twMerge(clsx(inputs)) return twMerge(clsx(inputs));
} }
+1 -1
View File
@@ -18,4 +18,4 @@ export type RoomCategoryBedType = {
amount: number; amount: number;
bedTypeName: string; bedTypeName: string;
bedTypeIcon: string; bedTypeIcon: string;
} };
+3 -1
View File
@@ -28,7 +28,9 @@ export function isValidSearchFilter(
return false; return false;
} }
export function getNightCountFromSearchFilter(sf: SearchFilter | null): number | null { export function getNightCountFromSearchFilter(
sf: SearchFilter | null,
): number | null {
if (!isValidSearchFilter(sf)) { if (!isValidSearchFilter(sf)) {
return null; return null;
} }
+1 -3
View File
@@ -3,9 +3,7 @@
// ... // ...
"baseUrl": ".", "baseUrl": ".",
"paths": { "paths": {
"@/*": [ "@/*": ["./src/*"]
"./src/*"
]
} }
// ... // ...
} }
+1 -1
View File
@@ -1,7 +1,7 @@
import { defineConfig } from "vite"; import { defineConfig } from "vite";
import react from "@vitejs/plugin-react-swc"; import react from "@vitejs/plugin-react-swc";
import path from "path"; import path from "path";
import tailwindcss from "@tailwindcss/vite" import tailwindcss from "@tailwindcss/vite";
// https://vitejs.dev/config/ // https://vitejs.dev/config/
export default defineConfig({ export default defineConfig({