Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| a2843d97e2 |
@@ -40,11 +40,3 @@ button{
|
|||||||
font-size: 1rem!important;
|
font-size: 1rem!important;
|
||||||
font-weight: 700!important;
|
font-weight: 700!important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.font-600 {
|
|
||||||
font-weight: 600;
|
|
||||||
}
|
|
||||||
|
|
||||||
.accordion-button, .accordion-button:not(.collapsed) {
|
|
||||||
background-color: transparent!important;
|
|
||||||
}
|
|
||||||
+11
-16
@@ -1,28 +1,23 @@
|
|||||||
import { QueryClientProvider, QueryClient } from '@tanstack/react-query'
|
import { QueryClientProvider, QueryClient } from '@tanstack/react-query'
|
||||||
import { Provider } from 'react-redux';
|
|
||||||
import store from './store/store'
|
|
||||||
import AppRouters from './AppRouters';
|
import AppRouters from './AppRouters';
|
||||||
|
|
||||||
import './App.css';
|
import './App.css';
|
||||||
|
|
||||||
|
|
||||||
const queryClient = new QueryClient({
|
|
||||||
defaultOptions: {
|
|
||||||
queries: {
|
|
||||||
refetchOnWindowFocus: false,
|
|
||||||
retry: 3,
|
|
||||||
// refetchOnMount: false,
|
|
||||||
staleTime: 360000 // can also be a number in millisecond
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
|
const queryClient = new QueryClient({
|
||||||
|
defaultOptions: {
|
||||||
|
queries: {
|
||||||
|
refetchOnWindowFocus: false,
|
||||||
|
retry: 3,
|
||||||
|
// refetchOnMount: false,
|
||||||
|
staleTime: Infinity // can also be a number in millisecond
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
return (
|
return (
|
||||||
<QueryClientProvider client={queryClient}>
|
<QueryClientProvider client={queryClient}>
|
||||||
<Provider store={store}>
|
<AppRouters />
|
||||||
<AppRouters />
|
|
||||||
</Provider>
|
|
||||||
</QueryClientProvider>
|
</QueryClientProvider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,6 @@ import SettingsPage from './views/SettingsPage'
|
|||||||
import ProductPage from './views/ProductPage'
|
import ProductPage from './views/ProductPage'
|
||||||
import SocketIOContextProvider from './component/context/SocketIOContext';
|
import SocketIOContextProvider from './component/context/SocketIOContext';
|
||||||
import CSignupPage from './views/CSignupPage';
|
import CSignupPage from './views/CSignupPage';
|
||||||
import HelpPage from './views/HelpPage';
|
|
||||||
|
|
||||||
function AppRouters() {
|
function AppRouters() {
|
||||||
return (
|
return (
|
||||||
@@ -46,7 +45,6 @@ function AppRouters() {
|
|||||||
<Route path={siteLinks.user} element={<UserPage />} />
|
<Route path={siteLinks.user} element={<UserPage />} />
|
||||||
<Route path={siteLinks.calendar} element={<CalendarPage />} />
|
<Route path={siteLinks.calendar} element={<CalendarPage />} />
|
||||||
<Route path={siteLinks.settings} element={<SettingsPage />} />
|
<Route path={siteLinks.settings} element={<SettingsPage />} />
|
||||||
<Route path={siteLinks.help} element={<HelpPage />} />
|
|
||||||
</Route>
|
</Route>
|
||||||
</Route>
|
</Route>
|
||||||
</Route>
|
</Route>
|
||||||
|
|||||||
@@ -21,29 +21,37 @@ export default function Calendar(){
|
|||||||
// queryFn: () => getCalendarEvents()
|
// queryFn: () => getCalendarEvents()
|
||||||
// })
|
// })
|
||||||
|
|
||||||
const calendarEvents = useMutation({
|
// const calendarEvents = useMutation({
|
||||||
mutationFn: (reqData) => {
|
// mutationFn: (reqData) => {
|
||||||
return getCalendarEvents(reqData)
|
// return getCalendarEvents(reqData)
|
||||||
},
|
// },
|
||||||
onError: (error) => {
|
// onError: (error) => {
|
||||||
console.log(error)
|
// console.log(error)
|
||||||
},
|
// },
|
||||||
onSuccess: (res) => {
|
// onSuccess: (res) => {
|
||||||
if(res?.data?.resultCode != '0'){
|
// if(res?.data?.resultCode != '0'){
|
||||||
throw({message: 'Something went wrong'})
|
// throw({message: 'Something went wrong'})
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
|
|
||||||
useEffect(()=>{
|
// useEffect(()=>{
|
||||||
|
// let reqData = {
|
||||||
|
// token: localStorage.getItem('token'), // USER TOKEN
|
||||||
|
// uid: localStorage.getItem('uid') // USER UID
|
||||||
|
// }
|
||||||
|
// calendarEvents.mutate(reqData)
|
||||||
|
// },[])
|
||||||
let reqData = {
|
let reqData = {
|
||||||
token: localStorage.getItem('token'), // USER TOKEN
|
token: localStorage.getItem('token'), // USER TOKEN
|
||||||
uid: localStorage.getItem('uid') // USER UID
|
uid: localStorage.getItem('uid') // USER UID
|
||||||
}
|
}
|
||||||
calendarEvents.mutate(reqData)
|
const {data, isFetching, isError, error} = useQuery({
|
||||||
},[])
|
queryKey: queryKeys.calendar_events,
|
||||||
|
queryFn: () => getCalendarEvents(reqData)
|
||||||
|
})
|
||||||
|
|
||||||
const receievedEvents = calendarEvents?.data?.data
|
const receievedEvents = data?.data
|
||||||
const category = receievedEvents?.category //EVENT CATEGORIES FROM API
|
const category = receievedEvents?.category //EVENT CATEGORIES FROM API
|
||||||
const eventList = receievedEvents?.list //EVENT LIST FROM API
|
const eventList = receievedEvents?.list //EVENT LIST FROM API
|
||||||
|
|
||||||
@@ -84,15 +92,15 @@ export default function Calendar(){
|
|||||||
</div>
|
</div>
|
||||||
<div className="card-body">
|
<div className="card-body">
|
||||||
<div className="row">
|
<div className="row">
|
||||||
{calendarEvents?.isPending ?
|
{isFetching ?
|
||||||
<>
|
<>
|
||||||
<div className="col-12">
|
<div className="col-12">
|
||||||
<p className='text-mute'>Loading...</p>
|
<p className='text-mute'>Loading...</p>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
: calendarEvents?.error ?
|
: isError ?
|
||||||
<div className="col-12">
|
<div className="col-12">
|
||||||
<p className='text-danger'>{calendarEvents?.error?.message}</p>
|
<p className='text-danger'>{error?.message}</p>
|
||||||
</div>
|
</div>
|
||||||
:
|
:
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ export default function EventCalendar({removeAfterDrop, eventList, activeCategor
|
|||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
// let newEventList = eventList?.map(item => ({...item, start: new Date(item?.start)}))
|
// let newEventList = eventList?.map(item => ({...item, start: new Date(item?.start)}))
|
||||||
let newEventList = eventList?.filter(item => (Number(item.category) == Number(activeCategory)))?.map(item => ({...item, start: new Date(item?.start)}))
|
let newEventList = eventList?.filter(item => (Number(item.category) == Number(activeCategory)))?.map(item => ({...item, start: new Date(item?.start)}))
|
||||||
console.log('newEventList', newEventList)
|
// console.log('newEventList', newEventList)
|
||||||
setCurrentEvents(newEventList)
|
setCurrentEvents(newEventList)
|
||||||
},[activeCategory])
|
},[activeCategory])
|
||||||
|
|
||||||
|
|||||||
@@ -1,48 +0,0 @@
|
|||||||
import React from "react";
|
|
||||||
import BreadcrumbComBS from "../breadcrumb/BreadcrumbComBS";
|
|
||||||
|
|
||||||
|
|
||||||
export default function HelpCom(){
|
|
||||||
|
|
||||||
return(
|
|
||||||
<>
|
|
||||||
<BreadcrumbComBS title='Frequesntly Asked Questions' paths={['Dashboard', 'Help']} />
|
|
||||||
{/*<div className="row">*/}
|
|
||||||
{/* <div className="vh-100 col-12 flex align-items-center">Coming Soon</div>*/}
|
|
||||||
{/*</div>*/}
|
|
||||||
|
|
||||||
|
|
||||||
<div className="row account-contant">
|
|
||||||
<div className="col-12">
|
|
||||||
<div className="card card-statistics">
|
|
||||||
<div className="card-body p-lg-15" style={{backgroundColor:"#f9f9fb"}}>
|
|
||||||
|
|
||||||
<p className="mb-4">First, a disclaimer – the entire process of writing a blog post often takes more than a couple of hours, even if you can type eighty words as per minute and your writing skills are sharp.</p>
|
|
||||||
<div className="row">
|
|
||||||
<div className="accordion" id="accordionExample">
|
|
||||||
{['a', 'b', 'c', 'd'].map((item, index)=>{
|
|
||||||
return (
|
|
||||||
<div className="accordion-item">
|
|
||||||
<h2 className="accordion-header">
|
|
||||||
<button className="accordion-button" type="button" data-bs-toggle="collapse" data-bs-target={`#${item}`} aria-expanded="true" aria-controls="collapseOne">
|
|
||||||
{`Accordion Item ${item} 1`}
|
|
||||||
</button>
|
|
||||||
</h2>
|
|
||||||
<div id={item} className={`accordion-collapse collapse ${index == 0 && 'show'}`} data-bs-parent="#accordionExample">
|
|
||||||
<div className="accordion-body">
|
|
||||||
<strong>This is the first item’s accordion body.</strong> It is shown by default, until the collapse plugin adds the appropriate classes that we use to style each element. These classes control the overall appearance, as well as the showing and hiding via CSS transitions. You can modify any of this with custom CSS or overriding our default variables. It’s also worth noting that just about any HTML can go within the accordion-body, though the transition does limit overflow.
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
)
|
|
||||||
})}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</>
|
|
||||||
)
|
|
||||||
}
|
|
||||||
@@ -1,34 +1,22 @@
|
|||||||
import React, {useEffect} from 'react'
|
import { useQuery } from '@tanstack/react-query'
|
||||||
import { useMutation } from '@tanstack/react-query'
|
|
||||||
import { productsData } from '../../services/services'
|
import { productsData } from '../../services/services'
|
||||||
import productPath from "../../utils/productpath";
|
import productPath from "../../utils/productpath";
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
|
|
||||||
|
import queryKeys from '../../services/queryKeys'
|
||||||
|
|
||||||
|
|
||||||
export default function Products() {
|
export default function Products() {
|
||||||
const getProductsData = useMutation({
|
|
||||||
mutationFn: (reqData) => {
|
|
||||||
return productsData(reqData)
|
|
||||||
},
|
|
||||||
onError: (error) => {
|
|
||||||
console.log(error)
|
|
||||||
},
|
|
||||||
onSuccess: (res) => {
|
|
||||||
if(res?.data?.resultCode != '0'){
|
|
||||||
throw({message: 'Something went wrong'})
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
useEffect(()=>{
|
let reqData = {
|
||||||
let reqData = {
|
|
||||||
token: localStorage.getItem('token'), // USER TOKEN
|
token: localStorage.getItem('token'), // USER TOKEN
|
||||||
uid: localStorage.getItem('uid') // USER UID
|
uid: localStorage.getItem('uid') // USER UID
|
||||||
}
|
}
|
||||||
getProductsData.mutate(reqData)
|
const {data, isFetching, isError, error} = useQuery({
|
||||||
},[])
|
queryKey: queryKeys.product,
|
||||||
|
queryFn: () => productsData(reqData)
|
||||||
const products = getProductsData?.data?.data?.products_data // PRODUCTS DATA
|
})
|
||||||
|
const products = data?.data?.products_data // PRODUCTS DATA
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -37,7 +25,7 @@ export default function Products() {
|
|||||||
<h4 className="card-title">My Products</h4>
|
<h4 className="card-title">My Products</h4>
|
||||||
</div>
|
</div>
|
||||||
<div className="card-body pb-0">
|
<div className="card-body pb-0">
|
||||||
{getProductsData?.isPending ?
|
{isFetching ?
|
||||||
<>
|
<>
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<div className="col-12">
|
<div className="col-12">
|
||||||
@@ -45,10 +33,10 @@ export default function Products() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
: getProductsData?.isPending ?
|
: isError ?
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<div className="col-12">
|
<div className="col-12">
|
||||||
<p className='text-danger'>{getProductsData?.error?.message}</p>
|
<p className='text-danger'>{error?.message}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
:
|
:
|
||||||
|
|||||||
@@ -5,12 +5,18 @@ import queryKeys from '../../services/queryKeys'
|
|||||||
|
|
||||||
export default function ProductsURL() {
|
export default function ProductsURL() {
|
||||||
|
|
||||||
const {data:data, isFetching, isError, error} = useQuery({
|
let reqData = {
|
||||||
|
token: localStorage.getItem('token'), // USER TOKEN
|
||||||
|
uid: localStorage.getItem('uid') // USER UID
|
||||||
|
}
|
||||||
|
|
||||||
|
const {data, isFetching, isError, error} = useQuery({
|
||||||
queryKey: queryKeys.product_url,
|
queryKey: queryKeys.product_url,
|
||||||
queryFn: () => productsURL()
|
queryFn: () => productsURL(reqData)
|
||||||
})
|
})
|
||||||
|
|
||||||
const urlData = data?.data?.url_data?.url
|
const urlData = data?.data?.products_data
|
||||||
|
// console.log('data', urlData)
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
@@ -57,8 +63,8 @@ export default function ProductsURL() {
|
|||||||
let productUrl = '/product/'+ item?.product_id
|
let productUrl = '/product/'+ item?.product_id
|
||||||
return (
|
return (
|
||||||
<tr key={index}>
|
<tr key={index}>
|
||||||
<td>{Number(item?.no) + Number(index)}</td>
|
<td>{Number(item?.id)}</td>
|
||||||
<td>{item?.description} - <a href={productUrl} target='_blank'>{item?.url}</a></td>
|
<td>{item?.description} - <a href={productUrl} target='_blank'>{item?.external_url}</a></td>
|
||||||
|
|
||||||
<td><span className={`badge ${statusColor}`}>{item?.status}</span></td>
|
<td><span className={`badge ${statusColor}`}>{item?.status}</span></td>
|
||||||
<td><a className="mr-3" href=""><i className="fe fe-edit"></i></a></td>
|
<td><a className="mr-3" href=""><i className="fe fe-edit"></i></a></td>
|
||||||
|
|||||||
@@ -1,36 +1,44 @@
|
|||||||
import React, {useEffect} from 'react'
|
import { useQuery } from '@tanstack/react-query'
|
||||||
import { useMutation } from '@tanstack/react-query'
|
|
||||||
import { topBar } from '../../services/services'
|
import { topBar } from '../../services/services'
|
||||||
|
import queryKeys from '../../services/queryKeys'
|
||||||
|
|
||||||
export default function TopBar() {
|
export default function TopBar() {
|
||||||
|
|
||||||
const topBarData = useMutation({
|
// const topBarData = useMutation({
|
||||||
mutationFn: (reqData) => {
|
// mutationFn: (reqData) => {
|
||||||
return topBar(reqData)
|
// return topBar(reqData)
|
||||||
},
|
// },
|
||||||
onError: (error) => {
|
// onError: (error) => {
|
||||||
console.log(error)
|
// console.log(error)
|
||||||
},
|
// },
|
||||||
onSuccess: (res) => {
|
// onSuccess: (res) => {
|
||||||
if(res?.data?.resultCode != '0'){
|
// if(res?.data?.resultCode != '0'){
|
||||||
throw({message: 'Something went wrong'})
|
// throw({message: 'Something went wrong'})
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
})
|
// })
|
||||||
|
|
||||||
useEffect(()=>{
|
// useEffect(()=>{
|
||||||
let reqData = {
|
// let reqData = {
|
||||||
|
// token: localStorage.getItem('token'), // USER TOKEN
|
||||||
|
// uid: localStorage.getItem('uid') // USER UID
|
||||||
|
// }
|
||||||
|
// topBarData.mutate(reqData)
|
||||||
|
// },[])
|
||||||
|
|
||||||
|
let reqData = {
|
||||||
token: localStorage.getItem('token'), // USER TOKEN
|
token: localStorage.getItem('token'), // USER TOKEN
|
||||||
uid: localStorage.getItem('uid') // USER UID
|
uid: localStorage.getItem('uid') // USER UID
|
||||||
}
|
}
|
||||||
topBarData.mutate(reqData)
|
const {data:topBarData, isFetching, isError, error} = useQuery({
|
||||||
},[])
|
queryKey: queryKeys.topBar,
|
||||||
|
queryFn: () => topBar(reqData)
|
||||||
const data = topBarData?.data?.data?.top_bar // top bar data
|
})
|
||||||
|
const data = topBarData?.data?.top_bar // top bar data
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{topBarData.isPending ?
|
{isFetching ?
|
||||||
<>
|
<>
|
||||||
<div className="col-12">
|
<div className="col-12">
|
||||||
<div className="card p-4">
|
<div className="card p-4">
|
||||||
@@ -38,10 +46,10 @@ export default function TopBar() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
: topBarData.error ?
|
: isError?
|
||||||
<div className="col-12">
|
<div className="col-12">
|
||||||
<div className="card p-4">
|
<div className="card p-4">
|
||||||
<p className='text-danger'>{topBarData.error.message}</p>
|
<p className='text-danger'>{error.message}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
:
|
:
|
||||||
|
|||||||
@@ -74,8 +74,8 @@ export default function UserHeader(){
|
|||||||
<div className="bg-gradient px-4 py-3">
|
<div className="bg-gradient px-4 py-3">
|
||||||
<div className="d-flex align-items-center justify-content-between">
|
<div className="d-flex align-items-center justify-content-between">
|
||||||
<div className="mr-1">
|
<div className="mr-1">
|
||||||
<h4 className="text-white mb-0 font-600">{userDetails?.firstname} {userDetails?.lastname}</h4>
|
<h5 className="text-white mb-0">{userDetails?.firstname} {userDetails?.lastname}</h5>
|
||||||
<p className="text-white font-600">{userDetails.email}</p>
|
<small className="text-white">{userDetails.email}</small>
|
||||||
</div>
|
</div>
|
||||||
<a href="#" onClick={logout} className="text-white font-20 tooltip-wrapper" data-toggle="tooltip"
|
<a href="#" onClick={logout} className="text-white font-20 tooltip-wrapper" data-toggle="tooltip"
|
||||||
data-placement="top" title="" data-original-title="Logout"> <i
|
data-placement="top" title="" data-original-title="Logout"> <i
|
||||||
@@ -92,10 +92,8 @@ export default function UserHeader(){
|
|||||||
<Link className="dropdown-item d-flex nav-link" to={siteLinks.settings}>
|
<Link className="dropdown-item d-flex nav-link" to={siteLinks.settings}>
|
||||||
<i className=" ti ti-settings pr-2 text-info"></i> Settings
|
<i className=" ti ti-settings pr-2 text-info"></i> Settings
|
||||||
</Link>
|
</Link>
|
||||||
<Link className="dropdown-item d-flex nav-link" to={siteLinks.help}>
|
<a className="dropdown-item d-flex nav-link" href="#">
|
||||||
<i className="fa fa-compass pr-2 text-warning"></i>
|
<i className="fa fa-compass pr-2 text-warning"></i> Need help?</a>
|
||||||
Need help?
|
|
||||||
</Link>
|
|
||||||
|
|
||||||
{/*<div className="row mt-2">*/}
|
{/*<div className="row mt-2">*/}
|
||||||
{/* <div className="col">*/}
|
{/* <div className="col">*/}
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ export default function ProductProvision(props){
|
|||||||
queryFn: () => productProvision(reqData)
|
queryFn: () => productProvision(reqData)
|
||||||
})
|
})
|
||||||
|
|
||||||
const provisionData = provision?.data
|
const provisionData = provision?.data?.provision
|
||||||
|
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
joinRoom(productSubUID); // provision subscription room
|
joinRoom(productSubUID); // provision subscription room
|
||||||
@@ -60,7 +60,7 @@ export default function ProductProvision(props){
|
|||||||
<div className="card-body">
|
<div className="card-body">
|
||||||
<div className="progress">
|
<div className="progress">
|
||||||
<div className="progress-bar progress-bar-striped progress-bar-animated" role="progressbar"
|
<div className="progress-bar progress-bar-striped progress-bar-animated" role="progressbar"
|
||||||
aria-valuenow={`${provisionData?.percent_completed}%`} aria-valuemin="0" aria-valuemax="100" style={{width:`${provisionData?.percent_completed}%`}} ></div>
|
aria-valuenow={`${provisionData.percent_completed}%`} aria-valuemin="0" aria-valuemax="100" style={{width:`${provisionData.percent_completed}%`}} ></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -111,7 +111,9 @@ export default function ProductProvision(props){
|
|||||||
<h4 className="card-title" style={{padding:'10px'}}>Started creating your selection</h4>
|
<h4 className="card-title" style={{padding:'10px'}}>Started creating your selection</h4>
|
||||||
<img className="card-img-top" src={getImage('widget/working.jpg')} alt="Card image cap" />
|
<img className="card-img-top" src={getImage('widget/working.jpg')} alt="Card image cap" />
|
||||||
<div className="card-body">
|
<div className="card-body">
|
||||||
<div className="" dangerouslySetInnerHTML={{__html: productDescription}}/>
|
<p>
|
||||||
|
{productDescription}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
+5
-3
@@ -1,9 +1,9 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom/client';
|
import ReactDOM from 'react-dom/client';
|
||||||
// import './index.css';
|
// import './index.css';
|
||||||
// import { Provider } from 'react-redux';
|
import { Provider } from 'react-redux';
|
||||||
// import store from './store/store'
|
|
||||||
import { BrowserRouter } from 'react-router-dom';
|
import { BrowserRouter } from 'react-router-dom';
|
||||||
|
import store from './store/store'
|
||||||
|
|
||||||
import App from './App';
|
import App from './App';
|
||||||
//import reportWebVitals from './reportWebVitals';
|
//import reportWebVitals from './reportWebVitals';
|
||||||
@@ -17,7 +17,9 @@ const root = ReactDOM.createRoot(document.getElementById('root'));
|
|||||||
root.render(
|
root.render(
|
||||||
<React.StrictMode>
|
<React.StrictMode>
|
||||||
<BrowserRouter>
|
<BrowserRouter>
|
||||||
<App />
|
<Provider store={store}>
|
||||||
|
<App />
|
||||||
|
</Provider>
|
||||||
</BrowserRouter>
|
</BrowserRouter>
|
||||||
</React.StrictMode>
|
</React.StrictMode>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
const siteLinks = {
|
const siteLinks = {
|
||||||
error: '*',
|
error: '*',
|
||||||
help: '/help',
|
|
||||||
home: '/',
|
home: '/',
|
||||||
dash: '/dash',
|
dash: '/dash',
|
||||||
product: '/product/*',
|
product: '/product/*',
|
||||||
|
|||||||
+17
-17
@@ -99,6 +99,22 @@ export const contactData = (reqData) => {
|
|||||||
return postAuxEnd(`/panel/contacts`, postData, false)
|
return postAuxEnd(`/panel/contacts`, postData, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// FUNCTION TO GET DASHBOARD PRODUCT URL DATA SECTION
|
||||||
|
export const productsURL = (reqData) => {
|
||||||
|
let postData = {
|
||||||
|
...reqData,
|
||||||
|
}
|
||||||
|
return postAuxEnd(`/panel/account/products/url`, postData, false)
|
||||||
|
}
|
||||||
|
|
||||||
|
// FUNCTION TO GET DASHBOARD PRODUCT DATA SECTION
|
||||||
|
export const productsData = (reqData) => {
|
||||||
|
let postData = {
|
||||||
|
...reqData,
|
||||||
|
}
|
||||||
|
return postAuxEnd(`/panel/account/products`, postData, false)
|
||||||
|
}
|
||||||
|
|
||||||
// FUNCTION TO GET DASHBOARD RECENT ACTIONS SECTION
|
// FUNCTION TO GET DASHBOARD RECENT ACTIONS SECTION
|
||||||
export const recentActions = (reqData) => {
|
export const recentActions = (reqData) => {
|
||||||
let postData = {
|
let postData = {
|
||||||
@@ -110,29 +126,13 @@ export const recentActions = (reqData) => {
|
|||||||
return postAuxEnd(`/panel/account/actions`, postData, false)
|
return postAuxEnd(`/panel/account/actions`, postData, false)
|
||||||
}
|
}
|
||||||
|
|
||||||
// FUNCTION TO GET DASHBOARD PRODUCT DATA SECTION
|
|
||||||
export const productsData = (reqData) => {
|
|
||||||
let postData = {
|
|
||||||
...reqData,
|
|
||||||
}
|
|
||||||
return postAuxEnd(`/panel/account/products`, postData, false)
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// FUNCTION TO GET DASHBOARD PRODUCT URL DATA SECTION
|
|
||||||
export const productsURL = (reqData) => {
|
|
||||||
let postData = {
|
|
||||||
...reqData,
|
|
||||||
token: localStorage.getItem('token'), // USER TOKEN
|
|
||||||
uid: localStorage.getItem('uid') // USER UID
|
|
||||||
}
|
|
||||||
return postAuxEnd(`/panel/account/products/url`, postData, false)
|
|
||||||
// return getAuxEnd(`/panel/account/products/url`)
|
|
||||||
}
|
|
||||||
|
|
||||||
// FUNCTION TO REGISTER USER
|
// FUNCTION TO REGISTER USER
|
||||||
export const signUpUser = (reqData) => {
|
export const signUpUser = (reqData) => {
|
||||||
|
|||||||
@@ -1,7 +0,0 @@
|
|||||||
import HelpCom from '../component/help/HelpCom'
|
|
||||||
|
|
||||||
export default function HelpPage() {
|
|
||||||
return (
|
|
||||||
<HelpCom />
|
|
||||||
)
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user