Skip to content

Commit

Permalink
feat(bestbuy): add 3060 series (#1074)
Browse files Browse the repository at this point in the history
  • Loading branch information
petertdinh committed Dec 1, 2020
1 parent 4bccc6b commit e9a39c4
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions .env-example
Expand Up @@ -17,6 +17,7 @@ HEADLESS=""
IN_STOCK_WAIT_TIME=""
LOG_LEVEL=""
LOW_BANDWIDTH=""
MAX_PRICE_SERIES_3060=""
MAX_PRICE_SERIES_3070=""
MAX_PRICE_SERIES_3080=""
MAX_PRICE_SERIES_3090=""
Expand Down
2 changes: 2 additions & 0 deletions src/config.ts
Expand Up @@ -307,6 +307,7 @@ const store = {
country: envOrString(process.env.COUNTRY, 'usa'),
maxPrice: {
series: {
3060: envOrNumber(process.env.MAX_PRICE_SERIES_3060),
3070: envOrNumber(process.env.MAX_PRICE_SERIES_3070),
3080: envOrNumber(process.env.MAX_PRICE_SERIES_3080),
3090: envOrNumber(process.env.MAX_PRICE_SERIES_3090),
Expand Down Expand Up @@ -335,6 +336,7 @@ const store = {
};
}),
showOnlySeries: envOrArray(process.env.SHOW_ONLY_SERIES, [
'3060',
'3070',
'3080',
'3090',
Expand Down
32 changes: 32 additions & 0 deletions src/store/model/bestbuy.ts
Expand Up @@ -421,6 +421,38 @@ export const BestBuy: Store = {
series: 'sf',
url:
'https://www.bestbuy.com/site/corsair-sf-series-600w-atx12v-2-4-eps12v-2-92-sfx12v-80-plus-platinum-modular-power-supply-black/6351844.p?skuId=6351844'
},
{
brand: 'nvidia',
cartUrl: 'https://api.bestbuy.com/click/-/6439402/cart',
model: 'founders edition',
series: '3060',
url:
'https://www.bestbuy.com/site/nvidia-geforce-rtx-3060-ti-8gb-gddr6-pci-express-4-0-graphics-card-steel-and-black/6439402.p?skuId=6439402&intl=nosplash'
},
{
brand: 'gigabyte',
cartUrl: 'https://api.bestbuy.com/click/-/6442484/cart',
model: 'gaming oc',
series: '3060',
url:
'https://www.bestbuy.com/site/gigabyte-nvidia-geforce-rtx-3060-ti-gaming-oc-8g-gddr6-pci-express-4-0-graphics-card-black/6442484.p?skuId=6442484&intl=nosplash'
},
{
brand: 'gigabyte',
cartUrl: 'https://api.bestbuy.com/click/-/6442485/cart',
model: 'eagle oc',
series: '3060',
url:
'https://www.bestbuy.com/site/gigabyte-nvidia-geforce-rtx-3060-ti-eagle-oc-8g-gddr6-pci-express-4-0-graphics-card-black/6442485.p?skuId=6442485&intl=nosplash'
},
{
brand: 'msi',
cartUrl: 'https://api.bestbuy.com/click/-/6441172/cart',
model: 'ventus 2x oc',
series: '3060',
url:
'https://www.bestbuy.com/site/msi-geforce-rtx-3060-ti-ventus-2x-oc-bv-8gb-gddr6-pci-express-4-0-graphics-card-black-black/6441172.p?skuId=6441172&intl=nosplash'
}
],
name: 'bestbuy'
Expand Down
1 change: 1 addition & 0 deletions src/store/model/store.ts
Expand Up @@ -34,6 +34,7 @@ export type Brand =

export type Series =
| 'test:series'
| '3060'
| '3070'
| '3080'
| '3090'
Expand Down

1 comment on commit e9a39c4

@darkShamrock
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol, I just spent 2hrs figuring out how to do this only to see it was added an hr ago. ¯_(ツ)_/¯ I'm too slow, guess I learned some stuff tho

Please sign in to comment.