Skip to content

Commit 53d4a0e

Browse files
ct-amitct-vrushtict-vrushti
authored
Free version (#93) (#94) (#95)
* free version * check eslint-prettier * change file name --------- Co-authored-by: ct-vrushti <vrushti.chopda@codedthemes.com> Co-authored-by: ct-vrushti <vrushti.pcoded@gmail.com>
1 parent 38e0caa commit 53d4a0e

26 files changed

+1734
-834
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VITE_APP_VERSION = v2.0.1
1+
VITE_APP_VERSION = v2.1.0
22
GENERATE_SOURCEMAP = false
33

44
## Public URL

AGENTS.md

Lines changed: 390 additions & 0 deletions
Large diffs are not rendered by default.

eslint.config.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { fixupConfigRules } from '@eslint/compat';
1+
import { fixupConfigRules, fixupPluginRules } from '@eslint/compat';
22
import prettier from 'eslint-plugin-prettier';
33
import react from 'eslint-plugin-react';
44
import reactHooks from 'eslint-plugin-react-hooks';
@@ -23,7 +23,7 @@ export default [
2323
plugins: {
2424
prettier,
2525
react,
26-
'react-hooks': reactHooks,
26+
'react-hooks': fixupPluginRules(reactHooks),
2727
'jsx-a11y': jsxA11y
2828
},
2929

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
<meta charset="utf-8" />
1010
<meta name="viewport" content="width=device-width, initial-scale=1" />
1111
<meta name="theme-color" content="#1677ff" />
12-
<meta name="title" content="Mantis - React Admin Dashboard Template by CodedThemes" />
12+
<meta name="title" content="Mantis React Admin Dashboard Template" />
1313
<meta 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." />
14+
content="Start your next React project with the Mantis admin template. It is built with ReactJS, Material-UI, NextJS, and SWR for faster web development." />
1515
<meta name="keywords"
1616
content="react admin template, material-ui react dashboard template, reactjs admin template, reactjs dashboard, react backend template" />
1717
<meta name="author" content="CodedThemes" />

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mantis-material-free-react",
3-
"version": "2.0.1",
3+
"version": "2.1.0",
44
"homepage": "https://mantisdashboard.com/free",
55
"author": {
66
"name": "CodedThemes",
@@ -16,30 +16,30 @@
1616
"prettier": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\""
1717
},
1818
"dependencies": {
19-
"@ant-design/colors": "7.2.1",
19+
"@ant-design/colors": "8.0.1",
2020
"@ant-design/icons": "6.1.0",
2121
"@emotion/cache": "11.14.0",
2222
"@emotion/react": "11.14.0",
2323
"@emotion/styled": "11.14.1",
2424
"@fontsource/public-sans": "5.2.7",
2525
"@mui/base": "5.0.0-beta.70",
26-
"@mui/lab": "7.0.1-beta.20",
27-
"@mui/material": "7.3.6",
28-
"@mui/system": "7.3.6",
29-
"@mui/x-charts": "8.22.1",
30-
"@vitejs/plugin-react": "5.1.2",
26+
"@mui/lab": "7.0.1-beta.22",
27+
"@mui/material": "7.3.8",
28+
"@mui/system": "7.3.8",
29+
"@mui/x-charts": "8.27.0",
30+
"@vitejs/plugin-react": "5.1.4",
3131
"formik": "2.4.9",
32-
"framer-motion": "12.23.26",
33-
"lodash-es": "4.17.22",
34-
"react": "19.2.3",
32+
"framer-motion": "12.34.2",
33+
"lodash-es": "4.17.23",
34+
"react": "19.2.4",
3535
"react-device-detect": "2.2.3",
36-
"react-dom": "19.2.3",
36+
"react-dom": "19.2.4",
3737
"react-number-format": "5.4.4",
38-
"react-router": "7.11.0",
39-
"react-router-dom": "7.11.0",
38+
"react-router": "7.13.0",
39+
"react-router-dom": "7.13.0",
4040
"simplebar-react": "3.3.2",
41-
"swr": "2.3.8",
42-
"vite": "7.3.0",
41+
"swr": "2.4.0",
42+
"vite": "7.3.1",
4343
"vite-jsconfig-paths": "2.0.1",
4444
"web-vitals": "5.1.0",
4545
"yup": "1.7.1"
@@ -63,16 +63,16 @@
6363
]
6464
},
6565
"devDependencies": {
66-
"@eslint/compat": "2.0.0",
66+
"@eslint/compat": "2.0.2",
6767
"@eslint/eslintrc": "3.3.3",
68-
"@eslint/js": "9.39.2",
69-
"eslint": "9.39.2",
68+
"@eslint/js": "10.0.1",
69+
"eslint": "10.0.0",
7070
"eslint-config-prettier": "10.1.8",
7171
"eslint-plugin-jsx-a11y": "6.10.2",
72-
"eslint-plugin-prettier": "5.5.4",
72+
"eslint-plugin-prettier": "5.5.5",
7373
"eslint-plugin-react": "7.37.5",
7474
"eslint-plugin-react-hooks": "7.0.1",
75-
"prettier": "3.7.4"
75+
"prettier": "3.8.1"
7676
},
7777
"packageManager": "yarn@4.12.0"
7878
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!-- DESCRIPTION: This prompt is designed to remove all unused pages, utilities, and components from the project, attempting to keep only a clean, minimal dashboard or a specific page requested by the user. -->
2+
3+
<!-- AGENT : Gemini 3 Flash -->
4+
5+
I want to specifically focus on the **{{KEEP_PAGE_NAME}}** page/section.
6+
Please remove all other sample pages and unnecessary components from the codebase to clean it up.
7+
8+
**Rules for Removal:**
9+
10+
1. **Identify the Page to Keep:** Ensure you clearly understand which page or section is "{{KEEP_PAGE_NAME}}". If "{{KEEP_PAGE_NAME}}" is "minimal", remove all sample pages.
11+
2. **Delete Page Files:**
12+
- `src/pages/component-overview/`: Remove files NOT belonging to {{KEEP_PAGE_NAME}}.
13+
- `src/pages/extra-pages/`: Remove files NOT belonging to {{KEEP_PAGE_NAME}} (e.g., `sample-page.jsx`).
14+
- `src/sections/`: Remove directories/files NOT used by the dashboard or the page you are keeping.
15+
3. **Clean Global References (Crucial):**
16+
- **Layouts:** Check `src/layout/Dashboard/Drawer/DrawerContent/Navigation` and `src/layout/Dashboard/` for any hardcoded links to deleted pages.
17+
- **Landing/Main Page:** Check `src/pages/dashboard/` or `src/index.jsx` for imports of deleted components.
18+
4. **Update Routing & Navigation:**
19+
- `src/routes/MainRoutes.jsx`: Remove routes **AND** their imports for the pages being deleted.
20+
- `src/menu-items/`:
21+
- Update `utilities.jsx`, `page.jsx`, and `support.jsx` to remove links to deleted pages.
22+
- Update `index.jsx` to exclude entire menu groups if all their items are removed.
23+
5. **Final Verification:** Run a global search for the deleted page names (e.g., "color", "shadow", "sample-page") to ensure no "dead" imports or navigation items remain in the codebase.
24+
25+
## Example
26+
27+
**Input:**
28+
I want to focus on a **minimal** dashboard. Remove all other sample pages.
29+
30+
**Output:**
31+
32+
- Deleted `src/pages/component-overview/color.jsx`, `shadows.jsx`, `typography.jsx`, etc.
33+
- Deleted `src/pages/extra-pages/sample-page.jsx`.
34+
- Updated `src/routes/MainRoutes.jsx` to remove sample page routes.
35+
- Updated `src/menu-items/utilities.jsx`, `src/menu-items/page.jsx`, and `src/menu-items/support.jsx` to remove menu items.
36+
- Updated `src/menu-items/index.jsx` to only include the dashboard group.
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<!-- DESCRIPTION: Customize Form Validation Messages: Allow users to easily change validation error messages for Login and Register forms by centralizing all Yup validation schema messages in a configurable file. -->
2+
3+
<!-- AGENT: Claude Opus 4.5 -->
4+
5+
## Requirements
6+
7+
### 1. Create Centralized Validation Messages File
8+
9+
Create a new file at `src/utils/validationMessages.js` that contains all validation messages as constants/config object, making them easy to find and modify.
10+
11+
### 2. Validation Rules & Messages
12+
13+
---
14+
15+
#### **First Name & Last Name Validation:**
16+
17+
| Rule | Message |
18+
| --------------------------------------------- | -------------------------------------------------- |
19+
| Must not be empty | "First Name is required" / "Last Name is required" |
20+
| Minimum 2 characters | "Must be at least 2 characters" |
21+
| Numbers are not allowed | "Numbers are not allowed" |
22+
| Special characters not allowed (@ # $ % etc.) | "Special characters are not allowed" |
23+
| No multiple spaces between words | "Multiple spaces are not allowed" |
24+
25+
---
26+
27+
#### **Email Validation:**
28+
29+
| Rule | Message |
30+
| ----------------------------------------------------------------------- | --------------------------------------- |
31+
| Must not be empty | "Email is required" |
32+
| No space at beginning or end | "Email cannot start or end with spaces" |
33+
| No spaces anywhere in email | "Spaces are not allowed in email" |
34+
| Must contain @ | "Email must contain @" |
35+
| Must contain domain (.com, .in, .net) | "Email must have a valid domain" |
36+
| Only one @ allowed | "Email can only contain one @" |
37+
| Username allows: letters, numbers, dot (.), underscore (\_), hyphen (-) | "Invalid characters in email username" |
38+
| Minimum length 5 characters | "Email must be at least 5 characters" |
39+
40+
---
41+
42+
#### **Password Validation:**
43+
44+
| Rule | Message |
45+
| ----------------------------------------------- | ------------------------------------------------------ |
46+
| Must not be empty | "Password is required" |
47+
| Minimum 8 characters | "Password must be at least 8 characters" |
48+
| At least 1 Capital letter (A-Z) | "Password must contain at least one uppercase letter" |
49+
| At least 1 Small letter (a-z) | "Password must contain at least one lowercase letter" |
50+
| At least 1 Number (0-9) | "Password must contain at least one number" |
51+
| At least 1 Special character (@ # $ % & ! etc.) | "Password must contain at least one special character" |
52+
| Spaces are not allowed | "Password cannot contain spaces" |
53+
54+
---
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<!-- DESCRIPTION: The "Global Rebrand" Prompt
2+
This prompt completely rebrands the application by replacing the Project Name, Text References, Metadata, and Logo Alt Text. -->
3+
4+
<!-- AGENT: [Gemini 3.0 Pro] -->
5+
6+
Act as a Senior Frontend Developer. Your goal is to rebrand this application from **{{OLD_BRAND}}** to **{{NEW_BRAND}}** with ZERO errors. You must update all configuration files, global text references, and asset pointers.
7+
8+
**INPUT VARIABLES:**
9+
10+
- **Old Brand:** `{{OLD_BRAND}}` (e.g., Mantis)
11+
- **New Brand:** `{{NEW_BRAND}}` (e.g., Able Pro)
12+
- **New Package Name:** `{{NEW_PACKAGE_NAME}}` (e.g., able-pro-react-js)
13+
14+
---
15+
16+
### **Step 1: Global Text Replacement**
17+
18+
**Action:**
19+
20+
1. **Case Sensitive Search:** Search for `{{OLD_BRAND}}` and replace with `{{NEW_BRAND}}` in all text files (excluding `node_modules`).
21+
2. **Lowercase Search:** Search for `{{OLD_BRAND_LOWER}}` (lowercase) and replace with `{{NEW_BRAND_LOWER}}` (lowercase).
22+
- _Constraint:_ Do NOT replace external library names (e.g., `mantis-ui` if it is a third-party dependency) unless you are sure it is an internal package.
23+
- _Constraint:_ Check URLs carefully. Update links to documentation or repositories if they should point to the new brand, but keep them if they are historical references.
24+
25+
---
26+
27+
### **Step 2: Update Configuration Files**
28+
29+
**Target File:** `package.json`
30+
**Action:**
31+
32+
1. Update `"name"` property to `{{NEW_PACKAGE_NAME}}`.
33+
2. Update `"description"` references.
34+
35+
**Target File:** `public/index.html`
36+
**Action:**
37+
38+
1. Update `<title>` to `{{NEW_BRAND}} React Admin Dashboard`.
39+
2. Update `<meta name="title">` and `<meta name="description">` content.
40+
41+
**Target File:** `README.md`
42+
**Action:**
43+
44+
1. Replace the H1 title with `{{NEW_BRAND}} Material React Admin Template`.
45+
2. Update installation steps and descriptions to reflect `{{NEW_BRAND}}`.
46+
47+
---
48+
49+
### **Step 3: Update Components & Assets**
50+
51+
**Target File:** `src/components/logo/LogoMain.jsx` & `src/components/logo/LogoIcon.jsx`
52+
**Action:**
53+
54+
1. Update the `alt` text for images/SVGs to `{{NEW_BRAND}}`.
55+
```jsx
56+
// Example
57+
alt = "{{NEW_BRAND}}";
58+
```
59+
60+
**Target File:** `src/layout/Dashboard/Drawer/DrawerHeader/index.jsx`
61+
**Action:**
62+
63+
1. Ensure the Logo component is correctly wrapped and accessible.
64+
65+
**Target File:** `src/layout/Dashboard/Footer.jsx`
66+
**Action:**
67+
68+
1. Update copyright text to reflect the new brand or company if applicable.
69+
70+
---
71+
72+
### **Step 4: Landing Page & Content Updates**
73+
74+
**Target Directories:** `src/sections/landing/`, `src/pages/`
75+
**Action:**
76+
77+
1. Iterate through all Landing Page blocks (Header, Feature, Demo, Testimonial, etc.).
78+
2. Replace marketing copy: "Welcome to {{OLD_BRAND}}" -> "Welcome to {{NEW_BRAND}}".
79+
3. Update `alt` tags in `CardMedia` or `img` elements: `alt="{{OLD_BRAND}}"` -> `alt="{{NEW_BRAND}}"`.
80+
81+
---
82+
83+
### **Final Verification Checklist**
84+
85+
- [ ] `package.json` name is updated.
86+
- [ ] Browser tab title reads `{{NEW_BRAND}}...`.
87+
- [ ] "Welcome to {{OLD_BRAND}}" no longer appears on the Landing Page.
88+
- [ ] Footer copyright is correct.
89+
- [ ] No broken links in `package.json` dependencies.

0 commit comments

Comments
 (0)