chore(web): new lint setup (#30020)

Co-authored-by: yyh <yuanyouhuilyz@gmail.com>
This commit is contained in:
Stephen Zhou
2025-12-23 16:58:55 +08:00
committed by GitHub
parent 9701a2994b
commit f2842da397
3356 changed files with 85046 additions and 81278 deletions

View File

@ -1,8 +1,9 @@
import type { FC, ReactNode } from 'react'
import { useEffect, useState } from 'react'
import { cn } from '@/utils/classnames'
import Badge, { BadgeState } from '@/app/components/base/badge/index'
import { useInstalledPluginList } from '@/service/use-plugins'
import { cn } from '@/utils/classnames'
type Option = {
value: string
text: ReactNode
@ -73,14 +74,15 @@ const TabSlider: FC<TabSliderProps> = ({
{/* if no plugin installed, the badge won't show */}
{option.value === 'plugins'
&& (pluginList?.total ?? 0) > 0
&& <Badge
size='s'
uppercase={true}
state={BadgeState.Default}
>
{pluginList?.total}
</Badge>
}
&& (
<Badge
size="s"
uppercase={true}
state={BadgeState.Default}
>
{pluginList?.total}
</Badge>
)}
</div>
))}
</div>