|
@@ -2,8 +2,13 @@ import { useCallback, useContext, useEffect, useMemo, useState } from 'react';
|
|
|
import { Link, useSearchParams } from 'react-router-dom';
|
|
|
import { makeStyles, Theme } from '@material-ui/core';
|
|
|
import { useTranslation } from 'react-i18next';
|
|
|
-import { authContext } from '@/context/Auth';
|
|
|
-import { databaseContext } from '@/context/Database';
|
|
|
+import Highlighter from 'react-highlight-words';
|
|
|
+import {
|
|
|
+ rootContext,
|
|
|
+ authContext,
|
|
|
+ databaseContext,
|
|
|
+ webSocketContext,
|
|
|
+} from '@/context';
|
|
|
import { useNavigationHook } from '@/hooks/Navigation';
|
|
|
import { ALL_ROUTER_TYPES } from '@/router/Types';
|
|
|
import AttuGrid from '@/components/grid/Grid';
|
|
@@ -17,19 +22,16 @@ import Status from '@/components/status/Status';
|
|
|
import { ChildrenStatusType } from '@/components/status/Types';
|
|
|
import StatusIcon from '@/components/status/StatusIcon';
|
|
|
import CustomToolTip from '@/components/customToolTip/CustomToolTip';
|
|
|
-import { rootContext } from '@/context/Root';
|
|
|
import CreateCollectionDialog from '../dialogs/CreateCollectionDialog';
|
|
|
import { CollectionHttp } from '@/http/Collection';
|
|
|
import LoadCollectionDialog from '../dialogs/LoadCollectionDialog';
|
|
|
import ReleaseCollectionDialog from '../dialogs/ReleaseCollectionDialog';
|
|
|
import DropCollectionDialog from '../dialogs/DropCollectionDialog';
|
|
|
import RenameCollectionDialog from '../dialogs/RenameCollectionDialog';
|
|
|
-import Highlighter from 'react-highlight-words';
|
|
|
import InsertDialog from '../dialogs/insert/Dialog';
|
|
|
import ImportSampleDialog from '../dialogs/ImportSampleDialog';
|
|
|
import { MilvusHttp } from '@/http/Milvus';
|
|
|
import { LOADING_STATE } from '@/consts/Milvus';
|
|
|
-import { webSocketContext } from '@/context/WebSocket';
|
|
|
import { WS_EVENTS, WS_EVENTS_TYPE } from '@/consts/Http';
|
|
|
import { checkIndexBuilding, checkLoading } from '@/utils/Validation';
|
|
|
import Aliases from './Aliases';
|