From 977137543197f575d004b442ecc17e7d7748a704 Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Tue, 27 Jun 2023 16:10:51 +0100 Subject: [PATCH] env variable added --- .env | 15 +++++++++++++++ .env.development | 17 ++++++++++++++++- .env.production | 17 ++++++++++++++++- src/Services/ContactData.js | 2 +- src/Services/FaqData.js | 2 +- src/Services/JobsData.js | 2 +- src/components/AboutUs/HeaderAbout.js | 4 ++-- src/components/Contact/Forms.js | 16 ++++++++-------- src/components/HomeOne/FeaturesHomeOne.js | 6 +++--- src/components/HomeOne/FooterHomeOne.js | 6 +++--- src/components/HomeOne/HeroHomeOne.js | 4 ++-- src/components/HomeOne/HomeOneHeader.js | 4 ++-- src/components/HomeOne/RecentJobsOne.js | 2 +- src/components/HomeOne/TrafficHomeTwo.js | 2 +- src/components/Mobile/Drawer.js | 6 +++--- src/components/News/HeaderNews.js | 4 ++-- src/components/Service/DetailsService.js | 2 +- src/components/Service/HeaderService.js | 4 ++-- src/components/Service/ServiceSideMenu.js | 2 +- src/components/UseCases/HeaderNews.js | 6 +++--- src/components/UseCases/UseCase.js | 4 ++-- 21 files changed, 86 insertions(+), 41 deletions(-) diff --git a/.env b/.env index 08e064a..ef9aebf 100644 --- a/.env +++ b/.env @@ -2,3 +2,18 @@ ESLINT_NO_DEV_ERRORS=true REACT_APP_AUX_ENDPOINT="https://apigate.lotus.g1.wrenchboard.com/en/wrench/api/v1" REACT_APP_USERS_ENDPOINT="https://apigate.lotus.g1.wrenchboard.com/en/wrench/api/v1" + +REACT_APP_SITE_NAME='WrenchBoard' +REACT_APP_DASH_URL='https://dev-users.wrenchboard.com' +REACT_APP_DASH_URL_LOGIN="https://dev-users.wrenchboard.com/login" +REACT_APP_DASH_URL_SIGNUP="https://dev-users.wrenchboard.com/signup" +REACT_APP_ANDROID_APP='https://play.google.com/store/apps/details?id=com.wrenchboard.users' +REACT_APP_APPLE_APP='https://itunes.apple.com/us/app/wrenchboard/id1435718367?ls=1&mt=8' +REACT_APP_FACEBOOK_LINK='https://www.facebook.com/wrenchboard' +REACT_APP_TWITTER_LINK='https://twitter.com/wrenchboard/' +REACT_APP_LINKEDIN_LINK="https://www.linkedin.com/company/wrenchboard/" +REACT_APP_SUPPORT_EMAIL='support@wrenchboard.com' +REACT_APP_SUPPORT_PHONE='404 855-7966' +REACT_APP_SUPPORT_PHONE_NG='(+420) 336 476 328' +REACT_APP_SUPPORT_US_ADDRESS='Cumberland Pkwy, Atlanta GA 30339' +REACT_APP_SUPPORT_NG_ADDRESS='Saka Tinubu Street, Victoria Island Lagos, Nigeria' diff --git a/.env.development b/.env.development index 7b89cab..0844084 100644 --- a/.env.development +++ b/.env.development @@ -1,4 +1,19 @@ ESLINT_NO_DEV_ERRORS=true REACT_APP_AUX_ENDPOINT="https://apigate.lotus.g1.wrenchboard.com/en/wrench/api/v1" -REACT_APP_USERS_ENDPOINT="https://apigate.lotus.g1.wrenchboard.com/en/wrench/api/v1" \ No newline at end of file +REACT_APP_USERS_ENDPOINT="https://apigate.lotus.g1.wrenchboard.com/en/wrench/api/v1" + +REACT_APP_SITE_NAME='WrenchBoard' +REACT_APP_DASH_URL='https://dev-users.wrenchboard.com' +REACT_APP_DASH_URL_LOGIN="https://dev-users.wrenchboard.com/login" +REACT_APP_DASH_URL_SIGNUP="https://dev-users.wrenchboard.com/signup" +REACT_APP_ANDROID_APP='https://play.google.com/store/apps/details?id=com.wrenchboard.users' +REACT_APP_APPLE_APP='https://itunes.apple.com/us/app/wrenchboard/id1435718367?ls=1&mt=8' +REACT_APP_FACEBOOK_LINK='https://www.facebook.com/wrenchboard' +REACT_APP_TWITTER_LINK='https://twitter.com/wrenchboard/' +REACT_APP_LINKEDIN_LINK="https://www.linkedin.com/company/wrenchboard/" +REACT_APP_SUPPORT_EMAIL='support@wrenchboard.com' +REACT_APP_SUPPORT_PHONE='404 855-7966' +REACT_APP_SUPPORT_PHONE_NG='(+420) 336 476 328' +REACT_APP_SUPPORT_US_ADDRESS='Cumberland Pkwy, Atlanta GA 30339' +REACT_APP_SUPPORT_NG_ADDRESS='Saka Tinubu Street, Victoria Island Lagos, Nigeria' \ No newline at end of file diff --git a/.env.production b/.env.production index 7b89cab..f537d78 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,19 @@ ESLINT_NO_DEV_ERRORS=true REACT_APP_AUX_ENDPOINT="https://apigate.lotus.g1.wrenchboard.com/en/wrench/api/v1" -REACT_APP_USERS_ENDPOINT="https://apigate.lotus.g1.wrenchboard.com/en/wrench/api/v1" \ No newline at end of file +REACT_APP_USERS_ENDPOINT="https://apigate.lotus.g1.wrenchboard.com/en/wrench/api/v1" + +REACT_APP_SITE_NAME='WrenchBoard' +REACT_APP_DASH_URL='https://users.wrenchboard.com' +REACT_APP_DASH_URL_LOGIN="https://users.wrenchboard.com/login" +REACT_APP_DASH_URL_SIGNUP="https://users.wrenchboard.com/signup" +REACT_APP_ANDROID_APP='https://play.google.com/store/apps/details?id=com.wrenchboard.users' +REACT_APP_APPLE_APP='https://itunes.apple.com/us/app/wrenchboard/id1435718367?ls=1&mt=8' +REACT_APP_FACEBOOK_LINK='https://www.facebook.com/wrenchboard' +REACT_APP_TWITTER_LINK='https://twitter.com/wrenchboard/' +REACT_APP_LINKEDIN_LINK="https://www.linkedin.com/company/wrenchboard/" +REACT_APP_SUPPORT_EMAIL='support@wrenchboard.com' +REACT_APP_SUPPORT_PHONE='404 855-7966' +REACT_APP_SUPPORT_PHONE_NG='(+420) 336 476 328' +REACT_APP_SUPPORT_US_ADDRESS='Cumberland Pkwy, Atlanta GA 30339' +REACT_APP_SUPPORT_NG_ADDRESS='Saka Tinubu Street, Victoria Island Lagos, Nigeria' \ No newline at end of file diff --git a/src/Services/ContactData.js b/src/Services/ContactData.js index 877a677..383b922 100644 --- a/src/Services/ContactData.js +++ b/src/Services/ContactData.js @@ -4,7 +4,7 @@ import getConfig from './../Config/config' async function ContactData(callData) { // debugger; var site = getConfig()[0]; - let response = await Axios.post(`${site.user_service_endpoint}/sitecontact`, callData); + let response = await Axios.post(`${process.env.REACT_APP_AUX_ENDPOINT}/sitecontact`, callData); return response.data.result; } diff --git a/src/Services/FaqData.js b/src/Services/FaqData.js index 62fd161..42cb2c6 100644 --- a/src/Services/FaqData.js +++ b/src/Services/FaqData.js @@ -4,7 +4,7 @@ import getConfig from './../Config/config' async function FaqData() { // debugger; var site = getConfig()[0]; - let response = await Axios.post(`${site.user_service_endpoint}/faq`); + let response = await Axios.post(`${process.env.REACT_APP_AUX_ENDPOINT}/faq`); return await response; } diff --git a/src/Services/JobsData.js b/src/Services/JobsData.js index 91ad4e5..1949192 100644 --- a/src/Services/JobsData.js +++ b/src/Services/JobsData.js @@ -16,7 +16,7 @@ async function JobsData() { }); } */ - let response = await Axios.post(site.user_service_endpoint + "/startjoblist", callData); + let response = await Axios.post(process.env.REACT_APP_AUX_ENDPOINT + "/startjoblist", callData); return response.data.result_list; } diff --git a/src/components/AboutUs/HeaderAbout.js b/src/components/AboutUs/HeaderAbout.js index 5362ad9..128883b 100644 --- a/src/components/AboutUs/HeaderAbout.js +++ b/src/components/AboutUs/HeaderAbout.js @@ -30,10 +30,10 @@ function HeaderAbout({ action }) {
- + Login - + Get Started
Headquaters

- {site.support_us_address} + {process.env.REACT_APP_SUPPORT_US_ADDRESS}

- {site.support_ng_address} + {process.env.REACT_APP_SUPPORT_NG_ADDRESS}

@@ -63,31 +63,31 @@ function Forms() {
Phone

- {site.support_phone} + {process.env.REACT_APP_SUPPORT_PHONE}
- {site.support_phone_ng} + {process.env.REACT_APP_SUPPORT_PHONE_NG}

Support

- {site.support_email} + {process.env.REACT_APP_SUPPORT_EMAIL}

Follow Us
- + - + - +
diff --git a/src/components/HomeOne/FeaturesHomeOne.js b/src/components/HomeOne/FeaturesHomeOne.js index 7d117aa..ffe3431 100755 --- a/src/components/HomeOne/FeaturesHomeOne.js +++ b/src/components/HomeOne/FeaturesHomeOne.js @@ -68,7 +68,7 @@ function FeaturesHomeOne({ className }) { //

// WrenchBoard platform connects you with quality service that need articles writing, blog management, photography, product testing research and surveys and more to deliver your project with ease. //

- // + // // Learn More // //
@@ -89,7 +89,7 @@ function FeaturesHomeOne({ className }) { //

// Cash in the Pocket with WrenchBoard as a reliable partner to connect you with new opportunities.Track, Organize your Portfolio and Manage your Skills, preferred workgroup and teams efficiently. //

- // + // // Learn More // // @@ -110,7 +110,7 @@ function FeaturesHomeOne({ className }) { //

// Get paid Instantly for completed task using WrenchBoard. Achieve your short-term goals or long-term income by Connecting with WrenchBoard. Complete access to your earnings. //

- // + // // Learn More // // diff --git a/src/components/HomeOne/FooterHomeOne.js b/src/components/HomeOne/FooterHomeOne.js index 3b3b4da..f74af3f 100644 --- a/src/components/HomeOne/FooterHomeOne.js +++ b/src/components/HomeOne/FooterHomeOne.js @@ -33,7 +33,7 @@ function FooterHomeOne({ className }) {
  • - +
  • @@ -112,12 +112,12 @@ function FooterHomeOne({ className }) {
    • - + Download for iOS
    • - + Download for Android diff --git a/src/components/HomeOne/HeroHomeOne.js b/src/components/HomeOne/HeroHomeOne.js index 4338c3a..cb406bc 100644 --- a/src/components/HomeOne/HeroHomeOne.js +++ b/src/components/HomeOne/HeroHomeOne.js @@ -25,12 +25,12 @@ function HeroHomeOne() {

      • - + Download for iOS
      • - + Download for Android diff --git a/src/components/HomeOne/HomeOneHeader.js b/src/components/HomeOne/HomeOneHeader.js index 6b08f8c..afa8e13 100644 --- a/src/components/HomeOne/HomeOneHeader.js +++ b/src/components/HomeOne/HomeOneHeader.js @@ -28,10 +28,10 @@ function HomeOneHeader({ action }) {
    - + Login - + Get Started
    ; diff --git a/src/components/HomeOne/TrafficHomeTwo.js b/src/components/HomeOne/TrafficHomeTwo.js index 5bec492..29db60c 100644 --- a/src/components/HomeOne/TrafficHomeTwo.js +++ b/src/components/HomeOne/TrafficHomeTwo.js @@ -54,7 +54,7 @@ function TrafficHomeOne() {
    {/*
    diff --git a/src/components/Mobile/Drawer.js b/src/components/Mobile/Drawer.js index 54bb4c8..1a03d24 100644 --- a/src/components/Mobile/Drawer.js +++ b/src/components/Mobile/Drawer.js @@ -72,7 +72,7 @@ function Drawer({ drawer, action }) {
    - + Login - + Get Started
    - Learn more at < a href ={site.dash_url_login} >WrenchBoard + Learn more at < a href ={process.env.REACT_APP_DASH_URL_LOGIN} >WrenchBoard

    diff --git a/src/components/Service/HeaderService.js b/src/components/Service/HeaderService.js index 5ee5761..aa3a709 100644 --- a/src/components/Service/HeaderService.js +++ b/src/components/Service/HeaderService.js @@ -25,10 +25,10 @@ function HeaderService({ action }) {
    - + Login - + Get Started
  • - + Download for Android diff --git a/src/components/UseCases/HeaderNews.js b/src/components/UseCases/HeaderNews.js index 9c093e1..93dc2f7 100644 --- a/src/components/UseCases/HeaderNews.js +++ b/src/components/UseCases/HeaderNews.js @@ -19,7 +19,7 @@ function HeaderNews({ action }) { @@ -30,10 +30,10 @@ function HeaderNews({ action }) {