From e02b9a5efc34c47194384e35f5ca367ce8fb1c43 Mon Sep 17 00:00:00 2001 From: ItzCrazyKns <95534749+ItzCrazyKns@users.noreply.github.com> Date: Fri, 17 Oct 2025 14:38:36 +0530 Subject: [PATCH] feat(settings-page): remove page --- src/app/settings/page.tsx | 1007 ------------------------------------- 1 file changed, 1007 deletions(-) delete mode 100644 src/app/settings/page.tsx diff --git a/src/app/settings/page.tsx b/src/app/settings/page.tsx deleted file mode 100644 index 1af53f9..0000000 --- a/src/app/settings/page.tsx +++ /dev/null @@ -1,1007 +0,0 @@ -'use client'; - -import { Settings as SettingsIcon, ArrowLeft, Loader2 } from 'lucide-react'; -import { useEffect, useState } from 'react'; -import { cn } from '@/lib/utils'; -import { Switch } from '@headlessui/react'; -import ThemeSwitcher from '@/components/theme/Switcher'; -import { ImagesIcon, VideoIcon } from 'lucide-react'; -import Link from 'next/link'; -import { PROVIDER_METADATA } from '@/lib/providers'; - -interface SettingsType { - chatModelProviders: { - [key: string]: [Record]; - }; - embeddingModelProviders: { - [key: string]: [Record]; - }; - openaiApiKey: string; - groqApiKey: string; - anthropicApiKey: string; - geminiApiKey: string; - ollamaApiUrl: string; - ollamaApiKey: string; - lmStudioApiUrl: string; - lemonadeApiUrl: string; - lemonadeApiKey: string; - deepseekApiKey: string; - aimlApiKey: string; - customOpenaiApiKey: string; - customOpenaiApiUrl: string; - customOpenaiModelName: string; -} - -interface InputProps extends React.InputHTMLAttributes { - isSaving?: boolean; - onSave?: (value: string) => void; -} - -const Input = ({ className, isSaving, onSave, ...restProps }: InputProps) => { - return ( -
- onSave?.(e.target.value)} - /> - {isSaving && ( -
- -
- )} -
- ); -}; - -interface TextareaProps extends React.InputHTMLAttributes { - isSaving?: boolean; - onSave?: (value: string) => void; -} - -const Textarea = ({ - className, - isSaving, - onSave, - ...restProps -}: TextareaProps) => { - return ( -
-