Compare commits

..

No commits in common. '35b7eb15fe44ca3db5b41c413e8a92af74267597' and '04c3d8e0d087edb008943219b04c513316f741d1' have entirely different histories.

@ -6,6 +6,12 @@ import { eq } from 'drizzle-orm'
import { cookies } from 'next/headers'
import { getUser } from '@/lib/auth'
export const GET = async () => {
const bookmarks = await db.select().from(bookmark)
return NextResponse.json(bookmarks)
}
export const POST = async (request: NextRequest) => {
const body = await request.json()
const token = cookies().get('token')

@ -114,15 +114,12 @@ export default function NewBookmarkForm({
title={'Bookmark'}>
<form className='flex flex-col gap-4'>
<Select
label='Category'
label='Select category'
placeholder='Select a category'
selectedKeys={value}
onSelectionChange={setValue}
disabledKeys={['placeholder']}>
<SelectSection
showDivider
title='Categories'>
{[...categories].map(
onSelectionChange={setValue}>
{categories.length > 0 ? (
categories.map(
(category) => (
<SelectItem
key={
@ -134,8 +131,14 @@ export default function NewBookmarkForm({
{category.name}
</SelectItem>
)
)}
</SelectSection>
)
) : (
<SelectItem
key={'test'}
value={'test'}>
{'test'}
</SelectItem>
)}
</Select>
<Input
autoFocus

@ -9,25 +9,25 @@
"lint": "next lint"
},
"dependencies": {
"@nextui-org/avatar": "^2.0.15",
"@nextui-org/avatar": "^2.0.11",
"@nextui-org/button": "2.0.0",
"@nextui-org/card": "^2.0.15",
"@nextui-org/checkbox": "^2.0.16",
"@nextui-org/card": "^2.0.11",
"@nextui-org/checkbox": "^2.0.12",
"@nextui-org/code": "2.0.0",
"@nextui-org/divider": "^2.0.14",
"@nextui-org/dropdown": "^2.1.4",
"@nextui-org/image": "^2.0.15",
"@nextui-org/divider": "^2.0.10",
"@nextui-org/dropdown": "^2.0.13",
"@nextui-org/image": "^2.0.11",
"@nextui-org/input": "2.0.0",
"@nextui-org/kbd": "2.0.0",
"@nextui-org/link": "2.0.0",
"@nextui-org/modal": "^2.0.17",
"@nextui-org/modal": "^2.0.13",
"@nextui-org/navbar": "2.0.0",
"@nextui-org/react": "^2.1.7",
"@nextui-org/select": "^2.1.5",
"@nextui-org/react": "^2.1.5",
"@nextui-org/select": "^2.1.4",
"@nextui-org/snippet": "2.0.0",
"@nextui-org/switch": "2.0.0",
"@nextui-org/system": "2.0.0",
"@nextui-org/tabs": "^2.0.15",
"@nextui-org/tabs": "^2.0.11",
"@nextui-org/theme": "2.0.0",
"@react-aria/ssr": "^3.7.1",
"@react-aria/visually-hidden": "^3.8.3",
@ -38,10 +38,10 @@
"autoprefixer": "10.4.14",
"bcrypt": "^5.1.1",
"clsx": "^1.2.1",
"drizzle-orm": "^0.28.5",
"drizzle-orm": "^0.28.2",
"eslint": "8.41.0",
"eslint-config-next": "13.4.4",
"framer-motion": "^10.16.1",
"framer-motion": "^10.15.2",
"intl-messageformat": "^10.5.0",
"next": "13.4.9",
"next-themes": "^0.2.1",
@ -52,11 +52,11 @@
"tailwind-variants": "^0.1.13",
"tailwindcss": "3.3.2",
"typescript": "5.0.4",
"zod": "^3.22.2"
"zod": "^3.22.1"
},
"devDependencies": {
"@iconify/react": "^4.1.1",
"drizzle-kit": "^0.19.13",
"drizzle-kit": "^0.19.12",
"prettier": "^3.0.2",
"prettier-plugin-tailwindcss": "^0.4.1"
}

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save