Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(store): add amd rx 6000 series model #832

Merged
merged 6 commits into from
Nov 19, 2020
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 3 additions & 0 deletions .env-example
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ LOW_BANDWIDTH=
MAX_PRICE_SERIES_3070=
MAX_PRICE_SERIES_3080=
MAX_PRICE_SERIES_3090=
MAX_PRICE_SERIES_RX6800=
MAX_PRICE_SERIES_RX6800XT=
MAX_PRICE_SERIES_RX6900XT=
MAX_PRICE_SERIES_RYZEN5600=
MAX_PRICE_SERIES_RYZEN5800=
MAX_PRICE_SERIES_RYZEN5900=
Expand Down
12 changes: 9 additions & 3 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,16 +306,19 @@ const store = {
country: envOrString(process.env.COUNTRY, 'usa'),
maxPrice: {
series: {
'test:series': -1,
3070: envOrNumber(process.env.MAX_PRICE_SERIES_3070),
3080: envOrNumber(process.env.MAX_PRICE_SERIES_3080),
3090: envOrNumber(process.env.MAX_PRICE_SERIES_3090),
rx6800: envOrNumber(process.env.MAX_PRICE_SERIES_RX6800),
rx6800xt: envOrNumber(process.env.MAX_PRICE_SERIES_RX6800XT),
rx6900xt: envOrNumber(process.env.MAX_PRICE_SERIES_RX6900XT),
ryzen5600: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5600),
ryzen5800: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5800),
ryzen5900: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5900),
ryzen5950: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5950),
sonyps5c: -1,
sonyps5de: -1,
'test:series': -1,
xboxss: -1,
xboxsx: -1
}
Expand All @@ -333,14 +336,17 @@ const store = {
'3070',
'3080',
'3090',
'rx6800',
'rx6800xt',
'rx6900xt',
'ryzen5600',
'ryzen5800',
'ryzen5900',
'ryzen5950',
'sonyps5c',
'sonyps5de',
'xboxsx',
'xboxss'
'xboxss',
'xboxsx'
]),
stores: envOrArray(process.env.STORES, ['nvidia']).map((entry) => {
const [name, minPageSleep, maxPageSleep] = entry.match(/[^:]+/g) ?? [];
Expand Down
8 changes: 8 additions & 0 deletions src/store/model/amd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ export const AMD: Store = {
model: '5600x',
series: 'ryzen5600',
url: 'https://www.amd.com/en/direct-buy/5450881700/us'
},
{
brand: 'amd',
cartUrl:
'https://www.amd.com/en/direct-buy/5458372800/us?add-to-cart=true',
model: 'amd reference',
series: 'rx6800xt',
url: 'https://www.amd.com/en/direct-buy/5458372800/us'
}
],
name: 'amd'
Expand Down
28 changes: 28 additions & 0 deletions src/store/model/bestbuy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,34 @@ export const BestBuy: Store = {
series: 'xboxss',
url:
'https://www.bestbuy.com/site/microsoft-xbox-series-s-512-gb-all-digital-console-disc-free-gaming-white/6430277.p?skuId=6430277'
},
{
brand: 'msi',
model: 'amd reference',
series: 'rx6800xt',
url:
'https://www.bestbuy.com/site/msi-radeon-rx-6800-xt-16g-16gb-gddr6-pci-express-4-0-graphics-card-black-black/6440913.p?skuId=6440913'
},
{
brand: 'msi',
model: 'amd reference',
series: 'rx6800xt',
url:
'https://www.bestbuy.com/site/msi-radeon-rx-6800-16g-16gb-gddr6-pci-express-4-0-graphics-card-black-black/6441020.p?skuId=6441020'
},
{
brand: 'xfx',
model: 'amd reference',
series: 'rx6800',
url:
'https://www.bestbuy.com/site/xfx-amd-radeon-rx-6800-16gb-gddr6-pci-express-4-0-gaming-graphics-card-black/6442077.p?skuId=6442077'
},
{
brand: 'xfx',
model: 'amd reference',
series: 'rx6800xt',
url:
'https://www.bestbuy.com/site/xfx-amd-radeon-rx-6800xt-16gb-gddr6-pci-express-4-0-gaming-graphics-card-black/6441226.p?skuId=6441226'
}
],
name: 'bestbuy'
Expand Down
62 changes: 61 additions & 1 deletion src/store/model/newegg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,67 @@ export const Newegg: Store = {
model: 'xbox series s',
series: 'xboxss',
url: 'https://www.newegg.com/p/N82E16868105274'
}
},
{
brand: 'gigabyte',
model: 'amd reference',
series: 'rx6800xt',
url: 'https://www.newegg.com/gigabyte-radeon-rx-6800-xt-gv-r68xt-16gc-b/p/N82E16814932373'
},
{
brand: 'msi',
model: 'amd reference',
series: 'rx6800xt',
url: 'https://www.newegg.com/msi-radeon-rx-6800-xt-rx-6800-xt-16g/p/N82E16814137607'
},
{
brand: 'sapphire',
model: 'amd reference',
series: 'rx6800xt',
url: 'https://www.newegg.com/sapphire-radeon-rx-6800-xt-21304-01-20g/p/N82E16814202388'
},
{
brand: 'asrock',
model: 'amd reference',
series: 'rx6800xt',
url: 'https://www.newegg.com/asrock-radeon-rx-6800-xt-rx-6800-xt-16g/p/N82E16814930045'
},
{
brand: 'asus',
model: 'amd reference',
series: 'rx6800xt',
url: 'https://www.newegg.com/asus-radeon-rx-6800-xt-rx6800xt-16g/p/N82E16814126472'
},
{
brand: 'asus',
model: 'amd reference',
series: 'rx6800',
url: 'https://www.newegg.com/asus-radeon-rx-6800-rx6800-16g/p/N82E16814126473'
},
{
brand: 'asrock',
model: 'amd reference',
series: 'rx6800',
url: 'https://www.newegg.com/asrock-radeon-rx-6800-rx-6800-16g/p/N82E16814930046'
},
{
brand: 'gigabyte',
model: 'amd reference',
series: 'rx6800',
url: 'https://www.newegg.com/gigabyte-radeon-rx-6800-gv-r68-16gc-b/p/N82E16814932374'
},
{
brand: 'sapphire',
model: 'amd reference',
series: 'rx6800',
url: 'https://www.newegg.com/sapphire-radeon-rx-6800-21305-01-20g/p/N82E16814202389'
},
{
brand: 'msi',
model: 'amd reference',
series: 'rx6800',
url: 'https://www.newegg.com/msi-radeon-rx-6800-rx-6800-16g/p/N82E16814137608'
},
],
name: 'newegg',
realTimeInventoryLookup: async (itemNumber: string) => {
Expand Down
68 changes: 39 additions & 29 deletions src/store/model/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export type Pricing = {
export type Brand =
| 'test:brand'
| 'amd'
| 'asrock'
| 'asus'
| 'evga'
| 'gainward'
Expand All @@ -24,18 +25,23 @@ export type Brand =
| 'nvidia'
| 'palit'
| 'pny'
| 'sapphire'
| 'sony'
| 'xfx'
| 'zotac';

export type Series =
| 'test:series'
| '3070'
| '3080'
| '3090'
| 'ryzen5950'
| 'ryzen5900'
| 'ryzen5800'
| 'rx6800'
| 'rx6800xt'
| 'rx6900xt'
| 'ryzen5600'
| 'ryzen5800'
| 'ryzen5900'
| 'ryzen5950'
| 'sonyps5c'
| 'sonyps5de'
| 'xboxsx'
Expand All @@ -47,60 +53,64 @@ export type Model =
| '5800x'
| '5900x'
| '5950x'
| 'amd reference'
| 'amp extreme holo'
| 'amp holo'
| 'aorus'
| 'aorus master'
| 'aorus xtreme'
| 'dual'
| 'aorus'
| 'dual fan'
| 'dual oc'
| 'dual'
| 'eagle oc'
| 'eagle'
| 'founders edition'
| 'ftw3'
| 'ftw3 ultra'
| 'eagle'
| 'eagle oc'
| 'gaming'
| 'ftw3'
| 'gamerock oc'
| 'gaming oc'
| 'gaming pro oc'
| 'gaming pro'
| 'gaming x trio'
| 'gaming x3'
| 'gaming'
| 'ichill x2'
| 'ichill x3'
| 'ichill x4'
| 'gamerock oc'
| 'gaming x trio'
| 'gaming pro'
| 'gaming pro oc'
| 'ps5 console'
| 'ps5 digital'
| 'nitro oc se'
| 'nitro oc'
| 'phantom gs'
| 'phoenix'
| 'phoenix gs'
| 'phoenix gs oc'
| 'sg'
| 'phoenix gs'
| 'phoenix'
| 'ps5 console'
| 'ps5 digital'
| 'sg oc'
| 'strix'
| 'sg'
| 'strix lc'
| 'strix oc'
| 'trinity'
| 'strix'
| 'trinity oc'
| 'tuf'
| 'trinity'
| 'tuf oc'
| 'tuf'
| 'turbo'
| 'twin edge'
| 'twin edge oc'
| 'twin x2'
| 'twin edge'
| 'twin x2 oc'
| 'twin x2'
| 'uprising'
| 'ventus 2x'
| 'ventus 2x oc'
| 'ventus 3x'
| 'ventus 2x'
| 'ventus 3x oc'
| 'vision'
| 'ventus 3x'
| 'vision oc'
| 'xc3'
| 'xc3 black'
| 'xc3 ultra'
| 'vision'
| 'xbox series s'
| 'xbox series x'
| 'xc3 black'
| 'xc3 ultra'
| 'xc3'
| 'xlr8 revel'
| 'xlr8 uprising';

Expand Down