feat: refactor UI components and integrate new features

- Remove unused app.ts file.
- Enhance Home component with CNB integration for user authentication.
- Update root route to include Toaster component for notifications.
- Add Avatar, Badge, Card, Dialog, Dropdown Menu, Input, Label, Select, Separator, Sonner, Table, and Tabs components for improved UI.
- Create config page structure.
This commit is contained in:
2026-02-06 02:46:32 +08:00
parent 234dabcfb4
commit abd9860a90
17 changed files with 2336 additions and 430 deletions

View File

@@ -0,0 +1,31 @@
"use client"
import * as React from "react"
import * as SeparatorPrimitive from "@radix-ui/react-separator"
import { cn } from "@/lib/utils"
const Separator = React.forwardRef<
React.ElementRef<typeof SeparatorPrimitive.Root>,
React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>
>(
(
{ className, orientation = "horizontal", decorative = true, ...props },
ref
) => (
<SeparatorPrimitive.Root
ref={ref}
decorative={decorative}
orientation={orientation}
className={cn(
"shrink-0 bg-border",
orientation === "horizontal" ? "h-[1px] w-full" : "h-full w-[1px]",
className
)}
{...props}
/>
)
)
Separator.displayName = SeparatorPrimitive.Root.displayName
export { Separator }