Skip to content

Commit e592497

Browse files
phoenixcoded20ct-rushitact-dixit
authored
Stage 2.1.0 (codedthemes#9)
* Update free-version (codedthemes#8) * Update free-version * PR review changes * Update stage.yml * Update prod.yml --------- Co-authored-by: CodedThemes <[email protected]> * Update stage.yml * Update package.json * deployment issue fix --------- Co-authored-by: ct-rushita <[email protected]> Co-authored-by: Dikshit Moradiya <[email protected]>
1 parent bfab677 commit e592497

Some content is hidden

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

62 files changed

+2413
-7833
lines changed

.env

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
REACT_APP_VERSION = v2.1.0
1+
VITE_APP_VERSION = v3.0.0
22
GENERATE_SOURCEMAP = false
3+
34
PUBLIC_URL = https://codedthemes.com/demos/admin-templates/materially/react/free
4-
REACT_APP_BASE_NAME = /demos/admin-templates/materially/react/free
5+
VITE_APP_BASE_NAME = demos/admin-templates/materially/react/free

.env.development

-4
This file was deleted.

.env.qa

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
REACT_APP_VERSION = v2.0.0
1+
REACT_APP_VERSION = v3.0.0
22
GENERATE_SOURCEMAP = false
33
PUBLIC_URL = https://codedthemes.com/demos/admin-templates/materially/react/free/stage
4-
REACT_APP_BASE_NAME = demos/admin-templates/materially/react/free/stage
4+
VITE_APP_BASE_NAME = demos/admin-templates/materially/react/free/stage

.eslintrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,15 @@
4747
"react/display-name": "off",
4848
"react/jsx-filename-extension": "off",
4949
"no-param-reassign": "off",
50-
"react/prop-types": 1,
50+
"react/prop-types": "off",
5151
"react/require-default-props": "off",
5252
"react/no-array-index-key": "off",
5353
"react/jsx-props-no-spreading": "off",
5454
"react/forbid-prop-types": "off",
5555
"import/order": "off",
5656
"import/no-cycle": "off",
5757
"no-console": "off",
58+
"no-debugger": "off",
5859
"jsx-a11y/anchor-is-valid": "off",
5960
"prefer-destructuring": "off",
6061
"no-shadow": "off",

.github/workflows/prod.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,24 @@ jobs:
1414

1515
steps:
1616
- name: 🚚 Get latest code
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1818

19-
- name: Use Node.js 18
20-
uses: actions/setup-node@v2-beta
19+
- name: Use Node.js 20
20+
uses: actions/setup-node@v4
2121
with:
22-
node-version: '18'
22+
node-version: '20.x'
2323

2424
- name: 🔨 Build Project
2525
run: |
26-
npm install --legacy-peer-deps
27-
npm run build
26+
yarn
27+
yarn build
2828
2929
- name: 📂 Deploy to Server
30-
uses: easingthemes/ssh-deploy@v2.1.5
30+
uses: easingthemes/ssh-deploy@main
3131
env:
3232
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }}
3333
# ARGS: "-rltgoDzvO --delete"
34-
SOURCE: 'build/'
34+
SOURCE: 'dist/'
3535
REMOTE_HOST: 217.21.92.35
3636
REMOTE_USER: u778408432
3737
REMOTE_PORT: '65002'

.github/workflows/stage.yml

+9-9
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
# Triggers the workflow on push or pull request events but only for the master branch
66
push:
77
branches:
8-
- stage
8+
- stage*
99

1010
jobs:
1111
SFTP-deploy:
@@ -14,24 +14,24 @@ jobs:
1414

1515
steps:
1616
- name: 🚚 Get latest code
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1818

19-
- name: Use Node.js 18
20-
uses: actions/setup-node@v2-beta
19+
- name: Use Node.js 20
20+
uses: actions/setup-node@v4
2121
with:
22-
node-version: '18'
22+
node-version: '20.x'
2323

2424
- name: 🔨 Build Project
2525
run: |
26-
npm install --legacy-peer-deps
27-
npm run build-stage
26+
yarn
27+
yarn build-stage
2828
2929
- name: 📂 Deploy to Server
30-
uses: easingthemes/ssh-deploy@v2.1.5
30+
uses: easingthemes/ssh-deploy@main
3131
env:
3232
SSH_PRIVATE_KEY: ${{ secrets.SERVER_SSH_KEY }}
3333
# ARGS: "-rltgoDzvO --delete"
34-
SOURCE: 'build/'
34+
SOURCE: 'dist/'
3535
REMOTE_HOST: 217.21.92.35
3636
REMOTE_USER: u778408432
3737
REMOTE_PORT: '65002'

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
# production
1212
/build
13+
/dist
1314

