|
|
|
@ -25,13 +25,13 @@ import Loading from '@/app/components/base/loading'
|
|
|
|
import DatasetDetailContext from '@/context/dataset-detail'
|
|
|
|
import DatasetDetailContext from '@/context/dataset-detail'
|
|
|
|
import { DataSourceType } from '@/models/datasets'
|
|
|
|
import { DataSourceType } from '@/models/datasets'
|
|
|
|
import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'
|
|
|
|
import useBreakpoints, { MediaType } from '@/hooks/use-breakpoints'
|
|
|
|
import { LanguagesSupported } from '@/i18n/language'
|
|
|
|
|
|
|
|
import { useStore } from '@/app/components/app/store'
|
|
|
|
import { useStore } from '@/app/components/app/store'
|
|
|
|
import { getLocaleOnClient } from '@/i18n'
|
|
|
|
import { getLocaleOnClient } from '@/i18n'
|
|
|
|
import { useAppContext } from '@/context/app-context'
|
|
|
|
import { useAppContext } from '@/context/app-context'
|
|
|
|
import Tooltip from '@/app/components/base/tooltip'
|
|
|
|
import Tooltip from '@/app/components/base/tooltip'
|
|
|
|
import LinkedAppsPanel from '@/app/components/base/linked-apps-panel'
|
|
|
|
import LinkedAppsPanel from '@/app/components/base/linked-apps-panel'
|
|
|
|
import useDocumentTitle from '@/hooks/use-document-title'
|
|
|
|
import useDocumentTitle from '@/hooks/use-document-title'
|
|
|
|
|
|
|
|
import { getDocLink } from '@/context/i18n'
|
|
|
|
|
|
|
|
|
|
|
|
export type IAppDetailLayoutProps = {
|
|
|
|
export type IAppDetailLayoutProps = {
|
|
|
|
children: React.ReactNode
|
|
|
|
children: React.ReactNode
|
|
|
|
@ -97,11 +97,7 @@ const ExtraInfo = ({ isMobile, relatedApps, expand }: IExtraInfoProps) => {
|
|
|
|
<div className='my-2 text-xs text-text-tertiary'>{t('common.datasetMenus.emptyTip')}</div>
|
|
|
|
<div className='my-2 text-xs text-text-tertiary'>{t('common.datasetMenus.emptyTip')}</div>
|
|
|
|
<a
|
|
|
|
<a
|
|
|
|
className='mt-2 inline-flex cursor-pointer items-center text-xs text-text-accent'
|
|
|
|
className='mt-2 inline-flex cursor-pointer items-center text-xs text-text-accent'
|
|
|
|
href={
|
|
|
|
href={getDocLink('/guides/knowledge-base/integrate-knowledge-within-application')}
|
|
|
|
locale === LanguagesSupported[1]
|
|
|
|
|
|
|
|
? 'https://docs.dify.ai/zh-hans/guides/knowledge-base/integrate-knowledge-within-application'
|
|
|
|
|
|
|
|
: 'https://docs.dify.ai/guides/knowledge-base/integrate-knowledge-within-application'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
target='_blank' rel='noopener noreferrer'
|
|
|
|
target='_blank' rel='noopener noreferrer'
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<RiBookOpenLine className='mr-1 text-text-accent' />
|
|
|
|
<RiBookOpenLine className='mr-1 text-text-accent' />
|
|
|
|
|