From d95bc5b178f18e33eff9bf077bd3d834e2d57615 Mon Sep 17 00:00:00 2001 From: pawan-dot <71133473+pawan-dot@users.noreply.github.com> Date: Fri, 31 May 2024 18:22:57 +0530 Subject: [PATCH] first commit --- public/index.html | 68 +-- src/_nav.js | 476 +++++++++--------- src/components/AppSidebar.js | 2 +- src/index.js | 2 +- src/views/Affiliate/Affiliates.jsx | 3 +- .../EmailCMS/RegistrationEmail.js | 2 +- src/views/pages/login/Login.js | 4 +- 7 files changed, 284 insertions(+), 273 deletions(-) diff --git a/public/index.html b/public/index.html index ca6a3bf..4cd1f8f 100644 --- a/public/index.html +++ b/public/index.html @@ -7,26 +7,37 @@ * License MIT --> - - - - - - - - - Smellika Admin - - - - - + + + + - - + - + - - - + + + - - -
- - - - - - \ No newline at end of file + + + + diff --git a/src/_nav.js b/src/_nav.js index eb87d25..1878fbf 100644 --- a/src/_nav.js +++ b/src/_nav.js @@ -36,160 +36,160 @@ const _nav = [ icon: , group: "", }, - { - component: CNavItem, - name: "Customers", - icon: , - to: "/customers-details", - group: "Customers", - }, + // { + // component: CNavItem, + // name: "Customers", + // icon: , + // to: "/customers-details", + // group: "Customers", + // }, - { - component: CNavGroup, - name: "Charts", - icon: , - group: "", + // { + // component: CNavGroup, + // name: "Charts", + // icon: , + // group: "", - items: [ - { - component: CNavItem, - name: "new user day wise", - icon: , - to: "/new-user-day-wise", - group: "Charts", - }, - { - component: CNavItem, - name: "Revenue By Product", - icon: , - to: "/revenue-by-product", - group: "Charts", - }, - { - component: CNavItem, - name: "Revenue By State", - icon: , - to: "/revenue-by-state", - group: "Charts", - }, - { - component: CNavItem, - name: "Revenue By City", - icon: , - to: "/revenue-by-city", - group: "Charts", - }, - { - component: CNavItem, - name: "Orders (Day Wise)", - icon: , - to: "/orders-day-wise", - group: "Charts", - }, - { - component: CNavItem, - name: "Revenue (Day Wise)", - icon: , - to: "/revenue-day-wise", - group: "Charts", - }, - ], - }, + // items: [ + // { + // component: CNavItem, + // name: "new user day wise", + // icon: , + // to: "/new-user-day-wise", + // group: "Charts", + // }, + // { + // component: CNavItem, + // name: "Revenue By Product", + // icon: , + // to: "/revenue-by-product", + // group: "Charts", + // }, + // { + // component: CNavItem, + // name: "Revenue By State", + // icon: , + // to: "/revenue-by-state", + // group: "Charts", + // }, + // { + // component: CNavItem, + // name: "Revenue By City", + // icon: , + // to: "/revenue-by-city", + // group: "Charts", + // }, + // { + // component: CNavItem, + // name: "Orders (Day Wise)", + // icon: , + // to: "/orders-day-wise", + // group: "Charts", + // }, + // { + // component: CNavItem, + // name: "Revenue (Day Wise)", + // icon: , + // to: "/revenue-day-wise", + // group: "Charts", + // }, + // ], + // }, - { - component: CNavGroup, - name: "Product Management", - icon: , - group: "", + // { + // component: CNavGroup, + // name: "Product Management", + // icon: , + // group: "", - items: [ - { - component: CNavItem, - name: "Categories", - icon: , - to: "/categories", - group: "Product Management", - }, - { - component: CNavItem, - name: "Products", - icon: , - to: "/products", - group: "Product Management", - }, - { - component: CNavItem, - name: "GST Rate", - icon: , - to: "/tax", - group: "Product Management", - }, - ], - }, - { - component: CNavGroup, - name: "Orders", - icon: , - group: "", + // items: [ + // { + // component: CNavItem, + // name: "Categories", + // icon: , + // to: "/categories", + // group: "Product Management", + // }, + // { + // component: CNavItem, + // name: "Products", + // icon: , + // to: "/products", + // group: "Product Management", + // }, + // { + // component: CNavItem, + // name: "GST Rate", + // icon: , + // to: "/tax", + // group: "Product Management", + // }, + // ], + // }, + // { + // component: CNavGroup, + // name: "Orders", + // icon: , + // group: "", - items: [ - { - component: CNavItem, - name: "New", - icon: , - to: "/orders/new", - group: "Orders", - }, - // { - // component: CNavItem, - // name: "Paid", - // icon: , - // to: "/orders/returned", - // }, - { - component: CNavItem, - name: "Processing", - icon: , - to: "/orders/processing", - group: "Orders", - }, - { - component: CNavItem, - name: "Dispatched", - icon: , - to: "/orders/dispatched", - group: "Orders", - }, - { - component: CNavItem, - name: "Delivered", - icon: , - to: "/orders/delivered", - group: "Orders", - }, - { - component: CNavItem, - name: "Cancelled", - icon: , - to: "/orders/cancelled", - group: "Orders", - }, - { - component: CNavItem, - name: "In Store Cash Orders", - icon: , - to: "/inStoreCashOrders/new", - group: "Orders", - }, - { - component: CNavItem, - name: "In Store QRCode Orders", - icon: , - to: "/InStoreQRCodeOrders/new", - group: "Orders", - }, - ], - }, + // items: [ + // { + // component: CNavItem, + // name: "New", + // icon: , + // to: "/orders/new", + // group: "Orders", + // }, + // // { + // // component: CNavItem, + // // name: "Paid", + // // icon: , + // // to: "/orders/returned", + // // }, + // { + // component: CNavItem, + // name: "Processing", + // icon: , + // to: "/orders/processing", + // group: "Orders", + // }, + // { + // component: CNavItem, + // name: "Dispatched", + // icon: , + // to: "/orders/dispatched", + // group: "Orders", + // }, + // { + // component: CNavItem, + // name: "Delivered", + // icon: , + // to: "/orders/delivered", + // group: "Orders", + // }, + // { + // component: CNavItem, + // name: "Cancelled", + // icon: , + // to: "/orders/cancelled", + // group: "Orders", + // }, + // { + // component: CNavItem, + // name: "In Store Cash Orders", + // icon: , + // to: "/inStoreCashOrders/new", + // group: "Orders", + // }, + // { + // component: CNavItem, + // name: "In Store QRCode Orders", + // icon: , + // to: "/InStoreQRCodeOrders/new", + // group: "Orders", + // }, + // ], + // }, { component: CNavGroup, name: "Website Related", @@ -225,13 +225,13 @@ const _nav = [ to: "/shopImage", group: "Website Related", }, - { - component: CNavItem, - name: "Testimonials", - icon: , - to: "/testimonials", - group: "Website Related", - }, + // { + // component: CNavItem, + // name: "Testimonials", + // icon: , + // to: "/testimonials", + // group: "Website Related", + // }, // { // component: CNavItem, // name: "Contact Requests", @@ -240,13 +240,13 @@ const _nav = [ // group: "Website Related", // }, - { - component: CNavItem, - name: "SEO and Analytics", - icon: , - to: "/seo/request/new", - group: "Website Related", - }, + // { + // component: CNavItem, + // name: "SEO and Analytics", + // icon: , + // to: "/seo/request/new", + // group: "Website Related", + // }, { component: CNavItem, @@ -310,83 +310,83 @@ const _nav = [ ], }, //Affiliate start - { - component: CNavGroup, - name: "Affiliate & Coupons", - icon: , - group: "", + // { + // component: CNavGroup, + // name: "Affiliate & Coupons", + // icon: , + // group: "", - items: [ - { - component: CNavItem, - name: "Coupons", - icon: , - to: "/affiliate/coupons", - group: "Affiliate & Coupons", - }, - { - component: CNavItem, - name: "Affiliates", - icon: , - to: "/affiliate/affiliates", - group: "Affiliate & Coupons", - }, - ], - }, - //Affiliate end - { - component: CNavGroup, - name: "Customer Service", - icon: , - group: "", + // items: [ + // { + // component: CNavItem, + // name: "Coupons", + // icon: , + // to: "/affiliate/coupons", + // group: "Affiliate & Coupons", + // }, + // { + // component: CNavItem, + // name: "Affiliates", + // icon: , + // to: "/affiliate/affiliates", + // group: "Affiliate & Coupons", + // }, + // ], + // }, + // //Affiliate end + // { + // component: CNavGroup, + // name: "Customer Service", + // icon: , + // group: "", - items: [ - { - component: CNavItem, - name: "Customer Support", - icon: , - to: "/support/request", - group: "Customer Service", - }, - { - component: CNavItem, - name: "Contact Requests", - icon: , - to: "/contact/request", - group: "Customer Service", - }, - // { - // component: CNavItem, - // name: "Email CMS", - // icon: , - // to: "/email-cms", - // }, - ], - }, - //Blog start - { - component: CNavItem, - name: "Blog", - icon: , - to: "/blogs", - group: "Blog", - }, - // Employee - { - component: CNavItem, - name: "Employees & Access", - icon: , - to: "/employee", - group: "Employees & Access", - }, - //Point of Sale start - { - component: CNavItem, - name: "Point of Sale", - icon: , - to: "/pos", - group: "Point of Sale", - }, + // items: [ + // { + // component: CNavItem, + // name: "Customer Support", + // icon: , + // to: "/support/request", + // group: "Customer Service", + // }, + // { + // component: CNavItem, + // name: "Contact Requests", + // icon: , + // to: "/contact/request", + // group: "Customer Service", + // }, + // // { + // // component: CNavItem, + // // name: "Email CMS", + // // icon: , + // // to: "/email-cms", + // // }, + // ], + // }, + // //Blog start + // { + // component: CNavItem, + // name: "Blog", + // icon: , + // to: "/blogs", + // group: "Blog", + // }, + // // Employee + // { + // component: CNavItem, + // name: "Employees & Access", + // icon: , + // to: "/employee", + // group: "Employees & Access", + // }, + // //Point of Sale start + // { + // component: CNavItem, + // name: "Point of Sale", + // icon: , + // to: "/pos", + // group: "Point of Sale", + // }, // { // component: CNavGroup, // name: "Blog", diff --git a/src/components/AppSidebar.js b/src/components/AppSidebar.js index 6f921d9..12a0d08 100644 --- a/src/components/AppSidebar.js +++ b/src/components/AppSidebar.js @@ -127,7 +127,7 @@ const AppSidebar = () => { ) : { AppName } ? ( -

