Skip to content

Commit

Permalink
fix(bandh): asus cards / out of stock check added (#1670)
Browse files Browse the repository at this point in the history
  • Loading branch information
wofnull committed Jan 14, 2021
1 parent 513f578 commit b821eab
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/reference/filter.md
Expand Up @@ -170,7 +170,7 @@ Used with the `SHOW_ONLY_BRANDS` and `SHOW_ONLY_MODELS` variables.
| Brand | Model |
|:---:|---|
| `amd` | `5600x`, `5800x`, `5900x`, `5950x`, `amd reference` |
| `asus` | `crosshair viii`, `dual`, `dual oc`, `ekwb`, `strix`, `strix oc`, `strix white`, `tuf`, `tuf oc` |
| `asus` | `crosshair viii`, `dual`, `dual oc`, `ekwb`, `ko`, `ko oc`, `strix`, `strix oc`, `strix white`, `tuf`, `tuf oc` |
| `corsair` | `750 platinum`, `600 platinum` |
| `colorful` | `igame advanced oc`, `igame vulcan oc` |
| `evga` | `ftw3`, `ftw3 black`, `ftw3 ultra`, `ftw3 ultra hydro copper`, `xc3`, `xc gaming`, `xc black`, `xc3 black`, `xc3 ultra` |
Expand Down
109 changes: 102 additions & 7 deletions src/store/model/bandh.ts
Expand Up @@ -11,6 +11,10 @@ export const BAndH: Store = {
maxPrice: {
container: 'div[data-selenium="pricingPrice"]',
euroFormat: false
},
outOfStock: {
container: 'button[data-selenium="notifyAvailabilityButton"]',
text: ['notify when available']
}
},
links: [
Expand Down Expand Up @@ -42,6 +46,41 @@ export const BAndH: Store = {
url:
'https://www.bhphotovideo.com/c/product/1602756-REG/asus_strixrtx3070o8_rog_strix_geforce_rtx.html'
},
{
brand: 'asus',
model: 'dual oc',
series: '3070',
url:
'https://www.bhphotovideo.com/c/product/1603974-REG/asus_dualrtx3070o8g_dual_geforce_rtx_3070.html'
},
{
brand: 'asus',
model: 'ko oc',
series: '3070',
url:
'https://www.bhphotovideo.com/c/product/1606745-REG/asus_90yv0fq2_m0aa00_ko_nvidia_geforce_rtx.html'
},
{
brand: 'asus',
model: 'tuf oc',
series: '3070',
url:
'https://www.bhphotovideo.com/c/product/1606746-REG/asus_tuf_rtx3070_o8g_gaming_tuf_gaming_nvidia_geforce.html'
},
{
brand: 'asus',
model: 'ekwb',
series: '3070',
url:
'https://www.bhphotovideo.com/c/product/1614305-REG/asus_rtx3070_8g_ek_ekwb_geforce_rtx_3070.html'
},
{
brand: 'asus',
model: 'strix white',
series: '3070',
url:
'https://www.bhphotovideo.com/c/product/1614300-REG/asus_rog_strix_rtx3070_o8g_white_rog_strix_geforce_rtx.html'
},
// TUF was removed from BH, not sure why so commenting out listing for now
// {
// brand: 'asus',
Expand All @@ -63,13 +102,48 @@ export const BAndH: Store = {
url:
'https://www.bhphotovideo.com/c/product/1592969-REG/zotac_zt_a30800d_10p_gaming_geforce_rtx_3080.html'
},
// TUF was removed from BH, not sure why so commenting out listing for now
// {
// brand: 'asus',
// model: 'tuf oc',
// series: '3080',
// url: 'https://www.bhphotovideo.com/c/product/1593650-REG/asus_tuf_rtx3080_o10g_gaming_tuf_gaming_geforce_rtx.html'
// },
{
brand: 'asus',
model: 'tuf oc',
series: '3080',
url:
'https://www.bhphotovideo.com/c/product/1593650-REG/asus_tuf_rtx3080_o10g_gaming_tuf_gaming_geforce_rtx.html'
},
{
brand: 'asus',
model: 'strix oc',
series: '3080',
url:
'https://www.bhphotovideo.com/c/product/1603617-REG/asus_rog_strix_rtx3080_o10g_gaming_rog_strix_geforce_rtx.html'
},
{
brand: 'asus',
model: 'strix white',
series: '3080',
url:
'https://www.bhphotovideo.com/c/product/1614301-REG/asus_rog_strix_rtx3080_o10g_white_rog_strix_geforce_rtx.html'
},
{
brand: 'asus',
model: 'ekwb',
series: '3080',
url:
'https://www.bhphotovideo.com/c/product/1614303-REG/asus_rtx3080_10g_ek_ekwb_geforce_rtx_3080.html'
},
{
brand: 'asus',
model: 'ko oc',
series: '3060ti',
url:
'https://www.bhphotovideo.com/c/product/1609756-REG/asus_ko_rtx3060ti_o8g_gaming_ko_geforce_rtx_3060.html'
},
{
brand: 'asus',
model: 'tuf oc',
series: '3060ti',
url:
'https://www.bhphotovideo.com/c/product/1607025-REG/asus_tuf_rtx3060ti_o8g_gaming_geforce_rtx_3060_ti.html'
},
{
brand: 'gigabyte',
model: 'eagle oc',
Expand Down Expand Up @@ -197,6 +271,27 @@ export const BAndH: Store = {
url:
'https://www.bhphotovideo.com/c/product/1594451-REG/asus_90yv0fd1_m0am00_tuf_gaming_geforce_rtx.html'
},
{
brand: 'asus',
model: 'ekwb',
series: '3090',
url:
'https://www.bhphotovideo.com/c/product/1607043-REG/asus_rtx3090_24g_ek_geforce_rtx_3090_24g.html'
},
{
brand: 'asus',
model: 'strix',
series: '3090',
url:
'https://www.bhphotovideo.com/c/product/1601764-REG/asus_rog_strix_rtx3090_o24g_gaming_rog_strix_geforce_rtx.html'
},
{
brand: 'asus',
model: 'strix white',
series: '3090',
url:
'https://www.bhphotovideo.com/c/product/1614302-REG/asus_rog_strix_rtx3090_o24g_white_rog_strix_geforce_rtx.html'
},
{
brand: 'amd',
model: '5950x',
Expand Down

0 comments on commit b821eab

Please sign in to comment.