action list

This commit is contained in:
JzoNg 2024-10-12 17:08:45 +08:00
parent 2fbfc988c4
commit fc61fd0f50
4 changed files with 13 additions and 5 deletions

View File

@ -1,9 +1,15 @@
import React from 'react'
import { useTranslation } from 'react-i18next'
const ActionList = () => {
const { t } = useTranslation()
return (
<div>
<h1>Action List</h1>
<div className='px-4 py-2'>
<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>
)
}

View File

@ -24,8 +24,8 @@ import Loading from '@/app/components/base/loading'
import cn from '@/utils/classnames'
import {
// extensionDallE,
modelGPT4,
// toolNotion,
// modelGPT4,
toolNotion,
} from '@/app/components/plugins/card/card-mock'
type Props = {
@ -57,7 +57,7 @@ const PluginDetailPanel: FC<Props> = ({
const detail = await fetchPluginDetail(org, name)
setPluginDetail({
...detail,
...modelGPT4,
...toolNotion,
} as any)
setLoading(false)
}

View File

@ -12,6 +12,7 @@ const translation = {
remove: 'Remove',
},
modelNum: '{{num}} MODELS INCLUDED',
actionNum: '{{num}} ACTIONS INCLUDED',
},
}

View File

@ -12,6 +12,7 @@ const translation = {
remove: '移除',
},
modelNum: '{{num}} 模型已包含',
actionNum: '{{num}} ACTIONS 已包含',
},
}