Skip to content

Commit a1b2faf

Browse files
authored
Merge pull request #1019 from getmaxun/cli-menu
feat: add cli to main menu
2 parents 2a8f7e7 + fd5e0e9 commit a1b2faf

1 file changed

Lines changed: 20 additions & 13 deletions

File tree

src/components/dashboard/MainMenu.tsx

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Tab from '@mui/material/Tab';
44
import Box from '@mui/material/Box';
55
import { useNavigate, useLocation } from 'react-router-dom';
66
import { Paper, Button, useTheme, Modal, Typography, Stack, Divider } from "@mui/material";
7-
import { AutoAwesome, VpnKey, Usb, CloudQueue, Description, Favorite, SlowMotionVideo, PlayArrow, ArrowForwardIos, Star } from "@mui/icons-material";
7+
import { AutoAwesome, VpnKey, Usb, CloudQueue, Description, Favorite, SlowMotionVideo, PlayArrow, ArrowForwardIos, Star, Terminal } from "@mui/icons-material";
88
import { useTranslation } from 'react-i18next';
99

1010
interface MainMenuProps {
@@ -89,7 +89,7 @@ export const MainMenu = ({ value = 'robots', handleChangeContent }: MainMenuProp
8989
const starButtonStyles = {
9090
justifyContent: 'flex-start',
9191
textAlign: 'left',
92-
fontSize: '15px',
92+
fontSize: '14px',
9393
padding: '12px 20px 12px 22px',
9494
minHeight: '48px',
9595
minWidth: '100%',
@@ -142,36 +142,29 @@ export const MainMenu = ({ value = 'robots', handleChangeContent }: MainMenuProp
142142
icon={<AutoAwesome sx={{ fontSize: 20 }} />}
143143
iconPosition="start"
144144
disableRipple={true}
145-
sx={{ justifyContent: 'flex-start', textAlign: 'left', fontSize: '16px' }}
145+
sx={{ justifyContent: 'flex-start', textAlign: 'left', fontSize: '15px' }}
146146
onClick={handleRobotsClick} />
147147
<Tab value="runs"
148148
label={t('mainmenu.runs')}
149149
icon={<PlayArrow sx={{ fontSize: 20 }} />}
150150
iconPosition="start"
151151
disableRipple={true}
152-
sx={{ justifyContent: 'flex-start', textAlign: 'left', fontSize: '16px' }} />
152+
sx={{ justifyContent: 'flex-start', textAlign: 'left', fontSize: '15px' }} />
153153
<Tab value="proxy"
154154
label={t('mainmenu.proxy')}
155155
icon={<Usb sx={{ fontSize: 20 }} />}
156156
iconPosition="start"
157157
disableRipple={true}
158-
sx={{ justifyContent: 'flex-start', textAlign: 'left', fontSize: '16px' }} />
158+
sx={{ justifyContent: 'flex-start', textAlign: 'left', fontSize: '15px' }} />
159159
<Tab value="apikey"
160160
label={t('mainmenu.apikey')}
161161
icon={<VpnKey sx={{ fontSize: 20 }}/>}
162162
iconPosition="start"
163163
disableRipple={true}
164-
sx={{ justifyContent: 'flex-start', textAlign: 'left', fontSize: '16px' }} />
164+
sx={{ justifyContent: 'flex-start', textAlign: 'left', fontSize: '15px' }} />
165165
</Tabs>
166166
<Divider sx={{ borderColor: theme.palette.mode === 'dark' ? "#080808ff" : "" }} />
167167
<Box sx={{ display: 'flex', flexDirection: 'column', textAlign: 'left' }}>
168-
<Button
169-
href='https://docs.maxun.dev/category/sdk'
170-
target="_blank"
171-
rel="noopener noreferrer"
172-
sx={buttonStyles} startIcon={<ArrowForwardIos sx={{ fontSize: 20 }} />}>
173-
SDK
174-
</Button>
175168
<Button
176169
onClick={() => setDocModalOpen(true)}
177170
sx={buttonStyles}
@@ -212,6 +205,20 @@ export const MainMenu = ({ value = 'robots', handleChangeContent }: MainMenuProp
212205
sx={buttonStyles} startIcon={<CloudQueue sx={{ fontSize: 16 }} />}>
213206
Join Maxun Cloud
214207
</Button>
208+
<Button
209+
href='https://docs.maxun.dev/category/sdk'
210+
target="_blank"
211+
rel="noopener noreferrer"
212+
sx={buttonStyles} startIcon={<ArrowForwardIos sx={{ fontSize: 20 }} />}>
213+
SDK
214+
</Button>
215+
<Button
216+
href='https://docs.maxun.dev/category/cli'
217+
target="_blank"
218+
rel="noopener noreferrer"
219+
sx={buttonStyles} startIcon={<Terminal sx={{ fontSize: 20 }} />}>
220+
CLI
221+
</Button>
215222
<Button onClick={() => setSponsorModalOpen(true)} sx={buttonStyles} startIcon={<Favorite sx={{ fontSize: 16 }} />}>
216223
Sponsor Us
217224
</Button>

0 commit comments

Comments
 (0)