Merge branch 'feat/metering' of gitea.internetapi.cn:iod/page-assist into feat/page
This commit is contained in:
@@ -12,6 +12,8 @@ import SidepanelSettings from "./sidepanel-settings"
|
||||
import OptionRagSettings from "./option-rag"
|
||||
import OptionChrome from "./option-settings-chrome"
|
||||
import OptionOpenAI from "./option-settings-openai"
|
||||
import OptionMetering from "./option-metering"
|
||||
import MeteringListDetail from "./metering-list-detail"
|
||||
|
||||
export const OptionRoutingChrome = () => {
|
||||
return (
|
||||
@@ -27,6 +29,8 @@ export const OptionRoutingChrome = () => {
|
||||
<Route path="/settings/knowledge" element={<OptionKnowledgeBase />} />
|
||||
<Route path="/settings/rag" element={<OptionRagSettings />} />
|
||||
<Route path="/settings/about" element={<OptionAbout />} />
|
||||
<Route path="/metering" element={<OptionMetering />} />
|
||||
<Route path="/metering/list/:id" element={<MeteringListDetail />} />
|
||||
</Routes>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -10,6 +10,8 @@ const OptionModal = lazy(() => import("./option-settings-model"))
|
||||
const OptionPrompt = lazy(() => import("./option-settings-prompt"))
|
||||
const OptionOllamaSettings = lazy(() => import("./options-settings-ollama"))
|
||||
const OptionSettings = lazy(() => import("./option-settings"))
|
||||
const OptionMetering = lazy(() => import("./option-metering"))
|
||||
const MeteringListDetail = lazy(() => import("./metering-list-detail"))
|
||||
const OptionShare = lazy(() => import("./option-settings-share"))
|
||||
const OptionKnowledgeBase = lazy(() => import("./option-settings-knowledge"))
|
||||
const OptionAbout = lazy(() => import("./option-settings-about"))
|
||||
@@ -29,6 +31,8 @@ export const OptionRoutingFirefox = () => {
|
||||
<Route path="/settings/knowledge" element={<OptionKnowledgeBase />} />
|
||||
<Route path="/settings/about" element={<OptionAbout />} />
|
||||
<Route path="/settings/rag" element={<OptionRagSettings />} />
|
||||
<Route path="/metering" element={<OptionMetering />} />
|
||||
<Route path="/metering/list/:id" element={<MeteringListDetail />} />
|
||||
</Routes>
|
||||
)
|
||||
}
|
||||
|
||||
12
src/routes/metering-list-detail.tsx
Normal file
12
src/routes/metering-list-detail.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import OptionLayout from "~/components/Layouts/Layout"
|
||||
import { ListDetail } from "~/components/Option/Metering/listDetail"
|
||||
|
||||
const OptionSettings = () => {
|
||||
return (
|
||||
<OptionLayout>
|
||||
<ListDetail />
|
||||
</OptionLayout>
|
||||
)
|
||||
}
|
||||
|
||||
export default OptionSettings
|
||||
12
src/routes/option-metering.tsx
Normal file
12
src/routes/option-metering.tsx
Normal file
@@ -0,0 +1,12 @@
|
||||
import OptionLayout from "~/components/Layouts/Layout"
|
||||
import { MeteringDetail } from "~/components/Option/Metering/detail"
|
||||
|
||||
const OptionSettings = () => {
|
||||
return (
|
||||
<OptionLayout>
|
||||
<MeteringDetail />
|
||||
</OptionLayout>
|
||||
)
|
||||
}
|
||||
|
||||
export default OptionSettings
|
||||
Reference in New Issue
Block a user