1415
# misc
1516
.DS_Store

.yarn/install-state.gz

755 KB
Binary file not shown.

.yarnrc.yml

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ yarn start
9999
- Redux & React context API for state management.
100100
- Redux toolkit.
101101
- React Router for navigation routing.
102-
- Support for react-script.
102+
- Support for vite.
103103
- Code splitting.
104104
- CSS-in-JS.
105105

config-overrides.js

-29
This file was deleted.

public/favicon.svg favicon.svg

File renamed without changes.

public/index.html index.html

+3-11
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,11 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
5-
<link rel="icon" href="%PUBLIC_URL%/favicon.svg" />
5+
<link rel="icon" href="/favicon.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<meta name="theme-color" content="#000000" />
88
<meta name="description" content="Web site created using create-react-app" />
9-
<!--
10-
Notice the use of %PUBLIC_URL% in the tags above.
11-
It will be replaced with the URL of the `public` folder during the build.
12-
Only files inside the `public` folder can be referenced from the HTML.
13-
14-
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
15-
work correctly both with client-side routing and a non-root public URL.
16-
Learn how to configure a non-root public URL by running `npm run build`.
17-
-->
189
<title>Materially | Material UI React Dashboard Template</title>
1910

2011
<link rel="preconnect" href="https://fonts.gstatic.com" />
@@ -33,5 +24,6 @@
3324
To begin the development, run `npm start` or `yarn start`.
3425
To create a production bundle, use `npm run build` or `yarn build`.
3526
-->
27+
<script type="module" src="/src/index.jsx"></script>
3628
</body>
3729
</html>

package.json

+37-41
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,39 @@
11
{
22
"name": "materially-free-react-admin-template",
3-
"version": "2.1.0",
3+
"version": "3.0.0",
44
"private": true,
55
"dependencies": {
6-
"@emotion/react": "^11.11.3",
7-
"@emotion/styled": "^11.11.0",
8-
"@mui/icons-material": "^5.15.7",
9-
"@mui/lab": "^5.0.0-alpha.163",
10-
"@mui/material": "^5.15.7",
11-
"@mui/styled-engine": "^5.15.7",
12-
"@mui/utils": "^5.15.7",
13-
"@reduxjs/toolkit": "^2.1.0",
14-
"@testing-library/jest-dom": "^6.4.1",
15-
"@testing-library/react": "^14.2.1",
16-
"@testing-library/user-event": "^14.5.2",
17-
"apexcharts": "^3.45.2",
18-
"buffer": "^6.0.3",
19-
"crypto-browserify": "^3.12.0",
20-
"formik": "^2.4.5",
21-
"framer-motion": "^11.0.3",
22-
"material-ui-popup-state": "^5.0.10",
23-
"process": "^0.11.10",
24-
"react": "^18.2.0",
6+
"@emotion/react": "^11.11.4",
7+
"@emotion/styled": "^11.11.5",
8+
"@mui/icons-material": "^5.15.15",
9+
"@mui/lab": "^5.0.0-alpha.170",
10+
"@mui/material": "^5.15.15",
11+
"@mui/utils": "^5.15.14",
12+
"@reduxjs/toolkit": "^2.2.3",
13+
"@vitejs/plugin-react": "^4.2.1",
14+
"apexcharts": "^3.49.0",
15+
"formik": "^2.4.6",
16+
"framer-motion": "^11.1.7",
17+
"material-ui-popup-state": "^5.1.0",
18+
"react": "^18.3.1",
2519
"react-apexcharts": "^1.4.1",
26-
"react-app-rewired": "^2.2.1",
27-
"react-dom": "^18.2.0",
20+
"react-dom": "^18.3.1",
2821
"react-perfect-scrollbar": "^1.5.8",
29-
"react-redux": "^9.1.0",
30-
"react-router": "^6.22.0",
31-
"react-router-dom": "^6.22.0",
32-
"react-scripts": "5.0.1",
33-
"react-scrollbar": "^0.5.6",
34-
"redux": "^5.0.1",
35-
"stream-browserify": "^3.0.0",
36-
"util": "^0.12.5",
37-
"yup": "^1.3.3"
22+
"react-redux": "^9.1.1",
23+
"react-router": "^6.23.0",
24+
"react-router-dom": "^6.23.0",
25+
"vite": "^5.2.10",
26+
"vite-jsconfig-paths": "^2.0.1",
27+
"yup": "^1.4.0"
3828
},
3929
"scripts": {
40-
"start": "react-app-rewired start",
41-
"build": "react-app-rewired build",
42-
"build-stage": "env-cmd -f .env.qa react-app-rewired build",
43-
"test": "react-scripts test",
44-
"eject": "react-scripts eject"
30+
"start": "vite",
31+
"build": "vite build",
32+
"build-stage": "env-cmd -f .env.qa vite build",
33+
"preview": "vite preview",
34+
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
35+
"lint:fix": "eslint --fix \"src/**/*.{js,jsx,ts,tsx}\"",
36+
"prettier": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\""
4537
},
4638
"eslintConfig": {
4739
"extends": [
@@ -67,9 +59,12 @@
6759
]
6860
},
6961
"devDependencies": {
70-
"@babel/core": "^7.23.9",
71-
"@babel/eslint-parser": "^7.23.10",
62+
"@babel/core": "^7.24.5",
63+
"@babel/eslint-parser": "^7.24.5",
7264
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
65+
"@testing-library/jest-dom": "^6.4.2",
66+
"@testing-library/react": "^15.0.5",
67+
"@testing-library/user-event": "^14.5.2",
7368
"env-cmd": "^10.1.0",
7469
"eslint": "^8.56.0",
7570
"eslint-config-prettier": "^9.1.0",
@@ -78,10 +73,11 @@
7873
"eslint-plugin-import": "^2.29.1",
7974
"eslint-plugin-jsx-a11y": "^6.8.0",
8075
"eslint-plugin-prettier": "^5.1.3",
81-
"eslint-plugin-react": "^7.33.2",
82-
"eslint-plugin-react-hooks": "^4.6.0",
76+
"eslint-plugin-react": "^7.34.1",
77+
"eslint-plugin-react-hooks": "^4.6.2",
8378
"prettier": "^3.2.5",
8479
"react-error-overlay": "^6.0.11",
85-
"sass": "^1.70.0"
80+
"sass": "^1.70.0",
81+
"vite-plugin-style-import": "^2.0.0"
8682
}
8783
}

