diff --git a/app/components/ui/Settings.tsx b/app/components/ui/Settings.tsx index e58e8b5..109163d 100644 --- a/app/components/ui/Settings.tsx +++ b/app/components/ui/Settings.tsx @@ -10,6 +10,9 @@ import { toast } from 'react-toastify'; import { useNavigate } from '@remix-run/react'; import commit from '~/commit.json'; import Cookies from 'js-cookie'; +import { SettingsSlider } from './SettingsSlider'; +import '~/styles/components/SettingsSlider.scss'; +import '~/styles/components/Settings.scss'; interface SettingsProps { open: boolean; @@ -27,6 +30,7 @@ export const Settings = ({ open, onClose }: SettingsProps) => { const [isDebugEnabled, setIsDebugEnabled] = useState(false); const [searchTerm, setSearchTerm] = useState(''); const [isDeleting, setIsDeleting] = useState(false); + const [isJustSayEnabled, setIsJustSayEnabled] = useState(false); // Load base URLs from cookies const [baseUrls, setBaseUrls] = useState(() => { @@ -203,21 +207,20 @@ export const Settings = ({ open, onClose }: SettingsProps) => {
-
+
{tabs.map((tab) => ( -
+

Danger Area

This action cannot be undone!

-

System Information

-

OS: {navigator.platform}

-

Browser: {navigator.userAgent}

+

System Information

+

OS: {navigator.platform}

+

Browser: {navigator.userAgent}

-

Active Features

+

Active Features

    {providers .filter((provider) => provider.isEnabled) .map((provider) => ( -
  • +
  • {provider.name}
  • ))}
-

Base URLs

+

Base URLs

    -
  • Ollama: {process.env.REACT_APP_OLLAMA_URL}
  • -
  • OpenAI: {process.env.REACT_APP_OPENAI_URL}
  • -
  • LM Studio: {process.env.REACT_APP_LM_STUDIO_URL}
  • +
  • Ollama: {process.env.REACT_APP_OLLAMA_URL}
  • +
  • OpenAI: {process.env.REACT_APP_OPENAI_URL}
  • +
  • LM Studio: {process.env.REACT_APP_LM_STUDIO_URL}
-

Version Information

-

Version Hash: {versionHash}

+

Version Information

+

Version Hash: {versionHash}

)}
diff --git a/app/components/ui/SettingsSlider.tsx b/app/components/ui/SettingsSlider.tsx index 1a5d410..4cc4dcc 100644 --- a/app/components/ui/SettingsSlider.tsx +++ b/app/components/ui/SettingsSlider.tsx @@ -1,6 +1,7 @@ import { motion } from 'framer-motion'; import { memo } from 'react'; import { classNames } from '~/utils/classNames'; +import '~/styles/components/SettingsSlider.scss'; interface SliderOption { value: T; @@ -22,11 +23,11 @@ export const SettingsSlider = memo(({ selected, options, setSelected }: Sett const isLeftSelected = selected === options.left.value; return ( -
+
({ selected, options, setSelected }: Sett