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 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>
) )
} }

View File

@ -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)
} }

View File

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

View File

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