Smellika Admin

+

AyurPulse Admin

) : ( "" )} diff --git a/src/index.js b/src/index.js index 466639c..04d55f5 100644 --- a/src/index.js +++ b/src/index.js @@ -15,7 +15,7 @@ import { createRoot } from "react-dom/client"; const setupAxios = () => { //axios.defaults.baseURL = "http://localhost:5000"; - axios.defaults.baseURL = "https://api.smellika.com"; + axios.defaults.baseURL = "https://pulseayur-api.onrender.com"; axios.defaults.headers = { "Cache-Control": "no-cache,no-store", diff --git a/src/views/Affiliate/Affiliates.jsx b/src/views/Affiliate/Affiliates.jsx index 8ec890f..71e425d 100644 --- a/src/views/Affiliate/Affiliates.jsx +++ b/src/views/Affiliate/Affiliates.jsx @@ -35,6 +35,7 @@ const Affiliates = () => { console.log(message); }); }; + //Func to get all Affiliate data const fetchAffiliateData = () => { axios @@ -44,7 +45,7 @@ const Affiliates = () => { }, }) .then((response) => { - // console.log(response.data.message); + console.log(response?.data); setLoading(false); setApiData(response.data.message); }) diff --git a/src/views/CustomerSupport/EmailCMS/RegistrationEmail.js b/src/views/CustomerSupport/EmailCMS/RegistrationEmail.js index 2f274f3..8eea827 100644 --- a/src/views/CustomerSupport/EmailCMS/RegistrationEmail.js +++ b/src/views/CustomerSupport/EmailCMS/RegistrationEmail.js @@ -157,7 +157,7 @@ export default function RegistrationEmail() { onChange={(e) => setWelcomeMsg(e.target.value)} />
- App Name : Smellika + App Name : Ayur Pulse