diff --git a/web_ui/src/app/home/bot-config/ICreateBotField.ts b/web_ui/src/app/home/bots/ICreateBotField.ts similarity index 100% rename from web_ui/src/app/home/bot-config/ICreateBotField.ts rename to web_ui/src/app/home/bots/ICreateBotField.ts diff --git a/web_ui/src/app/home/bot-config/botConfig.module.css b/web_ui/src/app/home/bots/botConfig.module.css similarity index 100% rename from web_ui/src/app/home/bot-config/botConfig.module.css rename to web_ui/src/app/home/bots/botConfig.module.css diff --git a/web_ui/src/app/home/bot-config/components/bot-card/BotCard.tsx b/web_ui/src/app/home/bots/components/bot-card/BotCard.tsx similarity index 94% rename from web_ui/src/app/home/bot-config/components/bot-card/BotCard.tsx rename to web_ui/src/app/home/bots/components/bot-card/BotCard.tsx index af078a24..29dd54f0 100644 --- a/web_ui/src/app/home/bot-config/components/bot-card/BotCard.tsx +++ b/web_ui/src/app/home/bots/components/bot-card/BotCard.tsx @@ -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"; export default function BotCard({ diff --git a/web_ui/src/app/home/bot-config/components/bot-card/BotCardVO.ts b/web_ui/src/app/home/bots/components/bot-card/BotCardVO.ts similarity index 100% rename from web_ui/src/app/home/bot-config/components/bot-card/BotCardVO.ts rename to web_ui/src/app/home/bots/components/bot-card/BotCardVO.ts diff --git a/web_ui/src/app/home/bot-config/components/bot-card/CreateBotCardComponent.tsx b/web_ui/src/app/home/bots/components/bot-card/CreateBotCardComponent.tsx similarity index 100% rename from web_ui/src/app/home/bot-config/components/bot-card/CreateBotCardComponent.tsx rename to web_ui/src/app/home/bots/components/bot-card/CreateBotCardComponent.tsx diff --git a/web_ui/src/app/home/bot-config/components/bot-card/botCard.module.css b/web_ui/src/app/home/bots/components/bot-card/botCard.module.css similarity index 100% rename from web_ui/src/app/home/bot-config/components/bot-card/botCard.module.css rename to web_ui/src/app/home/bots/components/bot-card/botCard.module.css diff --git a/web_ui/src/app/home/bot-config/components/bot-form/BotForm.tsx b/web_ui/src/app/home/bots/components/bot-form/BotForm.tsx similarity index 96% rename from web_ui/src/app/home/bot-config/components/bot-form/BotForm.tsx rename to web_ui/src/app/home/bots/components/bot-form/BotForm.tsx index f1d65056..72b5f69f 100644 --- a/web_ui/src/app/home/bot-config/components/bot-form/BotForm.tsx +++ b/web_ui/src/app/home/bots/components/bot-form/BotForm.tsx @@ -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 {Button, Form, Input, Select, Space} from "antd"; 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 { DynamicFormItemConfig, IDynamicFormItemConfig, @@ -10,7 +10,7 @@ import { } from "@/app/home/components/dynamic-form/DynamicFormItemConfig"; import {UUID} from 'uuidjs' 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({ initBotId, diff --git a/web_ui/src/app/home/bot-config/components/bot-form/BotFormEntity.ts b/web_ui/src/app/home/bots/components/bot-form/BotFormEntity.ts similarity index 100% rename from web_ui/src/app/home/bot-config/components/bot-form/BotFormEntity.ts rename to web_ui/src/app/home/bots/components/bot-form/BotFormEntity.ts diff --git a/web_ui/src/app/home/bot-config/components/bot-form/ChooseAdapterEntity.ts b/web_ui/src/app/home/bots/components/bot-form/ChooseAdapterEntity.ts similarity index 100% rename from web_ui/src/app/home/bot-config/components/bot-form/ChooseAdapterEntity.ts rename to web_ui/src/app/home/bots/components/bot-form/ChooseAdapterEntity.ts diff --git a/web_ui/src/app/home/bot-config/page.tsx b/web_ui/src/app/home/bots/page.tsx similarity index 94% rename from web_ui/src/app/home/bot-config/page.tsx rename to web_ui/src/app/home/bots/page.tsx index d2a36f08..4ac6ca5b 100644 --- a/web_ui/src/app/home/bot-config/page.tsx +++ b/web_ui/src/app/home/bots/page.tsx @@ -4,10 +4,10 @@ import {useEffect, useState} from "react"; import styles from "./botConfig.module.css"; import EmptyAndCreateComponent from "@/app/home/components/empty-and-create-component/EmptyAndCreateComponent"; 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 BotForm from "@/app/home/bot-config/components/bot-form/BotForm"; -import BotCard from "@/app/home/bot-config/components/bot-card/BotCard"; +import BotForm from "@/app/home/bots/components/bot-form/BotForm"; +import BotCard from "@/app/home/bots/components/bot-card/BotCard"; import CreateCardComponent from "@/app/infra/basic-component/create-card-component/CreateCardComponent" @@ -105,7 +105,7 @@ export default function BotConfigPage() { subTitle={"快去创建一个吧!"} buttonText={"创建大模型 GO!"} onButtonClick={() => { - router.push("/home/llm-config"); + router.push("/home/models"); }} /> } diff --git a/web_ui/src/app/home/components/home-sidebar/sidbarConfigList.ts b/web_ui/src/app/home/components/home-sidebar/sidbarConfigList.ts index 3c96e4f6..ff78a281 100644 --- a/web_ui/src/app/home/components/home-sidebar/sidbarConfigList.ts +++ b/web_ui/src/app/home/components/home-sidebar/sidbarConfigList.ts @@ -2,27 +2,27 @@ import {SidebarChildVO} from "@/app/home/components/home-sidebar/HomeSidebarChil export const sidebarConfigList = [ new SidebarChildVO({ - id: "llm-config", - name: "大模型配置", + id: "models", + name: "模型配置", icon: "", - route: "/home/llm-config", + route: "/home/models", }), new SidebarChildVO({ - id: "platform-config", - name: "机器人配置", + id: "bots", + name: "机器人", icon: "", - route: "/home/bot-config", + route: "/home/bots", }), new SidebarChildVO({ - id: "plugin-config", - name: "插件配置", + id: "plugins", + name: "插件管理", icon: "", - route: "/home/plugin-config", + route: "/home/plugins", }), new SidebarChildVO({ - id: "pipeline-config", - name: "流水线配置", + id: "pipelines", + name: "流水线", icon: "", - route: "/home/pipeline-config", + route: "/home/pipelines", }) ] diff --git a/web_ui/src/app/home/llm-config/ICreateLLMField.ts b/web_ui/src/app/home/models/ICreateLLMField.ts similarity index 100% rename from web_ui/src/app/home/llm-config/ICreateLLMField.ts rename to web_ui/src/app/home/models/ICreateLLMField.ts diff --git a/web_ui/src/app/home/llm-config/LLMConfig.module.css b/web_ui/src/app/home/models/LLMConfig.module.css similarity index 100% rename from web_ui/src/app/home/llm-config/LLMConfig.module.css rename to web_ui/src/app/home/models/LLMConfig.module.css diff --git a/web_ui/src/app/home/llm-config/component/llm-card/LLMCard.tsx b/web_ui/src/app/home/models/component/llm-card/LLMCard.tsx similarity index 94% rename from web_ui/src/app/home/llm-config/component/llm-card/LLMCard.tsx rename to web_ui/src/app/home/models/component/llm-card/LLMCard.tsx index a8ab5f4b..9a11e2b3 100644 --- a/web_ui/src/app/home/llm-config/component/llm-card/LLMCard.tsx +++ b/web_ui/src/app/home/models/component/llm-card/LLMCard.tsx @@ -1,5 +1,5 @@ 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({ cardVO diff --git a/web_ui/src/app/home/llm-config/component/llm-card/LLMCardVO.ts b/web_ui/src/app/home/models/component/llm-card/LLMCardVO.ts similarity index 100% rename from web_ui/src/app/home/llm-config/component/llm-card/LLMCardVO.ts rename to web_ui/src/app/home/models/component/llm-card/LLMCardVO.ts diff --git a/web_ui/src/app/home/llm-config/component/llm-form/LLMForm.tsx b/web_ui/src/app/home/models/component/llm-form/LLMForm.tsx similarity index 97% rename from web_ui/src/app/home/llm-config/component/llm-form/LLMForm.tsx rename to web_ui/src/app/home/models/component/llm-form/LLMForm.tsx index 433bf44a..e0ca4b84 100644 --- a/web_ui/src/app/home/llm-config/component/llm-form/LLMForm.tsx +++ b/web_ui/src/app/home/models/component/llm-form/LLMForm.tsx @@ -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 {ICreateLLMField} from "@/app/home/llm-config/ICreateLLMField"; +import {ICreateLLMField} from "@/app/home/models/ICreateLLMField"; import {useEffect, useState} from "react"; export default function LLMForm({ diff --git a/web_ui/src/app/home/llm-config/page.tsx b/web_ui/src/app/home/models/page.tsx similarity index 94% rename from web_ui/src/app/home/llm-config/page.tsx rename to web_ui/src/app/home/models/page.tsx index 56d8b25a..a0ed8fd0 100644 --- a/web_ui/src/app/home/llm-config/page.tsx +++ b/web_ui/src/app/home/models/page.tsx @@ -1,12 +1,12 @@ "use client" 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 EmptyAndCreateComponent from "@/app/home/components/empty-and-create-component/EmptyAndCreateComponent"; import {Modal} from "antd"; -import LLMCard from "@/app/home/llm-config/component/llm-card/LLMCard"; -import LLMForm from "@/app/home/llm-config/component/llm-form/LLMForm"; +import LLMCard from "@/app/home/models/component/llm-card/LLMCard"; +import LLMForm from "@/app/home/models/component/llm-form/LLMForm"; import CreateCardComponent from "@/app/infra/basic-component/create-card-component/CreateCardComponent"; export default function LLMConfigPage() { diff --git a/web_ui/src/app/home/pipeline-config/components/pipeline-form/PipelineChildFormEntity.ts b/web_ui/src/app/home/pipelines/components/pipeline-form/PipelineChildFormEntity.ts similarity index 100% rename from web_ui/src/app/home/pipeline-config/components/pipeline-form/PipelineChildFormEntity.ts rename to web_ui/src/app/home/pipelines/components/pipeline-form/PipelineChildFormEntity.ts diff --git a/web_ui/src/app/home/pipeline-config/components/pipeline-form/PipelineFormComponent.tsx b/web_ui/src/app/home/pipelines/components/pipeline-form/PipelineFormComponent.tsx similarity index 100% rename from web_ui/src/app/home/pipeline-config/components/pipeline-form/PipelineFormComponent.tsx rename to web_ui/src/app/home/pipelines/components/pipeline-form/PipelineFormComponent.tsx diff --git a/web_ui/src/app/home/pipeline-config/components/pipeline-form/pipelineFormStyle.module.css b/web_ui/src/app/home/pipelines/components/pipeline-form/pipelineFormStyle.module.css similarity index 100% rename from web_ui/src/app/home/pipeline-config/components/pipeline-form/pipelineFormStyle.module.css rename to web_ui/src/app/home/pipelines/components/pipeline-form/pipelineFormStyle.module.css diff --git a/web_ui/src/app/home/pipeline-config/page.tsx b/web_ui/src/app/home/pipelines/page.tsx similarity index 100% rename from web_ui/src/app/home/pipeline-config/page.tsx rename to web_ui/src/app/home/pipelines/page.tsx diff --git a/web_ui/src/app/home/pipeline-config/pipelineConfig.module.css b/web_ui/src/app/home/pipelines/pipelineConfig.module.css similarity index 100% rename from web_ui/src/app/home/pipeline-config/pipelineConfig.module.css rename to web_ui/src/app/home/pipelines/pipelineConfig.module.css diff --git a/web_ui/src/app/home/plugin-config/page.tsx b/web_ui/src/app/home/plugins/page.tsx similarity index 100% rename from web_ui/src/app/home/plugin-config/page.tsx rename to web_ui/src/app/home/plugins/page.tsx