chore: Update Lucide icons and improve Current Chat Model Settings
This commit is contained in:
parent
2a7d34f4df
commit
9e2ef72486
@ -25,7 +25,7 @@ import { useStorage } from "@plasmohq/storage/hook"
|
|||||||
import { ModelSelect } from "../Common/ModelSelect"
|
import { ModelSelect } from "../Common/ModelSelect"
|
||||||
import { PromptSelect } from "../Common/PromptSelect"
|
import { PromptSelect } from "../Common/PromptSelect"
|
||||||
import { ChatSettings } from "../Icons/ChatSettings"
|
import { ChatSettings } from "../Icons/ChatSettings"
|
||||||
import { CurrentChatModelSettings } from "../Common/CurrentChatModelSettings"
|
import { CurrentChatModelSettings } from "../Common/Settings/CurrentChatModelSettings"
|
||||||
|
|
||||||
export default function OptionLayout({
|
export default function OptionLayout({
|
||||||
children
|
children
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { SaveButton } from "@/components/Common/SaveButton"
|
import { SaveButton } from "@/components/Common/SaveButton"
|
||||||
import { getAllModelSettings, setModelSetting } from "@/services/model-settings"
|
import { getAllModelSettings, setModelSetting } from "@/services/model-settings"
|
||||||
import { useQuery, useQueryClient } from "@tanstack/react-query"
|
import { useQuery, useQueryClient } from "@tanstack/react-query"
|
||||||
import { Form, Skeleton, Input, Switch, InputNumber, Collapse } from "antd"
|
import { Form, Skeleton, Input, InputNumber, Collapse } from "antd"
|
||||||
import React from "react"
|
import React from "react"
|
||||||
import { useTranslation } from "react-i18next"
|
import { useTranslation } from "react-i18next"
|
||||||
// keepAlive?: string
|
// keepAlive?: string
|
||||||
|
@ -14,7 +14,7 @@ import {
|
|||||||
import { SettingPrompt } from "./prompt"
|
import { SettingPrompt } from "./prompt"
|
||||||
import { Trans, useTranslation } from "react-i18next"
|
import { Trans, useTranslation } from "react-i18next"
|
||||||
import { useStorage } from "@plasmohq/storage/hook"
|
import { useStorage } from "@plasmohq/storage/hook"
|
||||||
import { AdvanceOllamaSettings } from "@/components/Common/AdvanceOllamaSettings"
|
import { AdvanceOllamaSettings } from "@/components/Common/Settings/AdvanceOllamaSettings"
|
||||||
import { ModelSettings } from "./model-settings"
|
import { ModelSettings } from "./model-settings"
|
||||||
|
|
||||||
export const SettingsOllama = () => {
|
export const SettingsOllama = () => {
|
||||||
|
@ -29,7 +29,7 @@ export const SettingOther = () => {
|
|||||||
<dl className="flex flex-col space-y-6 text-sm">
|
<dl className="flex flex-col space-y-6 text-sm">
|
||||||
<div>
|
<div>
|
||||||
<h2 className="text-base font-semibold leading-7 text-gray-900 dark:text-white">
|
<h2 className="text-base font-semibold leading-7 text-gray-900 dark:text-white">
|
||||||
{t("generalSettings.settings.heading")}
|
{t("generalSettings.title")}
|
||||||
</h2>
|
</h2>
|
||||||
<div className="border border-b border-gray-200 dark:border-gray-600 mt-3"></div>
|
<div className="border border-b border-gray-200 dark:border-gray-600 mt-3"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -4,7 +4,7 @@ import { Link } from "react-router-dom"
|
|||||||
import { Tooltip } from "antd"
|
import { Tooltip } from "antd"
|
||||||
import { BoxesIcon, BrainCog, CogIcon, EraserIcon } from "lucide-react"
|
import { BoxesIcon, BrainCog, CogIcon, EraserIcon } from "lucide-react"
|
||||||
import { useTranslation } from "react-i18next"
|
import { useTranslation } from "react-i18next"
|
||||||
import { CurrentChatModelSettings } from "@/components/Common/CurrentChatModelSettings"
|
import { CurrentChatModelSettings } from "@/components/Common/Settings/CurrentChatModelSettings"
|
||||||
import React from "react"
|
import React from "react"
|
||||||
export const SidepanelHeader = () => {
|
export const SidepanelHeader = () => {
|
||||||
const { clearChat, isEmbedding, messages, streaming } = useMessage()
|
const { clearChat, isEmbedding, messages, streaming } = useMessage()
|
||||||
|
@ -23,7 +23,7 @@ import { MoonIcon, SunIcon } from "lucide-react"
|
|||||||
import { Trans, useTranslation } from "react-i18next"
|
import { Trans, useTranslation } from "react-i18next"
|
||||||
import { useI18n } from "@/hooks/useI18n"
|
import { useI18n } from "@/hooks/useI18n"
|
||||||
import { TTSModeSettings } from "@/components/Option/Settings/tts-mode"
|
import { TTSModeSettings } from "@/components/Option/Settings/tts-mode"
|
||||||
import { AdvanceOllamaSettings } from "@/components/Common/AdvanceOllamaSettings"
|
import { AdvanceOllamaSettings } from "@/components/Common/Settings/AdvanceOllamaSettings"
|
||||||
|
|
||||||
export const SettingsBody = () => {
|
export const SettingsBody = () => {
|
||||||
const { t } = useTranslation("settings")
|
const { t } = useTranslation("settings")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user