Skip to content

Commit

Permalink
buyee
Browse files Browse the repository at this point in the history
  • Loading branch information
JyyHuang committed Oct 16, 2023
2 parents 5df311f + 7aea334 commit 1e533bb
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

Chrome extensions built using eBay's Browse Api.

Currently, only eBay has been implemented. Buyee Auction and Mercari soon to come!

Extension allows you to search for products in the browser, and favorite products you are interested in to view them later.

# Demo
Expand Down
3 changes: 2 additions & 1 deletion vite-project/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"dev": "vite",
"build": "vite build",
"lint": "eslint . --ext js,jsx --report-unused-disable-directives --max-warnings 0",
"preview": "vite preview"
"preview": "vite preview",
"start": "node SearchForm.jsx"
},
"dependencies": {
"axios": "^1.4.0",
Expand Down
7 changes: 5 additions & 2 deletions vite-project/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import './styles.css'
import {Header} from "./Header"
import {Contact} from "./Contact"
import {Search} from "./Search"
import {Favorites} from "./Favorites"
import { Favorites } from "./Favorites"
import {Pages} from "./Pages"
import dotenv from "dotenv"

function App() {
Expand Down Expand Up @@ -33,7 +34,9 @@ function App() {
{page === "Search" && <Search/> || page === "Contact" && <Contact /> || page === "Favorites" && <Favorites/>}
</main>

<footer>

<footer>
<Pages />
<div className="footer-container">
<div className="contact" onClick={changeContact}>{(!theme) ? "Contact": "Search" }</div>
<div className="favorites" title="Favorites">
Expand Down
7 changes: 7 additions & 0 deletions vite-project/src/Pages.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@


export function Pages() {
return (
<div></div>
)
}
3 changes: 2 additions & 1 deletion vite-project/src/SearchForm.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useState } from "react";
import dotenv from "dotenv";
import axios from "axios";

export function SearchForm({callback, callBackSelected}) {

Expand All @@ -14,7 +15,7 @@ export function SearchForm({callback, callBackSelected}) {

// Check the tab that is selected
function checkSelected(event) {
if (callBackSelected == "eBay") {
if (callBackSelected == "eBay") {
eBayApiCall();
} else if (callBackSelected == "Buyee Auction"){
scrapeBuyeeAuction();
Expand Down

0 comments on commit 1e533bb

Please sign in to comment.