Skip to content

Commit def959e

Browse files
phoenixcoded20ct-dixitct-vrushti
authored
Update to Material UI v6
* v1.4.0 development done (#61) Co-authored-by: DIKSHIT MORADIYA <dixit.moradia@phoenixcoded.co> * Update README.md readme file content update * Update README.md * Update package.json --------- Co-authored-by: DIKSHIT MORADIYA <dixit.moradia@phoenixcoded.co> Co-authored-by: Dikshit Moradiya <106728438+ct-dixit@users.noreply.github.com> Co-authored-by: ct-vrushti <vrushti.chopda@codedthemes.com>
1 parent b23a31e commit def959e

115 files changed

Lines changed: 9414 additions & 7572 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
VITE_APP_VERSION=v1.3.0
2-
GENERATE_SOURCEMAP=false
1+
VITE_APP_VERSION = v1.4.0
2+
GENERATE_SOURCEMAP = false
33

4-
## Backend API URL
5-
PUBLIC_URL = https://mantisdashboard.io/free
4+
## Public URL
5+
PUBLIC_URL = https://mantisdashboard.io
66
VITE_APP_BASE_NAME = /free
7+

.eslintrc

Lines changed: 0 additions & 89 deletions
This file was deleted.

.github/workflows/prod.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929

3030
- name: 🔨 Build Project
3131
run: |
32+
corepack enable
33+
yarn set version 4.6.0
3234
yarn
3335
yarn build
3436

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ bower_components
3737
# Compiled binary addons (https://nodejs.org/api/addons.html)
3838
build/Release
3939
build
40+
dist
4041

4142
# Dependency directories
4243
node_modules/
@@ -68,6 +69,7 @@ typings/
6869

6970
# Yarn Integrity file
7071
.yarn-integrity
72+
.yarn
7173

7274
# dotenv environment variables file
7375
# .env
@@ -105,4 +107,4 @@ dist
105107
.tern-port
106108

107109
# wincompare file
108-
.bak
110+
.bak

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

README.md

Lines changed: 114 additions & 80 deletions
Large diffs are not rendered by default.

eslint.config.mjs

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
import { fixupConfigRules } from '@eslint/compat';
2+
import prettier from 'eslint-plugin-prettier';
3+
import react from 'eslint-plugin-react';
4+
import reactHooks from 'eslint-plugin-react-hooks';
5+
import jsxA11y from 'eslint-plugin-jsx-a11y';
6+
import js from '@eslint/js';
7+
import path from 'node:path';
8+
import { fileURLToPath } from 'node:url';
9+
import { FlatCompat } from '@eslint/eslintrc';
10+
11+
const __filename = fileURLToPath(import.meta.url);
12+
const __dirname = path.dirname(__filename);
13+
const compat = new FlatCompat({
14+
baseDirectory: __dirname,
15+
recommendedConfig: js.configs.recommended,
16+
allConfig: js.configs.all
17+
});
18+
19+
export default [
20+
...fixupConfigRules(compat.extends('prettier')),
21+
22+
{
23+
plugins: {
24+
prettier,
25+
react,
26+
'react-hooks': reactHooks,
27+
'jsx-a11y': jsxA11y
28+
},
29+
30+
languageOptions: {
31+
ecmaVersion: 2020,
32+
sourceType: 'module',
33+
parserOptions: {
34+
ecmaFeatures: {
35+
jsx: true // ✅ Enable JSX parsing
36+
}
37+
}
38+
},
39+
40+
settings: {
41+
react: {
42+
version: 'detect' // ✅ Detect the installed React version
43+
}
44+
},
45+
46+
rules: {
47+
'react/jsx-filename-extension': ['error', { extensions: ['.js', '.jsx'] }],
48+
'react/react-in-jsx-scope': 'off',
49+
'react/prop-types': 'off',
50+
'react/jsx-props-no-spreading': 'off',
51+
'react-hooks/rules-of-hooks': 'error',
52+
'react-hooks/exhaustive-deps': 'warn',
53+
'jsx-a11y/label-has-associated-control': 'off',
54+
'jsx-a11y/no-autofocus': 'off',
55+
56+
'prettier/prettier': [
57+
'warn',
58+
{
59+
bracketSpacing: true,
60+
printWidth: 140,
61+
singleQuote: true,
62+
trailingComma: 'none',
63+
tabWidth: 2,
64+
useTabs: false
65+
}
66+
]
67+
}
68+
},
69+
{
70+
ignores: ['node_modules/**'],
71+
files: ['src/**/*.{js,jsx}']
72+
}
73+
];

favicon.svg

Lines changed: 7 additions & 7 deletions
Loading

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<meta name="theme-color" content="#000000" />
88
<meta name="description" content="Mantis is react free admin template build using Vite" />
99
<link rel="apple-touch-icon" href="/logo192.png" />
10-
<title>Mantis React Admin Dashboard</title>
10+
<title>Mantis React Free Admin Dashboard</title>
1111

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

jsconfig.json

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
{
22
"compilerOptions": {
3-
"target": "esnext",
4-
"module": "commonjs",
3+
"target": "ESNext",
4+
"useDefineForClassFields": true,
5+
"lib": ["DOM", "DOM.Iterable", "ESNext"],
6+
"allowJs": false,
7+
"skipLibCheck": true,
8+
"esModuleInterop": false,
9+
"allowSyntheticDefaultImports": true,
10+
"strict": true,
11+
"forceConsistentCasingInFileNames": true,
12+
"module": "ESNext",
13+
"moduleResolution": "Node",
14+
"resolveJsonModule": true,
15+
"isolatedModules": true,
16+
"noEmit": true,
17+
"jsx": "react-jsx",
518
"baseUrl": "src"
619
},
7-
"include": ["src/**/*"],
8-
"exclude": ["node_modules"]
20+
"exclude": ["node_modules"],
21+
"include": ["src", "**/*.ts", "**/*.tsx", "src/**/*"],
22+
"references": [{ "path": "./jsconfig.node.json" }]
923
}

0 commit comments

Comments
 (0)