mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-05 13:52:40 +02:00
refactor: updated chonkie & removed junk code
- Removed all references to the Serper API from the codebase, including related components, hooks, and schemas. - Updated the `pyproject.toml` to reflect the new version of `chonkie` and other dependencies. - Cleaned up the configuration and connector management to streamline the application.
This commit is contained in:
parent
70ca585379
commit
086048a4db
18 changed files with 344 additions and 701 deletions
|
|
@ -1,70 +0,0 @@
|
|||
"use client";
|
||||
|
||||
import { Sparkles } from "lucide-react";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
interface DisplayCardProps {
|
||||
className?: string;
|
||||
icon?: React.ReactNode;
|
||||
title?: string;
|
||||
description?: string;
|
||||
date?: string;
|
||||
iconClassName?: string;
|
||||
titleClassName?: string;
|
||||
}
|
||||
|
||||
function DisplayCard({
|
||||
className,
|
||||
icon = <Sparkles className="size-4 text-blue-300" />,
|
||||
title = "Featured",
|
||||
description = "Discover amazing content",
|
||||
date = "Just now",
|
||||
iconClassName = "text-blue-500",
|
||||
titleClassName = "text-blue-500",
|
||||
}: DisplayCardProps) {
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"relative flex h-36 w-[22rem] -skew-y-[8deg] select-none flex-col justify-between rounded-xl border-2 bg-muted/70 backdrop-blur-sm px-4 py-3 transition-all duration-700 after:absolute after:-right-1 after:top-[-5%] after:h-[110%] after:w-[20rem] after:bg-gradient-to-l after:from-background after:to-transparent after:content-[''] hover:border-white/20 hover:bg-muted [&>*]:flex [&>*]:items-center [&>*]:gap-2",
|
||||
className
|
||||
)}
|
||||
>
|
||||
<div>
|
||||
<span className="relative inline-block rounded-full bg-blue-800 p-1">{icon}</span>
|
||||
<p className={cn("text-lg font-medium", titleClassName)}>{title}</p>
|
||||
</div>
|
||||
<p className="whitespace-nowrap text-lg">{description}</p>
|
||||
<p className="text-muted-foreground">{date}</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
interface DisplayCardsProps {
|
||||
cards?: DisplayCardProps[];
|
||||
}
|
||||
|
||||
export default function DisplayCards({ cards }: DisplayCardsProps) {
|
||||
const defaultCards = [
|
||||
{
|
||||
className:
|
||||
"[grid-area:stack] hover:-translate-y-10 before:absolute before:w-[100%] before:outline-1 before:rounded-xl before:outline-border before:h-[100%] before:content-[''] before:bg-blend-overlay before:bg-background/50 grayscale-[100%] hover:before:opacity-0 before:transition-opacity before:duration:700 hover:grayscale-0 before:left-0 before:top-0",
|
||||
},
|
||||
{
|
||||
className:
|
||||
"[grid-area:stack] translate-x-16 translate-y-10 hover:-translate-y-1 before:absolute before:w-[100%] before:outline-1 before:rounded-xl before:outline-border before:h-[100%] before:content-[''] before:bg-blend-overlay before:bg-background/50 grayscale-[100%] hover:before:opacity-0 before:transition-opacity before:duration:700 hover:grayscale-0 before:left-0 before:top-0",
|
||||
},
|
||||
{
|
||||
className: "[grid-area:stack] translate-x-32 translate-y-20 hover:translate-y-10",
|
||||
},
|
||||
];
|
||||
|
||||
const displayCards = cards || defaultCards;
|
||||
|
||||
return (
|
||||
<div className="grid [grid-template-areas:'stack'] place-items-center opacity-100 animate-in fade-in-0 duration-700">
|
||||
{displayCards.map((cardProps, index) => (
|
||||
<DisplayCard key={index} {...cardProps} />
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue