mirror of https://github.com/langgenius/dify.git
feat: detail link in tools
This commit is contained in:
parent
000db07d29
commit
2067092f52
|
|
@ -142,7 +142,7 @@ const PluginItem: FC<Props> = ({
|
|||
}
|
||||
{source === PluginSource.marketplace
|
||||
&& <>
|
||||
<a href={`${MARKETPLACE_URL_PREFIX}/plugin/${author}/${name}`} target='_blank' className='flex items-center gap-0.5'>
|
||||
<a href={`${MARKETPLACE_URL_PREFIX}/plugins/${author}/${name}`} target='_blank' className='flex items-center gap-0.5'>
|
||||
<div className='text-text-tertiary system-2xs-medium-uppercase'>{t('plugin.from')} <span className='text-text-secondary'>marketplace</span></div>
|
||||
<RiArrowRightUpLine className='w-3 h-3' />
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -11,15 +11,20 @@ import {
|
|||
PortalToFollowElemTrigger,
|
||||
} from '@/app/components/base/portal-to-follow-elem'
|
||||
import cn from '@/utils/classnames'
|
||||
import { MARKETPLACE_URL_PREFIX } from '@/config'
|
||||
|
||||
type Props = {
|
||||
open: boolean
|
||||
onOpenChange: (v: boolean) => void
|
||||
author: string
|
||||
name: string
|
||||
}
|
||||
|
||||
const OperationDropdown: FC<Props> = ({
|
||||
open,
|
||||
onOpenChange,
|
||||
author,
|
||||
name,
|
||||
}) => {
|
||||
const { t } = useTranslation()
|
||||
const openRef = useRef(open)
|
||||
|
|
@ -50,8 +55,7 @@ const OperationDropdown: FC<Props> = ({
|
|||
<PortalToFollowElemContent className='z-[9999]'>
|
||||
<div className='w-[112px] p-1 bg-components-panel-bg-blur rounded-xl border-[0.5px] border-components-panel-border shadow-lg'>
|
||||
<div className='px-3 py-1.5 rounded-lg text-text-secondary system-md-regular cursor-pointer hover:bg-state-base-hover'>{t('common.operation.download')}</div>
|
||||
{/* Wait marketplace */}
|
||||
{/* <div className='px-3 py-1.5 rounded-lg text-text-secondary system-md-regular cursor-pointer hover:bg-state-base-hover'>{t('common.operation.viewDetail')}</div> */}
|
||||
<a href={`${MARKETPLACE_URL_PREFIX}/plugins/${author}/${name}`} target='_blank' className='block px-3 py-1.5 rounded-lg text-text-secondary system-md-regular cursor-pointer hover:bg-state-base-hover'>{t('common.operation.viewDetails')}</a>
|
||||
</div>
|
||||
</PortalToFollowElemContent>
|
||||
</PortalToFollowElem>
|
||||
|
|
|
|||
|
|
@ -57,6 +57,8 @@ const Item: FC<Props> = ({
|
|||
<Action
|
||||
open={open}
|
||||
onOpenChange={setOpen}
|
||||
author={payload.org}
|
||||
name={payload.name}
|
||||
/>
|
||||
</div>
|
||||
{isShowInstallModal && (
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ const translation = {
|
|||
lineBreak: 'Line break',
|
||||
sure: 'I\'m sure',
|
||||
download: 'Download',
|
||||
viewDetails: 'View Details',
|
||||
delete: 'Delete',
|
||||
settings: 'Settings',
|
||||
setup: 'Setup',
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@ const translation = {
|
|||
lineBreak: '换行',
|
||||
sure: '我确定',
|
||||
download: '下载',
|
||||
viewDetails: '查看详情',
|
||||
delete: '删除',
|
||||
settings: '设置',
|
||||
setup: '设置',
|
||||
|
|
|
|||
Loading…
Reference in New Issue