Skip to content

An AI-powered search engine with a generative UI

fix: apply Prettier formatting to all files

Yoshiki Miura2d86cb424d46
diff --git a/app/api/advanced-search/route.ts b/app/api/advanced-search/route.ts
index 18798722..a53addd5 100644
--- a/app/api/advanced-search/route.ts
+++ b/app/api/advanced-search/route.ts
@@ -11,7 +11,8 @@ import {
SearchResultItem,
SearXNGResponse,
SearXNGResult,
- SearXNGSearchResults} from '@/lib/types'
+ SearXNGSearchResults
+} from '@/lib/types'
/**
* Maximum number of results to fetch from SearXNG.
diff --git a/components/chat.tsx b/components/chat.tsx
index 60157cea..2ef18999 100644
--- a/components/chat.tsx
+++ b/components/chat.tsx
@@ -3,7 +3,7 @@
import { useEffect, useMemo, useRef, useState } from 'react'
import { useChat } from '@ai-sdk/react'
-import { defaultChatStore,FileUIPart, UIMessage } from 'ai'
+import { defaultChatStore, FileUIPart, UIMessage } from 'ai'
import { toast } from 'sonner'
import { z } from 'zod'
diff --git a/components/ui/alert-dialog.tsx b/components/ui/alert-dialog.tsx
index d4f3a475..cf7ddcaa 100644
--- a/components/ui/alert-dialog.tsx
+++ b/components/ui/alert-dialog.tsx
@@ -139,4 +139,5 @@ export {
AlertDialogOverlay,
AlertDialogPortal,
AlertDialogTitle,
- AlertDialogTrigger}
+ AlertDialogTrigger
+}
diff --git a/components/ui/card.tsx b/components/ui/card.tsx
index 626c75b7..6d9e1969 100644
--- a/components/ui/card.tsx
+++ b/components/ui/card.tsx
@@ -76,4 +76,4 @@ const CardFooter = React.forwardRef<
))
CardFooter.displayName = 'CardFooter'
-export { Card, CardContent,CardDescription, CardFooter, CardHeader, CardTitle }
+export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle }
diff --git a/components/ui/carousel.tsx b/components/ui/carousel.tsx
index 36c3cb6c..4cbc73a3 100644
--- a/components/ui/carousel.tsx
+++ b/components/ui/carousel.tsx
@@ -260,4 +260,5 @@ export {
CarouselContent,
CarouselItem,
CarouselNext,
- CarouselPrevious}
+ CarouselPrevious
+}
diff --git a/components/ui/collapsible.tsx b/components/ui/collapsible.tsx
index af841442..7ca0f07f 100644
--- a/components/ui/collapsible.tsx
+++ b/components/ui/collapsible.tsx
@@ -8,4 +8,4 @@ const CollapsibleTrigger = CollapsiblePrimitive.CollapsibleTrigger
const CollapsibleContent = CollapsiblePrimitive.CollapsibleContent
-export { Collapsible, CollapsibleContent,CollapsibleTrigger }
+export { Collapsible, CollapsibleContent, CollapsibleTrigger }
diff --git a/components/ui/command.tsx b/components/ui/command.tsx
index 3ef6a4b2..14be2bd6 100644
--- a/components/ui/command.tsx
+++ b/components/ui/command.tsx
@@ -151,4 +151,5 @@ export {
CommandItem,
CommandList,
CommandSeparator,
- CommandShortcut}
+ CommandShortcut
+}
diff --git a/components/ui/dialog.tsx b/components/ui/dialog.tsx
index 3800dce8..539d96db 100644
--- a/components/ui/dialog.tsx
+++ b/components/ui/dialog.tsx
@@ -119,4 +119,5 @@ export {
DialogOverlay,
DialogPortal,
DialogTitle,
- DialogTrigger}
+ DialogTrigger
+}
diff --git a/components/ui/drawer.tsx b/components/ui/drawer.tsx
index 2395bf5c..5f9784ca 100644
--- a/components/ui/drawer.tsx
+++ b/components/ui/drawer.tsx
@@ -115,4 +115,5 @@ export {
DrawerOverlay,
DrawerPortal,
DrawerTitle,
- DrawerTrigger}
+ DrawerTrigger
+}
diff --git a/components/ui/dropdown-menu.tsx b/components/ui/dropdown-menu.tsx
index 0294c24f..04cfb5eb 100644
--- a/components/ui/dropdown-menu.tsx
+++ b/components/ui/dropdown-menu.tsx
@@ -197,4 +197,5 @@ export {
DropdownMenuSub,
DropdownMenuSubContent,
DropdownMenuSubTrigger,
- DropdownMenuTrigger}
+ DropdownMenuTrigger
+}
diff --git a/components/ui/popover.tsx b/components/ui/popover.tsx
index a2c6b78b..b8232b6b 100644
--- a/components/ui/popover.tsx
+++ b/components/ui/popover.tsx
@@ -29,4 +29,4 @@ const PopoverContent = React.forwardRef<
))
PopoverContent.displayName = PopoverPrimitive.Content.displayName
-export { Popover, PopoverContent,PopoverTrigger }
+export { Popover, PopoverContent, PopoverTrigger }
diff --git a/components/ui/select.tsx b/components/ui/select.tsx
index 5826b9ef..fa063bce 100644
--- a/components/ui/select.tsx
+++ b/components/ui/select.tsx
@@ -157,4 +157,5 @@ export {
SelectScrollUpButton,
SelectSeparator,
SelectTrigger,
- SelectValue}
+ SelectValue
+}
diff --git a/components/ui/sheet.tsx b/components/ui/sheet.tsx
index 0c5bf732..4334f770 100644
--- a/components/ui/sheet.tsx
+++ b/components/ui/sheet.tsx
@@ -137,4 +137,5 @@ export {
SheetOverlay,
SheetPortal,
SheetTitle,
- SheetTrigger}
+ SheetTrigger
+}
diff --git a/components/ui/sidebar.tsx b/components/ui/sidebar.tsx
index 968ce018..e8fe2877 100644
--- a/components/ui/sidebar.tsx
+++ b/components/ui/sidebar.tsx
@@ -3,7 +3,7 @@
import * as React from 'react'
import { Slot } from '@radix-ui/react-slot'
-import { cva,VariantProps } from 'class-variance-authority'
+import { cva, VariantProps } from 'class-variance-authority'
import { PanelLeft } from 'lucide-react'
import { cn } from '@/lib/utils/index'
diff --git a/components/ui/tooltip.tsx b/components/ui/tooltip.tsx
index 22dc2d6f..7d4feea1 100644
--- a/components/ui/tooltip.tsx
+++ b/components/ui/tooltip.tsx
@@ -28,4 +28,4 @@ const TooltipContent = React.forwardRef<
))
TooltipContent.displayName = TooltipPrimitive.Content.displayName
-export { Tooltip, TooltipContent, TooltipProvider,TooltipTrigger }
+export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger }
diff --git a/lib/db/chat.ts b/lib/db/chat.ts
index f8d883a6..60df92e7 100644
--- a/lib/db/chat.ts
+++ b/lib/db/chat.ts
@@ -2,7 +2,7 @@ import { revalidatePath } from 'next/cache'
import { and, desc, eq, gte, inArray } from 'drizzle-orm'
-import { type Chat, chats, type Message,messages } from './schema'
+import { type Chat, chats, type Message, messages } from './schema'
import { db } from '.'
// Create a new chat
diff --git a/lib/supabase/middleware.ts b/lib/supabase/middleware.ts
index b196325b..cb3a30b7 100644
--- a/lib/supabase/middleware.ts
+++ b/lib/supabase/middleware.ts
@@ -1,4 +1,4 @@
-import { type NextRequest,NextResponse } from 'next/server'
+import { type NextRequest, NextResponse } from 'next/server'
import { createServerClient } from '@supabase/ssr'
diff --git a/lib/tools/search.ts b/lib/tools/search.ts
index f4bffdd5..6869fc05 100644
--- a/lib/tools/search.ts
+++ b/lib/tools/search.ts
@@ -7,7 +7,8 @@ import { getBaseUrlString } from '@/lib/utils/url'
import {
createSearchProvider,
DEFAULT_PROVIDER,
- SearchProviderType} from './search/providers'
+ SearchProviderType
+} from './search/providers'
/**
* Creates a search tool with the appropriate schema for the given model.