From 3286d624a134d2f460b5d79cb19c6b0801a330db Mon Sep 17 00:00:00 2001 From: Enrico Martelli Date: Fri, 27 Nov 2020 20:09:31 +0100 Subject: [PATCH] chore(store): add amd-it store and RX 6800 XT (#974) --- README.md | 3 +- src/store/model/amd-it.ts | 63 +++++++++++++++++++++++++++++++++++++++ src/store/model/index.ts | 2 ++ 3 files changed, 67 insertions(+), 1 deletion(-) create mode 100644 src/store/model/amd-it.ts diff --git a/README.md b/README.md index b973ed6..8442575 100644 --- a/README.md +++ b/README.md @@ -148,6 +148,7 @@ environment variables are **optional**._ | Amazon (UK) | `amazon-uk`| | AMD | `amd`| | AMD (DE) | `amd-de`| +| AMD (IT) | `amd-it`| | Aria PC (UK) | `aria`| | ARLT (DE) | `arlt`| | ASUS | `asus` | @@ -244,7 +245,7 @@ environment variables are **optional**._ | Brand | Model | |:---:|---| -| `amd` | `5600x`, `5800x`, `5900x`, `5950x` | +| `amd` | `5600x`, `5800x`, `5900x`, `5950x`, `amd reference` | | `asus` | `dual`, `dual oc`, `strix`, `strix oc`, `tuf`, `tuf oc` | | `corsair` | `750 platinum`, `600 platinum` | | `evga` | `ftw3`, `ftw3 ultra`, `xc3`, `xc3 black`, `xc3 ultra` | diff --git a/src/store/model/amd-it.ts b/src/store/model/amd-it.ts new file mode 100644 index 0000000..fe162fa --- /dev/null +++ b/src/store/model/amd-it.ts @@ -0,0 +1,63 @@ +import {Store} from './store'; + +export const AmdIt: Store = { + labels: { + inStock: { + container: '.btn-shopping-cart', + text: ['add to cart'] + }, + maxPrice: { + container: '.product-page-description h4', + euroFormat: true + } + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: 'https://www.amd.com/en/direct-buy/5450881400/it' + }, + { + brand: 'amd', + cartUrl: + 'https://www.amd.com/en/direct-buy/5450881400/it?add-to-cart=true', + model: '5950x', + series: 'ryzen5950', + url: 'https://www.amd.com/en/direct-buy/5450881400/it' + }, + { + brand: 'amd', + cartUrl: + 'https://www.amd.com/en/direct-buy/5450881500/it?add-to-cart=true', + model: '5900x', + series: 'ryzen5900', + url: 'https://www.amd.com/en/direct-buy/5450881500/it' + }, + { + brand: 'amd', + cartUrl: + 'https://www.amd.com/en/direct-buy/5450881600/it?add-to-cart=true', + model: '5800x', + series: 'ryzen5800', + url: 'https://www.amd.com/en/direct-buy/5450881600/it' + }, + { + brand: 'amd', + cartUrl: + 'https://www.amd.com/en/direct-buy/5450881700/it?add-to-cart=true', + model: '5600x', + series: 'ryzen5600', + url: 'https://www.amd.com/en/direct-buy/5450881700/it' + }, + { + brand: 'amd', + cartUrl: + 'https://www.amd.com/en/direct-buy/5458374100/it?add-to-cart=true', + model: 'amd reference', + series: 'rx6800xt', + url: 'https://www.amd.com/en/direct-buy/5458374100/it' + } + ], + name: 'amd-it' +}; diff --git a/src/store/model/index.ts b/src/store/model/index.ts index 3e9f6e1..5aa19b9 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -12,6 +12,7 @@ import {AmazonNl} from './amazon-nl'; import {AmazonUk} from './amazon-uk'; import {Amd} from './amd'; import {AmdDe} from './amd-de'; +import {AmdIt} from './amd-it'; import {Aria} from './aria'; import {Arlt} from './arlt'; import {Asus} from './asus'; @@ -83,6 +84,7 @@ export const storeList = new Map([ [AmazonIt.name, AmazonIt], [Amd.name, Amd], [AmdDe.name, AmdDe], + [AmdIt.name, AmdIt], [Aria.name, Aria], [Arlt.name, Arlt], [Asus.name, Asus],