mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 10:28:10 +08:00
feat: plugin uninstall & plugin list filtering
This commit is contained in:
@ -1,22 +1,21 @@
|
||||
import type { FC } from 'react'
|
||||
import PluginItem from '../../plugin-item'
|
||||
import { customTool, extensionDallE, modelGPT4, toolNotion } from '@/app/components/plugins/card/card-mock'
|
||||
import type { InstalledPlugin } from '../../types'
|
||||
|
||||
const PluginList = () => {
|
||||
const pluginList = [toolNotion, extensionDallE, modelGPT4, customTool]
|
||||
type IPluginListProps = {
|
||||
pluginList: InstalledPlugin[]
|
||||
}
|
||||
|
||||
const PluginList: FC<IPluginListProps> = ({ pluginList }) => {
|
||||
return (
|
||||
<div className='pb-3 bg-white'>
|
||||
<div>
|
||||
<div className='grid grid-cols-2 gap-3'>
|
||||
{pluginList.map((plugin, index) => (
|
||||
<PluginItem
|
||||
key={index}
|
||||
payload={plugin as any}
|
||||
onDelete={() => {}}
|
||||
source={'debug'}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
<div className='grid grid-cols-2 gap-3'>
|
||||
{pluginList.map(plugin => (
|
||||
<PluginItem
|
||||
key={plugin.plugin_id}
|
||||
plugin={plugin}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user