src/assets/scss/_themes-vars.scss src/assets/scss/_themes-vars.module.scss

+19-2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ $successDark: #007849;
2525
$successLight: #33bc87;
2626

2727
$grey300: #425466;
28+
$dark: #343a40;
29+
2830
$bg100: #f8f8f9;
2931

3032
// Text Colors
@@ -33,8 +35,15 @@ $textSecondary: #1b212c;
3335
$textDark: #12171e;
3436
$textHint: #00000061;
3537

38+
// Text Dark Color
39+
$textDarkPrimary: #bbc0c7;
40+
$textDarkSecondary: #babfc9;
41+
$textDarkDark: #fff;
42+
$texDarkHint: #94919161;
43+
3644
// Background Color
37-
$backgound: #f0f2f8;
45+
$background: #f0f2f8;
46+
$backgoundDark: #181e2b;
3847

3948
// Paper Color
4049
$paper: #ffffff;
@@ -70,6 +79,7 @@ $menuHover: #e3f2fd;
7079
successLight: $successLight;
7180

7281
grey300: $grey300;
82+
7383
bg100: $bg100;
7484

7585
// Text Colors
@@ -78,8 +88,15 @@ $menuHover: #e3f2fd;
7888
textDark: $textDark;
7989
textHint: $textHint;
8090

91+
// Text Dark Colors
92+
textDarkPrimary: $textDarkPrimary;
93+
textDarkSecondary: $textDarkSecondary;
94+
textDarkDark: $textDarkDark;
95+
textDarkHint: $texDarkHint;
96+
8197
// Background Color
82-
backgound: $backgound;
98+
background: $background;
99+
backgoundDark: $backgoundDark;
83100

84101
// Paper Color
85102
paper: $paper;

src/assets/scss/custom/pages/_usercard.scss

Whitespace-only changes.

src/assets/scss/plugins/_plugins.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
@import '~react-perfect-scrollbar/dist/css/styles.css';
1+
@import 'react-perfect-scrollbar/dist/css/styles.css';

src/assets/scss/style.scss

+23-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
@import 'themes-vars';
1+
@import 'themes-vars.module.scss';
22
@import 'plugins/plugins';
33

44
/* breadcrumb */
5+
.icon-breadcrumb {
6+
margin-right: 5px;
7+
}
8+
59
.link-breadcrumb {
610
font-size: 0.75rem;
711
display: flex;
@@ -18,3 +22,21 @@
1822
.apexcharts-legend-marker {
1923
margin-right: 8px !important;
2024
}
25+
26+
.f-right {
27+
float: right;
28+
}
29+
.p-0 {
30+
padding: 0 !important;
31+
}
32+
.p-20 {
33+
padding: 20px !important;
34+
}
35+
36+
.apexcharts-legend-text {
37+
padding-right: 4px;
38+
}
39+
40+
.css-7blk3r-MuiButtonBase-root-MuiButton-root {
41+
color: $textDarkDark !important;
42+
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)