Skip to content

Commit 42f6bbc

Browse files
committed
feat: add gephi support!
1 parent 878083c commit 42f6bbc

File tree

4 files changed

+42
-3
lines changed

4 files changed

+42
-3
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ LABEL org.opencontainers.image.title="NebulaGraph" \
3131
com.docker.extension.detailed-description="NebulaGraph is a popular Open-Source, distributed Cloud Native Graph Database for trillion edges graph data volume." \
3232
com.docker.extension.publisher-url="https://github.com/vesoft-inc/nebula" \
3333
com.docker.extension.additional-urls='[{"title":"WebSite","url":"https://www.nebula-graph.io/"}, {"title":"GitHub","url":"https://github.com/vesoft-inc/nebula"}, {"title":"Slack","url":"http://community-chat.nebula-graph.io/"}, {"title":"Docker Extension Feedback","url":"https://github.com/nebula-contrib/nebulagraph-docker-ext/issues/new/choose"}]' \
34-
com.docker.extension.changelog="Studio with dual-arch support, added console new window btn. See https://github.com/nebula-contrib/nebulagraph-docker-ext/" \
34+
com.docker.extension.changelog="Add NebulaGraph Gephi! Now we could perform Graph Algo in Browser and Graph with Gephi-Lite" \
3535
com.docker.desktop.extension.icon="https://user-images.githubusercontent.com/1651790/213339618-107d0e59-1b8b-4c89-bbae-5529aa4e2666.svg" \
3636
com.docker.extension.categories="database"
3737

docker-compose.yaml

+18
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,24 @@ services:
349349
start_period: 20s
350350
networks:
351351
- nebula-net
352+
353+
nebulagraph_gephi:
354+
labels:
355+
- "com.vesoft.scope=utils"
356+
image: weygu/nebulagraph-gephi-exchange:0.1.0
357+
environment:
358+
USER: root
359+
ports:
360+
- 17005:8501
361+
healthcheck:
362+
test: ["CMD", "curl", "-I", "localhost:8501"]
363+
interval: 30s
364+
timeout: 10s
365+
retries: 3
366+
start_period: 20s
367+
networks:
368+
- nebula-net
369+
352370
studio_lagacy:
353371
# profiles: ["studio"]
354372
labels:

ui/src/App.tsx

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import React from 'react';
22
import Button from '@mui/material/Button';
3-
import { Insights, Explore, KeyboardArrowRight } from '@mui/icons-material';
3+
import { Insights, Explore, KeyboardArrowRight, AutoAwesome } from '@mui/icons-material';
44
import { createDockerDesktopClient } from '@docker/extension-api-client';
5+
56
import {
67
AppBar,
78
Box,
@@ -52,6 +53,20 @@ export function App() {
5253

5354
<span style={{marginRight: 10}}></span>
5455

56+
<Box>
57+
<Button
58+
variant="outlined"
59+
onClick={() =>
60+
ddClient.host.openExternal('http://127.0.0.1:17005')
61+
}
62+
endIcon={<AutoAwesome />}
63+
>
64+
Gephi-Lite
65+
</Button>
66+
</Box>
67+
68+
<span style={{marginRight: 10}}></span>
69+
5570
<Box>
5671
<Button
5772
variant="outlined"
@@ -86,7 +101,7 @@ export function App() {
86101
<Box sx={{ alignItems: 'left', flexDirection: 'column', height: 20, fontSize: 10, justifyContent: 'center'}}>
87102
<Typography variant="body2" color={(theme) => theme.palette.text.primary} sx={{ my: 2, mr: 6 }}>
88103
<span style={{marginRight: 10}}></span>
89-
NebulaGraph for Docker Desktop Extension 0.4.11, NebulaGraph: v3.6.0, NebulaGraph Studio: v3.7.0
104+
NebulaGraph for Docker Desktop Extension 0.4.12, NebulaGraph: v3.6.0, NebulaGraph Studio: v3.7.0
90105
</Typography>
91106
</Box>
92107

ui/src/components/TabPanel/index.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ export default function NebulaGraphTabs() {
487487
<Tab label="Docs" {...a11yProps(3)} />
488488
<Tab label="Console" {...a11yProps(4)} />
489489
<Tab label="NebulaGraph AI" {...a11yProps(5)} />
490+
<Tab label="Gephi-Lite" {...a11yProps(6)} />
490491
</Tabs>
491492
</Box>
492493
<TabPanel value={value} index={0}>
@@ -1036,6 +1037,11 @@ export default function NebulaGraphTabs() {
10361037
</TableContainer>
10371038

10381039
</TabPanel>
1040+
1041+
<TabPanel value={value} index={6}>
1042+
<iframe src="http://127.0.0.1:17005" width="100%" height="1200"/>
1043+
</TabPanel>
1044+
10391045
</Box>
10401046
);
10411047
}

0 commit comments

Comments
 (0)