Start updating deps
This commit is contained in:
parent
beeaf86fe8
commit
f261a0eebe
10 changed files with 28 additions and 30 deletions
|
|
@ -8,7 +8,8 @@
|
||||||
],
|
],
|
||||||
"plugins": ["tailwindcss"],
|
"plugins": ["tailwindcss"],
|
||||||
"rules": {
|
"rules": {
|
||||||
"tailwindcss/no-custom-classname": "off"
|
"tailwindcss/no-custom-classname": "off",
|
||||||
|
"tailwindcss/classnames-order": "off"
|
||||||
},
|
},
|
||||||
"settings": {
|
"settings": {
|
||||||
"tailwindcss": {
|
"tailwindcss": {
|
||||||
|
|
|
||||||
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -32,7 +32,7 @@ yarn-error.log*
|
||||||
# turbo
|
# turbo
|
||||||
.turbo
|
.turbo
|
||||||
|
|
||||||
.contentlayer
|
|
||||||
.env
|
.env
|
||||||
.vercel
|
.vercel
|
||||||
.vscode
|
.vscode
|
||||||
|
.env*.local
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,17 @@
|
||||||
import { Metadata } from 'next'
|
import { Metadata } from 'next'
|
||||||
|
|
||||||
import { Toaster } from 'react-hot-toast'
|
import { Toaster } from 'react-hot-toast'
|
||||||
|
import { GeistSans } from 'geist/font/sans'
|
||||||
|
import { GeistMono } from 'geist/font/mono'
|
||||||
|
|
||||||
import '@/app/globals.css'
|
import '@/app/globals.css'
|
||||||
import { fontMono, fontSans } from '@/lib/fonts'
|
|
||||||
import { cn } from '@/lib/utils'
|
import { cn } from '@/lib/utils'
|
||||||
import { TailwindIndicator } from '@/components/tailwind-indicator'
|
import { TailwindIndicator } from '@/components/tailwind-indicator'
|
||||||
import { Providers } from '@/components/providers'
|
import { Providers } from '@/components/providers'
|
||||||
import { Header } from '@/components/header'
|
import { Header } from '@/components/header'
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
|
metadataBase: new URL('https://chat.vercel.ai/'),
|
||||||
title: {
|
title: {
|
||||||
default: 'Next.js AI Chatbot',
|
default: 'Next.js AI Chatbot',
|
||||||
template: `%s - Next.js AI Chatbot`
|
template: `%s - Next.js AI Chatbot`
|
||||||
|
|
@ -33,18 +35,16 @@ interface RootLayoutProps {
|
||||||
export default function RootLayout({ children }: RootLayoutProps) {
|
export default function RootLayout({ children }: RootLayoutProps) {
|
||||||
return (
|
return (
|
||||||
<html lang="en" suppressHydrationWarning>
|
<html lang="en" suppressHydrationWarning>
|
||||||
<head />
|
|
||||||
<body
|
<body
|
||||||
className={cn(
|
className={cn(
|
||||||
'font-sans antialiased',
|
'font-sans antialiased',
|
||||||
fontSans.variable,
|
GeistSans.variable,
|
||||||
fontMono.variable
|
GeistMono.variable
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
<Toaster />
|
<Toaster />
|
||||||
<Providers attribute="class" defaultTheme="system" enableSystem>
|
<Providers attribute="class" defaultTheme="system" enableSystem>
|
||||||
<div className="flex flex-col min-h-screen">
|
<div className="flex flex-col min-h-screen">
|
||||||
{/* @ts-ignore */}
|
|
||||||
<Header />
|
<Header />
|
||||||
<main className="flex flex-col flex-1 bg-muted/50">{children}</main>
|
<main className="flex flex-col flex-1 bg-muted/50">{children}</main>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,6 @@ import { SidebarFooter } from '@/components/sidebar-footer'
|
||||||
import { ThemeToggle } from '@/components/theme-toggle'
|
import { ThemeToggle } from '@/components/theme-toggle'
|
||||||
import { ClearHistory } from '@/components/clear-history'
|
import { ClearHistory } from '@/components/clear-history'
|
||||||
import { UserMenu } from '@/components/user-menu'
|
import { UserMenu } from '@/components/user-menu'
|
||||||
import { LoginButton } from '@/components/login-button'
|
|
||||||
|
|
||||||
export async function Header() {
|
export async function Header() {
|
||||||
const session = await auth()
|
const session = await auth()
|
||||||
|
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
||||||
'use client'
|
|
||||||
|
|
||||||
export { Toaster } from 'react-hot-toast'
|
|
||||||
|
|
@ -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"
|
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` : ''}
|
src={user?.image ? `${user.image}&s=60` : ''}
|
||||||
alt={user.name ?? 'Avatar'}
|
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">
|
<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
lib/fonts.ts
11
lib/fonts.ts
|
|
@ -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'
|
|
||||||
})
|
|
||||||
|
|
@ -30,6 +30,7 @@
|
||||||
"class-variance-authority": "^0.4.0",
|
"class-variance-authority": "^0.4.0",
|
||||||
"clsx": "^1.2.1",
|
"clsx": "^1.2.1",
|
||||||
"focus-trap-react": "^10.1.1",
|
"focus-trap-react": "^10.1.1",
|
||||||
|
"geist": "^1.1.0",
|
||||||
"nanoid": "^4.0.2",
|
"nanoid": "^4.0.2",
|
||||||
"next": "13.4.7-canary.1",
|
"next": "13.4.7-canary.1",
|
||||||
"next-auth": "0.0.0-manual.83c4ebd1",
|
"next-auth": "0.0.0-manual.83c4ebd1",
|
||||||
|
|
|
||||||
17
pnpm-lock.yaml
generated
17
pnpm-lock.yaml
generated
|
|
@ -53,6 +53,9 @@ dependencies:
|
||||||
focus-trap-react:
|
focus-trap-react:
|
||||||
specifier: ^10.1.1
|
specifier: ^10.1.1
|
||||||
version: 10.1.1(prop-types@15.8.1)(react-dom@18.2.0)(react@18.2.0)
|
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:
|
nanoid:
|
||||||
specifier: ^4.0.2
|
specifier: ^4.0.2
|
||||||
version: 4.0.2
|
version: 4.0.2
|
||||||
|
|
@ -156,8 +159,8 @@ packages:
|
||||||
engines: {node: '>=10'}
|
engines: {node: '>=10'}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/@auth/core@0.0.0-manual.8fcd46b0:
|
/@auth/core@0.0.0-manual.e9863699:
|
||||||
resolution: {integrity: sha512-KuhvZ0hHz6NvMAgAi+su0dJOD0YAiOWGaLswyfGK5RsG/cdhqyyiII9HOTaZbWZAKir0UGYb8SlN+owhV30JXg==}
|
resolution: {integrity: sha512-/hVzGuFw7nAZimliD8kpuKnNjvkRu+jpaVhYB/FaIXLNJFNwhbO2MgXBnr5tvLIHgRJnR5C9UN5RNpQXiFHuSA==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
nodemailer: ^6.8.0
|
nodemailer: ^6.8.0
|
||||||
peerDependenciesMeta:
|
peerDependenciesMeta:
|
||||||
|
|
@ -2567,6 +2570,14 @@ packages:
|
||||||
resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}
|
resolution: {integrity: sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==}
|
||||||
dev: true
|
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:
|
/get-intrinsic@1.2.0:
|
||||||
resolution: {integrity: sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==}
|
resolution: {integrity: sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==}
|
||||||
dependencies:
|
dependencies:
|
||||||
|
|
@ -3693,7 +3704,7 @@ packages:
|
||||||
nodemailer:
|
nodemailer:
|
||||||
optional: true
|
optional: true
|
||||||
dependencies:
|
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)
|
next: 13.4.7-canary.1(react-dom@18.2.0)(react@18.2.0)
|
||||||
react: 18.2.0
|
react: 18.2.0
|
||||||
dev: false
|
dev: false
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
const { fontFamily } = require('tailwindcss/defaultTheme')
|
|
||||||
|
|
||||||
/** @type {import('tailwindcss').Config} */
|
/** @type {import('tailwindcss').Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
darkMode: ['class'],
|
darkMode: ['class'],
|
||||||
|
|
@ -14,7 +12,8 @@ module.exports = {
|
||||||
},
|
},
|
||||||
extend: {
|
extend: {
|
||||||
fontFamily: {
|
fontFamily: {
|
||||||
sans: ['var(--font-sans)', ...fontFamily.sans]
|
sans: ['var(--font-geist-sans)'],
|
||||||
|
mono: ['var(--font-geist-mono)']
|
||||||
},
|
},
|
||||||
colors: {
|
colors: {
|
||||||
border: 'hsl(var(--border))',
|
border: 'hsl(var(--border))',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue