diff --git a/.env b/.env
index 30c0f66e..180367ab 100644
--- a/.env
+++ b/.env
@@ -1,7 +1,6 @@
-VITE_APP_VERSION = v1.5.0
+VITE_APP_VERSION = v1.6.0
GENERATE_SOURCEMAP = false
## Public URL
PUBLIC_URL = https://mantisdashboard.io
-VITE_APP_BASE_NAME = /free
-
+VITE_APP_BASE_NAME = /free
\ No newline at end of file
diff --git a/.prettierrc b/.prettierrc
index d5fba07c..b5cde330 100644
--- a/.prettierrc
+++ b/.prettierrc
@@ -4,5 +4,6 @@
"singleQuote": true,
"trailingComma": "none",
"tabWidth": 2,
- "useTabs": false
+ "useTabs": false,
+ "endOfLine": "lf"
}
diff --git a/eslint.config.mjs b/eslint.config.mjs
index 51aacd5e..5730906c 100644
--- a/eslint.config.mjs
+++ b/eslint.config.mjs
@@ -32,42 +32,58 @@ export default [
sourceType: 'module',
parserOptions: {
ecmaFeatures: {
- jsx: true // ✅ Enable JSX parsing
+ jsx: true
}
}
},
settings: {
react: {
- version: 'detect' // ✅ Detect the installed React version
+ version: 'detect'
}
},
rules: {
- 'react/jsx-filename-extension': ['error', { extensions: ['.js', '.jsx'] }],
- 'react/react-in-jsx-scope': 'off',
+ 'react/jsx-filename-extension': 'off',
+ 'no-param-reassign': 'off',
'react/prop-types': 'off',
+ 'react/require-default-props': 'off',
+ 'react/no-array-index-key': 'off',
+ 'react/react-in-jsx-scope': 'off',
'react/jsx-props-no-spreading': 'off',
- 'react-hooks/rules-of-hooks': 'error',
- 'react-hooks/exhaustive-deps': 'warn',
+ 'import/order': 'off',
+ 'no-console': 'off',
+ 'no-shadow': 'off',
+ 'import/no-cycle': 'off',
+ 'import/no-extraneous-dependencies': 'off',
'jsx-a11y/label-has-associated-control': 'off',
'jsx-a11y/no-autofocus': 'off',
+ 'react/jsx-uses-react': 'off',
+ 'react/jsx-uses-vars': 'error',
+ 'react-hooks/rules-of-hooks': 'error',
+ 'react-hooks/exhaustive-deps': 'warn',
+ 'no-unused-vars': 'off',
- 'prettier/prettier': [
- 'warn',
+ 'no-restricted-imports': [
+ 'error',
{
- bracketSpacing: true,
- printWidth: 140,
- singleQuote: true,
- trailingComma: 'none',
- tabWidth: 2,
- useTabs: false
+ patterns: ['@mui/*/*/*', '!@mui/material/test-utils/*']
}
- ]
+ ],
+
+ 'no-unused-vars': [
+ 'error',
+ {
+ vars: 'all',
+ args: 'none'
+ }
+ ],
+
+ 'prettier/prettier': 'warn'
}
},
{
ignores: ['node_modules/**'],
files: ['src/**/*.{js,jsx}']
}
-];
+];
\ No newline at end of file
diff --git a/index.html b/index.html
index fc631ec9..0289567c 100644
--- a/index.html
+++ b/index.html
@@ -1,13 +1,32 @@
-
+ Mantis React Admin Dashboard
+
+
+
-
-
+
+
+
+
+
- Mantis React Free Admin Dashboard
+
+
+
+
+
+
+
+
diff --git a/package.json b/package.json
index 4185fc12..fb2fa5b0 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "mantis-material-free-react",
- "version": "1.5.0",
+ "version": "1.6.0",
"homepage": "https://mantisdashboard.io/free",
"author": {
"name": "CodedThemes",
@@ -10,29 +10,27 @@
"scripts": {
"start": "vite",
"build": "vite build",
- "build-stage": "env-cmd -f .env.qa vite build",
"preview": "vite preview",
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
"lint:fix": "eslint --fix \"src/**/*.{js,jsx,ts,tsx}\"",
- "prettier": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
- "knip": "knip"
+ "prettier": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\""
},
"dependencies": {
"@ant-design/colors": "8.0.0",
"@ant-design/icons": "6.0.0",
"@emotion/cache": "11.14.0",
"@emotion/react": "11.14.0",
- "@emotion/styled": "11.14.0",
- "@fontsource/inter": "5.2.5",
- "@fontsource/poppins": "5.2.5",
- "@fontsource/public-sans": "5.2.5",
- "@fontsource/roboto": "5.2.5",
+ "@emotion/styled": "11.14.1",
+ "@fontsource/inter": "5.2.6",
+ "@fontsource/poppins": "5.2.6",
+ "@fontsource/public-sans": "5.2.6",
+ "@fontsource/roboto": "5.2.6",
"@mui/base": "5.0.0-beta.70",
"@mui/lab": "7.0.0-beta.10",
"@mui/material": "7.0.2",
"@mui/system": "7.0.2",
"@mui/x-charts": "8.1.0",
- "@vitejs/plugin-react": "4.4.1",
+ "@vitejs/plugin-react": "4.6.0",
"formik": "2.4.6",
"framer-motion": "12.8.2",
"lodash-es": "4.17.21",
@@ -40,11 +38,11 @@
"react-device-detect": "2.2.3",
"react-dom": "19.1.0",
"react-number-format": "5.4.4",
- "react-router": "7.5.1",
- "react-router-dom": "7.5.1",
- "simplebar-react": "3.3.0",
- "swr": "2.3.3",
- "vite": "6.3.1",
+ "react-router": "7.6.3",
+ "react-router-dom": "7.6.3",
+ "simplebar-react": "3.3.2",
+ "swr": "2.3.4",
+ "vite": "7.0.4",
"vite-jsconfig-paths": "2.0.1",
"web-vitals": "4.2.4",
"yup": "1.6.1"
@@ -68,19 +66,16 @@
]
},
"devDependencies": {
- "@eslint/compat": "1.2.8",
+ "@eslint/compat": "1.3.1",
"@eslint/eslintrc": "3.3.1",
- "@eslint/js": "9.25.1",
+ "@eslint/js": "9.31.0",
"eslint": "9.25.1",
"eslint-config-prettier": "10.1.2",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-prettier": "5.2.6",
- "eslint-plugin-react": "7.37.4",
+ "eslint-plugin-react": "7.37.5",
"eslint-plugin-react-hooks": "5.2.0",
- "immutable": "4.3.7",
- "knip": "5.45.0",
- "prettier": "3.5.3",
- "prettier-eslint-cli": "8.0.1"
+ "prettier": "3.6.2"
},
"packageManager": "yarn@4.9.1"
}
diff --git a/src/components/MainCard.jsx b/src/components/MainCard.jsx
index 702f8998..0c9abe33 100644
--- a/src/components/MainCard.jsx
+++ b/src/components/MainCard.jsx
@@ -77,7 +77,7 @@ MainCard.propTypes = {
border: PropTypes.bool,
boxShadow: PropTypes.bool,
children: PropTypes.node,
- subheader: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
+ subheader: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
content: PropTypes.bool,
contentSX: PropTypes.object,
darkTitle: PropTypes.bool,
@@ -86,7 +86,7 @@ MainCard.propTypes = {
secondary: PropTypes.any,
shadow: PropTypes.string,
sx: PropTypes.object,
- title: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
+ title: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
modal: PropTypes.bool,
ref: PropTypes.object,
others: PropTypes.any
diff --git a/src/components/logo/LogoIcon.jsx b/src/components/logo/LogoIcon.jsx
index 02343104..a2487822 100644
--- a/src/components/logo/LogoIcon.jsx
+++ b/src/components/logo/LogoIcon.jsx
@@ -1,27 +1,12 @@
// material-ui
import { useTheme } from '@mui/material/styles';
-/**
- * if you want to use image instead of