This commit is contained in:
Michael Kelly 2018-10-22 14:36:53 -07:00
Родитель 96edae7d94
Коммит 5b1795d054
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 972176E09570E68A
7 изменённых файлов: 12 добавлений и 12 удалений

Просмотреть файл

@ -1,6 +1,6 @@
# Commerce WebExtension # Price Scout
This repo contains the WebExtension for the Commerce project. Price Scout is a Firefox extension that tracks price changes to help you find the best time to buy.
## Developer Setup ## Developer Setup
@ -11,8 +11,8 @@ Prerequisites:
1. Clone the repository: 1. Clone the repository:
```sh ```sh
git clone https://github.com/mozilla/webext-commerce.git git clone https://github.com/mozilla/price-scout.git
cd webext-commerce cd price-scout
``` ```
2. Install dependencies: 2. Install dependencies:
@ -50,7 +50,7 @@ With these installed, you can set up the test suite:
2. Save the path to your Firefox binary with `npm`: 2. Save the path to your Firefox binary with `npm`:
```sh ```sh
npm config set webext-commerce:firefox_bin <PATH_TO_FIREFOX_BINARY> npm config set price-scout:firefox_bin <PATH_TO_FIREFOX_BINARY>
``` ```
After this, you can run `pipenv run test` to run the automated test suite. After this, you can run `pipenv run test` to run the automated test suite.

Просмотреть файл

@ -14,7 +14,7 @@ A summary of the metrics the Price Alerts extension will record.
* **Price Alert**: An alert that occurs when a tracked product's price _decreases_ below a certain absolute or percentage threshold. For the MVP, the default thresholds are specified in `./src/config.js`. * **Price Alert**: An alert that occurs when a tracked product's price _decreases_ below a certain absolute or percentage threshold. For the MVP, the default thresholds are specified in `./src/config.js`.
* **Product Card**: A product list item in the list of tracked products for which the user has opted to receive Price Alerts displayed on the browserAction popup. Each Product Card displays the product title, image and price among other information. * **Product Card**: A product list item in the list of tracked products for which the user has opted to receive Price Alerts displayed on the browserAction popup. Each Product Card displays the product title, image and price among other information.
* **Product Page**: A webpage ([example](https://www.amazon.com/LEGO-Fantastic-Beasts-Grindelwald-Grindelwalds/dp/B07BKQXCZR/ref=sr_1_3_sspa?s=toys-and-games&ie=UTF8&qid=1538418041&sr=1-3-spons&keywords=legos&psc=1)) displaying a single product that the user could purchase online. * **Product Page**: A webpage ([example](https://www.amazon.com/LEGO-Fantastic-Beasts-Grindelwald-Grindelwalds/dp/B07BKQXCZR/ref=sr_1_3_sspa?s=toys-and-games&ie=UTF8&qid=1538418041&sr=1-3-spons&keywords=legos&psc=1)) displaying a single product that the user could purchase online.
* **Supported Sites**: For the initial launch (a.k.a. MVP, Minimum Viable Product) of this extension, we are limiting the sites supported by this feature to [five websites](https://github.com/mozilla/webext-commerce/issues/36#issuecomment-409641491): Amazon, Ebay, Walmart, Home Depot and Best Buy. * **Supported Sites**: For the initial launch (a.k.a. MVP, Minimum Viable Product) of this extension, we are limiting the sites supported by this feature to [five websites](https://github.com/mozilla/price-scout/issues/36#issuecomment-409641491): Amazon, Ebay, Walmart, Home Depot and Best Buy.
* **Survey**: a short survey collecting user feedback. * **Survey**: a short survey collecting user feedback.
* **Onboarding Popup**: The popup displayed when the user has zero products tracked, including the first time the popup is opened. * **Onboarding Popup**: The popup displayed when the user has zero products tracked, including the first time the popup is opened.

2
package-lock.json сгенерированный
Просмотреть файл

@ -1,5 +1,5 @@
{ {
"name": "webext-commerce", "name": "price-scout",
"version": "4.0.0", "version": "4.0.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,

Просмотреть файл

@ -1,5 +1,5 @@
{ {
"name": "webext-commerce", "name": "price-scout",
"version": "4.0.0", "version": "4.0.0",
"description": "", "description": "",
"private": "true", "private": "true",

Просмотреть файл

@ -95,7 +95,7 @@ export default class BrowserActionApp extends React.Component {
alt="Send Feedback" alt="Send Feedback"
/> />
</button> </button>
<h1 className="title">Price Watcher List</h1> <h1 className="title">Price Scout</h1>
<button <button
className="ghost help button" className="ghost help button"
type="button" type="button"

Просмотреть файл

@ -2,7 +2,7 @@
<html lang="en" dir="ltr"> <html lang="en" dir="ltr">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Tracked Products</title> <title>Price Scout</title>
</head> </head>
<body> <body>
<div id="browser-action-app"></div> <div id="browser-action-app"></div>

Просмотреть файл

@ -1,6 +1,6 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "Firefox Shopping", "name": "Price Scout",
"version": "$version", "version": "$version",
"description": "", "description": "",
"applications": { "applications": {
@ -22,7 +22,7 @@
"16": "img/shopping_list.svg", "16": "img/shopping_list.svg",
"32": "img/shopping_list.svg" "32": "img/shopping_list.svg"
}, },
"default_title": "Tracked Products", "default_title": "Price Scout",
"default_popup": "browser_action/index.html" "default_popup": "browser_action/index.html"
}, },
"permissions": [ "permissions": [