diff --git a/src/Services/JobsData.js b/src/Services/JobsData.js new file mode 100644 index 0000000..f1543b3 --- /dev/null +++ b/src/Services/JobsData.js @@ -0,0 +1,147 @@ +// http://172.31.4.19:8000/wordpress-data + +//import React from 'react'; +import Axios from 'axios'; + +function JobsData() { + + var callData =[ { + "limit": 10, + "page":1 + } ]; + + console.log("~~~~~~~~ ameye jobData ~~~~~~~~~"); +var res = null; + const getWrenchBoardJobs = () => { + Axios.post("https://www.wrenchboard.com/svs/user/startjoblist",callData).then((response) => { + console.log(response); + res = response; + console.log("~~~~~~~~ jobData ~~~~~~~~~"); + return response; + // console.log(blogResultData); + }); + } + + /* return ( + <> + Ameye + > + ); +*/ +getWrenchBoardJobs(); + +//console.log(getWrenchBoardBlog()); + +//console.log("Ameye got here"); + // return blogResultData; // getWrenchBoardBlog(); + + var res1 = [ + { + "title": "Post 5 articles to social ", + "description": "This task is about posting 5 articles like from www.dorcastore.com to you Facebook page", + "id": "109", + "job_description": null, + "price": null, + "timeline_days": null, + "expire": null, + "sent": null + }, + { + "title": "Article", + "description": "Opinion (Nigeria economy/politics) for Publication", + "id": "108", + "job_description": null, + "price": null, + "timeline_days": null, + "expire": null, + "sent": null + }, + { + "title": "Create a family related article for my blog", + "description": "Propose a title and write about 500-word article for my blog", + "id": "23", + "job_description": null, + "price": null, + "timeline_days": null, + "expire": null, + "sent": null + }, + { + "title": "Promote my blog with your Facebook page", + "description": "You will need to have a Facebook page with at least 400 friends to for this task", + "id": "73", + "job_description": null, + "price": null, + "timeline_days": null, + "expire": null, + "sent": null + }, + { + "title": "Promote health care based articles", + "description": "Promote by placing my articles on your blog with good Alexa ranking ", + "id": "92", + "job_description": null, + "price": null, + "timeline_days": null, + "expire": null, + "sent": null + }, + { + "title": "Pictures of Product Display In Supermarket", + "description": "We are conducting a product research and I want to know the most common products in my line of business. Go to ten supermarkets around and take pictures of the wine sections clearly showing the wines", + "id": "103", + "job_description": null, + "price": null, + "timeline_days": null, + "expire": null, + "sent": null + }, + { + "title": "Write a Health Article for a blog", + "description": "Write a 1-page article on “The need for healthy eating in Nigeria”. The article is for publication on a health and wellness blog.", + "id": "101", + "job_description": null, + "price": null, + "timeline_days": null, + "expire": null, + "sent": null + }, + { + "title": "Who are Niger Delta's Warlords?", + "description": "Describe the situation that led to Niger Delta Amnesty Programme?", + "id": "105", + "job_description": null, + "price": null, + "timeline_days": null, + "expire": null, + "sent": null + }, + { + "title": "What is Niger Delta Ecology?", + "description": "Write article on Niger Delta Ecology", + "id": "104", + "job_description": null, + "price": null, + "timeline_days": null, + "expire": null, + "sent": null + }, + { + "title": "Promote health care based articles", + "description": "Promote by placing my articles on your blog with good Alexa ranking ", + "id": "92", + "job_description": null, + "price": null, + "timeline_days": null, + "expire": null, + "sent": null + } +]; + + + return res1; + } + +export default JobsData; + + diff --git a/src/components/HomeOne/BlogHomeOne.js b/src/components/HomeOne/BlogHomeOne.js index 432a381..d9841b8 100644 --- a/src/components/HomeOne/BlogHomeOne.js +++ b/src/components/HomeOne/BlogHomeOne.js @@ -33,9 +33,9 @@ var res = null; */ -debugger; -console.log("~~~~~~~~ dorcas ~~~~~~~~~"); -console.log(blogResult); +//debugger; +//console.log("~~~~~~~~ dorcas ~~~~~~~~~"); +//console.log(blogResult); return ( <> @@ -52,11 +52,7 @@ console.log(blogResult); { blogResult.map(i=>{ - console.log(i); - console.log("------------------------------ 11 ----"); var blgImg = i.meta_value!=null?"https://blog.wrenchboard.com/wp-content/uploads/"+ i.meta_value : blogOne; - - return (