@@ -60,12 +60,15 @@ import {
6060 BranchesOutlined ,
6161 CopyrightOutlined ,
6262 OpenAIOutlined ,
63+ DeploymentUnitOutlined ,
6364} from '@ant-design/icons' ;
6465import { Divider , Flex , theme , Segmented , Tabs , Typography } from 'antd' ;
6566import { getDefaultServices } from './services' ;
6667import TableView from './components/TableView' ;
6768import ExploreLocales from './locales' ;
6869
70+ import FloatContainer from './components/FloatContainer' ;
71+
6972interface ExploreProps {
7073 id ?: string ;
7174 services ?: any ;
@@ -96,25 +99,25 @@ const Explore: React.FunctionComponent<ExploreProps> = props => {
9699 >
97100 < Section
98101 splitBorder
99- rightSide = {
100- < SegmentedTabs
101- queryKey = "right"
102- tableHeight = { 60 }
103- block
104- items = { [
105- {
106- key : 'Next' ,
107- label : (
108- < Flex vertical gap = { 0 } align = "center" style = { { paddingTop : '6px' } } >
109- < BarChartOutlined style = { { fontSize : 17 } } />
110- Next Query
111- </ Flex >
112- ) ,
113- children : < Next /> ,
114- } ,
115- ] }
116- > </ SegmentedTabs >
117- }
102+ // rightSide={
103+ // <SegmentedTabs
104+ // queryKey="right"
105+ // tableHeight={60}
106+ // block
107+ // items={[
108+ // {
109+ // key: 'Next',
110+ // label: (
111+ // <Flex vertical gap={0} align="center" style={{ paddingTop: '6px' }}>
112+ // <BarChartOutlined style={{ fontSize: 17 }} />
113+ // Next Query
114+ // </Flex>
115+ // ),
116+ // children: <Next />,
117+ // },
118+ // ]}
119+ // ></SegmentedTabs>
120+ // }
118121 autoResize = { false }
119122 leftSideStyle = { {
120123 width : '400px' ,
@@ -144,18 +147,29 @@ const Explore: React.FunctionComponent<ExploreProps> = props => {
144147 searchbar = { < Searchbar /> }
145148 direction = "vertical"
146149 items = { [
150+ {
151+ label : < Typography . Title level = { 3 } > Next Query</ Typography . Title > ,
152+ icon : < DeploymentUnitOutlined style = { { fontSize : 17 } } /> ,
153+ children : < Next /> ,
154+ key : 'NextQuery' ,
155+ } ,
147156 {
148157 label : < Typography . Title level = { 3 } > Statistics Analysis</ Typography . Title > ,
149158 icon : < BarChartOutlined style = { { fontSize : 17 } } /> ,
150- children : < Statistics /> ,
159+ children : (
160+ < Flex vertical >
161+ < Statistics />
162+ < TableView />
163+ </ Flex >
164+ ) ,
151165 key : 'Statistics' ,
152166 } ,
153- {
154- label : < Typography . Title level = { 3 } > Table View</ Typography . Title > ,
155- icon : < TableOutlined /> ,
156- children : < TableView /> ,
157- key : 'TableView' ,
158- } ,
167+ // {
168+ // label: <Typography.Title level={3}>Table View</Typography.Title>,
169+ // icon: <TableOutlined />,
170+ // children: <TableView />,
171+ // key: 'TableView',
172+ // },
159173 {
160174 label : < Typography . Title level = { 3 } > Cluster Analysis</ Typography . Title > ,
161175 icon : < CopyrightOutlined /> ,
@@ -202,8 +216,6 @@ const Explore: React.FunctionComponent<ExploreProps> = props => {
202216 }
203217 > </ FloatTabs >
204218
205- < ZoomStatus style = { { left : 350 , opacity : 0.5 } } />
206-
207219 { /* <HoverMenu>
208220 <NeighborQuery />
209221 <CommonNeighbor />
@@ -212,20 +224,27 @@ const Explore: React.FunctionComponent<ExploreProps> = props => {
212224 </HoverMenu> */ }
213225
214226 < ContextMenu >
215- < RunAI />
216227 < NeighborQuery />
217228 { /* <CommonNeighbor /> */ }
218229 < DeleteLeafNodes />
219230 < DeleteNode />
220231 </ ContextMenu >
232+ < FloatContainer position = "bottom" >
233+ < ZoomStatus
234+ style = { {
235+ opacity : 0.5 ,
236+ } }
237+ />
238+ </ FloatContainer >
221239
222240 < FloatToolbar >
223- < ToogleRightButton />
224- < Divider style = { { margin : '0px' } } />
241+ { /* <ToogleRightButton /> */ }
242+ { /* <Divider style={{ margin: '0px' }} /> */ }
225243 < Brush />
226244 < FixedMode />
227245 < ZoomFit />
228246 < FullScreen containerRef = { containerRef } />
247+ < Divider style = { { margin : '0px' } } />
229248 < ClearCanvas />
230249 < ClearStatus trigger = "button" />
231250 </ FloatToolbar >
0 commit comments