mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 18:25:55 +08:00
action list
This commit is contained in:
parent
2fbfc988c4
commit
fc61fd0f50
@ -1,9 +1,15 @@
|
|||||||
import React from 'react'
|
import React from 'react'
|
||||||
|
import { useTranslation } from 'react-i18next'
|
||||||
|
|
||||||
const ActionList = () => {
|
const ActionList = () => {
|
||||||
|
const { t } = useTranslation()
|
||||||
return (
|
return (
|
||||||
<div>
|
<div className='px-4 py-2'>
|
||||||
<h1>Action List</h1>
|
<div className='mb-1 h-6 flex items-center text-text-secondary system-sm-semibold-uppercase'>{t('plugin.detailPanel.actionNum', { num: 3 })}</div>
|
||||||
|
<div className='px-4 py-3 bg-components-panel-item-bg rounded-xl border-[0.5px] border-components-panel-border-subtle shadow-xs cursor-pointer hover:bg-components-panel-on-panel-item-bg-hover'>
|
||||||
|
<div className='pb-0.5 text-text-secondary system-md-semibold'>Notion Page Search</div>
|
||||||
|
<div className='text-text-tertiary system-xs-regular line-clamp-2'>A tool for performing a Google SERP search and extracting snippets and webpages.Input should be a search query.</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -24,8 +24,8 @@ import Loading from '@/app/components/base/loading'
|
|||||||
import cn from '@/utils/classnames'
|
import cn from '@/utils/classnames'
|
||||||
import {
|
import {
|
||||||
// extensionDallE,
|
// extensionDallE,
|
||||||
modelGPT4,
|
// modelGPT4,
|
||||||
// toolNotion,
|
toolNotion,
|
||||||
} from '@/app/components/plugins/card/card-mock'
|
} from '@/app/components/plugins/card/card-mock'
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
@ -57,7 +57,7 @@ const PluginDetailPanel: FC<Props> = ({
|
|||||||
const detail = await fetchPluginDetail(org, name)
|
const detail = await fetchPluginDetail(org, name)
|
||||||
setPluginDetail({
|
setPluginDetail({
|
||||||
...detail,
|
...detail,
|
||||||
...modelGPT4,
|
...toolNotion,
|
||||||
} as any)
|
} as any)
|
||||||
setLoading(false)
|
setLoading(false)
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,7 @@ const translation = {
|
|||||||
remove: 'Remove',
|
remove: 'Remove',
|
||||||
},
|
},
|
||||||
modelNum: '{{num}} MODELS INCLUDED',
|
modelNum: '{{num}} MODELS INCLUDED',
|
||||||
|
actionNum: '{{num}} ACTIONS INCLUDED',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -12,6 +12,7 @@ const translation = {
|
|||||||
remove: '移除',
|
remove: '移除',
|
||||||
},
|
},
|
||||||
modelNum: '{{num}} 模型已包含',
|
modelNum: '{{num}} 模型已包含',
|
||||||
|
actionNum: '{{num}} ACTIONS 已包含',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user