Skip to content

Commit 360940e

Browse files
authored
Merge pull request #39 from nebula-contrib/fix_banner
fix: ui of banner, and lift studio 3.9.0
2 parents 78e2668 + 89ca93e commit 360940e

File tree

3 files changed

+21
-28
lines changed

3 files changed

+21
-28
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="Introduce NebulaGraph Jupyter" \
34+
com.docker.extension.changelog="Studio lift to 3.9.0" \
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ services:
336336
# profiles: ["studio"]
337337
labels:
338338
- "com.vesoft.scope=utils"
339-
image: vesoft/nebula-graph-studio:v3.7.0
339+
image: vesoft/nebula-graph-studio:v3.9.0
340340
environment:
341341
USER: root
342342
ports:

ui/src/App.tsx

+19-26
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import React from 'react';
21
import Button from '@mui/material/Button';
32
import { Insights, LibraryBooks, KeyboardArrowRight, AutoAwesome } from '@mui/icons-material';
43
import { createDockerDesktopClient } from '@docker/extension-api-client';
@@ -18,63 +17,59 @@ export function App() {
1817
<>
1918

2019
<AppBar position="relative" elevation={0}>
21-
<Toolbar>
20+
<Toolbar style={{ minHeight: '36px' }}>
2221
<Box display="flex" flexGrow={1} alignItems="center" flexWrap="wrap">
23-
<img src="https://user-images.githubusercontent.com/1651790/213339618-107d0e59-1b8b-4c89-bbae-5529aa4e2666.svg" alt="NebulaGraph" height="35" />
22+
<img src="https://user-images.githubusercontent.com/1651790/213339618-107d0e59-1b8b-4c89-bbae-5529aa4e2666.svg" alt="NebulaGraph" height="19" />
2423
<span style={{marginRight: 10}}></span>
2524
<Typography variant="h4" color={(theme) => theme.palette.text.primary} sx={{ my: 2, mr: 6 }}>
2625
<b>Nebula</b>Graph
2726
</Typography>
28-
<Box>
27+
<Box sx={{ height: '32px' }}>
2928
<Button
3029
variant="outlined"
3130
onClick={() =>
3231
ddClient.host.openExternal('http://127.0.0.1:17001')
3332
}
34-
endIcon={<Insights />}
33+
endIcon={<Insights style={{ fontSize: 'small' }} />}
34+
style={{ fontSize: '0.75rem', lineHeight: '1rem' }}
3535
>
3636
Studio
3737
</Button>
3838
</Box>
3939

4040
<span style={{marginRight: 10}}></span>
41-
42-
<Box>
41+
<Box sx={{ height: '32px' }}>
4342
<Button
4443
variant="outlined"
45-
onClick={() =>
46-
ddClient.host.openExternal('http://127.0.0.1:17005')
47-
}
48-
endIcon={<AutoAwesome />}
44+
onClick={() => ddClient.host.openExternal('http://127.0.0.1:17005')}
45+
endIcon={<AutoAwesome style={{ fontSize: 'small' }} />}
46+
style={{ fontSize: '0.75rem', lineHeight: '1rem' }}
4947
>
5048
Gephi-Lite
5149
</Button>
5250
</Box>
5351

5452
<span style={{marginRight: 10}}></span>
5553

56-
<Box>
54+
<Box sx={{ height: '32px' }}>
5755
<Button
5856
variant="outlined"
59-
onClick={() =>
60-
ddClient.host.openExternal('http://127.0.0.1:28888?token=nebula')
61-
}
62-
endIcon={<LibraryBooks />}
57+
onClick={() => ddClient.host.openExternal('http://127.0.0.1:28888?token=nebula')}
58+
endIcon={<LibraryBooks style={{ fontSize: 'small' }} />}
59+
style={{ fontSize: '0.75rem', lineHeight: '1rem' }}
6360
>
6461
Jupyter
6562
</Button>
6663
</Box>
6764

68-
6965
<span style={{marginRight: 10}}></span>
7066

71-
<Box>
67+
<Box sx={{ height: '32px' }}>
7268
<Button
7369
variant="outlined"
74-
onClick={() =>
75-
ddClient.host.openExternal('http://127.0.0.1:8376')
76-
}
77-
endIcon={<KeyboardArrowRight />}
70+
onClick={() => ddClient.host.openExternal('http://127.0.0.1:8376')}
71+
endIcon={<KeyboardArrowRight style={{ fontSize: 'small' }} />}
72+
style={{ fontSize: '0.75rem', lineHeight: '1rem' }}
7873
>
7974
Console
8075
</Button>
@@ -84,9 +79,7 @@ export function App() {
8479
<Box>
8580
<a
8681
href="#"
87-
onClick={() =>
88-
ddClient.host.openExternal('https://github.com/vesoft-inc/nebula')
89-
}
82+
onClick={() => ddClient.host.openExternal('https://github.com/vesoft-inc/nebula')}
9083
>
9184
<img src="https://shields.io/github/stars/vesoft-inc/nebula?style=social" alt=""/>
9285
</a>
@@ -102,7 +95,7 @@ export function App() {
10295
<Box sx={{ alignItems: 'left', flexDirection: 'column', height: 20, fontSize: 10, justifyContent: 'center'}}>
10396
<Typography variant="body2" color={(theme) => theme.palette.text.primary} sx={{ my: 2, mr: 6 }}>
10497
<span style={{marginRight: 10}}></span>
105-
NebulaGraph for Docker Desktop Extension 0.4.18, NebulaGraph: v3.6.0, NebulaGraph Studio: v3.7.0
98+
NebulaGraph for Docker Desktop Extension 0.4.19, NebulaGraph: v3.6.0, NebulaGraph Studio: v3.9.0
10699
</Typography>
107100
</Box>
108101

0 commit comments

Comments
 (0)