fix: run eslint-plugin-tailwindcss

This commit is contained in:
NFish
2025-02-18 16:41:43 +08:00
parent 13d3430948
commit 52cfe80dcd
922 changed files with 5647 additions and 5647 deletions

View File

@ -38,29 +38,29 @@ const Empty = () => {
}, [pluginList?.plugins.length, t, filters.categories.length, filters.tags.length, filters.searchQuery])
return (
<div className='grow w-full relative z-0'>
<div className='relative z-0 w-full grow'>
{/* skeleton */}
<div className='h-full w-full px-12 absolute top-0 grid grid-cols-2 gap-2 overflow-hidden z-10'>
<div className='absolute top-0 z-10 grid h-full w-full grid-cols-2 gap-2 overflow-hidden px-12'>
{Array.from({ length: 20 }).fill(0).map((_, i) => (
<div key={i} className='h-[100px] bg-components-card-bg rounded-xl' />
<div key={i} className='bg-components-card-bg h-[100px] rounded-xl' />
))}
</div>
{/* mask */}
<div className='h-full w-full absolute z-20 bg-gradient-to-b from-background-gradient-mask-transparent to-white' />
<div className='flex items-center justify-center h-full relative z-30'>
<div className='from-background-gradient-mask-transparent absolute z-20 h-full w-full bg-gradient-to-b to-white' />
<div className='relative z-30 flex h-full items-center justify-center'>
<div className='flex flex-col items-center gap-y-3'>
<div className='relative -z-10 flex items-center justify-center w-[52px] h-[52px] rounded-xl
bg-components-card-bg border-[1px] border-dashed border-divider-deep shadow-xl shadow-shadow-shadow-5'>
<Group className='text-text-tertiary w-5 h-5' />
<div className='bg-components-card-bg border-divider-deep shadow-shadow-shadow-5 relative -z-10 flex h-[52px] w-[52px]
items-center justify-center rounded-xl border-[1px] border-dashed shadow-xl'>
<Group className='text-text-tertiary h-5 w-5' />
<Line className='absolute -right-[1px] top-1/2 -translate-y-1/2' />
<Line className='absolute -left-[1px] top-1/2 -translate-y-1/2' />
<Line className='absolute top-0 left-1/2 -translate-x-1/2 -translate-y-1/2 rotate-90' />
<Line className='absolute top-full left-1/2 -translate-x-1/2 -translate-y-1/2 rotate-90' />
<Line className='absolute left-1/2 top-0 -translate-x-1/2 -translate-y-1/2 rotate-90' />
<Line className='absolute left-1/2 top-full -translate-x-1/2 -translate-y-1/2 rotate-90' />
</div>
<div className='text-text-tertiary text-sm font-normal'>
{text}
</div>
<div className='flex flex-col w-[240px]'>
<div className='flex w-[240px] flex-col'>
<input
type='file'
ref={fileInputRef}
@ -68,7 +68,7 @@ const Empty = () => {
onChange={handleFileChange}
accept={SUPPORT_INSTALL_LOCAL_FILE_EXTENSIONS}
/>
<div className='w-full flex flex-col gap-y-1'>
<div className='flex w-full flex-col gap-y-1'>
{[
...(
(enable_marketplace || true)
@ -80,8 +80,8 @@ const Empty = () => {
].map(({ icon: Icon, text, action }) => (
<div
key={action}
className='flex items-center px-3 py-2 gap-x-1 rounded-lg bg-components-button-secondary-bg
hover:bg-state-base-hover cursor-pointer border-[0.5px] shadow-shadow-shadow-3 shadow-xs'
className='bg-components-button-secondary-bg hover:bg-state-base-hover shadow-shadow-shadow-3 shadow-xs flex cursor-pointer items-center
gap-x-1 rounded-lg border-[0.5px] px-3 py-2'
onClick={() => {
if (action === 'local')
fileInputRef.current?.click()
@ -91,7 +91,7 @@ const Empty = () => {
setSelectedAction(action)
}}
>
<Icon className="w-4 h-4 text-text-tertiary" />
<Icon className="text-text-tertiary h-4 w-4" />
<span className='text-text-secondary system-md-regular'>{text}</span>
</div>
))}