Skip to content

Commit 8691faf

Browse files
ct-dixitct-vrushti
andauthored
Stage v1.6.0 (#77)
* free version update * change version * fix issue --------- Co-authored-by: ct-vrushti <vrushti.pcoded@gmail.com>
1 parent d44d498 commit 8691faf

21 files changed

Lines changed: 759 additions & 1878 deletions

File tree

.env

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
VITE_APP_VERSION = v1.5.0
1+
VITE_APP_VERSION = v1.6.0
22
GENERATE_SOURCEMAP = false
33

44
## Public URL
55
PUBLIC_URL = https://mantisdashboard.io
6-
VITE_APP_BASE_NAME = /free
7-
6+
VITE_APP_BASE_NAME = /free

.prettierrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"singleQuote": true,
55
"trailingComma": "none",
66
"tabWidth": 2,
7-
"useTabs": false
7+
"useTabs": false,
8+
"endOfLine": "lf"
89
}

eslint.config.mjs

Lines changed: 32 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,42 +32,58 @@ export default [
3232
sourceType: 'module',
3333
parserOptions: {
3434
ecmaFeatures: {
35-
jsx: true // ✅ Enable JSX parsing
35+
jsx: true
3636
}
3737
}
3838
},
3939

4040
settings: {
4141
react: {
42-
version: 'detect' // ✅ Detect the installed React version
42+
version: 'detect'
4343
}
4444
},
4545

4646
rules: {
47-
'react/jsx-filename-extension': ['error', { extensions: ['.js', '.jsx'] }],
48-
'react/react-in-jsx-scope': 'off',
47+
'react/jsx-filename-extension': 'off',
48+
'no-param-reassign': 'off',
4949
'react/prop-types': 'off',
50+
'react/require-default-props': 'off',
51+
'react/no-array-index-key': 'off',
52+
'react/react-in-jsx-scope': 'off',
5053
'react/jsx-props-no-spreading': 'off',
51-
'react-hooks/rules-of-hooks': 'error',
52-
'react-hooks/exhaustive-deps': 'warn',
54+
'import/order': 'off',
55+
'no-console': 'off',
56+
'no-shadow': 'off',
57+
'import/no-cycle': 'off',
58+
'import/no-extraneous-dependencies': 'off',
5359
'jsx-a11y/label-has-associated-control': 'off',
5460
'jsx-a11y/no-autofocus': 'off',
61+
'react/jsx-uses-react': 'off',
62+
'react/jsx-uses-vars': 'error',
63+
'react-hooks/rules-of-hooks': 'error',
64+
'react-hooks/exhaustive-deps': 'warn',
65+
'no-unused-vars': 'off',
5566

56-
'prettier/prettier': [
57-
'warn',
67+
'no-restricted-imports': [
68+
'error',
5869
{
59-
bracketSpacing: true,
60-
printWidth: 140,
61-
singleQuote: true,
62-
trailingComma: 'none',
63-
tabWidth: 2,
64-
useTabs: false
70+
patterns: ['@mui/*/*/*', '!@mui/material/test-utils/*']
6571
}
66-
]
72+
],
73+
74+
'no-unused-vars': [
75+
'error',
76+
{
77+
vars: 'all',
78+
args: 'none'
79+
}
80+
],
81+
82+
'prettier/prettier': 'warn'
6783
}
6884
},
6985
{
7086
ignores: ['node_modules/**'],
7187
files: ['src/**/*.{js,jsx}']
7288
}
73-
];
89+
];

index.html

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,32 @@
11
<!doctype html>
22
<html lang="en">
33
<head>
4-
<meta charset="utf-8" />
4+
<title>Mantis React Admin Dashboard</title>
55
<link rel="icon" href="/favicon.svg" />
6+
7+
<!-- Meta Tags-->
8+
<meta charset="utf-8" />
69
<meta name="viewport" content="width=device-width, initial-scale=1" />
7-
<meta name="theme-color" content="#000000" />
8-
<meta name="description" content="Mantis is react free admin template build using Vite" />
10+
<meta name="theme-color" content="#1677ff" />
11+
<meta name="title" content="Mantis - React Admin Dashboard Template by CodedThemes" />
12+
<meta
13+
name="description"
14+
content="Start your next React project with Mantis admin template. It build with Reactjs, Material-UI, SWR, and Hook for faster web development."
15+
/>
16+
<meta
17+
name="keywords"
18+
content="react admin template, material-ui react dashboard template, reactjs admin template, reactjs dashboard, react backend template"
19+
/>
20+
<meta name="author" content="CodedThemes" />
921
<link rel="apple-touch-icon" href="/logo192.png" />
10-
<title>Mantis React Free Admin Dashboard</title>
22+
23+
<!-- Performance hints for Vite -->
24+
<link rel="preconnect" href="https://fonts.googleapis.com" />
25+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
26+
27+
<!-- DNS prefetch for external resources -->
28+
<link rel="dns-prefetch" href="//fonts.googleapis.com" />
29+
<link rel="dns-prefetch" href="//fonts.gstatic.com" />
1130

