mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 21:45:51 +08:00
Merge branch 'feat/plugins' of github.com:langgenius/dify into feat/plugins
This commit is contained in:
commit
aa9028a607
@ -13,12 +13,12 @@ const Marketplace = ({
|
|||||||
const locale = useGetLanguage()
|
const locale = useGetLanguage()
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className='shrink-0 sticky -bottom-[442px] h-[530px] overflow-y-auto px-12 py-2 bg-background-default-subtle'>
|
<div className='shrink-0 sticky -bottom-[442px] h-[530px] overflow-y-auto px-12 py-2 pt-0 bg-background-default-subtle'>
|
||||||
<RiArrowUpDoubleLine
|
<RiArrowUpDoubleLine
|
||||||
className='absolute top-2 left-1/2 -translate-x-1/2 w-4 h-4 text-text-quaternary cursor-pointer'
|
className='absolute top-2 left-1/2 -translate-x-1/2 w-4 h-4 text-text-quaternary cursor-pointer'
|
||||||
onClick={() => onMarketplaceScroll()}
|
onClick={() => onMarketplaceScroll()}
|
||||||
/>
|
/>
|
||||||
<div className='pt-4 pb-3'>
|
<div className='sticky top-0 pt-5 pb-3 bg-background-default-subtle z-10'>
|
||||||
<div className='title-2xl-semi-bold bg-gradient-to-r from-[rgba(11,165,236,0.95)] to-[rgba(21,90,239,0.95)] bg-clip-text text-transparent'>More from Marketplace</div>
|
<div className='title-2xl-semi-bold bg-gradient-to-r from-[rgba(11,165,236,0.95)] to-[rgba(21,90,239,0.95)] bg-clip-text text-transparent'>More from Marketplace</div>
|
||||||
<div className='flex items-center text-center body-md-regular text-text-tertiary'>
|
<div className='flex items-center text-center body-md-regular text-text-tertiary'>
|
||||||
Discover
|
Discover
|
||||||
|
@ -100,8 +100,15 @@ const ProviderList = () => {
|
|||||||
)}>
|
)}>
|
||||||
{activeTab === 'api' && <CustomCreateCard onRefreshData={getProviderList} />}
|
{activeTab === 'api' && <CustomCreateCard onRefreshData={getProviderList} />}
|
||||||
{filteredCollectionList.map(collection => (
|
{filteredCollectionList.map(collection => (
|
||||||
<Card
|
<div
|
||||||
key={collection.id}
|
key={collection.id}
|
||||||
|
onClick={() => setCurrentProvider(collection)}
|
||||||
|
>
|
||||||
|
<Card
|
||||||
|
className={cn(
|
||||||
|
'border-[1.5px] border-transparent',
|
||||||
|
currentProvider?.id === collection.id && 'border-components-option-card-option-selected-border',
|
||||||
|
)}
|
||||||
locale={language}
|
locale={language}
|
||||||
payload={{
|
payload={{
|
||||||
...collection,
|
...collection,
|
||||||
@ -114,6 +121,7 @@ const ProviderList = () => {
|
|||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
))}
|
))}
|
||||||
{!filteredCollectionList.length && <div className='absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2'><Empty /></div>}
|
{!filteredCollectionList.length && <div className='absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2'><Empty /></div>}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user