diff --git a/src/components/Common/Playground/Message.tsx b/src/components/Common/Playground/Message.tsx index 9894f0f..ff03fe2 100644 --- a/src/components/Common/Playground/Message.tsx +++ b/src/components/Common/Playground/Message.tsx @@ -19,7 +19,7 @@ import { tagColors } from "@/utils/color" import { removeModelSuffix } from "@/db/models" import { GenerationInfo } from "./GenerationInfo" import { parseReasoning, removeReasoning } from "@/libs/reasoning" -import { humanizeMilliseconds } from "@/utils/humanize-miliseconds" +import { humanizeMilliseconds } from "@/utils/humanize-milliseconds" type Props = { message: string message_type?: string diff --git a/src/components/Layouts/Header.tsx b/src/components/Layouts/Header.tsx index cfc3ed4..48020ad 100644 --- a/src/components/Layouts/Header.tsx +++ b/src/components/Layouts/Header.tsx @@ -11,7 +11,7 @@ import { } from "lucide-react" import { useTranslation } from "react-i18next" import { useLocation, NavLink } from "react-router-dom" -import { SelectedKnowledge } from "../Option/Knowledge/SelectedKnwledge" +import { SelectedKnowledge } from "../Option/Knowledge/SelectedKnowledge" import { ModelSelect } from "../Common/ModelSelect" import { PromptSelect } from "../Common/PromptSelect" import { useQuery } from "@tanstack/react-query" diff --git a/src/components/Option/Knowledge/SelectedKnwledge.tsx b/src/components/Option/Knowledge/SelectedKnowledge.tsx similarity index 100% rename from src/components/Option/Knowledge/SelectedKnwledge.tsx rename to src/components/Option/Knowledge/SelectedKnowledge.tsx diff --git a/src/components/Option/Playground/PlaygroundForm.tsx b/src/components/Option/Playground/PlaygroundForm.tsx index e8d4e32..c8993bb 100644 --- a/src/components/Option/Playground/PlaygroundForm.tsx +++ b/src/components/Option/Playground/PlaygroundForm.tsx @@ -9,7 +9,7 @@ import { Image } from "antd" import { useWebUI } from "~/store/webui" import { defaultEmbeddingModelForRag } from "~/services/ollama" import { ImageIcon, MicIcon, StopCircleIcon, X } from "lucide-react" -import { getVariable } from "~/utils/select-varaible" +import { getVariable } from "@/utils/select-variable" import { useTranslation } from "react-i18next" import { KnowledgeSelect } from "../Knowledge/KnowledgeSelect" import { useSpeechRecognition } from "@/hooks/useSpeechRecognition" diff --git a/src/components/Option/Settings/general-settings.tsx b/src/components/Option/Settings/general-settings.tsx index e78bdf9..0ebba54 100644 --- a/src/components/Option/Settings/general-settings.tsx +++ b/src/components/Option/Settings/general-settings.tsx @@ -3,7 +3,7 @@ import { useDarkMode } from "~/hooks/useDarkmode" import { useMessageOption } from "~/hooks/useMessageOption" import { PageAssitDatabase } from "@/db" import { Select, Switch } from "antd" -import { SUPPORTED_LANGUAGES } from "~/utils/supporetd-languages" +import { SUPPORTED_LANGUAGES } from "~/utils/supported-languages" import { MoonIcon, SunIcon } from "lucide-react" import { SearchModeSettings } from "./search-mode" import { useTranslation } from "react-i18next" diff --git a/src/components/Sidepanel/Settings/body.tsx b/src/components/Sidepanel/Settings/body.tsx index 710f47a..ef35763 100644 --- a/src/components/Sidepanel/Settings/body.tsx +++ b/src/components/Sidepanel/Settings/body.tsx @@ -25,7 +25,7 @@ import { } from "antd" import { useDarkMode } from "~/hooks/useDarkmode" import { SaveButton } from "~/components/Common/SaveButton" -import { SUPPORTED_LANGUAGES } from "~/utils/supporetd-languages" +import { SUPPORTED_LANGUAGES } from "~/utils/supported-languages" import { useMessage } from "~/hooks/useMessage" import { MoonIcon, SunIcon } from "lucide-react" import { Trans, useTranslation } from "react-i18next" diff --git a/src/utils/humanize-miliseconds.ts b/src/utils/humanize-milliseconds.ts similarity index 100% rename from src/utils/humanize-miliseconds.ts rename to src/utils/humanize-milliseconds.ts diff --git a/src/utils/select-varaible.ts b/src/utils/select-variable.ts similarity index 100% rename from src/utils/select-varaible.ts rename to src/utils/select-variable.ts diff --git a/src/utils/supporetd-languages.ts b/src/utils/supported-languages.ts similarity index 100% rename from src/utils/supporetd-languages.ts rename to src/utils/supported-languages.ts