1231
<!-- this is to resolve issue in old safari browser in tablet -->
1332
<script src="https://cdn.jsdelivr.net/npm/resize-observer-polyfill@1.5.1/dist/ResizeObserver.min.js"></script>

package.json

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mantis-material-free-react",
3-
"version": "1.5.0",
3+
"version": "1.6.0",
44
"homepage": "https://mantisdashboard.io/free",
55
"author": {
66
"name": "CodedThemes",
@@ -10,41 +10,39 @@
1010
"scripts": {
1111
"start": "vite",
1212
"build": "vite build",
13-
"build-stage": "env-cmd -f .env.qa vite build",
1413
"preview": "vite preview",
1514
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
1615
"lint:fix": "eslint --fix \"src/**/*.{js,jsx,ts,tsx}\"",
17-
"prettier": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
18-
"knip": "knip"
16+
"prettier": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\""
1917
},
2018
"dependencies": {
2119
"@ant-design/colors": "8.0.0",
2220
"@ant-design/icons": "6.0.0",
2321
"@emotion/cache": "11.14.0",
2422
"@emotion/react": "11.14.0",
25-
"@emotion/styled": "11.14.0",
26-
"@fontsource/inter": "5.2.5",
27-
"@fontsource/poppins": "5.2.5",
28-
"@fontsource/public-sans": "5.2.5",
29-
"@fontsource/roboto": "5.2.5",
23+
"@emotion/styled": "11.14.1",
24+
"@fontsource/inter": "5.2.6",
25+
"@fontsource/poppins": "5.2.6",
26+
"@fontsource/public-sans": "5.2.6",
27+
"@fontsource/roboto": "5.2.6",
3028
"@mui/base": "5.0.0-beta.70",
3129
"@mui/lab": "7.0.0-beta.10",
3230
"@mui/material": "7.0.2",
3331
"@mui/system": "7.0.2",
3432
"@mui/x-charts": "8.1.0",
35-
"@vitejs/plugin-react": "4.4.1",
33+
"@vitejs/plugin-react": "4.6.0",
3634
"formik": "2.4.6",
3735
"framer-motion": "12.8.2",
3836
"lodash-es": "4.17.21",
3937
"react": "19.1.0",
4038
"react-device-detect": "2.2.3",
4139
"react-dom": "19.1.0",
4240
"react-number-format": "5.4.4",
43-
"react-router": "7.5.1",
44-
"react-router-dom": "7.5.1",
45-
"simplebar-react": "3.3.0",
46-
"swr": "2.3.3",
47-
"vite": "6.3.1",
41+
"react-router": "7.6.3",
42+
"react-router-dom": "7.6.3",
43+
"simplebar-react": "3.3.2",
44+
"swr": "2.3.4",
45+
"vite": "7.0.4",
4846
"vite-jsconfig-paths": "2.0.1",
4947
"web-vitals": "4.2.4",
5048
"yup": "1.6.1"
@@ -68,19 +66,16 @@
6866
]
6967
},
7068
"devDependencies": {
71-
"@eslint/compat": "1.2.8",
69+
"@eslint/compat": "1.3.1",
7270
"@eslint/eslintrc": "3.3.1",
73-
"@eslint/js": "9.25.1",
71+
"@eslint/js": "9.31.0",
7472
"eslint": "9.25.1",
7573
"eslint-config-prettier": "10.1.2",
7674
"eslint-plugin-jsx-a11y": "6.10.2",
7775
"eslint-plugin-prettier": "5.2.6",
78-
"eslint-plugin-react": "7.37.4",
76+
"eslint-plugin-react": "7.37.5",
7977
"eslint-plugin-react-hooks": "5.2.0",
80-
"immutable": "4.3.7",
81-
"knip": "5.45.0",
82-
"prettier": "3.5.3",
83-
"prettier-eslint-cli": "8.0.1"
78+
"prettier": "3.6.2"
8479
},
8580
"packageManager": "yarn@4.9.1"
8681
}

