From a519c3d3bfa906ec15ededab01369c2c6f9e4a31 Mon Sep 17 00:00:00 2001 From: Lee Robinson Date: Sat, 20 Jan 2024 10:39:02 -0600 Subject: [PATCH] Update dependencies. --- app/(chat)/layout.tsx | 1 - app/layout.tsx | 1 - app/sign-in/page.tsx | 1 + components/chat-message.tsx | 2 +- components/header.tsx | 6 +- components/prompt-form.tsx | 2 +- components/sidebar-actions.tsx | 4 +- components/sidebar-item.tsx | 2 +- components/sidebar-mobile.tsx | 4 +- components/sidebar-toggle.tsx | 4 +- components/tailwind-indicator.tsx | 2 +- components/ui/button.tsx | 2 +- components/ui/dialog.tsx | 2 +- components/ui/icons.tsx | 54 +- components/ui/select.tsx | 4 +- components/ui/sheet.tsx | 2 +- components/ui/switch.tsx | 12 +- components/user-menu.tsx | 6 +- next.config.js | 3 - package.json | 28 +- pnpm-lock.yaml | 1108 ++++++++++++++--------------- 21 files changed, 621 insertions(+), 629 deletions(-) diff --git a/app/(chat)/layout.tsx b/app/(chat)/layout.tsx index a19df3f..bbdb186 100644 --- a/app/(chat)/layout.tsx +++ b/app/(chat)/layout.tsx @@ -7,7 +7,6 @@ interface ChatLayoutProps { export default async function ChatLayout({ children }: ChatLayoutProps) { return (
- {/* @ts-ignore */}
{children} diff --git a/app/layout.tsx b/app/layout.tsx index 9a1d2da..d9d70d9 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -51,7 +51,6 @@ export default function RootLayout({ children }: RootLayoutProps) { disableTransitionOnChange >
- {/* @ts-ignore */}
{children}
diff --git a/app/sign-in/page.tsx b/app/sign-in/page.tsx index 280333e..a1383ff 100644 --- a/app/sign-in/page.tsx +++ b/app/sign-in/page.tsx @@ -8,6 +8,7 @@ export default async function SignInPage() { if (session?.user) { redirect('/') } + return (
diff --git a/components/chat-message.tsx b/components/chat-message.tsx index df5b5fd..32ecd78 100644 --- a/components/chat-message.tsx +++ b/components/chat-message.tsx @@ -23,7 +23,7 @@ export function ChatMessage({ message, ...props }: ChatMessageProps) { >
) : ( - - + + )}
- + {session?.user ? ( ) : ( diff --git a/components/prompt-form.tsx b/components/prompt-form.tsx index fdb7c7b..1b2011a 100644 --- a/components/prompt-form.tsx +++ b/components/prompt-form.tsx @@ -56,7 +56,7 @@ export function PromptForm({ }} className={cn( buttonVariants({ size: 'sm', variant: 'outline' }), - 'absolute left-0 top-4 h-8 w-8 rounded-full bg-background p-0 sm:left-4' + 'absolute left-0 top-4 size-8 rounded-full bg-background p-0 sm:left-4' )} > diff --git a/components/sidebar-actions.tsx b/components/sidebar-actions.tsx index 7cf8514..bfcde3a 100644 --- a/components/sidebar-actions.tsx +++ b/components/sidebar-actions.tsx @@ -47,7 +47,7 @@ export function SidebarActions({ diff --git a/components/sidebar-toggle.tsx b/components/sidebar-toggle.tsx index 951d606..6c75009 100644 --- a/components/sidebar-toggle.tsx +++ b/components/sidebar-toggle.tsx @@ -12,12 +12,12 @@ export function SidebarToggle() { return ( ) diff --git a/components/tailwind-indicator.tsx b/components/tailwind-indicator.tsx index f2a1291..846faa9 100644 --- a/components/tailwind-indicator.tsx +++ b/components/tailwind-indicator.tsx @@ -2,7 +2,7 @@ export function TailwindIndicator() { if (process.env.NODE_ENV === 'production') return null return ( -
+
xs
sm
md
diff --git a/components/ui/button.tsx b/components/ui/button.tsx index 4dd6924..8d483e0 100644 --- a/components/ui/button.tsx +++ b/components/ui/button.tsx @@ -24,7 +24,7 @@ const buttonVariants = cva( default: 'h-8 px-4 py-2', sm: 'h-8 rounded-md px-3', lg: 'h-11 rounded-md px-8', - icon: 'h-8 w-8 p-0' + icon: 'size-8 p-0' } }, defaultVariants: { diff --git a/components/ui/dialog.tsx b/components/ui/dialog.tsx index 5ac502d..7649a10 100644 --- a/components/ui/dialog.tsx +++ b/components/ui/dialog.tsx @@ -45,7 +45,7 @@ const DialogContent = React.forwardRef< > {children} - + Close diff --git a/components/ui/icons.tsx b/components/ui/icons.tsx index 41ab4ea..9d5e679 100644 --- a/components/ui/icons.tsx +++ b/components/ui/icons.tsx @@ -16,7 +16,7 @@ function IconNextChat({ viewBox="0 0 17 17" fill="none" xmlns="http://www.w3.org/2000/svg" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > @@ -95,7 +95,7 @@ function IconOpenAI({ className, ...props }: React.ComponentProps<'svg'>) { viewBox="0 0 24 24" role="img" xmlns="http://www.w3.org/2000/svg" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > OpenAI icon @@ -110,7 +110,7 @@ function IconVercel({ className, ...props }: React.ComponentProps<'svg'>) { aria-label="Vercel logomark" role="img" viewBox="0 0 74 64" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > ) { viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > GitHub @@ -148,7 +148,7 @@ function IconSeparator({ className, ...props }: React.ComponentProps<'svg'>) { strokeWidth="1" viewBox="0 0 24 24" aria-hidden="true" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > @@ -162,7 +162,7 @@ function IconArrowDown({ className, ...props }: React.ComponentProps<'svg'>) { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > @@ -176,7 +176,7 @@ function IconArrowRight({ className, ...props }: React.ComponentProps<'svg'>) { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > @@ -190,7 +190,7 @@ function IconUser({ className, ...props }: React.ComponentProps<'svg'>) { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > @@ -204,7 +204,7 @@ function IconPlus({ className, ...props }: React.ComponentProps<'svg'>) { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > @@ -218,7 +218,7 @@ function IconArrowElbow({ className, ...props }: React.ComponentProps<'svg'>) { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > @@ -232,7 +232,7 @@ function IconSpinner({ className, ...props }: React.ComponentProps<'svg'>) { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" - className={cn('h-4 w-4 animate-spin', className)} + className={cn('size-4 animate-spin', className)} {...props} > @@ -246,7 +246,7 @@ function IconMessage({ className, ...props }: React.ComponentProps<'svg'>) { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > @@ -260,7 +260,7 @@ function IconTrash({ className, ...props }: React.ComponentProps<'svg'>) { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > @@ -274,7 +274,7 @@ function IconRefresh({ className, ...props }: React.ComponentProps<'svg'>) { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > @@ -288,7 +288,7 @@ function IconStop({ className, ...props }: React.ComponentProps<'svg'>) { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > @@ -302,7 +302,7 @@ function IconSidebar({ className, ...props }: React.ComponentProps<'svg'>) { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > @@ -316,7 +316,7 @@ function IconMoon({ className, ...props }: React.ComponentProps<'svg'>) { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > @@ -330,7 +330,7 @@ function IconSun({ className, ...props }: React.ComponentProps<'svg'>) { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > @@ -344,7 +344,7 @@ function IconCopy({ className, ...props }: React.ComponentProps<'svg'>) { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > @@ -358,7 +358,7 @@ function IconCheck({ className, ...props }: React.ComponentProps<'svg'>) { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > @@ -372,7 +372,7 @@ function IconDownload({ className, ...props }: React.ComponentProps<'svg'>) { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > @@ -386,7 +386,7 @@ function IconClose({ className, ...props }: React.ComponentProps<'svg'>) { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256" fill="currentColor" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > @@ -402,7 +402,7 @@ function IconEdit({ className, ...props }: React.ComponentProps<'svg'>) { viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" - className={cn('h-4 w-4', className)} + className={cn('size-4', className)} {...props} > ) { @@ -433,7 +433,7 @@ function IconUsers({ className, ...props }: React.ComponentProps<'svg'>) { @@ -450,7 +450,7 @@ function IconExternalLink({ @@ -467,7 +467,7 @@ function IconChevronUpDown({ diff --git a/components/ui/select.tsx b/components/ui/select.tsx index 77f12c2..c9986a6 100644 --- a/components/ui/select.tsx +++ b/components/ui/select.tsx @@ -89,9 +89,9 @@ const SelectItem = React.forwardRef< )} {...props} > - + - + {children} diff --git a/components/ui/sheet.tsx b/components/ui/sheet.tsx index a724af0..6dac033 100644 --- a/components/ui/sheet.tsx +++ b/components/ui/sheet.tsx @@ -66,7 +66,7 @@ const SheetContent = React.forwardRef< > {children} - + Close diff --git a/components/ui/switch.tsx b/components/ui/switch.tsx index 191ef52..29b8c29 100644 --- a/components/ui/switch.tsx +++ b/components/ui/switch.tsx @@ -1,9 +1,9 @@ -"use client" +'use client' -import * as React from "react" -import * as SwitchPrimitives from "@radix-ui/react-switch" +import * as React from 'react' +import * as SwitchPrimitives from '@radix-ui/react-switch' -import { cn } from "@/lib/utils" +import { cn } from '@/lib/utils' const Switch = React.forwardRef< React.ElementRef, @@ -11,7 +11,7 @@ const Switch = React.forwardRef< >(({ className, ...props }, ref) => ( diff --git a/components/user-menu.tsx b/components/user-menu.tsx index f25076f..74b6abb 100644 --- a/components/user-menu.tsx +++ b/components/user-menu.tsx @@ -31,14 +31,14 @@ export function UserMenu({ user }: UserMenuProps) {