2024-05-13 12:44:44 +05:30
|
|
|
import { Route, Routes } from "react-router-dom"
|
|
|
|
|
import OptionIndex from "./option-index"
|
|
|
|
|
import OptionSettings from "./option-settings"
|
|
|
|
|
import OptionModal from "./option-settings-model"
|
|
|
|
|
import OptionPrompt from "./option-settings-prompt"
|
|
|
|
|
import OptionOllamaSettings from "./options-settings-ollama"
|
|
|
|
|
import OptionShare from "./option-settings-share"
|
|
|
|
|
import OptionKnowledgeBase from "./option-settings-knowledge"
|
|
|
|
|
import OptionAbout from "./option-settings-about"
|
|
|
|
|
import SidepanelChat from "./sidepanel-chat"
|
|
|
|
|
import SidepanelSettings from "./sidepanel-settings"
|
2024-06-03 00:30:10 +05:30
|
|
|
import OptionRagSettings from "./option-rag"
|
2024-06-30 20:45:06 +05:30
|
|
|
import OptionChrome from "./option-settings-chrome"
|
2024-09-28 16:08:02 +05:30
|
|
|
import OptionOpenAI from "./option-settings-openai"
|
2024-05-13 12:44:44 +05:30
|
|
|
|
|
|
|
|
export const OptionRoutingChrome = () => {
|
|
|
|
|
return (
|
|
|
|
|
<Routes>
|
|
|
|
|
<Route path="/" element={<OptionIndex />} />
|
|
|
|
|
<Route path="/settings" element={<OptionSettings />} />
|
|
|
|
|
<Route path="/settings/model" element={<OptionModal />} />
|
|
|
|
|
<Route path="/settings/prompt" element={<OptionPrompt />} />
|
|
|
|
|
<Route path="/settings/ollama" element={<OptionOllamaSettings />} />
|
2024-06-30 20:45:06 +05:30
|
|
|
<Route path="/settings/chrome" element={<OptionChrome />} />
|
2024-09-28 16:08:02 +05:30
|
|
|
<Route path="/settings/openai" element={<OptionOpenAI />} />
|
2024-05-13 12:44:44 +05:30
|
|
|
<Route path="/settings/share" element={<OptionShare />} />
|
|
|
|
|
<Route path="/settings/knowledge" element={<OptionKnowledgeBase />} />
|
2024-06-03 00:30:10 +05:30
|
|
|
<Route path="/settings/rag" element={<OptionRagSettings />} />
|
2024-05-13 12:44:44 +05:30
|
|
|
<Route path="/settings/about" element={<OptionAbout />} />
|
|
|
|
|
</Routes>
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const SidepanelRoutingChrome = () => {
|
|
|
|
|
return (
|
|
|
|
|
<Routes>
|
|
|
|
|
<Route path="/" element={<SidepanelChat />} />
|
|
|
|
|
<Route path="/settings" element={<SidepanelSettings />} />
|
|
|
|
|
</Routes>
|
|
|
|
|
)
|
|
|
|
|
}
|