Job application tracker and AI-powered job search assistant. Helps job seekers manage their search journey with AI resume review, job matching, task logging, and application analytics, all while keeping your data private.
TypeScript ai-agentai-resume-analyzerapplication-trackerapplication-tracking-systematscareerjob-applicationjob-automationjob-huntingjob-searchjob-seeker-toolsjob-trackerjob-trackingjobsearchjobseekersmcpollamaresumeresume-reviewself-hosted
chore: Cleanup unused code
Khuram Niazfe8a329aeab4
diff --git a/src/components/dashboard/NumberCard.tsx b/src/components/dashboard/NumberCard.tsxdeleted file mode 100644index c4155c8..0000000--- a/src/components/dashboard/NumberCard.tsx+++ /dev/null@@ -1,40 +0,0 @@-import {- Card,- CardContent,- CardDescription,- CardFooter,- CardHeader,- CardTitle,-} from "@/components/ui/card";-import { Progress } from "@/components/ui/progress";-import { TrendingDown, TrendingUp } from "lucide-react";--interface NumberCardProps {- label: string;- num: number;- trend: number;-}--export default function NumberCard({ label, num, trend }: NumberCardProps) {- return (- <Card>- <CardHeader className="pb-2">- <CardDescription>{label}</CardDescription>- <CardTitle className="text-4xl">{num}</CardTitle>- </CardHeader>- <CardContent>- <div className="flex gap-2 text-xs text-muted-foreground">- {trend}%{" "}- {trend > 0 ? (- <TrendingUp className="h-4 w-4" />- ) : (- <TrendingDown className="h-4 w-4" />- )}- </div>- </CardContent>- <CardFooter>- <Progress value={trend} aria-label={`${trend}% increase`} />- </CardFooter>- </Card>- );-}diff --git a/src/components/ui/calendar2.tsx b/src/components/ui/calendar2.tsxdeleted file mode 100644index cdd68d2..0000000--- a/src/components/ui/calendar2.tsx+++ /dev/null@@ -1,252 +0,0 @@-"use client";--import * as React from "react";-import {- ChevronDownIcon,- ChevronLeftIcon,- ChevronRightIcon,-} from "lucide-react";-import { DayButton, DayPicker, getDefaultClassNames } from "react-day-picker";--import { cn } from "@/lib/utils";-import { Button, buttonVariants } from "@/components/ui/button";-import { ScrollArea } from "@/components/ui/scroll-area";-import {- Select,- SelectContent,- SelectItem,- SelectTrigger,- SelectValue,-} from "@/components/ui/select";--function Calendar({- className,- classNames,- showOutsideDays = true,- captionLayout = "dropdown",- buttonVariant = "ghost",- formatters,- components,- ...props-}: React.ComponentProps<typeof DayPicker> & {- buttonVariant?: React.ComponentProps<typeof Button>["variant"];-}) {- const defaultClassNames = getDefaultClassNames();-- return (- <DayPicker- showOutsideDays={showOutsideDays}- className={cn(- "bg-background group/calendar p-3 [--cell-size:2rem] [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent",- className- )}- captionLayout={captionLayout}- formatters={{- formatMonthDropdown: (date) =>- date.toLocaleString("default", { month: "short" }),- ...formatters,- }}- classNames={{- root: cn("w-fit", defaultClassNames.root),- months: cn(- "relative flex flex-col gap-4 md:flex-row",- defaultClassNames.months- ),- month: cn("flex w-full flex-col gap-4", defaultClassNames.month),- nav: cn(- "absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",- defaultClassNames.nav- ),- button_previous: cn(- buttonVariants({ variant: buttonVariant }),- "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",- defaultClassNames.button_previous- ),- button_next: cn(- buttonVariants({ variant: buttonVariant }),- "h-[--cell-size] w-[--cell-size] select-none p-0 aria-disabled:opacity-50",- defaultClassNames.button_next- ),- month_caption: cn(- "flex h-[--cell-size] w-full items-center justify-center px-[--cell-size]",- defaultClassNames.month_caption- ),- dropdowns: cn(- "flex h-[--cell-size] w-full items-center justify-center gap-1.5 text-sm font-medium",- defaultClassNames.dropdowns- ),- dropdown_root: cn(- "has-focus:border-ring border-input shadow-xs has-focus:ring-ring/50 has-focus:ring-[3px] relative rounded-md border",- defaultClassNames.dropdown_root- ),- dropdown: cn("absolute inset-0 opacity-0", defaultClassNames.dropdown),- caption_label: cn(- "select-none font-medium",- captionLayout === "label"- ? "text-sm"- : "[&>svg]:text-muted-foreground flex h-8 items-center gap-1 rounded-md pl-2 pr-1 text-sm [&>svg]:size-3.5",- defaultClassNames.caption_label- ),- table: "w-full border-collapse",- weekdays: cn("flex", defaultClassNames.weekdays),- weekday: cn(- "text-muted-foreground flex-1 select-none rounded-md text-[0.8rem] font-normal",- defaultClassNames.weekday- ),- week: cn("mt-2 flex w-full", defaultClassNames.week),- week_number_header: cn(- "w-[--cell-size] select-none",- defaultClassNames.week_number_header- ),- week_number: cn(- "text-muted-foreground select-none text-[0.8rem]",- defaultClassNames.week_number- ),- day: cn(- "relative w-full h-full p-0 text-center [&:last-child[data-selected=true]_button]:rounded-r-md group/day aspect-square select-none",- props.showWeekNumber- ? "[&:nth-child(2)[data-selected=true]_button]:rounded-l-md"- : "[&:first-child[data-selected=true]_button]:rounded-l-md",- defaultClassNames.day- ),- range_start: cn(- "bg-accent rounded-l-md",- defaultClassNames.range_start- ),- range_middle: cn("rounded-none", defaultClassNames.range_middle),- range_end: cn("bg-accent rounded-r-md", defaultClassNames.range_end),- today: cn(- "bg-accent text-accent-foreground rounded-md data-[selected=true]:rounded-none",- defaultClassNames.today- ),- outside: cn(- "text-muted-foreground aria-selected:text-muted-foreground",- defaultClassNames.outside- ),- disabled: cn(- "text-muted-foreground opacity-50",- defaultClassNames.disabled- ),- hidden: cn("invisible", defaultClassNames.hidden),- ...classNames,- }}- components={{- Root: ({ className, rootRef, ...props }) => {- return (- <div- data-slot="calendar"- ref={rootRef}- className={cn(className)}- {...props}- />- );- },- Chevron: ({ className, orientation, ...props }) => {- if (orientation === "left") {- return (- <ChevronLeftIcon className={cn("size-4", className)} {...props} />- );- }-- if (orientation === "right") {- return (- <ChevronRightIcon- className={cn("size-4", className)}- {...props}- />- );- }-- return (- <ChevronDownIcon className={cn("size-4", className)} {...props} />- );- },- Dropdown: ({ value, onChange, options, ...props }) => {- const selected = options?.find((option) => option.value === value);- const handleChange = (value: string) => {- const changeEvent = {- target: { value },- } as React.ChangeEvent<HTMLSelectElement>;- onChange?.(changeEvent);- };- return (- <Select- value={value?.toString()}- onValueChange={(value) => {- handleChange(value);- }}- >- <SelectTrigger className="pr-1.5 focus:ring-0">- <SelectValue>{selected?.label}</SelectValue>- </SelectTrigger>- <SelectContent position="popper">- <ScrollArea className="h-80">- {options?.map((option, id: number) => (- <SelectItem- key={`${option.value}-${id}`}- value={option.value?.toString() ?? ""}- >- {option.label}- </SelectItem>- ))}- </ScrollArea>- </SelectContent>- </Select>- );- },- DayButton: CalendarDayButton,- WeekNumber: ({ children, ...props }) => {- return (- <td {...props}>- <div className="flex size-[--cell-size] items-center justify-center text-center">- {children}- </div>- </td>- );- },- ...components,- }}- {...props}- />- );-}--function CalendarDayButton({- className,- day,- modifiers,- ...props-}: React.ComponentProps<typeof DayButton>) {- const defaultClassNames = getDefaultClassNames();-- const ref = React.useRef<HTMLButtonElement>(null);- React.useEffect(() => {- if (modifiers.focused) ref.current?.focus();- }, [modifiers.focused]);-- return (- <Button- ref={ref}- variant="ghost"- size="icon"- data-day={day.date.toLocaleDateString()}- data-selected-single={- modifiers.selected &&- !modifiers.range_start &&- !modifiers.range_end &&- !modifiers.range_middle- }- data-range-start={modifiers.range_start}- data-range-end={modifiers.range_end}- data-range-middle={modifiers.range_middle}- className={cn(- "data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground data-[range-middle=true]:bg-accent data-[range-middle=true]:text-accent-foreground data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-ring/50 flex aspect-square h-auto w-full min-w-[--cell-size] flex-col gap-1 font-normal leading-none data-[range-end=true]:rounded-md data-[range-middle=true]:rounded-none data-[range-start=true]:rounded-md group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:ring-[3px] [&>span]:text-xs [&>span]:opacity-70",- defaultClassNames.day,- className- )}- {...props}- />- );-}--export { Calendar, CalendarDayButton };diff --git a/src/components/ui/pagination.tsx b/src/components/ui/pagination.tsxdeleted file mode 100644index ea40d19..0000000--- a/src/components/ui/pagination.tsx+++ /dev/null@@ -1,117 +0,0 @@-import * as React from "react"-import { ChevronLeft, ChevronRight, MoreHorizontal } from "lucide-react"--import { cn } from "@/lib/utils"-import { ButtonProps, buttonVariants } from "@/components/ui/button"--const Pagination = ({ className, ...props }: React.ComponentProps<"nav">) => (- <nav- role="navigation"- aria-label="pagination"- className={cn("mx-auto flex w-full justify-center", className)}- {...props}- />-)-Pagination.displayName = "Pagination"--const PaginationContent = React.forwardRef<- HTMLUListElement,- React.ComponentProps<"ul">->(({ className, ...props }, ref) => (- <ul- ref={ref}- className={cn("flex flex-row items-center gap-1", className)}- {...props}- />-))-PaginationContent.displayName = "PaginationContent"--const PaginationItem = React.forwardRef<- HTMLLIElement,- React.ComponentProps<"li">->(({ className, ...props }, ref) => (- <li ref={ref} className={cn("", className)} {...props} />-))-PaginationItem.displayName = "PaginationItem"--type PaginationLinkProps = {- isActive?: boolean-} & Pick<ButtonProps, "size"> &- React.ComponentProps<"a">--const PaginationLink = ({- className,- isActive,- size = "icon",- ...props-}: PaginationLinkProps) => (- <a- aria-current={isActive ? "page" : undefined}- className={cn(- buttonVariants({- variant: isActive ? "outline" : "ghost",- size,- }),- className- )}- {...props}- />-)-PaginationLink.displayName = "PaginationLink"--const PaginationPrevious = ({- className,- ...props-}: React.ComponentProps<typeof PaginationLink>) => (- <PaginationLink- aria-label="Go to previous page"- size="default"- className={cn("gap-1 pl-2.5", className)}- {...props}- >- <ChevronLeft className="h-4 w-4" />- <span>Previous</span>- </PaginationLink>-)-PaginationPrevious.displayName = "PaginationPrevious"--const PaginationNext = ({- className,- ...props-}: React.ComponentProps<typeof PaginationLink>) => (- <PaginationLink- aria-label="Go to next page"- size="default"- className={cn("gap-1 pr-2.5", className)}- {...props}- >- <span>Next</span>- <ChevronRight className="h-4 w-4" />- </PaginationLink>-)-PaginationNext.displayName = "PaginationNext"--const PaginationEllipsis = ({- className,- ...props-}: React.ComponentProps<"span">) => (- <span- aria-hidden- className={cn("flex h-9 w-9 items-center justify-center", className)}- {...props}- >- <MoreHorizontal className="h-4 w-4" />- <span className="sr-only">More pages</span>- </span>-)-PaginationEllipsis.displayName = "PaginationEllipsis"--export {- Pagination,- PaginationContent,- PaginationEllipsis,- PaginationItem,- PaginationLink,- PaginationNext,- PaginationPrevious,-}diff --git a/src/components/ui/textarea.tsx b/src/components/ui/textarea.tsxdeleted file mode 100644index 9f9a6dc..0000000--- a/src/components/ui/textarea.tsx+++ /dev/null@@ -1,24 +0,0 @@-import * as React from "react"--import { cn } from "@/lib/utils"--export interface TextareaProps- extends React.TextareaHTMLAttributes<HTMLTextAreaElement> {}--const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(- ({ className, ...props }, ref) => {- return (- <textarea- className={cn(- "flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",- className- )}- ref={ref}- {...props}- />- )- }-)-Textarea.displayName = "Textarea"--export { Textarea }