|
|
|
|
@ -6,9 +6,9 @@ import Item from './item'
|
|
|
|
|
import type { Plugin } from '@/app/components/plugins/types.ts'
|
|
|
|
|
import cn from '@/utils/classnames'
|
|
|
|
|
import Link from 'next/link'
|
|
|
|
|
import { MARKETPLACE_URL_PREFIX } from '@/config'
|
|
|
|
|
import { RiArrowRightUpLine, RiSearchLine } from '@remixicon/react'
|
|
|
|
|
import { noop } from 'lodash-es'
|
|
|
|
|
import { getMarketplaceUrl } from '@/utils/var'
|
|
|
|
|
|
|
|
|
|
export type ListProps = {
|
|
|
|
|
wrapElemRef: React.RefObject<HTMLElement>
|
|
|
|
|
@ -32,7 +32,7 @@ const List = forwardRef<ListRef, ListProps>(({
|
|
|
|
|
const { t } = useTranslation()
|
|
|
|
|
const hasFilter = !searchText
|
|
|
|
|
const hasRes = list.length > 0
|
|
|
|
|
const urlWithSearchText = `${MARKETPLACE_URL_PREFIX}/?q=${searchText}&tags=${tags.join(',')}`
|
|
|
|
|
const urlWithSearchText = getMarketplaceUrl('', { q: searchText, tags: tags.join(',') })
|
|
|
|
|
const nextToStickyELemRef = useRef<HTMLDivElement>(null)
|
|
|
|
|
|
|
|
|
|
const { handleScroll, scrollPosition } = useStickyScroll({
|
|
|
|
|
@ -71,7 +71,7 @@ const List = forwardRef<ListRef, ListProps>(({
|
|
|
|
|
return (
|
|
|
|
|
<Link
|
|
|
|
|
className='system-sm-medium sticky bottom-0 z-10 flex h-8 cursor-pointer items-center rounded-b-lg border-[0.5px] border-t border-components-panel-border bg-components-panel-bg-blur px-4 py-1 text-text-accent-light-mode-only shadow-lg'
|
|
|
|
|
href={`${MARKETPLACE_URL_PREFIX}/`}
|
|
|
|
|
href={getMarketplaceUrl('')}
|
|
|
|
|
target='_blank'
|
|
|
|
|
>
|
|
|
|
|
<span>{t('plugin.findMoreInMarketplace')}</span>
|
|
|
|
|
|