|
|
|
|
@ -29,7 +29,7 @@ import { useChildSegmentListKey, useSegmentListKey } from '@/service/knowledge/u
|
|
|
|
|
import useEditDocumentMetadata from '../metadata/hooks/use-edit-dataset-metadata'
|
|
|
|
|
import DatasetMetadataDrawer from '../metadata/metadata-dataset/dataset-metadata-drawer'
|
|
|
|
|
import StatusWithAction from '../common/document-status-with-action/status-with-action'
|
|
|
|
|
import { LanguagesSupported } from '@/i18n/language'
|
|
|
|
|
import { useDocLink } from '@/context/i18n'
|
|
|
|
|
import { getLocaleOnClient } from '@/i18n'
|
|
|
|
|
|
|
|
|
|
const FolderPlusIcon = ({ className }: React.SVGProps<SVGElement>) => {
|
|
|
|
|
@ -86,6 +86,7 @@ const DEFAULT_LIMIT = 10
|
|
|
|
|
|
|
|
|
|
const Documents: FC<IDocumentsProps> = ({ datasetId }) => {
|
|
|
|
|
const { t } = useTranslation()
|
|
|
|
|
const docLink = useDocLink()
|
|
|
|
|
const { plan } = useProviderContext()
|
|
|
|
|
const isFreePlan = plan.type === 'sandbox'
|
|
|
|
|
const [inputValue, setInputValue] = useState<string>('') // the input value
|
|
|
|
|
@ -262,11 +263,7 @@ const Documents: FC<IDocumentsProps> = ({ datasetId }) => {
|
|
|
|
|
<a
|
|
|
|
|
className='flex items-center text-text-accent'
|
|
|
|
|
target='_blank'
|
|
|
|
|
href={
|
|
|
|
|
locale === LanguagesSupported[1]
|
|
|
|
|
? 'https://docs.dify.ai/zh-hans/guides/knowledge-base/integrate-knowledge-within-application'
|
|
|
|
|
: 'https://docs.dify.ai/en/guides/knowledge-base/integrate-knowledge-within-application'
|
|
|
|
|
}
|
|
|
|
|
href={docLink('/guides/knowledge-base/integrate-knowledge-within-application')}
|
|
|
|
|
>
|
|
|
|
|
<span>{t('datasetDocuments.list.learnMore')}</span>
|
|
|
|
|
<RiExternalLinkLine className='h-3 w-3' />
|
|
|
|
|
|