new settings for rag
This commit is contained in:
@@ -9,6 +9,7 @@ import OptionKnowledgeBase from "./option-settings-knowledge"
|
||||
import OptionAbout from "./option-settings-about"
|
||||
import SidepanelChat from "./sidepanel-chat"
|
||||
import SidepanelSettings from "./sidepanel-settings"
|
||||
import OptionRagSettings from "./option-rag"
|
||||
|
||||
export const OptionRoutingChrome = () => {
|
||||
return (
|
||||
@@ -20,6 +21,7 @@ export const OptionRoutingChrome = () => {
|
||||
<Route path="/settings/ollama" element={<OptionOllamaSettings />} />
|
||||
<Route path="/settings/share" element={<OptionShare />} />
|
||||
<Route path="/settings/knowledge" element={<OptionKnowledgeBase />} />
|
||||
<Route path="/settings/rag" element={<OptionRagSettings />} />
|
||||
<Route path="/settings/about" element={<OptionAbout />} />
|
||||
</Routes>
|
||||
)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// this is a temp fix for firefox
|
||||
// because chunks getting 4mb+ and it's not working on firefox addon store
|
||||
import { lazy } from "react"
|
||||
import { Route , Routes} from "react-router-dom"
|
||||
import { Route, Routes } from "react-router-dom"
|
||||
|
||||
const SidepanelChat = lazy(() => import("./sidepanel-chat"))
|
||||
const SidepanelSettings = lazy(() => import("./sidepanel-settings"))
|
||||
@@ -13,6 +13,7 @@ const OptionSettings = lazy(() => import("./option-settings"))
|
||||
const OptionShare = lazy(() => import("./option-settings-share"))
|
||||
const OptionKnowledgeBase = lazy(() => import("./option-settings-knowledge"))
|
||||
const OptionAbout = lazy(() => import("./option-settings-about"))
|
||||
const OptionRagSettings = lazy(() => import("./option-rag"))
|
||||
|
||||
export const OptionRoutingFirefox = () => {
|
||||
return (
|
||||
@@ -25,6 +26,7 @@ export const OptionRoutingFirefox = () => {
|
||||
<Route path="/settings/share" element={<OptionShare />} />
|
||||
<Route path="/settings/knowledge" element={<OptionKnowledgeBase />} />
|
||||
<Route path="/settings/about" element={<OptionAbout />} />
|
||||
<Route path="/settings/rag" element={<OptionRagSettings />} />
|
||||
</Routes>
|
||||
)
|
||||
}
|
||||
|
||||
15
src/routes/option-rag.tsx
Normal file
15
src/routes/option-rag.tsx
Normal file
@@ -0,0 +1,15 @@
|
||||
import { SettingsLayout } from "~/components/Layouts/SettingsOptionLayout"
|
||||
import OptionLayout from "~/components/Layouts/Layout"
|
||||
import { RagSettings } from "@/components/Option/Settings/rag"
|
||||
|
||||
const OptionRagSettings = () => {
|
||||
return (
|
||||
<OptionLayout>
|
||||
<SettingsLayout>
|
||||
<RagSettings />
|
||||
</SettingsLayout>
|
||||
</OptionLayout>
|
||||
)
|
||||
}
|
||||
|
||||
export default OptionRagSettings
|
||||
@@ -1,12 +1,12 @@
|
||||
import { SettingsLayout } from "~/components/Layouts/SettingsOptionLayout"
|
||||
import OptionLayout from "~/components/Layouts/Layout"
|
||||
import { SettingOther } from "~/components/Option/Settings/other"
|
||||
import { GeneralSettings } from "~/components/Option/Settings/general-settings"
|
||||
|
||||
const OptionSettings = () => {
|
||||
return (
|
||||
<OptionLayout>
|
||||
<SettingsLayout>
|
||||
<SettingOther />
|
||||
<GeneralSettings />
|
||||
</SettingsLayout>
|
||||
</OptionLayout>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user