Merge pull request #954 from getmaxun/pre-release-32
chore: pre-release v0.0.32
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "maxun-core",
|
"name": "maxun-core",
|
||||||
"version": "0.0.29",
|
"version": "0.0.30",
|
||||||
"description": "Core package for Maxun, responsible for data extraction",
|
"description": "Core package for Maxun, responsible for data extraction",
|
||||||
"main": "build/index.js",
|
"main": "build/index.js",
|
||||||
"typings": "build/index.d.ts",
|
"typings": "build/index.d.ts",
|
||||||
@@ -36,4 +36,4 @@
|
|||||||
"playwright-core": "1.57.0",
|
"playwright-core": "1.57.0",
|
||||||
"turndown": "^7.2.2"
|
"turndown": "^7.2.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "maxun",
|
"name": "maxun",
|
||||||
"version": "0.0.31",
|
"version": "0.0.32",
|
||||||
"author": "Maxun",
|
"author": "Maxun",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"loglevel": "^1.8.0",
|
"loglevel": "^1.8.0",
|
||||||
"loglevel-plugin-remote": "^0.6.8",
|
"loglevel-plugin-remote": "^0.6.8",
|
||||||
"maxun-core": "^0.0.29",
|
"maxun-core": "^0.0.30",
|
||||||
"minio": "^8.0.1",
|
"minio": "^8.0.1",
|
||||||
"moment-timezone": "^0.5.45",
|
"moment-timezone": "^0.5.45",
|
||||||
"node-cron": "^3.0.3",
|
"node-cron": "^3.0.3",
|
||||||
|
|||||||
7
public/svg/langchain.svg
Normal file
7
public/svg/langchain.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 5.9 KiB |
18
public/svg/llamaindex.svg
Normal file
18
public/svg/llamaindex.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 6.3 KiB |
22
public/svg/mastra.svg
Normal file
22
public/svg/mastra.svg
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
<?xml version="1.0" standalone="no"?>
|
||||||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN"
|
||||||
|
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
|
||||||
|
<svg version="1.0" xmlns="http://www.w3.org/2000/svg"
|
||||||
|
width="200.000000pt" height="200.000000pt" viewBox="0 0 200.000000 200.000000"
|
||||||
|
preserveAspectRatio="xMidYMid meet">
|
||||||
|
|
||||||
|
<g transform="translate(0.000000,200.000000) scale(0.100000,-0.100000)"
|
||||||
|
fill="#000000" stroke="none">
|
||||||
|
<path d="M0 1000 l0 -1000 1000 0 1000 0 0 1000 0 1000 -1000 0 -1000 0 0
|
||||||
|
-1000z m798 444 c102 -42 139 -121 120 -258 -13 -95 -3 -135 49 -208 l36 -50
|
||||||
|
19 23 c10 13 30 48 44 77 26 50 26 57 20 157 -6 90 -5 110 12 147 54 122 202
|
||||||
|
163 304 85 59 -46 80 -92 77 -169 -8 -186 -6 -204 26 -249 23 -33 44 -48 89
|
||||||
|
-66 100 -38 146 -99 146 -192 0 -197 -252 -275 -365 -113 -32 47 -34 66 -24
|
||||||
|
237 4 62 1 76 -25 128 -17 32 -33 60 -37 63 -4 2 -24 -22 -44 -53 l-36 -58 3
|
||||||
|
-130 c3 -115 1 -135 -17 -169 -75 -142 -287 -138 -362 8 -10 20 -16 66 -18
|
||||||
|
141 -2 70 -9 124 -18 146 -19 44 -67 87 -141 128 -67 38 -89 59 -116 116 -34
|
||||||
|
71 -20 152 37 210 61 63 144 81 221 49z m-224 -541 c122 -86 110 -269 -23
|
||||||
|
-340 -86 -45 -191 -20 -255 60 -25 31 -31 49 -34 101 -5 69 15 121 61 164 63
|
||||||
|
59 179 66 251 15z"/>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 1.2 KiB |
2
public/svg/openai.svg
Normal file
2
public/svg/openai.svg
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
||||||
|
<svg fill="#000000" width="800px" height="800px" viewBox="0 0 24 24" role="img" xmlns="http://www.w3.org/2000/svg"><title>OpenAI icon</title><path d="M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"/></svg>
|
||||||
|
After Width: | Height: | Size: 1.7 KiB |
2
public/svg/vercel.svg
Normal file
2
public/svg/vercel.svg
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
||||||
|
<svg fill="#000000" width="800px" height="800px" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M256,48,496,464H16Z"/></svg>
|
||||||
|
After Width: | Height: | Size: 282 B |
@@ -11,10 +11,6 @@ import {
|
|||||||
Typography,
|
Typography,
|
||||||
Chip,
|
Chip,
|
||||||
Button,
|
Button,
|
||||||
Modal,
|
|
||||||
Tabs,
|
|
||||||
Tab,
|
|
||||||
Box,
|
|
||||||
Snackbar,
|
Snackbar,
|
||||||
Tooltip
|
Tooltip
|
||||||
} from "@mui/material";
|
} from "@mui/material";
|
||||||
@@ -25,7 +21,6 @@ import {
|
|||||||
YouTube,
|
YouTube,
|
||||||
X,
|
X,
|
||||||
GitHub,
|
GitHub,
|
||||||
Update,
|
|
||||||
Close,
|
Close,
|
||||||
LightMode,
|
LightMode,
|
||||||
DarkMode,
|
DarkMode,
|
||||||
@@ -62,9 +57,7 @@ export const NavBar: React.FC<NavBarProps> = ({
|
|||||||
|
|
||||||
const currentVersion = packageJson.version;
|
const currentVersion = packageJson.version;
|
||||||
|
|
||||||
const [open, setOpen] = useState(false);
|
|
||||||
const [latestVersion, setLatestVersion] = useState<string | null>(null);
|
const [latestVersion, setLatestVersion] = useState<string | null>(null);
|
||||||
const [tab, setTab] = useState(0);
|
|
||||||
const [isUpdateAvailable, setIsUpdateAvailable] = useState(false);
|
const [isUpdateAvailable, setIsUpdateAvailable] = useState(false);
|
||||||
|
|
||||||
const fetchLatestVersion = async (): Promise<string | null> => {
|
const fetchLatestVersion = async (): Promise<string | null> => {
|
||||||
@@ -79,20 +72,6 @@ export const NavBar: React.FC<NavBarProps> = ({
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleUpdateOpen = () => {
|
|
||||||
setOpen(true);
|
|
||||||
fetchLatestVersion();
|
|
||||||
};
|
|
||||||
|
|
||||||
const handleUpdateClose = () => {
|
|
||||||
setOpen(false);
|
|
||||||
setTab(0); // Reset tab to the first tab
|
|
||||||
};
|
|
||||||
|
|
||||||
const handleUpdateTabChange = (event: React.SyntheticEvent, newValue: number) => {
|
|
||||||
setTab(newValue);
|
|
||||||
};
|
|
||||||
|
|
||||||
const handleMenuOpen = (event: React.MouseEvent<HTMLElement>) => {
|
const handleMenuOpen = (event: React.MouseEvent<HTMLElement>) => {
|
||||||
setAnchorEl(event.currentTarget);
|
setAnchorEl(event.currentTarget);
|
||||||
};
|
};
|
||||||
@@ -197,7 +176,7 @@ export const NavBar: React.FC<NavBarProps> = ({
|
|||||||
<Button
|
<Button
|
||||||
color="primary"
|
color="primary"
|
||||||
size="small"
|
size="small"
|
||||||
onClick={handleUpdateOpen}
|
href="https://docs.maxun.dev/installation/upgrade"
|
||||||
style={{
|
style={{
|
||||||
backgroundColor: '#ff00c3',
|
backgroundColor: '#ff00c3',
|
||||||
color: 'white',
|
color: 'white',
|
||||||
@@ -249,114 +228,6 @@ export const NavBar: React.FC<NavBarProps> = ({
|
|||||||
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'flex-end' }}>
|
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'flex-end' }}>
|
||||||
{!isRecording ? (
|
{!isRecording ? (
|
||||||
<>
|
<>
|
||||||
<IconButton onClick={handleUpdateOpen} sx={{
|
|
||||||
display: 'flex',
|
|
||||||
alignItems: 'center',
|
|
||||||
borderRadius: '5px',
|
|
||||||
padding: '8px',
|
|
||||||
marginRight: '20px',
|
|
||||||
'&:hover': {
|
|
||||||
background: 'inherit'
|
|
||||||
}
|
|
||||||
}}>
|
|
||||||
<Update sx={{ marginRight: '5px' }} />
|
|
||||||
<Typography variant="body1">{t('navbar.upgrade.button')}</Typography>
|
|
||||||
</IconButton>
|
|
||||||
<Modal open={open} onClose={handleUpdateClose}>
|
|
||||||
<Box
|
|
||||||
sx={{
|
|
||||||
position: "absolute",
|
|
||||||
top: "50%",
|
|
||||||
left: "50%",
|
|
||||||
transform: "translate(-50%, -50%)",
|
|
||||||
width: 700,
|
|
||||||
bgcolor: "background.paper",
|
|
||||||
boxShadow: 24,
|
|
||||||
p: 4,
|
|
||||||
borderRadius: 2,
|
|
||||||
}}
|
|
||||||
>
|
|
||||||
{latestVersion === null ? (
|
|
||||||
<Typography>Checking for updates...</Typography>
|
|
||||||
) : currentVersion === latestVersion ? (
|
|
||||||
<Typography variant="h6" textAlign="center">
|
|
||||||
{t('navbar.upgrade.modal.up_to_date')}
|
|
||||||
</Typography>
|
|
||||||
) : (
|
|
||||||
<>
|
|
||||||
<Typography variant="body1" textAlign="left" sx={{ marginLeft: '30px' }}>
|
|
||||||
{t('navbar.upgrade.modal.new_version_available', { version: latestVersion })}
|
|
||||||
<br />
|
|
||||||
{t('navbar.upgrade.modal.view_updates')}
|
|
||||||
<a href="https://github.com/getmaxun/maxun/releases/" target="_blank" style={{ textDecoration: 'none' }}>{' '}here.</a>
|
|
||||||
</Typography>
|
|
||||||
<Tabs
|
|
||||||
value={tab}
|
|
||||||
onChange={handleUpdateTabChange}
|
|
||||||
sx={{ marginTop: 2, marginBottom: 2, marginLeft: '30px' }}
|
|
||||||
>
|
|
||||||
<Tab label={t('navbar.upgrade.modal.tabs.manual_setup')} />
|
|
||||||
<Tab label={t('navbar.upgrade.modal.tabs.docker_setup')} />
|
|
||||||
</Tabs>
|
|
||||||
{tab === 0 && (
|
|
||||||
<Box sx={{ marginLeft: '30px', background: '#cfd0d1', padding: 1, borderRadius: 3 }}>
|
|
||||||
<code style={{ color: 'black' }}>
|
|
||||||
<p>Run the commands below</p>
|
|
||||||
# cd to project directory (eg: maxun)
|
|
||||||
<br />
|
|
||||||
cd maxun
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
# pull latest changes
|
|
||||||
<br />
|
|
||||||
git pull origin master
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
# install dependencies
|
|
||||||
<br />
|
|
||||||
npm install
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
# start maxun
|
|
||||||
<br />
|
|
||||||
npm run start
|
|
||||||
</code>
|
|
||||||
</Box>
|
|
||||||
)}
|
|
||||||
{tab === 1 && (
|
|
||||||
<Box sx={{ marginLeft: '30px', background: '#cfd0d1', padding: 1, borderRadius: 3 }}>
|
|
||||||
<code style={{ color: 'black' }}>
|
|
||||||
<p>Run the commands below</p>
|
|
||||||
# cd to project directory (eg: maxun)
|
|
||||||
<br />
|
|
||||||
cd maxun
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
# stop the working containers
|
|
||||||
<br />
|
|
||||||
docker-compose down
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
# Remove existing backend and frontend images
|
|
||||||
<br />
|
|
||||||
docker rmi getmaxun/maxun-frontend:latest getmaxun/maxun-backend:latest
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
# pull latest docker images
|
|
||||||
<br />
|
|
||||||
docker-compose pull backend frontend
|
|
||||||
<br />
|
|
||||||
<br />
|
|
||||||
# start maxun
|
|
||||||
<br />
|
|
||||||
docker-compose up -d
|
|
||||||
</code>
|
|
||||||
</Box>
|
|
||||||
)}
|
|
||||||
</>
|
|
||||||
)}
|
|
||||||
</Box>
|
|
||||||
</Modal>
|
|
||||||
{/* <iframe
|
{/* <iframe
|
||||||
src="https://ghbtns.com/github-btn.html?user=getmaxun&repo=maxun&type=star&count=true&size=large"
|
src="https://ghbtns.com/github-btn.html?user=getmaxun&repo=maxun&type=star&count=true&size=large"
|
||||||
// frameBorder="0"
|
// frameBorder="0"
|
||||||
|
|||||||
@@ -32,9 +32,9 @@ export const AlertSnackbar = ({ severity, message, isOpen }: AlertSnackbarProps)
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Snackbar anchorOrigin={{ vertical: 'top', horizontal: 'center' }} open={open} autoHideDuration={5000} onClose={handleClose}>
|
<Snackbar anchorOrigin={{ vertical: 'top', horizontal: 'center' }} open={open} autoHideDuration={5000} onClose={handleClose}>
|
||||||
<Alert onClose={handleClose} severity={severity} sx={{ width: '100%', bgcolor: 'background.paper' }} variant="outlined">
|
<Alert onClose={handleClose} severity={severity} sx={{ width: '100%', bgcolor: 'background.paper', border: "none" }} variant="outlined">
|
||||||
{message}
|
{message}
|
||||||
</Alert>
|
</Alert>
|
||||||
</Snackbar>
|
</Snackbar>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -56,7 +56,6 @@ const Login = () => {
|
|||||||
{ withCredentials: true }
|
{ withCredentials: true }
|
||||||
);
|
);
|
||||||
dispatch({ type: "LOGIN", payload: data });
|
dispatch({ type: "LOGIN", payload: data });
|
||||||
notify("success", t('login.welcome_notification'));
|
|
||||||
window.localStorage.setItem("user", JSON.stringify(data));
|
window.localStorage.setItem("user", JSON.stringify(data));
|
||||||
navigate("/");
|
navigate("/");
|
||||||
} catch (err: any) {
|
} catch (err: any) {
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ const Register = () => {
|
|||||||
try {
|
try {
|
||||||
const { data } = await axios.post(`${apiUrl}/auth/register`, { email, password });
|
const { data } = await axios.post(`${apiUrl}/auth/register`, { email, password });
|
||||||
dispatch({ type: "LOGIN", payload: data });
|
dispatch({ type: "LOGIN", payload: data });
|
||||||
notify("success", t('register.welcome_notification'));
|
|
||||||
window.localStorage.setItem("user", JSON.stringify(data));
|
window.localStorage.setItem("user", JSON.stringify(data));
|
||||||
navigate("/");
|
navigate("/");
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
|
|||||||
Reference in New Issue
Block a user