first commit

This commit is contained in:
pawan-dot 2024-05-31 18:22:57 +05:30
parent 9afc2f4979
commit d95bc5b178
7 changed files with 284 additions and 273 deletions

View File

@ -7,26 +7,37 @@
* License MIT * License MIT
--> -->
<html lang="en"> <html lang="en">
<head>
<head> <meta charset="utf-8" />
<meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" /> name="viewport"
<meta name="description" content="CoreUI for React - Open Source Bootstrap Admin Template" /> content="width=device-width, initial-scale=1, shrink-to-fit=no"
<meta name="author" content="Łukasz Holeczek" /> />
<meta name="keyword" content="Bootstrap,Admin,Template,Open,Source,CSS,SCSS,HTML,RWD,Dashboard,React" /> <meta
<title>Smellika Admin</title> name="description"
<!-- content="CoreUI for React - Open Source Bootstrap Admin Template"
/>
<meta name="author" content="Łukasz Holeczek" />
<meta
name="keyword"
content="Bootstrap,Admin,Template,Open,Source,CSS,SCSS,HTML,RWD,Dashboard,React"
/>
<title>AyurPulse Admin</title>
<!--
manifest.json provides metadata used when your web app is added to the manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/ homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
--> -->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" /> <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico" />
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css" /> <link
<link rel="react" href="https://coreui.io/react/" /> rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css"
/>
<link rel="react" href="https://coreui.io/react/" />
<!-- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script> --> <!-- <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.min.js"></script> -->
<!-- <!--
Notice the use of %PUBLIC_URL% in the tags above. Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build. It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML. Only files inside the `public` folder can be referenced from the HTML.
@ -36,16 +47,16 @@
Learn how to configure a non-root public URL by running `npm run build`. Learn how to configure a non-root public URL by running `npm run build`.
--> -->
<!-- <link href="/assets/css/bootstrap.min.css" rel="stylesheet" /> --> <!-- <link href="/assets/css/bootstrap.min.css" rel="stylesheet" /> -->
<!-- <link href="/assets/libs/bootstrap-datepicker/css/bootstrap-datepicker.min.css" rel="stylesheet" /> --> <!-- <link href="/assets/libs/bootstrap-datepicker/css/bootstrap-datepicker.min.css" rel="stylesheet" /> -->
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" /> --> <!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" /> -->
</head> </head>
<body> <body>
<noscript> You need to enable JavaScript to run this app. </noscript> <noscript> You need to enable JavaScript to run this app. </noscript>
<div id="root"></div> <div id="root"></div>
<!-- <!--
This HTML file is a template. This HTML file is a template.
If you open it directly in the browser, you will see an empty page. If you open it directly in the browser, you will see an empty page.
@ -55,8 +66,7 @@
To begin the development, run `npm start` or `yarn start`. To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`. To create a production bundle, use `npm run build` or `yarn build`.
--> -->
<script src="https://checkout.razorpay.com/v1/checkout.js"></script> <script src="https://checkout.razorpay.com/v1/checkout.js"></script>
</body> </body>
<!-- <script src="/assets/libs/bootstrap/js/bootstrap.bundle.min.js"></script> --> <!-- <script src="/assets/libs/bootstrap/js/bootstrap.bundle.min.js"></script> -->
</html>
</html>

View File

@ -36,160 +36,160 @@ const _nav = [
icon: <CIcon icon={cilSpeedometer} customClassName="nav-icon" />, icon: <CIcon icon={cilSpeedometer} customClassName="nav-icon" />,
group: "", group: "",
}, },
{ // {
component: CNavItem, // component: CNavItem,
name: "Customers", // name: "Customers",
icon: <CIcon icon={cilTennisBall} customClassName="nav-icon" />, // icon: <CIcon icon={cilTennisBall} customClassName="nav-icon" />,
to: "/customers-details", // to: "/customers-details",
group: "Customers", // group: "Customers",
}, // },
{ // {
component: CNavGroup, // component: CNavGroup,
name: "Charts", // name: "Charts",
icon: <CIcon icon={cilCat} customClassName="nav-icon" />, // icon: <CIcon icon={cilCat} customClassName="nav-icon" />,
group: "", // group: "",
items: [ // items: [
{ // {
component: CNavItem, // component: CNavItem,
name: "new user day wise", // name: "new user day wise",
icon: <CIcon icon={cilTennisBall} customClassName="nav-icon" />, // icon: <CIcon icon={cilTennisBall} customClassName="nav-icon" />,
to: "/new-user-day-wise", // to: "/new-user-day-wise",
group: "Charts", // group: "Charts",
}, // },
{ // {
component: CNavItem, // component: CNavItem,
name: "Revenue By Product", // name: "Revenue By Product",
icon: <CIcon icon={cilTennisBall} customClassName="nav-icon" />, // icon: <CIcon icon={cilTennisBall} customClassName="nav-icon" />,
to: "/revenue-by-product", // to: "/revenue-by-product",
group: "Charts", // group: "Charts",
}, // },
{ // {
component: CNavItem, // component: CNavItem,
name: "Revenue By State", // name: "Revenue By State",
icon: <CIcon icon={cilTennisBall} customClassName="nav-icon" />, // icon: <CIcon icon={cilTennisBall} customClassName="nav-icon" />,
to: "/revenue-by-state", // to: "/revenue-by-state",
group: "Charts", // group: "Charts",
}, // },
{ // {
component: CNavItem, // component: CNavItem,
name: "Revenue By City", // name: "Revenue By City",
icon: <CIcon icon={cilTennisBall} customClassName="nav-icon" />, // icon: <CIcon icon={cilTennisBall} customClassName="nav-icon" />,
to: "/revenue-by-city", // to: "/revenue-by-city",
group: "Charts", // group: "Charts",
}, // },
{ // {
component: CNavItem, // component: CNavItem,
name: "Orders (Day Wise)", // name: "Orders (Day Wise)",
icon: <CIcon icon={cilTennisBall} customClassName="nav-icon" />, // icon: <CIcon icon={cilTennisBall} customClassName="nav-icon" />,
to: "/orders-day-wise", // to: "/orders-day-wise",
group: "Charts", // group: "Charts",
}, // },
{ // {
component: CNavItem, // component: CNavItem,
name: "Revenue (Day Wise)", // name: "Revenue (Day Wise)",
icon: <CIcon icon={cilTennisBall} customClassName="nav-icon" />, // icon: <CIcon icon={cilTennisBall} customClassName="nav-icon" />,
to: "/revenue-day-wise", // to: "/revenue-day-wise",
group: "Charts", // group: "Charts",
}, // },
], // ],
}, // },
{ // {
component: CNavGroup, // component: CNavGroup,
name: "Product Management", // name: "Product Management",
icon: <CIcon icon={cilClipboard} customClassName="nav-icon" />, // icon: <CIcon icon={cilClipboard} customClassName="nav-icon" />,
group: "", // group: "",
items: [ // items: [
{ // {
component: CNavItem, // component: CNavItem,
name: "Categories", // name: "Categories",
icon: <CIcon icon={cilCat} customClassName="nav-icon" />, // icon: <CIcon icon={cilCat} customClassName="nav-icon" />,
to: "/categories", // to: "/categories",
group: "Product Management", // group: "Product Management",
}, // },
{ // {
component: CNavItem, // component: CNavItem,
name: "Products", // name: "Products",
icon: <CIcon icon={cilClipboard} customClassName="nav-icon" />, // icon: <CIcon icon={cilClipboard} customClassName="nav-icon" />,
to: "/products", // to: "/products",
group: "Product Management", // group: "Product Management",
}, // },
{ // {
component: CNavItem, // component: CNavItem,
name: "GST Rate", // name: "GST Rate",
icon: <CIcon icon={cilTablet} customClassName="nav-icon" />, // icon: <CIcon icon={cilTablet} customClassName="nav-icon" />,
to: "/tax", // to: "/tax",
group: "Product Management", // group: "Product Management",
}, // },
], // ],
}, // },
{ // {
component: CNavGroup, // component: CNavGroup,
name: "Orders", // name: "Orders",
icon: <CIcon icon={cilCart} customClassName="nav-icon" />, // icon: <CIcon icon={cilCart} customClassName="nav-icon" />,
group: "", // group: "",
items: [ // items: [
{ // {
component: CNavItem, // component: CNavItem,
name: "New", // name: "New",
icon: <CIcon icon={cilNotes} customClassName="nav-icon" />, // icon: <CIcon icon={cilNotes} customClassName="nav-icon" />,
to: "/orders/new", // to: "/orders/new",
group: "Orders", // group: "Orders",
}, // },
// { // // {
// component: CNavItem, // // component: CNavItem,
// name: "Paid", // // name: "Paid",
// icon: <CIcon icon={cilNotes} customClassName="nav-icon" />, // // icon: <CIcon icon={cilNotes} customClassName="nav-icon" />,
// to: "/orders/returned", // // to: "/orders/returned",
// }, // // },
{ // {
component: CNavItem, // component: CNavItem,
name: "Processing", // name: "Processing",
icon: <CIcon icon={cilNotes} customClassName="nav-icon" />, // icon: <CIcon icon={cilNotes} customClassName="nav-icon" />,
to: "/orders/processing", // to: "/orders/processing",
group: "Orders", // group: "Orders",
}, // },
{ // {
component: CNavItem, // component: CNavItem,
name: "Dispatched", // name: "Dispatched",
icon: <CIcon icon={cilNotes} customClassName="nav-icon" />, // icon: <CIcon icon={cilNotes} customClassName="nav-icon" />,
to: "/orders/dispatched", // to: "/orders/dispatched",
group: "Orders", // group: "Orders",
}, // },
{ // {
component: CNavItem, // component: CNavItem,
name: "Delivered", // name: "Delivered",
icon: <CIcon icon={cilNotes} customClassName="nav-icon" />, // icon: <CIcon icon={cilNotes} customClassName="nav-icon" />,
to: "/orders/delivered", // to: "/orders/delivered",
group: "Orders", // group: "Orders",
}, // },
{ // {
component: CNavItem, // component: CNavItem,
name: "Cancelled", // name: "Cancelled",
icon: <CIcon icon={cilNotes} customClassName="nav-icon" />, // icon: <CIcon icon={cilNotes} customClassName="nav-icon" />,
to: "/orders/cancelled", // to: "/orders/cancelled",
group: "Orders", // group: "Orders",
}, // },
{ // {
component: CNavItem, // component: CNavItem,
name: "In Store Cash Orders", // name: "In Store Cash Orders",
icon: <CIcon icon={cilNotes} customClassName="nav-icon" />, // icon: <CIcon icon={cilNotes} customClassName="nav-icon" />,
to: "/inStoreCashOrders/new", // to: "/inStoreCashOrders/new",
group: "Orders", // group: "Orders",
}, // },
{ // {
component: CNavItem, // component: CNavItem,
name: "In Store QRCode Orders", // name: "In Store QRCode Orders",
icon: <CIcon icon={cilNotes} customClassName="nav-icon" />, // icon: <CIcon icon={cilNotes} customClassName="nav-icon" />,
to: "/InStoreQRCodeOrders/new", // to: "/InStoreQRCodeOrders/new",
group: "Orders", // group: "Orders",
}, // },
], // ],
}, // },
{ {
component: CNavGroup, component: CNavGroup,
name: "Website Related", name: "Website Related",
@ -225,13 +225,13 @@ const _nav = [
to: "/shopImage", to: "/shopImage",
group: "Website Related", group: "Website Related",
}, },
{ // {
component: CNavItem, // component: CNavItem,
name: "Testimonials", // name: "Testimonials",
icon: <CIcon icon={cilCompress} customClassName="nav-icon" />, // icon: <CIcon icon={cilCompress} customClassName="nav-icon" />,
to: "/testimonials", // to: "/testimonials",
group: "Website Related", // group: "Website Related",
}, // },
// { // {
// component: CNavItem, // component: CNavItem,
// name: "Contact Requests", // name: "Contact Requests",
@ -240,13 +240,13 @@ const _nav = [
// group: "Website Related", // group: "Website Related",
// }, // },
{ // {
component: CNavItem, // component: CNavItem,
name: "SEO and Analytics", // name: "SEO and Analytics",
icon: <CIcon icon={cilContact} customClassName="nav-icon" />, // icon: <CIcon icon={cilContact} customClassName="nav-icon" />,
to: "/seo/request/new", // to: "/seo/request/new",
group: "Website Related", // group: "Website Related",
}, // },
{ {
component: CNavItem, component: CNavItem,
@ -310,83 +310,83 @@ const _nav = [
], ],
}, },
//Affiliate start //Affiliate start
{ // {
component: CNavGroup, // component: CNavGroup,
name: "Affiliate & Coupons", // name: "Affiliate & Coupons",
icon: <CIcon icon={cilCart} customClassName="nav-icon" />, // icon: <CIcon icon={cilCart} customClassName="nav-icon" />,
group: "", // group: "",
items: [ // items: [
{ // {
component: CNavItem, // component: CNavItem,
name: "Coupons", // name: "Coupons",
icon: <CIcon icon={cilNotes} customClassName="nav-icon" />, // icon: <CIcon icon={cilNotes} customClassName="nav-icon" />,
to: "/affiliate/coupons", // to: "/affiliate/coupons",
group: "Affiliate & Coupons", // group: "Affiliate & Coupons",
}, // },
{ // {
component: CNavItem, // component: CNavItem,
name: "Affiliates", // name: "Affiliates",
icon: <CIcon icon={cilNotes} customClassName="nav-icon" />, // icon: <CIcon icon={cilNotes} customClassName="nav-icon" />,
to: "/affiliate/affiliates", // to: "/affiliate/affiliates",
group: "Affiliate & Coupons", // group: "Affiliate & Coupons",
}, // },
], // ],
}, // },
//Affiliate end // //Affiliate end
{ // {
component: CNavGroup, // component: CNavGroup,
name: "Customer Service", // name: "Customer Service",
icon: <CIcon icon={cilClipboard} customClassName="nav-icon" />, // icon: <CIcon icon={cilClipboard} customClassName="nav-icon" />,
group: "", // group: "",
items: [ // items: [
{ // {
component: CNavItem, // component: CNavItem,
name: "Customer Support", // name: "Customer Support",
icon: <CIcon icon={cilAlarm} customClassName="nav-icon" />, // icon: <CIcon icon={cilAlarm} customClassName="nav-icon" />,
to: "/support/request", // to: "/support/request",
group: "Customer Service", // group: "Customer Service",
}, // },
{ // {
component: CNavItem, // component: CNavItem,
name: "Contact Requests", // name: "Contact Requests",
icon: <CIcon icon={cilUser} customClassName="nav-icon" />, // icon: <CIcon icon={cilUser} customClassName="nav-icon" />,
to: "/contact/request", // to: "/contact/request",
group: "Customer Service", // group: "Customer Service",
}, // },
// { // // {
// component: CNavItem, // // component: CNavItem,
// name: "Email CMS", // // name: "Email CMS",
// icon: <CIcon icon={cilLocationPin} customClassName="nav-icon" />, // // icon: <CIcon icon={cilLocationPin} customClassName="nav-icon" />,
// to: "/email-cms", // // to: "/email-cms",
// }, // // },
], // ],
}, // },
//Blog start // //Blog start
{ // {
component: CNavItem, // component: CNavItem,
name: "Blog", // name: "Blog",
icon: <CIcon icon={cilNotes} customClassName="nav-icon" />, // icon: <CIcon icon={cilNotes} customClassName="nav-icon" />,
to: "/blogs", // to: "/blogs",
group: "Blog", // group: "Blog",
}, // },
// Employee // // Employee
{ // {
component: CNavItem, // component: CNavItem,
name: "Employees & Access", // name: "Employees & Access",
icon: <CIcon icon={cilImage} customClassName="nav-icon" />, // icon: <CIcon icon={cilImage} customClassName="nav-icon" />,
to: "/employee", // to: "/employee",
group: "Employees & Access", // group: "Employees & Access",
}, // },
//Point of Sale start // //Point of Sale start
{ // {
component: CNavItem, // component: CNavItem,
name: "Point of Sale", // name: "Point of Sale",
icon: <CIcon icon={cilNotes} customClassName="nav-icon" />, // icon: <CIcon icon={cilNotes} customClassName="nav-icon" />,
to: "/pos", // to: "/pos",
group: "Point of Sale", // group: "Point of Sale",
}, // },
// { // {
// component: CNavGroup, // component: CNavGroup,
// name: "Blog", // name: "Blog",

View File

@ -127,7 +127,7 @@ const AppSidebar = () => {
<img src={AdminlogoUrl} alt="" width="100%" /> <img src={AdminlogoUrl} alt="" width="100%" />
</Link> </Link>
) : { AppName } ? ( ) : { AppName } ? (
<h3>Smellika Admin </h3> <h3>AyurPulse Admin </h3>
) : ( ) : (
"" ""
)} )}

View File

@ -15,7 +15,7 @@ import { createRoot } from "react-dom/client";
const setupAxios = () => { const setupAxios = () => {
//axios.defaults.baseURL = "http://localhost:5000"; //axios.defaults.baseURL = "http://localhost:5000";
axios.defaults.baseURL = "https://api.smellika.com"; axios.defaults.baseURL = "https://pulseayur-api.onrender.com";
axios.defaults.headers = { axios.defaults.headers = {
"Cache-Control": "no-cache,no-store", "Cache-Control": "no-cache,no-store",

View File

@ -35,6 +35,7 @@ const Affiliates = () => {
console.log(message); console.log(message);
}); });
}; };
//Func to get all Affiliate data //Func to get all Affiliate data
const fetchAffiliateData = () => { const fetchAffiliateData = () => {
axios axios
@ -44,7 +45,7 @@ const Affiliates = () => {
}, },
}) })
.then((response) => { .then((response) => {
// console.log(response.data.message); console.log(response?.data);
setLoading(false); setLoading(false);
setApiData(response.data.message); setApiData(response.data.message);
}) })

View File

@ -157,7 +157,7 @@ export default function RegistrationEmail() {
onChange={(e) => setWelcomeMsg(e.target.value)} onChange={(e) => setWelcomeMsg(e.target.value)}
/> />
<h6 style={{ fontWeight: "bold", marginTop: "1rem" }}> <h6 style={{ fontWeight: "bold", marginTop: "1rem" }}>
App Name : Smellika App Name : Ayur Pulse
</h6> </h6>
<label htmlFor="title" className="form-label"> <label htmlFor="title" className="form-label">

View File

@ -140,9 +140,9 @@ const Login = () => {
<CCard className="p-4"> <CCard className="p-4">
<CCardBody> <CCardBody>
<CForm> <CForm>
<h1>Smellika</h1> <h1>Ayur Pulse</h1>
<p className="text-medium-emphasis"> <p className="text-medium-emphasis">
Sign In to Your Smellika Admin Dashboard Account. Sign In to Your Ayur Pulse Admin Dashboard Account.
</p> </p>
<CInputGroup className="mb-3"> <CInputGroup className="mb-3">
<CInputGroupText> <CInputGroupText>