first commit
This commit is contained in:
@@ -7,7 +7,11 @@ REACT_APP_APPSITE=" https://myfitapp.mermsemr.com"
|
|||||||
#REACT_APP_APPSITE="http://localhost:7012"
|
#REACT_APP_APPSITE="http://localhost:7012"
|
||||||
|
|
||||||
|
|
||||||
REACT_APP_AUX_ENDPOINT = "https://devapi.mermsemr.com/en/desktop/api/v2/myfit"
|
REACT_APP_AUX_ENDPOINT = "http://10.20.30.32:9083/svs/user"
|
||||||
REACT_APP_USERS_ENDPOINT = "https://devapi.mermsemr.com/en/desktop/api/v2/myfituser"
|
REACT_APP_USERS_ENDPOINT = "http://10.20.30.32:9083/svs/user"
|
||||||
|
#"https://devapi.mermsemr.com/en/desktop/api/v2/myfituser"
|
||||||
|
|
||||||
REACT_APP_SESSION_EXPIRE_MINUTES = 5
|
REACT_APP_SESSION_EXPIRE_MINUTES = 5
|
||||||
|
|
||||||
|
#apigate.lotus.g1.wrenchboard.com:76.209.103.227
|
||||||
|
#apigate.orion.g1.wrenchboard.com:76.209.103.227
|
||||||
|
|||||||
+2
-1
@@ -10,7 +10,8 @@
|
|||||||
|
|
||||||
# production
|
# production
|
||||||
/build
|
/build
|
||||||
|
/.idea
|
||||||
|
/.vscode
|
||||||
# misc
|
# misc
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.env.local
|
.env.local
|
||||||
|
|||||||
Vendored
+1
-1
@@ -8,7 +8,7 @@
|
|||||||
},
|
},
|
||||||
"[javascriptreact]": {
|
"[javascriptreact]": {
|
||||||
"editor.formatOnSave": true,
|
"editor.formatOnSave": true,
|
||||||
"editor.defaultFormatter": null
|
"editor.defaultFormatter": "esbenp.prettier-vscode"
|
||||||
},
|
},
|
||||||
"javascript.validate.enable": false, //disable all built-in syntax checking
|
"javascript.validate.enable": false, //disable all built-in syntax checking
|
||||||
"editor.codeActionsOnSave": {
|
"editor.codeActionsOnSave": {
|
||||||
|
|||||||
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
version: '3'
|
version: '3'
|
||||||
services:
|
services:
|
||||||
user-myfit:
|
user-wrench:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: docker/Dockerfile
|
dockerfile: docker/Dockerfile
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- 7012:3000
|
- 5010:3000
|
||||||
# - 3800:3011
|
# - 3800:3011
|
||||||
# stdin_open: true
|
# stdin_open: true
|
||||||
working_dir: /usr/src/app
|
working_dir: /usr/src/app
|
||||||
|
|||||||
+11
-28
@@ -5,38 +5,21 @@
|
|||||||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<meta name="theme-color" content="#000000" />
|
<meta name="theme-color" content="#000000" />
|
||||||
<meta name="description" content="Cloud-based electronic health record platform for all users. patient health record, family health record">
|
|
||||||
<meta name="developed" content="MERMS-myFit" />
|
|
||||||
<meta name="published" content="MERMS-myFit" />
|
|
||||||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
|
||||||
<!--
|
|
||||||
manifest.json provides metadata used when your web app is installed on a
|
|
||||||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
|
||||||
-->
|
|
||||||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
|
||||||
<!--
|
|
||||||
Notice the use of %PUBLIC_URL% in the tags above.
|
|
||||||
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.
|
|
||||||
|
|
||||||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
|
|
||||||
work correctly both with client-side routing and a non-root public URL.
|
<meta name="description" content="wrenchboard.com is an online marketplace to make money from your skills, find, buy and sell professional services. Connect with freelancers to get work done faster. Trade your freelance services."/>
|
||||||
Learn how to configure a non-root public URL by running `npm run build`.
|
<meta name="title" content="WrenchBoard: Find a Freelancer | Sell Professional Services"/><meta name="keywords" content="Online Jobs, Online Workers, work online Nigeria, hire a freelancer, hire freelancers, freelance marketplace, freelancer hire, freelance service, freelance professional services, How to make money online, find workers online, Online Services, digital services, freelancers community in Ghana, freelancers community in Nigeria, freelancer site in Africa, Best freelance website in Africa, Freelance Designers, Photographers, Writers in Nigeria, freelancers, freelance outsourcing in Nigeria, freelance IT services in Nigeria, hire freelancers online in Nigeria, freelance services online in Nigeria, freelance contractor in Nigeria, freelance sites in Nigeria, freelance jobs in Nigeria, freelance projects in Nigeria, freelance jobs online in Nigeria, professional freelancers in Nigeria, buy professional services in Nigeria, professional services jobs, professional business services, professional service providers in Nigeria, freelancing services, freelancing sites in Nigeria, freelancers for hire in Nigeria, freelancer search in Nigeria, search freelancer in Nigeria, find freelancers in Nigeria, Find workers US. Outsource from US to Nigeria, find a freelancer in Nigeria, freelancing projects in Nigeria, web freelancing in Nigeria, outsourcing sites freelancers in Nigeria, website for freelancers in Nigeria, marketplace for freelancers "/>
|
||||||
-->
|
<link rel="manifest" href="/manifest.json"/>
|
||||||
<title>myFit</title>
|
<script>
|
||||||
|
!function(e,a,t,n,g,c,o){e.GoogleAnalyticsObject=g,e.ga=e.ga||function(){(e.ga.q=e.ga.q||[]).push(arguments)},e.ga.l=1*new Date,c=a.createElement(t),o=a.getElementsByTagName(t)[0],c.async=1,c.src="https://www.google-analytics.com/analytics.js",o.parentNode.insertBefore(c,o)}(window,document,"script",0,"ga"),ga("create","UA-54829827-4","auto"),ga("send","pageview")</script><script defer="defer" src="/static/js/main.787e423f.js"></script><link href="/static/css/main.418eaf65.css" rel="stylesheet"></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body><script>var LHC_API=LHC_API||{};LHC_API.args={mode:"widget",lhc_base_url:"//chat.live.wrenchboard.com/",wheight:450,wwidth:350,pheight:520,pwidth:500,leaveamessage:!0,check_messages:!1},function(){var e=document.createElement("script");e.type="text/javascript",e.setAttribute("crossorigin","anonymous"),e.async=!0;var t=new Date;e.src="//chat.live.wrenchboard.com/design/defaulttheme/js/widgetv2/index.js?"+t.getFullYear()+t.getMonth()+t.getDate();var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(e,a)}()
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
||||||
|
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
|
||||||
|
<title>WrenchBoard</title>
|
||||||
</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.
|
|
||||||
If you open it directly in the browser, you will see an empty page.
|
|
||||||
|
|
||||||
You can add webfonts, meta tags, or analytics to this file.
|
|
||||||
The build step will place the bundled scripts into the <body> tag.
|
|
||||||
|
|
||||||
To begin the development, run `npm start` or `yarn start`.
|
|
||||||
To create a production bundle, use `npm run build` or `yarn build`.
|
|
||||||
-->
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -62,6 +62,9 @@ export default function Routers() {
|
|||||||
<Route exact path="/resources" element={<ResourcePage />} />
|
<Route exact path="/resources" element={<ResourcePage />} />
|
||||||
<Route exact path="/my-wallet" element={<MyWalletPage />} />
|
<Route exact path="/my-wallet" element={<MyWalletPage />} />
|
||||||
<Route exact path="/notification" element={<Notification />} />
|
<Route exact path="/notification" element={<Notification />} />
|
||||||
|
<Route exact path="/market-place" element={<MarketPlacePage />} />
|
||||||
|
<Route exact path="/notification" element={<Notification />} />
|
||||||
|
<Route exact path="/my-wallet" element={<MyWalletPage />} />
|
||||||
<Route
|
<Route
|
||||||
exact
|
exact
|
||||||
path="/my-collection/collection-item"
|
path="/my-collection/collection-item"
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 3.3 KiB |
@@ -1,6 +1,6 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import loginThumb from "../../assets/images/auth-thumb.svg";
|
import loginThumb from "../../assets/images/auth-thumb.svg";
|
||||||
import logo from "../../assets/images/light-logo.png"; //logo-1.svg";
|
import logo from "../../assets/images/wrenchboard.png"; //logo-1.svg";
|
||||||
|
|
||||||
export default function LoginLayout({ slogan, children }) {
|
export default function LoginLayout({ slogan, children }) {
|
||||||
const checkScreenHeight = window.screen.height;
|
const checkScreenHeight = window.screen.height;
|
||||||
@@ -15,21 +15,7 @@ export default function LoginLayout({ slogan, children }) {
|
|||||||
<div className="layout-wrapper">
|
<div className="layout-wrapper">
|
||||||
<div className={`main-wrapper w-full ${screen}`}>
|
<div className={`main-wrapper w-full ${screen}`}>
|
||||||
<div className="flex w-full h-full">
|
<div className="flex w-full h-full">
|
||||||
<div className="xl:flex hidden w-1/2 h-full p-[70px] flex-col justify-between primary-home">
|
|
||||||
{/*
|
|
||||||
<div className="logo">
|
|
||||||
<img src={logo} alt="logo" />
|
|
||||||
</div>
|
|
||||||
*/}
|
|
||||||
<div className="thumbnail flex justify-center">
|
|
||||||
{/* <img src={loginThumb} alt="login-thumb" />*/}
|
|
||||||
</div>
|
|
||||||
<div className="article w-[600px]">
|
|
||||||
<p className="text-[60px] font-bold leading-[72px] text-white">
|
|
||||||
{slogan}
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="flex-1 flex justify-center items-center">
|
<div className="flex-1 flex justify-center items-center">
|
||||||
{children && children}
|
{children && children}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -35,13 +35,26 @@ export default function Login() {
|
|||||||
if (email !== "" && password !== "") {
|
if (email !== "" && password !== "") {
|
||||||
var postData = {
|
var postData = {
|
||||||
username: email,
|
username: email,
|
||||||
password: password
|
password: password,
|
||||||
|
sessionid: 'STARTING'
|
||||||
};
|
};
|
||||||
const loginResult = await userApi.logInUser(postData); // just for a test
|
const loginResult = await userApi.logInUser(postData); // just for a test
|
||||||
|
//debugger;
|
||||||
// if (email === "support@mermsemr.com") {
|
// if (email === "support@mermsemr.com") {
|
||||||
if (loginResult.data.status > 0 && loginResult.data.session_token !='') { // just for a start
|
if (loginResult.data.status > 0 && loginResult.data.internal_return ==100 && loginResult.data.session !='') { // just for a start
|
||||||
localStorage.setItem("email", `${email}`);
|
localStorage.setItem("email", `${loginResult.data.email}`);
|
||||||
localStorage.setItem("session_token", `${loginResult.data.session_token}`);
|
localStorage.setItem("member_id", `${loginResult.data.member_id}`);
|
||||||
|
localStorage.setItem("uid", `${loginResult.data.uid}`);
|
||||||
|
localStorage.setItem("session_token", `${loginResult.data.session}`);
|
||||||
|
localStorage.setItem("added", `${loginResult.data.added}`);
|
||||||
|
localStorage.setItem("city", `${loginResult.data.city}`);
|
||||||
|
localStorage.setItem("country", `${loginResult.data.country}`);
|
||||||
|
localStorage.setItem("firstname", `${loginResult.data.firstname}`);
|
||||||
|
localStorage.setItem("last_login", `${loginResult.data.last_login}`);
|
||||||
|
localStorage.setItem("lastname", `${loginResult.data.lastname}`);
|
||||||
|
localStorage.setItem("state", `${loginResult.data.state}`);
|
||||||
|
localStorage.setItem("zip_code", `${loginResult.data.zip_code}`);
|
||||||
|
localStorage.setItem("session", `${loginResult.data.session}`);
|
||||||
setLoginLoading(true);
|
setLoginLoading(true);
|
||||||
// userApi.getUserReminders(); //testing
|
// userApi.getUserReminders(); //testing
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
@@ -67,9 +80,6 @@ export default function Login() {
|
|||||||
<h1 className="text-5xl font-bold leading-[74px] text-dark-gray dark:text-white">
|
<h1 className="text-5xl font-bold leading-[74px] text-dark-gray dark:text-white">
|
||||||
Log In
|
Log In
|
||||||
</h1>
|
</h1>
|
||||||
<div className="shape mb-[10px]">
|
|
||||||
<img src={titleShape} alt="shape" />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div className="input-area">
|
<div className="input-area">
|
||||||
<div className="input-item mb-5">
|
<div className="input-item mb-5">
|
||||||
@@ -143,6 +153,7 @@ export default function Login() {
|
|||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
{loginError && <p class="text-center text-red-700 pb-4">Invalid username or password</p>}
|
{loginError && <p class="text-center text-red-700 pb-4">Invalid username or password</p>}
|
||||||
|
<div className="flex justify-center bottomMargin">
|
||||||
<a
|
<a
|
||||||
href="#"
|
href="#"
|
||||||
className="w-full border border-light-purple dark:border-[#5356fb29] rounded-[50px] h-[58px] flex justify-center bg-[#FAFAFA] dark:bg-[#11131F] items-center"
|
className="w-full border border-light-purple dark:border-[#5356fb29] rounded-[50px] h-[58px] flex justify-center bg-[#FAFAFA] dark:bg-[#11131F] items-center"
|
||||||
@@ -153,6 +164,29 @@ export default function Login() {
|
|||||||
</span>
|
</span>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="flex justify-center bottomMargin">
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
className="w-full border border-light-purple dark:border-[#5356fb29] rounded-[50px] h-[58px] flex justify-center bg-[#FAFAFA] dark:bg-[#11131F] items-center"
|
||||||
|
>
|
||||||
|
<img className="mr-3" src={googleLogo} alt="google logo" />
|
||||||
|
<span className="text-lg text-thin-light-gray font-normal">
|
||||||
|
Sign In with faceBook
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div className="flex justify-center bottomMargin">
|
||||||
|
<a
|
||||||
|
href="#"
|
||||||
|
className="w-full border border-light-purple dark:border-[#5356fb29] rounded-[50px] h-[58px] flex justify-center bg-[#FAFAFA] dark:bg-[#11131F] items-center"
|
||||||
|
>
|
||||||
|
<img className="mr-3" src={googleLogo} alt="google logo" />
|
||||||
|
<span className="text-lg text-thin-light-gray font-normal">
|
||||||
|
Sign In with Apple
|
||||||
|
</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div className="signup-area flex justify-center">
|
<div className="signup-area flex justify-center">
|
||||||
<p className="sm:text-lg text-sm text-thin-light-gray font-normal">
|
<p className="sm:text-lg text-sm text-thin-light-gray font-normal">
|
||||||
Don't have an account ?
|
Don't have an account ?
|
||||||
|
|||||||
@@ -15,21 +15,6 @@ export default function SignUp() {
|
|||||||
<div className="layout-wrapper">
|
<div className="layout-wrapper">
|
||||||
<div className="main-wrapper w-full xl:h-screen h-full xl:py-0 py-12">
|
<div className="main-wrapper w-full xl:h-screen h-full xl:py-0 py-12">
|
||||||
<div className="flex w-full h-full">
|
<div className="flex w-full h-full">
|
||||||
<div className="xl:flex hidden w-1/2 h-full p-[70px] flex-col justify-between primary-home">
|
|
||||||
{/*
|
|
||||||
<div className="logo">
|
|
||||||
<img src={logo} alt="logo" />
|
|
||||||
</div>
|
|
||||||
*/}
|
|
||||||
<div className="thumbnail flex justify-center">
|
|
||||||
{/*<img src={loginThumb} alt="login-thumb" /> */}
|
|
||||||
</div>
|
|
||||||
<div className="article w-[600px]">
|
|
||||||
<p className="text-[60px] font-bold leading-[72px] text-white">
|
|
||||||
Welcome to myFit
|
|
||||||
</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="flex-1 flex justify-center items-center">
|
<div className="flex-1 flex justify-center items-center">
|
||||||
<div className="content-wrapper xl:bg-white dark:bg-dark-white xl:px-7 px-5 2xl:px-[100px] h-[840px] rounded-xl flex flex-col justify-center">
|
<div className="content-wrapper xl:bg-white dark:bg-dark-white xl:px-7 px-5 2xl:px-[100px] h-[840px] rounded-xl flex flex-col justify-center">
|
||||||
<div>
|
<div>
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
import React from "react";
|
||||||
|
import { Link } from "react-router-dom";
|
||||||
|
import localImgLoad from "../../lib/localImgLoad";
|
||||||
|
|
||||||
|
export default function HomeJobCard(props) {
|
||||||
|
return (
|
||||||
|
<Link
|
||||||
|
to="/my-collection/collection-item"
|
||||||
|
className="item w-full block group"
|
||||||
|
>
|
||||||
|
<div className="flex flex-col justify-between h-full">
|
||||||
|
<div className="content flex justify-between items-center mb-5">
|
||||||
|
<div>
|
||||||
|
<h1 className="text-xl font-bold text-dark-gray dark:text-white tracking-wide">
|
||||||
|
<>{props?.title}</>
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
{/*<SelectBox datas={filterDatas} action={dataSetHandler} />*/}
|
||||||
|
</div>
|
||||||
|
<div className="h-[233px]">
|
||||||
|
BEST IMAGE IN THE WORLLD
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</Link>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
import React, { useState } from "react";
|
||||||
|
import MarketVisitorAnalytic from "../Charts/MarketVisitorAnalytic";
|
||||||
|
import SelectBox from "../Helpers/SelectBox";
|
||||||
|
import SellHistoryWidget from "./SellHistoryWidget";
|
||||||
|
import HomeJobCard from "../Cards/HomeJobCard";
|
||||||
|
|
||||||
|
export default function HomeTaskDisplay({ jobData,className }) {
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div
|
||||||
|
className={`sell-history-market-visitor-analytic w-full ${
|
||||||
|
className || ""
|
||||||
|
}`}
|
||||||
|
>
|
||||||
|
<div className="content-wrapper w-full lg:flex xl:space-x-8 lg:space-x-4 bottomMargin">
|
||||||
|
<div className="flex-1 ">
|
||||||
|
<div className="market-visitor w-full md:p-8 p-4 h-full bg-white dark:bg-dark-white overflow-hidden rounded-2xl section-shadow">
|
||||||
|
<HomeJobCard
|
||||||
|
title="Clean the whole house"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="lg:w-1/2 w-full mb-10 lg:mb-0">
|
||||||
|
<div className="market-visitor w-full md:p-8 p-4 h-full bg-white dark:bg-dark-white overflow-hidden rounded-2xl section-shadow">
|
||||||
|
<HomeJobCard
|
||||||
|
title="Clean the Town"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="content-wrapper w-full lg:flex xl:space-x-8 lg:space-x-4 bottomMargin">
|
||||||
|
<div className="flex-1 ">
|
||||||
|
<div className="market-visitor w-full md:p-8 p-4 h-full bg-white dark:bg-dark-white overflow-hidden rounded-2xl section-shadow">
|
||||||
|
<HomeJobCard
|
||||||
|
title="Clean the whole house"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div className="lg:w-1/2 w-full mb-10 lg:mb-0">
|
||||||
|
<div className="market-visitor w-full md:p-8 p-4 h-full bg-white dark:bg-dark-white overflow-hidden rounded-2xl section-shadow">
|
||||||
|
<HomeJobCard
|
||||||
|
title="Clean the Town"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
@@ -7,18 +7,29 @@ import SellHistoryMarketVisitorAnalytic from "./SellHistoryMarketVisitorAnalytic
|
|||||||
import TopSellerTopBuyerSliderSection from "./TopSellerTopBuyerSliderSection";
|
import TopSellerTopBuyerSliderSection from "./TopSellerTopBuyerSliderSection";
|
||||||
import TrendingSection from "./TrendingSection";
|
import TrendingSection from "./TrendingSection";
|
||||||
import UpdateTable from "./UpdateTable";
|
import UpdateTable from "./UpdateTable";
|
||||||
|
import HomeTaskDisplay from "./HomeTaskDisplay";
|
||||||
|
import UsersService from "../../services/UsersService";
|
||||||
|
import usersService from "../../services/UsersService";
|
||||||
|
|
||||||
export default function Home() {
|
export default function Home() {
|
||||||
const trending = datas.datas;
|
const trending = datas.datas;
|
||||||
|
const jobData = datas.datas; // api calls or cache
|
||||||
|
//getHomeDate
|
||||||
|
const userApi = new usersService();
|
||||||
|
const homeData = userApi.getHomeDate();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Layout>
|
<Layout>
|
||||||
<div className="home-page-wrapper">
|
<div className="home-page-wrapper">
|
||||||
{/* <Hero className="mb-10" />
|
<Hero className="mb-10" />
|
||||||
<CreateNft />
|
{/* <CreateNft />
|
||||||
<TrendingSection trending={trending} className="mb-10" />*/}
|
<TrendingSection trending={trending} className="mb-10" />*/}
|
||||||
<SellHistoryMarketVisitorAnalytic className="mb-10"/> {/* <TopSellerTopBuyerSliderSection className="mb-10" /> */}
|
<HomeTaskDisplay
|
||||||
<UpdateTable className="mb-10"/>
|
jobData={jobData}
|
||||||
|
className="mb-10"/>
|
||||||
|
{/* <SellHistoryMarketVisitorAnalytic className="mb-10"/>
|
||||||
|
<TopSellerTopBuyerSliderSection className="mb-10" />
|
||||||
|
<UpdateTable className="mb-10"/>*/}
|
||||||
</div>
|
</div>
|
||||||
</Layout>
|
</Layout>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -43,130 +43,6 @@ export default function RightSideBar() {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<div className="right-sidebar-wrapper overflow-y-scroll overflow-style-none 2xl:fixed 2xl:grid-cols-none 2xl:block grid lg:grid-cols-2 grid-cols-1 xl:gap-7 gap-4 h-full 2xl:pb-96">
|
<div className="right-sidebar-wrapper overflow-y-scroll overflow-style-none 2xl:fixed 2xl:grid-cols-none 2xl:block grid lg:grid-cols-2 grid-cols-1 xl:gap-7 gap-4 h-full 2xl:pb-96">
|
||||||
<div className="chart-one bg-white dark:bg-dark-white rounded-2xl p-8 2xl:w-[268px] w-full 2xl:mb-10 2xl:border-none border flex flex-col sm:flex-row 2xl:flex-col 2xl:block lg:justify-between sm:items-center space-x-5 2xl:space-x-0 ">
|
|
||||||
<div>
|
|
||||||
<div className="chart-heading mb-4 xl:flex justify-between items-center">
|
|
||||||
<h3 className="text-xl font-bold text-dark-gray dark:text-white">
|
|
||||||
Statistics
|
|
||||||
</h3>
|
|
||||||
<SelectBox datas={filterDatas} action={dataSetHandler} />
|
|
||||||
</div>
|
|
||||||
<div id="chartjs-tooltip" className="chart relative 2xl:mb-6">
|
|
||||||
<DoughnutChart dataSets={filterDataSet} />
|
|
||||||
<div className="sm:flex hidden absolute 2xl:top-[19%] 2xl:left-[20%] xl:top-[28%] xl:left-[28%] lg:left-[20%] lg:top-[20%] left-[30%] top-[30%] justify-center">
|
|
||||||
<span>
|
|
||||||
<svg
|
|
||||||
width="123"
|
|
||||||
height="123"
|
|
||||||
viewBox="0 0 123 123"
|
|
||||||
fill="none"
|
|
||||||
xmlns="http://www.w3.org/2000/svg"
|
|
||||||
>
|
|
||||||
<path
|
|
||||||
d="M70.7788 45.749C70.7788 46.2809 70.7788 46.5811 70.7788 46.8865C70.7788 59.9678 70.7735 73.0544 70.8052 86.1357C70.8052 87.0204 70.5881 87.2679 69.7035 87.2311C67.8601 87.1573 66.0167 87.1889 64.1733 87.2205C63.5324 87.2311 63.2464 87.1257 63.2517 86.3779C63.2781 74.7396 63.2728 63.1012 63.2728 51.4681C63.2728 51.0784 63.2623 50.7467 63.6807 50.4781C65.9849 48.9667 68.268 47.4237 70.7788 45.749Z"
|
|
||||||
fill="#ECECEC"
|
|
||||||
/>
|
|
||||||
<path
|
|
||||||
d="M81.6339 55.6284C81.6339 56.0918 81.6339 56.3604 81.6339 56.6343C81.6339 66.4663 81.6233 76.2983 81.6604 86.1304C81.6657 87.0098 81.4432 87.2574 80.5586 87.2258C78.6835 87.152 76.803 87.1731 74.9226 87.2205C74.2392 87.2363 74.1068 87.0046 74.1068 86.3832C74.128 78.0309 74.1227 69.6787 74.128 61.3265C74.128 61.021 74.0379 60.6893 74.3717 60.4628C76.75 58.8882 79.1178 57.3083 81.6339 55.6284Z"
|
|
||||||
fill="#ECECEC"
|
|
||||||
/>
|
|
||||||
<path
|
|
||||||
d="M56.158 64.1334C54.3623 64.1228 53.0433 62.8115 53.0698 60.942C53.0751 60.3891 52.9109 60.1258 52.4553 59.894C51.1046 59.2042 49.7591 58.4932 48.4296 57.756C47.9528 57.4926 47.6138 57.4505 47.1106 57.8086C45.8658 58.6933 44.2767 58.5512 43.1908 57.5769C42.1684 56.6606 41.8771 55.007 42.5233 53.7905C43.1855 52.5371 44.6581 51.8736 46.03 52.2106C47.5026 52.5687 48.456 53.7115 48.4243 55.2808C48.4137 55.8864 48.6308 56.1708 49.1129 56.4131C50.0293 56.8765 50.9351 57.3505 51.8356 57.8507C52.8844 58.4353 53.9067 59.2568 55.0827 58.093C55.1038 58.0719 55.1515 58.0561 55.1833 58.0561C57.0955 58.1983 57.4239 56.708 58.0384 55.4178C59.8765 51.5787 61.7781 47.7659 63.6586 43.9427C63.844 43.5635 64.0294 43.1843 64.2201 42.8051C64.665 41.9099 65.11 41.1463 64.2677 40.0825C63.4573 39.0661 63.9022 37.4336 64.861 36.5173C65.8568 35.5746 67.2765 35.3798 68.5001 36.017C69.729 36.6595 70.4229 38.0024 70.0415 39.4032C69.8349 40.1615 70.0574 40.5407 70.5818 40.9988C72.2557 42.4681 73.9031 43.969 75.524 45.4962C75.9424 45.8912 76.2656 45.9596 76.8164 45.749C78.199 45.2171 79.6821 45.7174 80.4661 46.8917C81.2236 48.0187 81.1388 49.6249 80.2754 50.636C79.3431 51.7261 77.8176 52.0474 76.5145 51.426C75.2167 50.8045 74.4646 49.4406 74.8671 48.0029C75.079 47.234 74.8512 46.8654 74.3321 46.4125C72.69 44.9643 71.0639 43.4898 69.4641 41.9889C69.0033 41.5518 68.5901 41.3253 68.0022 41.694C67.9439 41.7308 67.8644 41.7782 67.8062 41.7677C66.2435 41.4939 65.9204 42.7051 65.4278 43.7215C63.5103 47.6817 61.5768 51.6313 59.6699 55.5968C59.2991 56.3657 58.727 57.0187 58.4992 57.8876C58.3562 58.4353 58.3827 58.7513 58.7111 59.1989C59.4633 60.2206 59.5216 61.3686 58.9336 62.4903C58.3509 63.5857 57.3975 64.1176 56.158 64.1334Z"
|
|
||||||
fill="url(#paint0_linear_197_92226)"
|
|
||||||
/>
|
|
||||||
<path
|
|
||||||
d="M49.0697 62.2479C49.0697 68.0039 49.0697 73.5018 49.0697 78.9998C49.0697 81.4696 49.0485 83.9342 49.0856 86.4041C49.0962 87.0676 48.8949 87.2362 48.2434 87.2204C46.2941 87.1782 44.3395 87.1835 42.3901 87.2204C41.7863 87.2309 41.532 87.1203 41.5373 86.4252C41.5691 80.2531 41.5532 74.0811 41.5585 67.9091C41.5585 67.6037 41.4896 67.293 41.8339 67.0613C44.1911 65.513 46.5324 63.9436 49.0697 62.2479Z"
|
|
||||||
fill="#ECECEC"
|
|
||||||
/>
|
|
||||||
<path
|
|
||||||
d="M59.9298 68.0092C59.9298 74.355 59.9245 80.4796 59.9351 86.6042C59.9351 87.0518 59.7973 87.2203 59.3312 87.2151C57.2071 87.194 55.083 87.1993 52.9589 87.2151C52.5457 87.2203 52.408 87.0729 52.408 86.6674C52.4186 82.2648 52.4186 77.8675 52.4133 73.465C52.4133 73.149 52.5298 72.9489 52.7946 72.7751C55.1095 71.2321 57.419 69.6838 59.9298 68.0092Z"
|
|
||||||
fill="#ECECEC"
|
|
||||||
/>
|
|
||||||
<path
|
|
||||||
d="M30.9572 92.2319C14.058 75.3327 14.058 47.8462 30.9572 30.947C47.8564 14.0478 75.3428 14.0478 92.242 30.947C109.141 47.8462 109.141 75.3327 92.242 92.2319C75.3428 109.131 47.8564 109.131 30.9572 92.2319ZM90.691 32.498C74.655 16.462 48.5577 16.4485 32.5082 32.498C16.4722 48.534 16.4722 74.6448 32.5082 90.6809C48.5442 106.717 74.655 106.717 90.691 90.6809C106.727 74.6448 106.727 48.534 90.691 32.498Z"
|
|
||||||
fill="#EBEDED"
|
|
||||||
/>
|
|
||||||
<defs>
|
|
||||||
<linearGradient
|
|
||||||
id="paint0_linear_197_92226"
|
|
||||||
x1="42.1803"
|
|
||||||
y1="35.6461"
|
|
||||||
x2="71.0724"
|
|
||||||
y2="74.1629"
|
|
||||||
gradientUnits="userSpaceOnUse"
|
|
||||||
>
|
|
||||||
<stop stopColor="#F539F8" />
|
|
||||||
<stop offset="0.416763" stopColor="#C342F9" />
|
|
||||||
<stop offset="1" stopColor="#5356FB" />
|
|
||||||
</linearGradient>
|
|
||||||
</defs>
|
|
||||||
</svg>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div className="chart-analysis mt-5">
|
|
||||||
<div className="heading text-center">
|
|
||||||
<h1 className="text-base font-medium text-dark-gray dark:text-white mb-4">
|
|
||||||
Your All Artwork Statistics
|
|
||||||
</h1>
|
|
||||||
</div>
|
|
||||||
<div className="analysis-list">
|
|
||||||
<ul>
|
|
||||||
<li className="flex items-center mb-3.5">
|
|
||||||
<span className="w-4 h-4 bg-light-purple rounded-full block mr-2"></span>
|
|
||||||
<div>
|
|
||||||
<span className="text-sm text-thin-light-gray mr-2">
|
|
||||||
Profit :
|
|
||||||
</span>
|
|
||||||
<span className="text-sm text-dark-gray dark:text-white font-bold">
|
|
||||||
{/* don't change variable only change state */}
|
|
||||||
{filterDataSet[0]}%
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li className="flex items-center mb-3.5">
|
|
||||||
<span className="w-4 h-4 bg-purple rounded-full block mr-2"></span>
|
|
||||||
<div>
|
|
||||||
<span className="text-sm text-thin-light-gray mr-2">
|
|
||||||
Total Sold :
|
|
||||||
</span>
|
|
||||||
<span className="text-sm text-dark-gray dark:text-white font-bold">
|
|
||||||
{/* don't change variable only change state */}
|
|
||||||
{filterDataSet[1]}%
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li className="flex items-center mb-3.5">
|
|
||||||
<span className="w-4 h-4 bg-pink rounded-full block mr-2"></span>
|
|
||||||
<div>
|
|
||||||
<span className="text-sm text-thin-light-gray mr-2">
|
|
||||||
Total Sold :
|
|
||||||
</span>
|
|
||||||
<span className="text-sm text-dark-gray dark:text-white font-bold">
|
|
||||||
{/* don't change variable only change state */}
|
|
||||||
{filterDataSet[2]}%
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<li className="flex items-center mb-3.5">
|
|
||||||
<span className="w-4 h-4 bg-[#FFCD00] rounded-full block mr-2"></span>
|
|
||||||
<div>
|
|
||||||
<span className="text-sm text-thin-light-gray mr-2">
|
|
||||||
Total Sold :
|
|
||||||
</span>
|
|
||||||
<span className="text-sm text-dark-gray dark:text-white font-bold">
|
|
||||||
{/* don't change variable only change state */}
|
|
||||||
{filterDataSet[3]}%
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* top-platform */}
|
|
||||||
<div className="top-platform bg-white dark:bg-dark-white rounded-2xl p-8 2xl:w-[268px] w-full 2xl:mb-10 2xl:border-none border ">
|
<div className="top-platform bg-white dark:bg-dark-white rounded-2xl p-8 2xl:w-[268px] w-full 2xl:mb-10 2xl:border-none border ">
|
||||||
{/* heading */}
|
{/* heading */}
|
||||||
<div className="heading flex justify-between items-center mb-3.5">
|
<div className="heading flex justify-between items-center mb-3.5">
|
||||||
@@ -316,6 +192,129 @@ export default function RightSideBar() {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div className="chart-one bg-white dark:bg-dark-white rounded-2xl p-8 2xl:w-[268px] w-full 2xl:mb-10 2xl:border-none border flex flex-col sm:flex-row 2xl:flex-col 2xl:block lg:justify-between sm:items-center space-x-5 2xl:space-x-0 ">
|
||||||
|
<div>
|
||||||
|
<div className="chart-heading mb-4 xl:flex justify-between items-center">
|
||||||
|
<h3 className="text-xl font-bold text-dark-gray dark:text-white">
|
||||||
|
Statistics
|
||||||
|
</h3>
|
||||||
|
<SelectBox datas={filterDatas} action={dataSetHandler} />
|
||||||
|
</div>
|
||||||
|
<div id="chartjs-tooltip" className="chart relative 2xl:mb-6">
|
||||||
|
<DoughnutChart dataSets={filterDataSet} />
|
||||||
|
<div className="sm:flex hidden absolute 2xl:top-[19%] 2xl:left-[20%] xl:top-[28%] xl:left-[28%] lg:left-[20%] lg:top-[20%] left-[30%] top-[30%] justify-center">
|
||||||
|
<span>
|
||||||
|
<svg
|
||||||
|
width="123"
|
||||||
|
height="123"
|
||||||
|
viewBox="0 0 123 123"
|
||||||
|
fill="none"
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
>
|
||||||
|
<path
|
||||||
|
d="M70.7788 45.749C70.7788 46.2809 70.7788 46.5811 70.7788 46.8865C70.7788 59.9678 70.7735 73.0544 70.8052 86.1357C70.8052 87.0204 70.5881 87.2679 69.7035 87.2311C67.8601 87.1573 66.0167 87.1889 64.1733 87.2205C63.5324 87.2311 63.2464 87.1257 63.2517 86.3779C63.2781 74.7396 63.2728 63.1012 63.2728 51.4681C63.2728 51.0784 63.2623 50.7467 63.6807 50.4781C65.9849 48.9667 68.268 47.4237 70.7788 45.749Z"
|
||||||
|
fill="#ECECEC"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M81.6339 55.6284C81.6339 56.0918 81.6339 56.3604 81.6339 56.6343C81.6339 66.4663 81.6233 76.2983 81.6604 86.1304C81.6657 87.0098 81.4432 87.2574 80.5586 87.2258C78.6835 87.152 76.803 87.1731 74.9226 87.2205C74.2392 87.2363 74.1068 87.0046 74.1068 86.3832C74.128 78.0309 74.1227 69.6787 74.128 61.3265C74.128 61.021 74.0379 60.6893 74.3717 60.4628C76.75 58.8882 79.1178 57.3083 81.6339 55.6284Z"
|
||||||
|
fill="#ECECEC"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M56.158 64.1334C54.3623 64.1228 53.0433 62.8115 53.0698 60.942C53.0751 60.3891 52.9109 60.1258 52.4553 59.894C51.1046 59.2042 49.7591 58.4932 48.4296 57.756C47.9528 57.4926 47.6138 57.4505 47.1106 57.8086C45.8658 58.6933 44.2767 58.5512 43.1908 57.5769C42.1684 56.6606 41.8771 55.007 42.5233 53.7905C43.1855 52.5371 44.6581 51.8736 46.03 52.2106C47.5026 52.5687 48.456 53.7115 48.4243 55.2808C48.4137 55.8864 48.6308 56.1708 49.1129 56.4131C50.0293 56.8765 50.9351 57.3505 51.8356 57.8507C52.8844 58.4353 53.9067 59.2568 55.0827 58.093C55.1038 58.0719 55.1515 58.0561 55.1833 58.0561C57.0955 58.1983 57.4239 56.708 58.0384 55.4178C59.8765 51.5787 61.7781 47.7659 63.6586 43.9427C63.844 43.5635 64.0294 43.1843 64.2201 42.8051C64.665 41.9099 65.11 41.1463 64.2677 40.0825C63.4573 39.0661 63.9022 37.4336 64.861 36.5173C65.8568 35.5746 67.2765 35.3798 68.5001 36.017C69.729 36.6595 70.4229 38.0024 70.0415 39.4032C69.8349 40.1615 70.0574 40.5407 70.5818 40.9988C72.2557 42.4681 73.9031 43.969 75.524 45.4962C75.9424 45.8912 76.2656 45.9596 76.8164 45.749C78.199 45.2171 79.6821 45.7174 80.4661 46.8917C81.2236 48.0187 81.1388 49.6249 80.2754 50.636C79.3431 51.7261 77.8176 52.0474 76.5145 51.426C75.2167 50.8045 74.4646 49.4406 74.8671 48.0029C75.079 47.234 74.8512 46.8654 74.3321 46.4125C72.69 44.9643 71.0639 43.4898 69.4641 41.9889C69.0033 41.5518 68.5901 41.3253 68.0022 41.694C67.9439 41.7308 67.8644 41.7782 67.8062 41.7677C66.2435 41.4939 65.9204 42.7051 65.4278 43.7215C63.5103 47.6817 61.5768 51.6313 59.6699 55.5968C59.2991 56.3657 58.727 57.0187 58.4992 57.8876C58.3562 58.4353 58.3827 58.7513 58.7111 59.1989C59.4633 60.2206 59.5216 61.3686 58.9336 62.4903C58.3509 63.5857 57.3975 64.1176 56.158 64.1334Z"
|
||||||
|
fill="url(#paint0_linear_197_92226)"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M49.0697 62.2479C49.0697 68.0039 49.0697 73.5018 49.0697 78.9998C49.0697 81.4696 49.0485 83.9342 49.0856 86.4041C49.0962 87.0676 48.8949 87.2362 48.2434 87.2204C46.2941 87.1782 44.3395 87.1835 42.3901 87.2204C41.7863 87.2309 41.532 87.1203 41.5373 86.4252C41.5691 80.2531 41.5532 74.0811 41.5585 67.9091C41.5585 67.6037 41.4896 67.293 41.8339 67.0613C44.1911 65.513 46.5324 63.9436 49.0697 62.2479Z"
|
||||||
|
fill="#ECECEC"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M59.9298 68.0092C59.9298 74.355 59.9245 80.4796 59.9351 86.6042C59.9351 87.0518 59.7973 87.2203 59.3312 87.2151C57.2071 87.194 55.083 87.1993 52.9589 87.2151C52.5457 87.2203 52.408 87.0729 52.408 86.6674C52.4186 82.2648 52.4186 77.8675 52.4133 73.465C52.4133 73.149 52.5298 72.9489 52.7946 72.7751C55.1095 71.2321 57.419 69.6838 59.9298 68.0092Z"
|
||||||
|
fill="#ECECEC"
|
||||||
|
/>
|
||||||
|
<path
|
||||||
|
d="M30.9572 92.2319C14.058 75.3327 14.058 47.8462 30.9572 30.947C47.8564 14.0478 75.3428 14.0478 92.242 30.947C109.141 47.8462 109.141 75.3327 92.242 92.2319C75.3428 109.131 47.8564 109.131 30.9572 92.2319ZM90.691 32.498C74.655 16.462 48.5577 16.4485 32.5082 32.498C16.4722 48.534 16.4722 74.6448 32.5082 90.6809C48.5442 106.717 74.655 106.717 90.691 90.6809C106.727 74.6448 106.727 48.534 90.691 32.498Z"
|
||||||
|
fill="#EBEDED"
|
||||||
|
/>
|
||||||
|
<defs>
|
||||||
|
<linearGradient
|
||||||
|
id="paint0_linear_197_92226"
|
||||||
|
x1="42.1803"
|
||||||
|
y1="35.6461"
|
||||||
|
x2="71.0724"
|
||||||
|
y2="74.1629"
|
||||||
|
gradientUnits="userSpaceOnUse"
|
||||||
|
>
|
||||||
|
<stop stopColor="#F539F8" />
|
||||||
|
<stop offset="0.416763" stopColor="#C342F9" />
|
||||||
|
<stop offset="1" stopColor="#5356FB" />
|
||||||
|
</linearGradient>
|
||||||
|
</defs>
|
||||||
|
</svg>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div className="chart-analysis mt-5">
|
||||||
|
<div className="heading text-center">
|
||||||
|
<h1 className="text-base font-medium text-dark-gray dark:text-white mb-4">
|
||||||
|
Your All Artwork Statistics
|
||||||
|
</h1>
|
||||||
|
</div>
|
||||||
|
<div className="analysis-list">
|
||||||
|
<ul>
|
||||||
|
<li className="flex items-center mb-3.5">
|
||||||
|
<span className="w-4 h-4 bg-light-purple rounded-full block mr-2"></span>
|
||||||
|
<div>
|
||||||
|
<span className="text-sm text-thin-light-gray mr-2">
|
||||||
|
Profit :
|
||||||
|
</span>
|
||||||
|
<span className="text-sm text-dark-gray dark:text-white font-bold">
|
||||||
|
{/* don't change variable only change state */}
|
||||||
|
{filterDataSet[0]}%
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li className="flex items-center mb-3.5">
|
||||||
|
<span className="w-4 h-4 bg-purple rounded-full block mr-2"></span>
|
||||||
|
<div>
|
||||||
|
<span className="text-sm text-thin-light-gray mr-2">
|
||||||
|
Total Sold :
|
||||||
|
</span>
|
||||||
|
<span className="text-sm text-dark-gray dark:text-white font-bold">
|
||||||
|
{/* don't change variable only change state */}
|
||||||
|
{filterDataSet[1]}%
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li className="flex items-center mb-3.5">
|
||||||
|
<span className="w-4 h-4 bg-pink rounded-full block mr-2"></span>
|
||||||
|
<div>
|
||||||
|
<span className="text-sm text-thin-light-gray mr-2">
|
||||||
|
Total Sold :
|
||||||
|
</span>
|
||||||
|
<span className="text-sm text-dark-gray dark:text-white font-bold">
|
||||||
|
{/* don't change variable only change state */}
|
||||||
|
{filterDataSet[2]}%
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<li className="flex items-center mb-3.5">
|
||||||
|
<span className="w-4 h-4 bg-[#FFCD00] rounded-full block mr-2"></span>
|
||||||
|
<div>
|
||||||
|
<span className="text-sm text-thin-light-gray mr-2">
|
||||||
|
Total Sold :
|
||||||
|
</span>
|
||||||
|
<span className="text-sm text-dark-gray dark:text-white font-bold">
|
||||||
|
{/* don't change variable only change state */}
|
||||||
|
{filterDataSet[3]}%
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import React, { useContext, useEffect } from "react";
|
import React, { useContext, useEffect } from "react";
|
||||||
import { NavLink } from "react-router-dom";
|
import { NavLink } from "react-router-dom";
|
||||||
import logo from "../../assets/images/myfit-logo-2.png"; //logo-2.svg";
|
import logo from "../../assets/images/wrenchboard.png"; //logo-2.svg";
|
||||||
import logo3 from "../../assets/images/myfit-logo-2.png"; //logo-3.svg";
|
import logo3 from "../../assets/images/wrenchboard.png"; //logo-3.svg";
|
||||||
import DarkModeContext from "../Contexts/DarkModeContext";
|
import DarkModeContext from "../Contexts/DarkModeContext";
|
||||||
import Icons from "../Helpers/Icons";
|
import Icons from "../Helpers/Icons";
|
||||||
|
|
||||||
@@ -115,7 +115,7 @@ export default function Sidebar({ sidebar, action, logoutModalHandler }) {
|
|||||||
</li>
|
</li>
|
||||||
<li className="item group">
|
<li className="item group">
|
||||||
<NavLink
|
<NavLink
|
||||||
to="/reminders"
|
to="/market-place"
|
||||||
className={`nav-item flex items-center ${
|
className={`nav-item flex items-center ${
|
||||||
((navData) => (navData.isActive ? "active" : ""),
|
((navData) => (navData.isActive ? "active" : ""),
|
||||||
sidebar ? "justify-start space-x-3.5" : "justify-center")
|
sidebar ? "justify-start space-x-3.5" : "justify-center")
|
||||||
@@ -129,7 +129,7 @@ export default function Sidebar({ sidebar, action, logoutModalHandler }) {
|
|||||||
sidebar ? "active flex-1" : "w-0"
|
sidebar ? "active flex-1" : "w-0"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
Reminders
|
Market
|
||||||
<span className="absolute left-24 -top-1 text-sm flex justify-center items-center w-5 h-5 primary-gradient rounded-full text-white">
|
<span className="absolute left-24 -top-1 text-sm flex justify-center items-center w-5 h-5 primary-gradient rounded-full text-white">
|
||||||
0
|
0
|
||||||
</span>
|
</span>
|
||||||
@@ -138,7 +138,7 @@ export default function Sidebar({ sidebar, action, logoutModalHandler }) {
|
|||||||
</li>
|
</li>
|
||||||
<li className="item group">
|
<li className="item group">
|
||||||
<NavLink
|
<NavLink
|
||||||
to="/tracking"
|
to="/notification"
|
||||||
className={`nav-item flex items-center ${
|
className={`nav-item flex items-center ${
|
||||||
((navData) => (navData.isActive ? "active" : ""),
|
((navData) => (navData.isActive ? "active" : ""),
|
||||||
sidebar ? "justify-start space-x-3.5" : "justify-center")
|
sidebar ? "justify-start space-x-3.5" : "justify-center")
|
||||||
@@ -152,13 +152,13 @@ export default function Sidebar({ sidebar, action, logoutModalHandler }) {
|
|||||||
sidebar ? "active flex-1" : "w-0"
|
sidebar ? "active flex-1" : "w-0"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
Tracking
|
Messages
|
||||||
</span>
|
</span>
|
||||||
</NavLink>
|
</NavLink>
|
||||||
</li>
|
</li>
|
||||||
<li className="item group">
|
<li className="item group">
|
||||||
<NavLink
|
<NavLink
|
||||||
to="/calendar"
|
to="/my-wallet"
|
||||||
className={`nav-item flex items-center ${
|
className={`nav-item flex items-center ${
|
||||||
((navData) => (navData.isActive ? "active" : ""),
|
((navData) => (navData.isActive ? "active" : ""),
|
||||||
sidebar ? "justify-start space-x-3.5" : "justify-center")
|
sidebar ? "justify-start space-x-3.5" : "justify-center")
|
||||||
@@ -172,7 +172,7 @@ export default function Sidebar({ sidebar, action, logoutModalHandler }) {
|
|||||||
sidebar ? "active flex-1" : "w-0"
|
sidebar ? "active flex-1" : "w-0"
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
Calendar
|
My Wallet
|
||||||
</span>
|
</span>
|
||||||
</NavLink>
|
</NavLink>
|
||||||
</li>
|
</li>
|
||||||
@@ -222,7 +222,7 @@ export default function Sidebar({ sidebar, action, logoutModalHandler }) {
|
|||||||
</div>
|
</div>
|
||||||
<div className="setting-item">
|
<div className="setting-item">
|
||||||
<div className="heading mb-5">
|
<div className="heading mb-5">
|
||||||
<h1 className="title text-xl font-bold text-purple">Settings</h1>
|
<h1 className="title text-xl font-bold text-purple">My Jobs</h1>
|
||||||
</div>
|
</div>
|
||||||
<div className="items">
|
<div className="items">
|
||||||
<ul className="flex flex-col space-y-6">
|
<ul className="flex flex-col space-y-6">
|
||||||
|
|||||||
@@ -31,6 +31,11 @@
|
|||||||
--toastify-color-success: #f539f8;
|
--toastify-color-success: #f539f8;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ===================== EXTRA ===================== */
|
||||||
|
.bottomMargin{
|
||||||
|
margin-bottom: 15px;
|
||||||
|
}
|
||||||
/* TODO: =================================default================================ */
|
/* TODO: =================================default================================ */
|
||||||
body {
|
body {
|
||||||
background-image: url("./assets/images/background.svg");
|
background-image: url("./assets/images/background.svg");
|
||||||
|
|||||||
+108
-19
@@ -3,17 +3,109 @@ import Axios from "axios";
|
|||||||
|
|
||||||
class usersService {
|
class usersService {
|
||||||
constructor() {
|
constructor() {
|
||||||
console.log("Er are here anyway");
|
console.log("WRB Service Entry");
|
||||||
}
|
}
|
||||||
|
|
||||||
logInUser(reqData) {
|
getHomeDate(){
|
||||||
// debugger;
|
// localStorage.setItem("session_token", ``);
|
||||||
/*
|
return this.postAuxEnd("/dashdata", null);
|
||||||
clean up the request data here
|
|
||||||
*/
|
|
||||||
localStorage.setItem("session_token", ``);
|
|
||||||
return this.postAuxEnd("/login", reqData);
|
|
||||||
}
|
}
|
||||||
|
logInUser(reqData) {
|
||||||
|
localStorage.setItem("session_token", ``);
|
||||||
|
return this.postAuxEnd("/userlogin", reqData);
|
||||||
|
}
|
||||||
|
marketJobData(reqData) {
|
||||||
|
return this.postAuxEnd("/getjobsdata", reqData);
|
||||||
|
}
|
||||||
|
|
||||||
|
getApiGate(){
|
||||||
|
// localStorage.setItem("session_token", ``);
|
||||||
|
return this.postAuxEnd("/apigate", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
CreateUser(){
|
||||||
|
// localStorage.setItem("session_token", ``);
|
||||||
|
return this.postAuxEnd("/createuser", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
getLoadProfile(){
|
||||||
|
// localStorage.setItem("session_token", ``);
|
||||||
|
return this.postAuxEnd("/loadprofile", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
getOffersList(){
|
||||||
|
// localStorage.setItem("session_token", ``);
|
||||||
|
return this.postAuxEnd("/offerslist", null);
|
||||||
|
}
|
||||||
|
getPendingJob(){
|
||||||
|
// localStorage.setItem("session_token", ``);
|
||||||
|
return this.postAuxEnd("/pendingjob", null);
|
||||||
|
}
|
||||||
|
getActiveJobList(){
|
||||||
|
// localStorage.setItem("session_token", ``);
|
||||||
|
return this.postAuxEnd("/activejoblist", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
getGetPendingJobs(){
|
||||||
|
// localStorage.setItem("session_token", ``);
|
||||||
|
return this.postAuxEnd("/getpendingjobs", null);
|
||||||
|
}
|
||||||
|
getUsersCards(){
|
||||||
|
// localStorage.setItem("session_token", ``);
|
||||||
|
return this.postAuxEnd("/userscards", null);
|
||||||
|
}
|
||||||
|
getCouponPending(){
|
||||||
|
// localStorage.setItem("session_token", ``);
|
||||||
|
return this.postAuxEnd("/couponpending", null);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
- 20:27:30.118 FLOG_MAX [757411]: REQ_STRING(username)
|
||||||
|
- 20:27:30.118 FLOG_MAX [757411]: REQ_STRING(password)
|
||||||
|
- 20:27:30.118 FLOG_MAX [757411]: REQ_STRING(sessionid)
|
||||||
|
|
||||||
|
|
||||||
|
$endpoints = array(
|
||||||
|
'apigate' => array('POST'),
|
||||||
|
'generics' => array('POST'),
|
||||||
|
'createuser' => array('POST'),
|
||||||
|
'createmobileuser' => array('POST'),
|
||||||
|
'completemobileuser' => array('POST'),
|
||||||
|
'startresetpasword' => array('POST'),
|
||||||
|
'userlogin' => array('POST'),
|
||||||
|
'startjoblist' => array('POST'),
|
||||||
|
'dashdata' => array('POST'),
|
||||||
|
'getjobsdata' => array('POST'),
|
||||||
|
'offerslist' => array('POST'),
|
||||||
|
'activejoblist' => array('POST'),
|
||||||
|
'loadprofile' => array('POST'),
|
||||||
|
'account' => array('POST'),
|
||||||
|
'message' => array('POST'),
|
||||||
|
'pendingjob' => array('POST'),
|
||||||
|
'paymenthx' => array('POST'),
|
||||||
|
'getjob' => array('POST'),
|
||||||
|
'mybanklist' => array('POST'),
|
||||||
|
'sendmoney' => array('POST'),
|
||||||
|
'sendinterest' => array('POST'),
|
||||||
|
'sendmoneyfee' => array('POST'),
|
||||||
|
'getpendingjobs' => array('POST'),
|
||||||
|
'taskmessage' => array('POST'),
|
||||||
|
'sendtaskmessage' => array('POST'),
|
||||||
|
'getwallets' => array('POST'),
|
||||||
|
'sitecontact' => array('POST'),
|
||||||
|
'signupcountry' => array('POST'),
|
||||||
|
'userscards' => array('POST'),
|
||||||
|
'blogdata' => array('POST'),
|
||||||
|
'blogitem' => array('POST'),
|
||||||
|
'couponhx' => array('POST'),
|
||||||
|
'couponpending' => array('POST'),
|
||||||
|
'couponredeem' => array('POST'),
|
||||||
|
'sendinterestmessage' => array('POST'),
|
||||||
|
'replyinterestmessage' => array('POST')
|
||||||
|
);
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
getUserReminders(){
|
getUserReminders(){
|
||||||
return this.getAuxEnd("/reminders", null);
|
return this.getAuxEnd("/reminders", null);
|
||||||
@@ -24,7 +116,6 @@ class usersService {
|
|||||||
//---------------------------------------- -----
|
//---------------------------------------- -----
|
||||||
//---------------------------------------- -----
|
//---------------------------------------- -----
|
||||||
getAuxEnd(uri, reqData) {
|
getAuxEnd(uri, reqData) {
|
||||||
debugger;
|
|
||||||
const session_token = localStorage.getItem("session_token");
|
const session_token = localStorage.getItem("session_token");
|
||||||
let axiosConfig = {
|
let axiosConfig = {
|
||||||
headers: {
|
headers: {
|
||||||
@@ -34,11 +125,12 @@ class usersService {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
const endPoint = process.env.REACT_APP_USERS_ENDPOINT + uri;
|
const endPoint = process.env.REACT_APP_USERS_ENDPOINT + uri;
|
||||||
return Axios.get(endPoint,axiosConfig)
|
return Axios.get(endPoint,{
|
||||||
|
params: {
|
||||||
|
reqData
|
||||||
|
}})
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
// console.log(response);
|
console.log("~~~~~~~ Toks2 GET ~~~~~~~~");
|
||||||
// res = response;
|
|
||||||
// console.log("~~~~~~~ Toks2 GET ~~~~~~~~");
|
|
||||||
return response;
|
return response;
|
||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
@@ -55,24 +147,21 @@ class usersService {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
postAuxEnd(uri, reqData) {
|
postAuxEnd(uri, reqData) {
|
||||||
const endPoint = process.env.REACT_APP_USERS_ENDPOINT + uri;
|
const endPoint = process.env.REACT_APP_USERS_ENDPOINT + uri;
|
||||||
const session_token = localStorage.getItem("session_token");
|
const session_token = localStorage.getItem("session_token");
|
||||||
let axiosConfig = {
|
let axiosConfig = {
|
||||||
headers: {
|
headers: {
|
||||||
'Accept': 'application/json',
|
'Accept': 'application/json',
|
||||||
|
'Access-Control-Allow-Origin': '*',
|
||||||
'Content-Type': 'application/json;charset=UTF-8',
|
'Content-Type': 'application/json;charset=UTF-8',
|
||||||
'Authorization': `Basic ${session_token}`,
|
'Authorization': `Basic ${session_token}`,
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
//Access-Control-Allow-Origin
|
|
||||||
var postData = {
|
|
||||||
email: "test@test.com",
|
|
||||||
password: "password"
|
|
||||||
};
|
|
||||||
// Axios.defaults.headers.post['Content-Type'] ='application/json;charset=utf-8';
|
// Axios.defaults.headers.post['Content-Type'] ='application/json;charset=utf-8';
|
||||||
// Axios.defaults.headers.post['Access-Control-Allow-Origin'] = '*'; //,axiosConfig
|
// Axios.defaults.headers.post['Access-Control-Allow-Origin'] = '*'; //,axiosConfig
|
||||||
return Axios.post(endPoint, reqData,axiosConfig)
|
return Axios.post(endPoint, reqData)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
console.log(response);
|
console.log(response);
|
||||||
// res = response;
|
// res = response;
|
||||||
|
|||||||
Reference in New Issue
Block a user