change application title from all places from PMS to OnFieldWork
This commit is contained in:
parent
a2f105dd41
commit
c7fe28a4ed
@ -5,7 +5,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Marco PMS</title>
|
||||
<title>OnFieldWork.com</title>
|
||||
|
||||
<meta name="description" content="" />
|
||||
|
||||
|
||||
BIN
public/img/app/dashboard-light-09.png
Normal file
BIN
public/img/app/dashboard-light-09.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 117 KiB |
@ -15,7 +15,7 @@ const Sidebar = () => {
|
||||
>
|
||||
<div className="app-brand" style={{ paddingLeft: "30px" }}>
|
||||
<Link to="/dashboard" className="app-brand-link">
|
||||
<span className="app-brand-logo rounded-circle app-brand-logo-border">
|
||||
{/* <span className="app-brand-logo rounded-circle app-brand-logo-border">
|
||||
<img
|
||||
className="app-brand-logo-sidebar"
|
||||
src="/img/brand/marco.png"
|
||||
@ -23,8 +23,19 @@ const Sidebar = () => {
|
||||
aria-label="logo image"
|
||||
style={{ margin: "5px", paddingRight: "5px" }}
|
||||
/>
|
||||
</span> */}
|
||||
|
||||
<a
|
||||
href="/"
|
||||
class="app-brand-link fw-bold navbar-brand text-green fs-6"
|
||||
>
|
||||
<span class="app-brand-logo demo">
|
||||
<img src="/img/brand/marco.png" width="50" />
|
||||
</span>
|
||||
<span className="app-brand-text menu-text fw-bold ms-2">PMS</span>
|
||||
<span class="text-blue">OnField</span>
|
||||
<span>Work</span>
|
||||
<span class="text-dark">.com</span>
|
||||
</a>
|
||||
</Link>
|
||||
|
||||
<a className="layout-menu-toggle menu-link text-large ms-auto">
|
||||
|
||||
@ -23,13 +23,13 @@ const AuthLayout = () => {
|
||||
to="/"
|
||||
className="app-brand-link gap-2 position-fixed top-2 start-0 mx-2 mx-sm-4"
|
||||
>
|
||||
<span className="app-brand-logo rounded-circle ">
|
||||
{/* <span className="app-brand-logo rounded-circle ">
|
||||
<img
|
||||
src="/img/brand/marco.png"
|
||||
alt="marco-logo"
|
||||
className="app-brand-logo-login"
|
||||
/>
|
||||
</span>
|
||||
</span> */}
|
||||
</Link>
|
||||
<Outlet />
|
||||
</div>
|
||||
|
||||
@ -654,3 +654,15 @@ nav.layout-navbar.navbar-active::after {
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.light-style .landing-hero {
|
||||
background: linear-gradient(138.18deg, #eae8fd, #ede7e7 94.44%);
|
||||
}
|
||||
|
||||
.text-green {
|
||||
color: #49bf3c !important;
|
||||
}
|
||||
|
||||
.text-blue {
|
||||
color: var(--bs-blue);
|
||||
}
|
||||
|
||||
@ -54,15 +54,27 @@ const LandingPage = () => {
|
||||
>
|
||||
<i className="tf-icons bx bx-menu bx-lg align-middle text-heading fw-medium"></i>
|
||||
</button>
|
||||
{/* Mobile menu toggle: End*/}
|
||||
<a href="/" className="app-brand-link">
|
||||
|
||||
{/* <a href="/" className="app-brand-link">
|
||||
<span className="app-brand-logo demo">
|
||||
<img src="/img/brand/marco.png" width={50}></img>
|
||||
</span>
|
||||
<span className="app-brand-text demo menu-text fw-bold ms-2 ps-1 ">
|
||||
{/* <Link> */} PMS
|
||||
{/* </Link> */}
|
||||
PMS
|
||||
|
||||
</span>
|
||||
</a> */}
|
||||
|
||||
<a
|
||||
href="/"
|
||||
class="app-brand-link fw-bold navbar-brand text-green fs-5"
|
||||
>
|
||||
<span class="app-brand-logo demo">
|
||||
<img src="/img/brand/marco.png" width="50" />
|
||||
</span>
|
||||
<span class="text-blue">OnField</span>
|
||||
<span>Work</span>
|
||||
<span class="text-dark">.com</span>
|
||||
</a>
|
||||
</div>
|
||||
{/* Menu logo wrapper: End */}
|
||||
@ -226,7 +238,7 @@ const LandingPage = () => {
|
||||
</SwiperSlide>
|
||||
<SwiperSlide>
|
||||
<SwaperSlideContent
|
||||
ImageUrl="/app/dashboard-light-04.png"
|
||||
ImageUrl="/img/app/dashboard-light-09.png"
|
||||
Title="Role-based Permissions"
|
||||
Body="Securely control access with customizable roles and permissions."
|
||||
></SwaperSlideContent>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { useState } from "react";
|
||||
import { Link } from "react-router-dom";
|
||||
import { AuthWrapper } from "./AuthWrapper"
|
||||
import { AuthWrapper } from "./AuthWrapper";
|
||||
import "./page-auth.css";
|
||||
import AuthRepository from "../../repositories/AuthRepository";
|
||||
import showToast from "../../services/toastService";
|
||||
@ -8,54 +8,76 @@ import { useForm } from "react-hook-form";
|
||||
import { zodResolver } from "@hookform/resolvers/zod";
|
||||
import { z } from "zod";
|
||||
|
||||
|
||||
const forgotPassSceham = z.object({
|
||||
email: z.string().trim().email(),
|
||||
})
|
||||
});
|
||||
|
||||
const ForgotPasswordPage = () => {
|
||||
const [loding, setLoading] = useState(false);
|
||||
|
||||
const [loding, setLoading] = useState(false)
|
||||
|
||||
const { register,
|
||||
const {
|
||||
register,
|
||||
handleSubmit,
|
||||
formState: { errors },
|
||||
reset,
|
||||
getValues } = useForm({
|
||||
getValues,
|
||||
} = useForm({
|
||||
resolver: zodResolver(forgotPassSceham),
|
||||
defaultValues: {
|
||||
email: ""
|
||||
}
|
||||
})
|
||||
email: "",
|
||||
},
|
||||
});
|
||||
|
||||
const onSubmit = async (data) => {
|
||||
try {
|
||||
setLoading(true)
|
||||
const response = await AuthRepository.forgotPassword(data)
|
||||
setLoading(true);
|
||||
const response = await AuthRepository.forgotPassword(data);
|
||||
if (response.data && response.success)
|
||||
showToast("verification email has been sent to your registered email address", "success")
|
||||
reset()
|
||||
setLoading(false)
|
||||
showToast(
|
||||
"verification email has been sent to your registered email address",
|
||||
"success"
|
||||
);
|
||||
reset();
|
||||
setLoading(false);
|
||||
} catch (err) {
|
||||
reset()
|
||||
reset();
|
||||
if (err.response.status === 404) {
|
||||
showToast("verification email has been sent to your registered email address", "success")
|
||||
showToast(
|
||||
"verification email has been sent to your registered email address",
|
||||
"success"
|
||||
);
|
||||
} else {
|
||||
showToast("Something wrong", "error")
|
||||
showToast("Something wrong", "error");
|
||||
}
|
||||
|
||||
setLoading(false)
|
||||
}
|
||||
setLoading(false);
|
||||
}
|
||||
};
|
||||
return (
|
||||
<div className="col-12 col-lg-5 col-xl-4 d-flex align-items-center p-4 p-sm-5 bg-gray-60">
|
||||
<div className="w-100" style={{ maxWidth: 420, margin: "0 auto" }}>
|
||||
<h4 className="mb-2">Forgot Password? 🔒</h4>
|
||||
<div className="w-100 m-auto" style={{ maxWidth: 420 }}>
|
||||
<div className="d-flex align-items-center justify-content-center ">
|
||||
<img src="/img/brand/marco.png" width="70" />
|
||||
<Link aria-label="Go to Home Page" to="/">
|
||||
<span class="app-brand-logo ">
|
||||
<span class="text-blue fs-4">OnField</span>
|
||||
<span className="text-green fs-4">Work</span>
|
||||
<span class="text-dark fs-4">.com</span>
|
||||
</span>
|
||||
<br />
|
||||
</Link>
|
||||
</div>
|
||||
<h5 className="mb-2 mt-5 ">Forgot Password? </h5>
|
||||
<p className="mb-4">
|
||||
Enter your email and we'll send you instructions to reset your password
|
||||
Enter your email and we'll send you instructions to reset your
|
||||
password
|
||||
</p>
|
||||
|
||||
<form id="formAuthentication" className="mb-3" onSubmit={handleSubmit(onSubmit)}>
|
||||
<form
|
||||
id="formAuthentication"
|
||||
className="mb-3"
|
||||
onSubmit={handleSubmit(onSubmit)}
|
||||
>
|
||||
<div className="mb-3 text-start">
|
||||
<label htmlFor="email" className="form-label">
|
||||
Email
|
||||
@ -78,7 +100,10 @@ const ForgotPasswordPage = () => {
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<button aria-label="Click me" className="btn btn-primary d-grid w-100">
|
||||
<button
|
||||
aria-label="Click me"
|
||||
className="btn btn-primary d-grid w-100"
|
||||
>
|
||||
{loding ? "Please Wait..." : "Send Reset Link"}
|
||||
</button>
|
||||
</form>
|
||||
@ -94,7 +119,6 @@ const ForgotPasswordPage = () => {
|
||||
</div>
|
||||
|
||||
{/* Footer Text */}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
||||
@ -45,11 +45,11 @@ const LoginPage = () => {
|
||||
if (data.rememberMe) {
|
||||
localStorage.setItem("jwtToken", response.data.token);
|
||||
localStorage.setItem("refreshToken", response.data.refreshToken);
|
||||
removeSession("session")
|
||||
removeSession("session");
|
||||
} else {
|
||||
sessionStorage.setItem("jwtToken", response.data.token);
|
||||
sessionStorage.setItem("refreshToken", response.data.refreshToken);
|
||||
removeSession("local")
|
||||
removeSession("local");
|
||||
}
|
||||
setLoading(false);
|
||||
navigate("/auth/switch/org");
|
||||
@ -79,24 +79,34 @@ const LoginPage = () => {
|
||||
|
||||
useEffect(() => {
|
||||
const token =
|
||||
localStorage.getItem("jwtToken") ||
|
||||
sessionStorage.getItem("jwtToken");
|
||||
localStorage.getItem("jwtToken") || sessionStorage.getItem("jwtToken");
|
||||
|
||||
if (token) {
|
||||
navigate("/dashboard", { replace: true });
|
||||
}
|
||||
}, []);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<div className="col-12 col-lg-5 col-xl-4 d-flex align-items-center p-4 p-sm-5 bg-gray-60">
|
||||
<div className="w-100" style={{ maxWidth: 420, margin: "0 auto" }}>
|
||||
<h4 className="mb-2">Welcome to PMS!</h4>
|
||||
<Link aria-label="Go to Home Page" to="/">
|
||||
<span class="app-brand-logo rounded-circle app-brand-logo-border">
|
||||
<img src="/img/brand/marco.png" width="70" />
|
||||
</span>
|
||||
<br />
|
||||
<span class="text-dark fs-5">Welcome to</span> <br />
|
||||
<h4 className="mb-2 ">
|
||||
{" "}
|
||||
<span class="text-blue ms-1">OnField</span>
|
||||
<span className="text-green">Work</span>
|
||||
<span class="text-dark">.com</span>
|
||||
</h4>
|
||||
</Link>
|
||||
<p className="mb-4">
|
||||
{IsLoginWithOTP
|
||||
? "Enter your email to receive a one-time password (OTP)."
|
||||
: "Please sign in to your account and start the adventure"}
|
||||
</p>
|
||||
|
||||
<form id="formAuthentication" onSubmit={handleSubmit(onSubmit)}>
|
||||
{/* Email */}
|
||||
<div className="mb-3 text-start">
|
||||
@ -219,7 +229,6 @@ const LoginPage = () => {
|
||||
</>
|
||||
)}
|
||||
</form>
|
||||
|
||||
{/* Footer Text */}
|
||||
{!IsLoginWithOTP ? (
|
||||
<p className="text-center mt-3">
|
||||
|
||||
@ -37,33 +37,36 @@ const registerSchema = z.object({
|
||||
const RegisterPage = () => {
|
||||
const [registered, setRegristered] = useState(false);
|
||||
const [industries, setIndustries] = useState([]);
|
||||
const [Loading,setLoading] = useState(false)
|
||||
const [Loading, setLoading] = useState(false);
|
||||
const {
|
||||
register,
|
||||
handleSubmit,
|
||||
formState: { errors },reset
|
||||
formState: { errors },
|
||||
reset,
|
||||
} = useForm({
|
||||
resolver: zodResolver(registerSchema),
|
||||
});
|
||||
|
||||
const onSubmit = async (data) => {
|
||||
try {
|
||||
setLoading(true)
|
||||
setLoading(true);
|
||||
const response = await MarketRepository.requestDemo(data);
|
||||
showToast("Your request has been sent successfully. Please stay in touch!");
|
||||
showToast(
|
||||
"Your request has been sent successfully. Please stay in touch!"
|
||||
);
|
||||
setRegristered(true);
|
||||
setLoading(false)
|
||||
reset()
|
||||
setLoading(false);
|
||||
reset();
|
||||
} catch (error) {
|
||||
showToast(error.message, "error");
|
||||
setLoading(false)
|
||||
setLoading(false);
|
||||
}
|
||||
};
|
||||
useEffect(() => {
|
||||
fetchIndustries();
|
||||
}, []);
|
||||
|
||||
useEffect(() => { }, [industries]);
|
||||
useEffect(() => {}, [industries]);
|
||||
|
||||
const fetchIndustries = async () => {
|
||||
try {
|
||||
@ -76,11 +79,20 @@ const RegisterPage = () => {
|
||||
};
|
||||
return (
|
||||
<>
|
||||
|
||||
<div className="col-12 col-lg-5 col-xl-4 d-flex align-items-center p-4 p-sm-5 bg-gray-60">
|
||||
<div className="w-100" style={{ maxWidth: 420, margin: "0 auto" }}>
|
||||
|
||||
<h4 className="mb-2">Adventure starts here </h4>
|
||||
<div className="d-flex align-items-center justify-content-center ">
|
||||
<img src="/img/brand/marco.png" width="50" />
|
||||
<Link aria-label="Go to Home Page" to="/">
|
||||
<span class="app-brand-logo ">
|
||||
<span class="text-blue fs-4">OnField</span>
|
||||
<span className="text-green fs-4">Work</span>
|
||||
<span class="text-dark fs-4">.com</span>
|
||||
</span>
|
||||
<br />
|
||||
</Link>
|
||||
</div>
|
||||
<h5 className="mb-2">Adventure starts here </h5>
|
||||
<p className="mb-3">Make your app management easy and fun!</p>
|
||||
|
||||
<form
|
||||
@ -88,7 +100,6 @@ const RegisterPage = () => {
|
||||
className="mb-2"
|
||||
onSubmit={handleSubmit(onSubmit)}
|
||||
>
|
||||
|
||||
<div className="row">
|
||||
<div className="col-12 col-sm-6 mb-2 text-start">
|
||||
<label htmlFor="organizatioinName" className="form-label">
|
||||
@ -276,7 +287,6 @@ const RegisterPage = () => {
|
||||
privacy policy & terms
|
||||
</Link>
|
||||
</label>
|
||||
|
||||
</div>
|
||||
{errors.terms && (
|
||||
<div
|
||||
@ -291,7 +301,7 @@ const RegisterPage = () => {
|
||||
aria-label="Click me "
|
||||
className="btn btn-primary d-grid w-100"
|
||||
>
|
||||
{Loading ? "Please Wait..." :" Request Demo"}
|
||||
{Loading ? "Please Wait..." : " Request Demo"}
|
||||
</button>
|
||||
</form>
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user