diff --git a/web/src/app/home/plugins/page.tsx b/web/src/app/home/plugins/page.tsx
index d4c818db..b79b696f 100644
--- a/web/src/app/home/plugins/page.tsx
+++ b/web/src/app/home/plugins/page.tsx
@@ -1,41 +1,36 @@
'use client';
-import { Radio } from 'antd';
-import { useState } from 'react';
import PluginInstalledComponent from '@/app/home/plugins/plugin-installed/PluginInstalledComponent';
import PluginMarketComponent from '@/app/home/plugins/plugin-market/PluginMarketComponent';
import styles from './plugins.module.css';
+import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs";
+import { Button } from "@/components/ui/button";
+import { PlusIcon } from "lucide-react";
export default function PluginConfigPage() {
- enum PageType {
- INSTALLED = 'installed',
- MARKET = 'market',
- }
-
- const [nowPageType, setNowPageType] = useState(PageType.INSTALLED);
-
return (
-
{
- setNowPageType(e.target.value as PageType);
- }}
- />
+
+
+
+ 已安装
+ 插件市场
- {nowPageType === PageType.INSTALLED ? (
-
- ) : (
-
- )}
+
+
+
+
+
+
+
+
+
+
+
);
}
diff --git a/web/src/app/home/plugins/plugin-installed/PluginInstalledComponent.tsx b/web/src/app/home/plugins/plugin-installed/PluginInstalledComponent.tsx
index 58d41b52..c04037a7 100644
--- a/web/src/app/home/plugins/plugin-installed/PluginInstalledComponent.tsx
+++ b/web/src/app/home/plugins/plugin-installed/PluginInstalledComponent.tsx
@@ -5,9 +5,17 @@ import CreateCardComponent from '@/app/infra/basic-component/create-card-compone
import { PluginCardVO } from '@/app/home/plugins/plugin-installed/PluginCardVO';
import PluginCardComponent from '@/app/home/plugins/plugin-installed/plugin-card/PluginCardComponent';
import styles from '@/app/home/plugins/plugins.module.css';
-import { Modal, Input } from 'antd';
-import { GithubOutlined } from '@ant-design/icons';
+import { GithubIcon } from 'lucide-react';
import { httpClient } from '@/app/infra/http/HttpClient';
+import {
+ Dialog,
+ DialogContent,
+ DialogHeader,
+ DialogTitle,
+ DialogFooter,
+} from "@/components/ui/dialog";
+import { Input } from "@/components/ui/input";
+import { Button } from "@/components/ui/button";
export default function PluginInstalledComponent() {
const [pluginList, setPluginList] = useState([]);
@@ -56,33 +64,33 @@ export default function PluginInstalledComponent() {
console.log('error when install plugin:', err);
});
}
+
return (
-
-
+
+
+
+
+ 从GitHub安装插件
+
+
+
+
目前仅支持从 GitHub 安装
+
setGithubURL(e.target.value)}
+ className="mb-4"
/>
- }
- open={modalOpen}
- onOk={handleModalConfirm}
- onCancel={() => setModalOpen(false)}
- destroyOnClose={true}
- >
-
-
目前仅支持从 GitHub 安装
-
setGithubURL(e.target.value)}
- />
-
-
+
+
+
+
+
+
+
{pluginList.map((vo, index) => {
return (
@@ -90,6 +98,7 @@ export default function PluginInstalledComponent() {
);
})}
+