Start updating deps

This commit is contained in:
Lee Robinson
2023-11-26 12:07:13 -06:00
parent beeaf86fe8
commit f261a0eebe
10 changed files with 28 additions and 30 deletions
+2 -1
View File
@@ -8,7 +8,8 @@
],
"plugins": ["tailwindcss"],
"rules": {
"tailwindcss/no-custom-classname": "off"
"tailwindcss/no-custom-classname": "off",
"tailwindcss/classnames-order": "off"
},
"settings": {
"tailwindcss": {
+2 -2
View File
@@ -32,7 +32,7 @@ yarn-error.log*
# turbo
.turbo
.contentlayer
.env
.vercel
.vscode
.vscode
.env*.local
+5 -5
View File
@@ -1,15 +1,17 @@
import { Metadata } from 'next'
import { Toaster } from 'react-hot-toast'
import { GeistSans } from 'geist/font/sans'
import { GeistMono } from 'geist/font/mono'
import '@/app/globals.css'
import { fontMono, fontSans } from '@/lib/fonts'
import { cn } from '@/lib/utils'
import { TailwindIndicator } from '@/components/tailwind-indicator'
import { Providers } from '@/components/providers'
import { Header } from '@/components/header'
export const metadata: Metadata = {
metadataBase: new URL('https://chat.vercel.ai/'),
title: {
default: 'Next.js AI Chatbot',
template: `%s - Next.js AI Chatbot`
@@ -33,18 +35,16 @@ interface RootLayoutProps {
export default function RootLayout({ children }: RootLayoutProps) {
return (
<html lang="en" suppressHydrationWarning>
<head />
<body
className={cn(
'font-sans antialiased',
fontSans.variable,
fontMono.variable
GeistSans.variable,
GeistMono.variable
)}
>
<Toaster />
<Providers attribute="class" defaultTheme="system" enableSystem>
<div className="flex flex-col min-h-screen">
{/* @ts-ignore */}
<Header />
<main className="flex flex-col flex-1 bg-muted/50">{children}</main>
</div>
-1
View File
@@ -17,7 +17,6 @@ import { SidebarFooter } from '@/components/sidebar-footer'
import { ThemeToggle } from '@/components/theme-toggle'
import { ClearHistory } from '@/components/clear-history'
import { UserMenu } from '@/components/user-menu'
import { LoginButton } from '@/components/login-button'
export async function Header() {
const session = await auth()
-3
View File
@@ -1,3 +0,0 @@
'use client'
export { Toaster } from 'react-hot-toast'
+2 -1
View File
@@ -34,7 +34,8 @@ export function UserMenu({ user }: UserMenuProps) {
className="w-6 h-6 transition-opacity duration-300 rounded-full select-none ring-1 ring-zinc-100/10 hover:opacity-80"
src={user?.image ? `${user.image}&s=60` : ''}
alt={user.name ?? 'Avatar'}
height={48} width={48}
height={48}
width={48}
/>
) : (
<div className="flex items-center justify-center text-xs font-medium uppercase rounded-full select-none h-7 w-7 shrink-0 bg-muted/50 text-muted-foreground">
-11
View File
@@ -1,11 +0,0 @@
import { JetBrains_Mono as FontMono, Inter as FontSans } from 'next/font/google'
export const fontSans = FontSans({
subsets: ['latin'],
variable: '--font-sans'
})
export const fontMono = FontMono({
subsets: ['latin'],
variable: '--font-mono'
})
+1
View File
@@ -30,6 +30,7 @@
"class-variance-authority": "^0.4.0",
"clsx": "^1.2.1",
"focus-trap-react": "^10.1.1",
"geist": "^1.1.0",
"nanoid": "^4.0.2",
"next": "13.4.7-canary.1",
"next-auth": "0.0.0-manual.83c4ebd1",
+14 -3
View File
@@ -53,6 +53,9 @@ dependencies:
focus-trap-react:
specifier: ^10.1.1
version: 10.1.1(prop-types@15.8.1)(react-dom@18.2.0)(react@18.2.0)
geist:
specifier: ^1.1.0
version: 1.1.0(next@13.4.7-canary.1)
nanoid:
specifier: ^4.0.2
version: 4.0.2
@@ -156,8 +159,8 @@ packages:
engines: {node: '>=10'}
dev: true
/@auth/core@0.0.0-manual.8fcd46b0:
resolution: {integrity: sha512-KuhvZ0hHz6NvMAgAi+su0dJOD0YAiOWGaLswyfGK5RsG/cdhqyyiII9HOTaZbWZAKir0UGYb8SlN+owhV30JXg==}
/@auth/core@0.0.0-manual.e9863699:
resolution: {integrity: sha512-/hVzGuFw7nAZimliD8kpuKnNjvkRu+jpaVhYB/FaIXLNJFNwhbO2MgXBnr5tvLIHgRJnR5C9UN5RNpQXiFHuSA==}
peerDependencies:
nodemailer: ^6.8.0
peerDependenciesMeta:
@@ -2567,6 +2570,14 @@ packages:
resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}
dev: true
/geist@1.1.0(next@13.4.7-canary.1):
resolution: {integrity: sha512-UwZH+ekwAt1T5XYlviFD+jUXFeRRawDDT8RtpJ//IHTPXlVIO6BCcZ8M0Pxg1K/FT3H8HLn3KJqMsPLHbo1HNg==}
peerDependencies:
next: ^13.2 || ^14
dependencies:
next: 13.4.7-canary.1(react-dom@18.2.0)(react@18.2.0)
dev: false
/get-intrinsic@1.2.0:
resolution: {integrity: sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==}
dependencies:
@@ -3693,7 +3704,7 @@ packages:
nodemailer:
optional: true
dependencies:
'@auth/core': 0.0.0-manual.8fcd46b0
'@auth/core': 0.0.0-manual.e9863699
next: 13.4.7-canary.1(react-dom@18.2.0)(react@18.2.0)
react: 18.2.0
dev: false
+2 -3
View File
@@ -1,5 +1,3 @@
const { fontFamily } = require('tailwindcss/defaultTheme')
/** @type {import('tailwindcss').Config} */
module.exports = {
darkMode: ['class'],
@@ -14,7 +12,8 @@ module.exports = {
},
extend: {
fontFamily: {
sans: ['var(--font-sans)', ...fontFamily.sans]
sans: ['var(--font-geist-sans)'],
mono: ['var(--font-geist-mono)']
},
colors: {
border: 'hsl(var(--border))',