chore: eslint add sonar (#17989)

This commit is contained in:
Joel 2025-04-14 15:28:20 +08:00 • committed by GitHub
commit d80f4c7d3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
38 changed files with 157 additions and 180 deletions

View file

@ -46,25 +46,23 @@ const CardWrapper = ({
}
/>
{
showInstallButton && (
<div className='absolute bottom-0 hidden w-full items-center space-x-2 rounded-b-xl bg-gradient-to-tr from-components-panel-on-panel-item-bg to-background-gradient-mask-transparent px-4 pb-4 pt-8 group-hover:flex'>
<div className='absolute bottom-0 hidden w-full items-center space-x-2 rounded-b-xl bg-gradient-to-tr from-components-panel-on-panel-item-bg to-background-gradient-mask-transparent px-4 pb-4 pt-8 group-hover:flex'>
<Button
variant='primary'
className='w-[calc(50%-4px)]'
onClick={showInstallFromMarketplace}
>
{t('plugin.detailPanel.operation.install')}
</Button>
<a href={`${getPluginLinkInMarketplace(plugin)}?language=${localeFromLocale}`} target='_blank' className='block w-[calc(50%-4px)] flex-1 shrink-0'>
<Button
variant='primary'
className='w-[calc(50%-4px)]'
onClick={showInstallFromMarketplace}
className='w-full gap-0.5'
>
{t('plugin.detailPanel.operation.install')}
{t('plugin.detailPanel.operation.detail')}
<RiArrowRightUpLine className='ml-1 h-4 w-4' />
</Button>
<a href={`${getPluginLinkInMarketplace(plugin)}?language=${localeFromLocale}`} target='_blank' className='block w-[calc(50%-4px)] flex-1 shrink-0'>
<Button
className='w-full gap-0.5'
>
{t('plugin.detailPanel.operation.detail')}
<RiArrowRightUpLine className='ml-1 h-4 w-4' />
</Button>
</a>
</div>
)
</a>
</div>
}
{
isShowInstallFromMarketplace && (