refactor: rename page routers

This commit is contained in:
Junyan Qin
2025-04-26 11:19:05 +08:00
parent 2d64447c08
commit e03e12539a
23 changed files with 26 additions and 26 deletions
@@ -1,4 +1,4 @@
import {BotCardVO} from "@/app/home/bot-config/components/bot-card/BotCardVO"; import {BotCardVO} from "@/app/home/bots/components/bot-card/BotCardVO";
import styles from "./botCard.module.css"; import styles from "./botCard.module.css";
export default function BotCard({ export default function BotCard({
@@ -1,8 +1,8 @@
import {BotFormEntity, IBotFormEntity} from "@/app/home/bot-config/components/bot-form/BotFormEntity"; import {BotFormEntity, IBotFormEntity} from "@/app/home/bots/components/bot-form/BotFormEntity";
import {fetchAdapterList} from "@/app/home/mock-api/index" import {fetchAdapterList} from "@/app/home/mock-api/index"
import {Button, Form, Input, Select, Space} from "antd"; import {Button, Form, Input, Select, Space} from "antd";
import {useEffect, useState} from "react"; import {useEffect, useState} from "react";
import {IChooseAdapterEntity} from "@/app/home/bot-config/components/bot-form/ChooseAdapterEntity"; import {IChooseAdapterEntity} from "@/app/home/bots/components/bot-form/ChooseAdapterEntity";
import { import {
DynamicFormItemConfig, DynamicFormItemConfig,
IDynamicFormItemConfig, IDynamicFormItemConfig,
@@ -10,7 +10,7 @@ import {
} from "@/app/home/components/dynamic-form/DynamicFormItemConfig"; } from "@/app/home/components/dynamic-form/DynamicFormItemConfig";
import {UUID} from 'uuidjs' import {UUID} from 'uuidjs'
import DynamicFormComponent from "@/app/home/components/dynamic-form/DynamicFormComponent"; import DynamicFormComponent from "@/app/home/components/dynamic-form/DynamicFormComponent";
import {ICreateLLMField} from "@/app/home/llm-config/ICreateLLMField"; import {ICreateLLMField} from "@/app/home/models/ICreateLLMField";
export default function BotForm({ export default function BotForm({
initBotId, initBotId,
@@ -4,10 +4,10 @@ import {useEffect, useState} from "react";
import styles from "./botConfig.module.css"; import styles from "./botConfig.module.css";
import EmptyAndCreateComponent from "@/app/home/components/empty-and-create-component/EmptyAndCreateComponent"; import EmptyAndCreateComponent from "@/app/home/components/empty-and-create-component/EmptyAndCreateComponent";
import {useRouter} from "next/navigation"; import {useRouter} from "next/navigation";
import {BotCardVO} from "@/app/home/bot-config/components/bot-card/BotCardVO"; import {BotCardVO} from "@/app/home/bots/components/bot-card/BotCardVO";
import {Modal} from "antd"; import {Modal} from "antd";
import BotForm from "@/app/home/bot-config/components/bot-form/BotForm"; import BotForm from "@/app/home/bots/components/bot-form/BotForm";
import BotCard from "@/app/home/bot-config/components/bot-card/BotCard"; import BotCard from "@/app/home/bots/components/bot-card/BotCard";
import CreateCardComponent from "@/app/infra/basic-component/create-card-component/CreateCardComponent" import CreateCardComponent from "@/app/infra/basic-component/create-card-component/CreateCardComponent"
@@ -105,7 +105,7 @@ export default function BotConfigPage() {
subTitle={"快去创建一个吧!"} subTitle={"快去创建一个吧!"}
buttonText={"创建大模型 GO"} buttonText={"创建大模型 GO"}
onButtonClick={() => { onButtonClick={() => {
router.push("/home/llm-config"); router.push("/home/models");
}} }}
/> />
} }
@@ -2,27 +2,27 @@ import {SidebarChildVO} from "@/app/home/components/home-sidebar/HomeSidebarChil
export const sidebarConfigList = [ export const sidebarConfigList = [
new SidebarChildVO({ new SidebarChildVO({
id: "llm-config", id: "models",
name: "模型配置", name: "模型配置",
icon: "", icon: "",
route: "/home/llm-config", route: "/home/models",
}), }),
new SidebarChildVO({ new SidebarChildVO({
id: "platform-config", id: "bots",
name: "机器人配置", name: "机器人",
icon: "", icon: "",
route: "/home/bot-config", route: "/home/bots",
}), }),
new SidebarChildVO({ new SidebarChildVO({
id: "plugin-config", id: "plugins",
name: "插件配置", name: "插件管理",
icon: "", icon: "",
route: "/home/plugin-config", route: "/home/plugins",
}), }),
new SidebarChildVO({ new SidebarChildVO({
id: "pipeline-config", id: "pipelines",
name: "流水线配置", name: "流水线",
icon: "", icon: "",
route: "/home/pipeline-config", route: "/home/pipelines",
}) })
] ]
@@ -1,5 +1,5 @@
import styles from "../../LLMConfig.module.css" import styles from "../../LLMConfig.module.css"
import {LLMCardVO} from "@/app/home/llm-config/component/llm-card/LLMCardVO"; import {LLMCardVO} from "@/app/home/models/component/llm-card/LLMCardVO";
export default function LLMCard({ export default function LLMCard({
cardVO cardVO
@@ -1,6 +1,6 @@
import styles from "@/app/home/llm-config/LLMConfig.module.css"; import styles from "@/app/home/models/LLMConfig.module.css";
import {Button, Form, Input, Select, SelectProps, Space} from "antd"; import {Button, Form, Input, Select, SelectProps, Space} from "antd";
import {ICreateLLMField} from "@/app/home/llm-config/ICreateLLMField"; import {ICreateLLMField} from "@/app/home/models/ICreateLLMField";
import {useEffect, useState} from "react"; import {useEffect, useState} from "react";
export default function LLMForm({ export default function LLMForm({
@@ -1,12 +1,12 @@
"use client" "use client"
import {useState} from "react"; import {useState} from "react";
import {LLMCardVO} from "@/app/home/llm-config/component/llm-card/LLMCardVO"; import {LLMCardVO} from "@/app/home/models/component/llm-card/LLMCardVO";
import styles from "./LLMConfig.module.css" import styles from "./LLMConfig.module.css"
import EmptyAndCreateComponent from "@/app/home/components/empty-and-create-component/EmptyAndCreateComponent"; import EmptyAndCreateComponent from "@/app/home/components/empty-and-create-component/EmptyAndCreateComponent";
import {Modal} from "antd"; import {Modal} from "antd";
import LLMCard from "@/app/home/llm-config/component/llm-card/LLMCard"; import LLMCard from "@/app/home/models/component/llm-card/LLMCard";
import LLMForm from "@/app/home/llm-config/component/llm-form/LLMForm"; import LLMForm from "@/app/home/models/component/llm-form/LLMForm";
import CreateCardComponent from "@/app/infra/basic-component/create-card-component/CreateCardComponent"; import CreateCardComponent from "@/app/infra/basic-component/create-card-component/CreateCardComponent";
export default function LLMConfigPage() { export default function LLMConfigPage() {