Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ VITE_APP_VERSION=v4.0.0
GENERATE_SOURCEMAP=false

PUBLIC_URL = https://codedthemes.com/demos/admin-templates/datta-able/react/free/
VITE_APP_BASE_NAME= demos/admin-templates/datta-able/react/free
VITE_APP_BASE_NAME= /demos/admin-templates/datta-able/react/free

## Google Map Key
VITE_APP_GOOGLE_MAPS_API_KEY=AIzaSyAXv4RQK39CskcIB8fvM1Q7XCofZcLxUXw
2 changes: 1 addition & 1 deletion .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
corepack enable
yarn set version 4.9.1
yarn
yarn build-stage
yarn build
- name: 📂 Deploy to Server
uses: easingthemes/ssh-deploy@main
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"scripts": {
"start": "vite",
"build": "vite build",
"build-stage": "env-cmd -f .env.qa vite build",
"lint": "eslint \"src/**/*.{js,jsx,ts,tsx}\"",
"lint:fix": "eslint --fix \"src/**/*.{js,jsx,ts,tsx}\"",
"prettier": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
Expand Down Expand Up @@ -38,7 +37,6 @@
"@eslint/eslintrc": "3.3.1",
"@eslint/js": "9.15.0",
"@vitejs/plugin-react": "4.3.4",
"env-cmd": "10.1.0",
"eslint": "9.15.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-jsx-a11y": "6.10.2",
Expand Down
4 changes: 2 additions & 2 deletions src/menu-items/pages.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@ const pages = {
id: 'login',
title: 'Login',
type: 'item',
url: '/auth/login',
url: '/login',
target: true
},
{
id: 'register',
title: 'Register',
type: 'item',
url: '/auth/register',
url: '/register',
target: true
}
]
Expand Down
12 changes: 1 addition & 11 deletions src/routes/NavigationRoutes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,7 @@ const NavigationRoutes = {
children: [
{
path: '/',
element: <DefaultPages />,
children: [{ path: 'default', element: <DefaultPages /> }]
},
{
path: 'dashboard',
children: [
{
path: 'default',
element: <DefaultPages />
}
]
element: <DefaultPages />
}
]
}
Expand Down
27 changes: 6 additions & 21 deletions src/routes/PagesRoutes.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,37 +11,22 @@ const LoginPage = Loadable(lazy(() => import('views/auth/login/Login')));
// render - register pages
const RegisterPage = Loadable(lazy(() => import('views/auth/register/Register')));

// render - reset password pages
const ResetPasswordPage = Loadable(lazy(() => import('views/auth/reset-password/ResetPassword')));

// ==============================|| AUTH PAGES ROUTING ||============================== //

const PagesRoutes = {
path: '/',
children: [
{
path: '/',
element: <DashboardLayout />
},
{
element: <AuthLayout />,
children: [
{
path: 'auth',
children: [
{
path: 'login',
element: <LoginPage />
},
{
path: 'register',
element: <RegisterPage />
},
{
path: 'reset-password',
element: <ResetPasswordPage />
}
]
path: 'login',
element: <LoginPage />
},
{
path: 'register',
element: <RegisterPage />
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions src/sections/auth/AuthLogin.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import DarkLogo from 'assets/images/logo-dark.svg';

// ==============================|| AUTH LOGIN FORM ||============================== //

export default function AuthLoginForm({ className, link, resetLink }) {
export default function AuthLoginForm({ className, link }) {
const [showPassword, setShowPassword] = useState(false);

const {
Expand Down Expand Up @@ -82,7 +82,7 @@ export default function AuthLoginForm({ className, link, resetLink }) {
className={`input-primary ${className ? className : 'text-muted'} `}
/>
</Form.Group>
<a href={resetLink ?? '/'} className={`text-secondary f-w-400 mb-0 ${className}`}>
<a href="#!" className={`text-secondary f-w-400 mb-0 ${className}`}>
Forgot Password?
</a>
</Stack>
Expand Down
61 changes: 0 additions & 61 deletions src/sections/auth/AuthResetPassword.jsx

This file was deleted.

2 changes: 1 addition & 1 deletion src/views/auth/login/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function LoginPage() {
<span className="r s"></span>
<span className="r"></span>
</div>
<AuthLoginForm link="/auth/register" resetLink="/auth/reset-password" />
<AuthLoginForm link="/register" />
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/views/auth/register/Register.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function RegisterPage() {
<span className="r s"></span>
<span className="r"></span>
</div>
<AuthRegisterForm link="/auth/login" />
<AuthRegisterForm link="/login" />
</div>
</div>
</div>
Expand Down
24 changes: 0 additions & 24 deletions src/views/auth/reset-password/ResetPassword.jsx

This file was deleted.

15 changes: 1 addition & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1580,7 +1580,7 @@ __metadata:
languageName: node
linkType: hard

"cross-spawn@npm:^7.0.0, cross-spawn@npm:^7.0.5, cross-spawn@npm:^7.0.6":
"cross-spawn@npm:^7.0.5, cross-spawn@npm:^7.0.6":
version: 7.0.6
resolution: "cross-spawn@npm:7.0.6"
dependencies:
Expand Down Expand Up @@ -1652,7 +1652,6 @@ __metadata:
axios: "npm:1.7.9"
bootstrap: "npm:5.3.3"
chance: "npm:1.1.12"
env-cmd: "npm:10.1.0"
eslint: "npm:9.15.0"
eslint-config-prettier: "npm:9.1.0"
eslint-plugin-jsx-a11y: "npm:6.10.2"
Expand Down Expand Up @@ -1807,18 +1806,6 @@ __metadata:
languageName: node
linkType: hard

"env-cmd@npm:10.1.0":
version: 10.1.0
resolution: "env-cmd@npm:10.1.0"
dependencies:
commander: "npm:^4.0.0"
cross-spawn: "npm:^7.0.0"
bin:
env-cmd: bin/env-cmd.js
checksum: 10c0/8ea5f4205bed83f39ea0ef0eb94d52a47bc815302c55779fb6c38346ca9284df1855f0847c8f5c702554f7f01e3575d171f12cffd13a1bada01961815842abe3
languageName: node
linkType: hard

"env-paths@npm:^2.2.0":
version: 2.2.1
resolution: "env-paths@npm:2.2.1"
Expand Down