src/components/MainCard.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ MainCard.propTypes = {
7777
border: PropTypes.bool,
7878
boxShadow: PropTypes.bool,
7979
children: PropTypes.node,
80-
subheader: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
80+
subheader: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
8181
content: PropTypes.bool,
8282
contentSX: PropTypes.object,
8383
darkTitle: PropTypes.bool,
@@ -86,7 +86,7 @@ MainCard.propTypes = {
8686
secondary: PropTypes.any,
8787
shadow: PropTypes.string,
8888
sx: PropTypes.object,
89-
title: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
89+
title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
9090
modal: PropTypes.bool,
9191
ref: PropTypes.object,
9292
others: PropTypes.any

src/components/logo/LogoIcon.jsx

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,12 @@
11
// material-ui
22
import { useTheme } from '@mui/material/styles';
33

4-
/**
5-
* if you want to use image instead of <svg> uncomment following.
6-
*
7-
* import logoIconDark from 'assets/images/logo-icon-dark.svg';
8-
* import logoIcon from 'assets/images/logo-icon.svg';
9-
* import { ThemeMode } from 'config';
10-
*
11-
*/
12-
134
// ==============================|| LOGO ICON SVG ||============================== //
145

156
export default function LogoIcon() {
167
const theme = useTheme();
178

189
return (
19-
/**
20-
* if you want to use image instead of svg uncomment following, and comment out <svg> element.
21-
*
22-
* <img src={theme.palette.mode === ThemeMode.DARK ? logoIconDark : logoIcon} alt="Mantis" width="100" />
23-
*
24-
*/
2510
<svg width="129" height="129" viewBox="0 0 129 129" fill="none" xmlns="http://www.w3.org/2000/svg">
2611
<path
2712
d="M7.27577 57.2242L17.5616 46.9384L17.5724 46.9276H36.9234L29.2238 54.6273L27.2358 56.6152L19.3511 64.5L20.3276 65.4792L64.5 109.649L109.649 64.5L101.761 56.6152L101.206 56.0572L92.0766 46.9276H111.428L111.438 46.9384L119.5 55.0002L129 64.5L64.5 129L0 64.5L7.27577 57.2242ZM64.5 0L101.77 37.2695H82.4185L64.5 19.3511L46.5816 37.2695H27.2305L64.5 0Z"

src/components/logo/LogoMain.jsx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,11 @@
11
// material-ui
22
import { useTheme } from '@mui/material/styles';
33

4-
/**
5-
* if you want to use image instead of <svg> uncomment following.
6-
*
7-
* import logoDark from 'assets/images/logo-dark.svg';
8-
* import logo from 'assets/images/logo.svg';
9-
*
10-
*/
11-
124
// ==============================|| LOGO SVG ||============================== //
135

146
export default function LogoMain() {
157
const theme = useTheme();
168
return (
17-
/**
18-
* if you want to use image instead of svg uncomment following, and comment out <svg> element.
19-
*
20-
* <img src={theme.palette.mode === ThemeMode.DARK ? logoDark : logo} alt="Mantis" width="100" />
21-
*
22-
*/
239
<>
2410
<svg width="118" height="35" viewBox="0 0 118 35" fill="none" xmlns="http://www.w3.org/2000/svg">
2511
<path

src/components/third-party/SimpleBar.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import PropTypes from 'prop-types';
22

33
// material-ui
4-
import { alpha, styled, useTheme } from '@mui/material/styles';
4+
import { alpha, styled } from '@mui/material/styles';
55
import Box from '@mui/material/Box';
66

77
// third-party
@@ -43,8 +43,6 @@ const SimpleBarStyle = styled(SimpleBar)(({ theme }) => ({
4343
// ==============================|| SIMPLE SCROLL BAR ||============================== //
4444

4545
export default function SimpleBarScroll({ children, sx, ...other }) {
46-
const theme = useTheme();
47-
4846
return (
4947
<>
5048
<RootStyle>

src/layout/Dashboard/Drawer/DrawerContent/Navigation/NavGroup.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ import Box from '@mui/material/Box';
88
import NavItem from './NavItem';
99
import { useGetMenuMaster } from 'api/menu';
1010

11+
// ==============================|| NAVIGATION - LIST GROUP ||============================== //
12+
1113
export default function NavGroup({ item }) {
1214
const { menuMaster } = useGetMenuMaster();
1315
const drawerOpen = menuMaster.isDashboardDrawerOpened;

0 commit comments

Comments
 (0)