diff --git a/web/app/components/plugins/plugin-page/index.tsx b/web/app/components/plugins/plugin-page/index.tsx index 962388babc..66c2cd1318 100644 --- a/web/app/components/plugins/plugin-page/index.tsx +++ b/web/app/components/plugins/plugin-page/index.tsx @@ -5,6 +5,7 @@ import { useTranslation } from 'react-i18next' import { RiDragDropLine, RiEqualizer2Line, + RiInstallFill, } from '@remixicon/react' import { useBoolean } from 'ahooks' import InstallFromLocalPackage from '../install-plugin/install-from-local-package' @@ -47,6 +48,8 @@ const PluginPage = ({ const [currentFile, setCurrentFile] = useState(null) const containerRef = usePluginPageContext(v => v.containerRef) const { enable_marketplace } = useAppContextSelector(s => s.systemFeatures) + const [installed, total] = [2, 3] // Replace this with the actual progress + const progressPercentage = (installed / total) * 100 const options = useMemo(() => { return [ { value: 'plugins', text: t('common.menus.plugins') }, @@ -91,6 +94,22 @@ const PluginPage = ({ />
+
+ +
{canManagement && ( )} diff --git a/web/app/components/plugins/plugin-page/list/index.tsx b/web/app/components/plugins/plugin-page/list/index.tsx new file mode 100644 index 0000000000..92b2a06805 --- /dev/null +++ b/web/app/components/plugins/plugin-page/list/index.tsx @@ -0,0 +1,30 @@ +import { useTranslation } from 'react-i18next' +import { useContext } from 'use-context-selector' +import PluginItem from '../../plugin-item' +import { customTool, extensionDallE, modelGPT4, toolNotion } from '@/app/components/plugins/card/card-mock' +import I18n from '@/context/i18n' + +const PluginList = () => { + const { locale } = useContext(I18n) + const { t } = useTranslation() + const pluginList = [toolNotion, extensionDallE, modelGPT4, customTool] + + return ( +
+
+
+ {pluginList.map((plugin, index) => ( + {}} + pluginI8n={t} + locale={locale} + /> + ))} +
+
+
+ ) +} +export default PluginList diff --git a/web/app/components/plugins/plugin-page/plugins-panel.tsx b/web/app/components/plugins/plugin-page/plugins-panel.tsx index 4d4090f973..81385bcb57 100644 --- a/web/app/components/plugins/plugin-page/plugins-panel.tsx +++ b/web/app/components/plugins/plugin-page/plugins-panel.tsx @@ -1,16 +1,18 @@ 'use client' +import List from './list' + const PluginsPanel = () => { return ( <>
- {/* Filter goes here */} + {/* Filters go here */}
- {/* Plugin cards go here */} +
)