Skip to content

Commit a60df7f

Browse files
authored
Merge pull request #813 from getmaxun/pre-release-24
chore: pre-release v0.0.24
2 parents f4ab7dc + d1f6a9f commit a60df7f

File tree

3 files changed

+41
-47
lines changed

3 files changed

+41
-47
lines changed

maxun-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "maxun-core",
3-
"version": "0.0.23",
3+
"version": "0.0.24",
44
"description": "Core package for Maxun, responsible for data extraction",
55
"main": "build/index.js",
66
"typings": "build/index.d.ts",

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "maxun",
3-
"version": "0.0.23",
3+
"version": "0.0.24",
44
"author": "Maxun",
55
"license": "AGPL-3.0-or-later",
66
"dependencies": {
@@ -11,7 +11,7 @@
1111
"@mui/lab": "^5.0.0-alpha.80",
1212
"@mui/material": "^5.6.2",
1313
"@react-oauth/google": "^0.12.1",
14-
"@tanstack/react-query": "^5.89.0",
14+
"@tanstack/react-query": "^5.90.2",
1515
"@testing-library/react": "^13.1.1",
1616
"@testing-library/user-event": "^13.5.0",
1717
"@types/bcrypt": "^5.0.2",
@@ -51,7 +51,7 @@
5151
"lodash": "^4.17.21",
5252
"loglevel": "^1.8.0",
5353
"loglevel-plugin-remote": "^0.6.8",
54-
"maxun-core": "^0.0.23",
54+
"maxun-core": "^0.0.24",
5555
"minio": "^8.0.1",
5656
"moment-timezone": "^0.5.45",
5757
"node-cron": "^3.0.3",

src/components/dashboard/MainMenu.tsx

Lines changed: 37 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export const MainMenu = ({ value = 'robots', handleChangeContent }: MainMenuProp
2020
const location = useLocation();
2121
const { notify } = useGlobalInfoStore();
2222

23-
const [cloudModalOpen, setCloudModalOpen] = useState(false);
2423
const [sponsorModalOpen, setSponsorModalOpen] = useState(false);
24+
const [docModalOpen, setDocModalOpen] = useState(false);
2525

2626
const ossDiscountCode = "MAXUNOSS8";
2727

@@ -96,13 +96,44 @@ export const MainMenu = ({ value = 'robots', handleChangeContent }: MainMenuProp
9696
</Tabs>
9797
<hr />
9898
<Box sx={{ display: 'flex', flexDirection: 'column', textAlign: 'left' }}>
99-
<Button href='https://docs.maxun.dev' target="_blank" rel="noopener noreferrer" sx={buttonStyles} startIcon={<Description />}>
99+
<Button
100+
onClick={() => setDocModalOpen(true)}
101+
sx={buttonStyles}
102+
startIcon={<Description />}
103+
>
100104
Documentation
101105
</Button>
102-
<Button href="https://www.youtube.com/@MaxunOSS/videos" target="_blank" rel="noopener noreferrer" sx={buttonStyles} startIcon={<SlowMotionVideo />}>
103-
Tutorials
104-
</Button>
105-
<Button onClick={() => setCloudModalOpen(true)} sx={buttonStyles} startIcon={<CloudQueue />}>
106+
<Modal open={docModalOpen ?? false} onClose={() => setDocModalOpen(false)}>
107+
<Box sx={{ position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', bgcolor: 'background.paper', borderRadius: 2, p: 4, width: 400 }}>
108+
<Stack spacing={2}>
109+
<Button
110+
href="https://docs.maxun.dev"
111+
target="_blank"
112+
rel="noopener noreferrer"
113+
variant="outlined"
114+
startIcon={<Description />}
115+
fullWidth
116+
>
117+
Documentation
118+
</Button>
119+
<Button
120+
href="https://www.youtube.com/@MaxunOSS/videos"
121+
target="_blank"
122+
rel="noopener noreferrer"
123+
variant="outlined"
124+
startIcon={<SlowMotionVideo />}
125+
fullWidth
126+
>
127+
Video Tutorials
128+
</Button>
129+
</Stack>
130+
</Box>
131+
</Modal>
132+
<Button
133+
href='https://app.maxun.dev/'
134+
target="_blank"
135+
rel="noopener noreferrer"
136+
sx={buttonStyles} startIcon={<CloudQueue />}>
106137
Join Maxun Cloud
107138
</Button>
108139
<Button onClick={() => setSponsorModalOpen(true)} sx={buttonStyles} startIcon={<Favorite />}>
@@ -111,43 +142,6 @@ export const MainMenu = ({ value = 'robots', handleChangeContent }: MainMenuProp
111142
</Box>
112143
</Box>
113144
</Paper>
114-
115-
<Modal open={cloudModalOpen} onClose={() => setCloudModalOpen(false)}>
116-
<Box sx={{ position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', bgcolor: 'background.paper', borderRadius: 2, p: 4, width: 600 }}>
117-
<Typography variant="h6" marginBottom={4}>
118-
Join Maxun Cloud
119-
</Typography>
120-
<Typography variant="body1" gutterBottom>
121-
Unlock reliable web data extraction. Maxun Cloud ensures you bypass blocks and scale with ease.
122-
</Typography>
123-
<Typography variant="body1" gutterBottom>
124-
As a thank-you to open source users, enjoy 8% off your subscription!
125-
</Typography>
126-
<Typography variant="body2" color="text.secondary" sx={{ mt: 2, mb: 0.5, fontSize: 13 }}>
127-
Use the discount code
128-
</Typography>
129-
<TextField
130-
size="small"
131-
value={ossDiscountCode}
132-
InputProps={{
133-
readOnly: true,
134-
endAdornment: (
135-
<InputAdornment position="end">
136-
<IconButton onClick={copyDiscountCode} edge="end" aria-label="copy discount code" size="small">
137-
<ContentCopy fontSize="small" />
138-
</IconButton>
139-
</InputAdornment>
140-
),
141-
}}
142-
sx={{ mb: 2, fontSize: 13 }}
143-
/>
144-
145-
<Button href="https://app.maxun.dev/login" target="_blank" fullWidth variant="outlined" sx={{ mt: 2 }}>
146-
Go to Maxun Cloud
147-
</Button>
148-
</Box>
149-
</Modal>
150-
151145
<Modal open={sponsorModalOpen} onClose={() => setSponsorModalOpen(false)}>
152146
<Box sx={{ position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', bgcolor: 'background.paper', borderRadius: 2, p: 4, width: 600 }}>
153147
<Typography variant="h6" marginBottom={4}>

0 commit comments

Comments
 (0)