feat: support assistant frontend (#2139)
Co-authored-by: StyleZhang <jasonapring2015@outlook.com>
This commit is contained in:
parent
e65a2a400d
commit
7bbe12b2bd
194 changed files with 8726 additions and 1586 deletions
|
|
@ -7,9 +7,8 @@ import useSWR from 'swr'
|
|||
import useSWRInfinite from 'swr/infinite'
|
||||
import { flatten } from 'lodash-es'
|
||||
import Nav from '../nav'
|
||||
import { Knowledge, KnowledgeActive } from '../../base/icons/src/public/header-nav/knowledge'
|
||||
import { fetchDatasetDetail, fetchDatasets } from '@/service/datasets'
|
||||
import { Database01 } from '@/app/components/base/icons/src/vender/line/development'
|
||||
import { Database02 } from '@/app/components/base/icons/src/vender/solid/development'
|
||||
import type { DataSetListResponse } from '@/models/datasets'
|
||||
|
||||
const getKey = (pageIndex: number, previousPageData: DataSetListResponse) => {
|
||||
|
|
@ -39,8 +38,8 @@ const DatasetNav = () => {
|
|||
|
||||
return (
|
||||
<Nav
|
||||
icon={<Database01 className='w-4 h-4' />}
|
||||
activeIcon={<Database02 className='w-4 h-4' />}
|
||||
icon={<Knowledge className='w-4 h-4' />}
|
||||
activeIcon={<KnowledgeActive className='w-4 h-4' />}
|
||||
text={t('common.menus.datasets')}
|
||||
activeSegment='datasets'
|
||||
link='/datasets'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue