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

View File

@@ -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({

View File

@@ -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,

View File

@@ -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");
}}
/>
}

View File

@@ -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",
})
]

View File

@@ -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

View File

@@ -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({

View File

@@ -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() {