mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-01-01 01:25:32 +08:00
### What problem does this PR solve? Fixes: Bugs fixed - Removed invalid code, - Modified the user center style, - Added an automatic data source parsing switch. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -2,10 +2,12 @@ import { CardSineLineContainer } from '@/components/card-singleline-container';
|
||||
import { RenameDialog } from '@/components/rename-dialog';
|
||||
import { HomeIcon } from '@/components/svg-icon';
|
||||
import { CardSkeleton } from '@/components/ui/skeleton';
|
||||
import { useNavigatePage } from '@/hooks/logic-hooks/navigate-hooks';
|
||||
import { useFetchNextKnowledgeListByPage } from '@/hooks/use-knowledge-request';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { DatasetCard, SeeAllCard } from '../datasets/dataset-card';
|
||||
import { DatasetCard } from '../datasets/dataset-card';
|
||||
import { useRenameDataset } from '../datasets/use-rename-dataset';
|
||||
import { SeeAllAppCard } from './application-card';
|
||||
|
||||
export function Datasets() {
|
||||
const { t } = useTranslation();
|
||||
@ -18,6 +20,7 @@ export function Datasets() {
|
||||
hideDatasetRenameModal,
|
||||
showDatasetRenameModal,
|
||||
} = useRenameDataset();
|
||||
const { navigateToDatasetList } = useNavigatePage();
|
||||
|
||||
return (
|
||||
<section>
|
||||
@ -26,13 +29,12 @@ export function Datasets() {
|
||||
<HomeIcon name="datasets" width={'32'} />
|
||||
{t('header.dataset')}
|
||||
</h2>
|
||||
<div className="flex gap-6">
|
||||
<div className="">
|
||||
{loading ? (
|
||||
<div className="flex-1">
|
||||
<CardSkeleton />
|
||||
</div>
|
||||
) : (
|
||||
// <div className="grid gap-6 grid-cols-1 md:grid-cols-2 lg:grid-cols-4 xl:grid-cols-5 2xl:grid-cols-6 3xl:grid-cols-7 max-h-[78vh] overflow-auto">
|
||||
<CardSineLineContainer>
|
||||
{kbs
|
||||
?.slice(0, 6)
|
||||
@ -43,9 +45,7 @@ export function Datasets() {
|
||||
showDatasetRenameModal={showDatasetRenameModal}
|
||||
></DatasetCard>
|
||||
))}
|
||||
<div className="min-h-24">
|
||||
<SeeAllCard></SeeAllCard>
|
||||
</div>
|
||||
{<SeeAllAppCard click={navigateToDatasetList}></SeeAllAppCard>}
|
||||
</CardSineLineContainer>
|
||||
// </div>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user