| | |
| | | import StepOne from './step-one' |
| | | import StepTwo from './step-two' |
| | | import StepThree from './step-three' |
| | | import { TopBar } from './top-bar' |
| | | import { Topbar } from './top-bar' |
| | | import { DataSourceType } from '@/models/datasets' |
| | | import type { CrawlOptions, CrawlResultItem, DataSet, FileItem, createDocumentResponse } from '@/models/datasets' |
| | | import { fetchDataSource } from '@/service/common' |
| | |
| | | const detail = await fetchDatasetDetail(datasetId) |
| | | setDetail(detail) |
| | | } |
| | | catch { |
| | | catch (e) { |
| | | setHasError(true) |
| | | } |
| | | } |
| | |
| | | |
| | | return ( |
| | | <div className='flex flex-col bg-components-panel-bg' style={{ height: 'calc(100vh - 56px)' }}> |
| | | <TopBar activeIndex={step - 1} datasetId={datasetId} /> |
| | | <Topbar activeIndex={step - 1} /> |
| | | <div style={{ height: 'calc(100% - 52px)' }}> |
| | | {step === 1 && <StepOne |
| | | hasConnection={hasConnection} |