|
|
|
@ -20,10 +20,8 @@ import Button from '@/app/components/base/button'
|
|
|
|
import Input from '@/app/components/base/input'
|
|
|
|
import Input from '@/app/components/base/input'
|
|
|
|
import { ApiConnectionMod } from '@/app/components/base/icons/src/vender/solid/development'
|
|
|
|
import { ApiConnectionMod } from '@/app/components/base/icons/src/vender/solid/development'
|
|
|
|
import CheckboxWithLabel from '@/app/components/datasets/create/website/base/checkbox-with-label'
|
|
|
|
import CheckboxWithLabel from '@/app/components/datasets/create/website/base/checkbox-with-label'
|
|
|
|
import CreateModal from '@/app/components/datasets/metadata/create-metadata-modal'
|
|
|
|
|
|
|
|
import SelectMetadataModal from '@/app/components/datasets/metadata/select-metadata-modal'
|
|
|
|
|
|
|
|
// import DatasetMetadataDrawer from '@/app/components/datasets/metadata/dataset-metadata-drawer'
|
|
|
|
// import DatasetMetadataDrawer from '@/app/components/datasets/metadata/dataset-metadata-drawer'
|
|
|
|
import EditMetadataBatchModal from '@/app/components/datasets/metadata/edit-metadata-batch/modal'
|
|
|
|
import NoData from '@/app/components/datasets/metadata/metadata-document/no-data'
|
|
|
|
// Services
|
|
|
|
// Services
|
|
|
|
import { fetchDatasetApiBaseUrl } from '@/service/datasets'
|
|
|
|
import { fetchDatasetApiBaseUrl } from '@/service/datasets'
|
|
|
|
|
|
|
|
|
|
|
|
@ -32,7 +30,7 @@ import { useTabSearchParams } from '@/hooks/use-tab-searchparams'
|
|
|
|
import { useStore as useTagStore } from '@/app/components/base/tag-management/store'
|
|
|
|
import { useStore as useTagStore } from '@/app/components/base/tag-management/store'
|
|
|
|
import { useAppContext } from '@/context/app-context'
|
|
|
|
import { useAppContext } from '@/context/app-context'
|
|
|
|
import { useExternalApiPanel } from '@/context/external-api-panel-context'
|
|
|
|
import { useExternalApiPanel } from '@/context/external-api-panel-context'
|
|
|
|
import { DataType, UpdateType } from '@/app/components/datasets/metadata/types'
|
|
|
|
import { DataType } from '@/app/components/datasets/metadata/types'
|
|
|
|
|
|
|
|
|
|
|
|
const Container = () => {
|
|
|
|
const Container = () => {
|
|
|
|
const { t } = useTranslation()
|
|
|
|
const { t } = useTranslation()
|
|
|
|
@ -94,12 +92,13 @@ const Container = () => {
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div ref={containerRef} className='grow relative flex flex-col bg-background-body overflow-y-auto scroll-container'>
|
|
|
|
<div ref={containerRef} className='grow relative flex flex-col bg-background-body overflow-y-auto scroll-container'>
|
|
|
|
<div className='ml-[600px] mt-[300px]'>
|
|
|
|
<div className='flex justify-end mt-[300px]'>
|
|
|
|
<SelectMetadataModal trigger={<Button className='w-[200px]'>select</Button>} onSave={(data) => { console.log(data) }} />
|
|
|
|
<NoData onStart={() => { }} />
|
|
|
|
|
|
|
|
{/* <SelectMetadataModal trigger={<Button className='w-[200px]'>select</Button>} onSave={(data) => { console.log(data) }} />
|
|
|
|
<CreateModal trigger={<Button className='w-[200px]'>add</Button>} hasBack onSave={(data) => { console.log(data) }} />
|
|
|
|
<CreateModal trigger={<Button className='w-[200px]'>add</Button>} hasBack onSave={(data) => { console.log(data) }} />
|
|
|
|
<Button className='flex w-[200px]' size="medium" onClick={() => setShowExternalApiPanel(true)}>
|
|
|
|
<Button className='flex w-[200px]' size="medium" onClick={() => setShowExternalApiPanel(true)}>
|
|
|
|
Metadata
|
|
|
|
Metadata
|
|
|
|
</Button>
|
|
|
|
</Button> */}
|
|
|
|
{/* <DatasetMetadataDrawer
|
|
|
|
{/* <DatasetMetadataDrawer
|
|
|
|
userMetadata={userMetadata}
|
|
|
|
userMetadata={userMetadata}
|
|
|
|
onChange={setUserMetadata}
|
|
|
|
onChange={setUserMetadata}
|
|
|
|
@ -112,7 +111,7 @@ const Container = () => {
|
|
|
|
onIsBuiltInEnabledChange={setIsBuiltInEnabled}
|
|
|
|
onIsBuiltInEnabledChange={setIsBuiltInEnabled}
|
|
|
|
onClose={() => { }}
|
|
|
|
onClose={() => { }}
|
|
|
|
/> */}
|
|
|
|
/> */}
|
|
|
|
<EditMetadataBatchModal
|
|
|
|
{/* <EditMetadataBatchModal
|
|
|
|
documentNum={20}
|
|
|
|
documentNum={20}
|
|
|
|
list={[
|
|
|
|
list={[
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -130,8 +129,7 @@ const Container = () => {
|
|
|
|
]}
|
|
|
|
]}
|
|
|
|
onHide={() => { }}
|
|
|
|
onHide={() => { }}
|
|
|
|
onChange={(list, newList, isApplyToAllSelectDocument) => { console.log(list, newList, isApplyToAllSelectDocument) }}
|
|
|
|
onChange={(list, newList, isApplyToAllSelectDocument) => { console.log(list, newList, isApplyToAllSelectDocument) }}
|
|
|
|
|
|
|
|
/> */}
|
|
|
|
/>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div className='sticky top-0 flex justify-between pt-4 px-12 pb-2 leading-[56px] bg-background-body z-10 flex-wrap gap-y-2'>
|
|
|
|
<div className='sticky top-0 flex justify-between pt-4 px-12 pb-2 leading-[56px] bg-background-body z-10 flex-wrap gap-y-2'>
|
|
|
|
<TabSliderNew
|
|
|
|
<TabSliderNew
|
|
|
|
|