From 94b2274bd27c70ca3434215826485c44c7179fbb Mon Sep 17 00:00:00 2001 From: Bram Verdonck Date: Fri, 9 Apr 2021 20:54:51 +0200 Subject: [PATCH 1/2] added amd BE store --- src/store/model/amd-be.ts | 100 ++++++++++++++++++++++++++++++++++++++ src/store/model/index.ts | 2 + 2 files changed, 102 insertions(+) create mode 100644 src/store/model/amd-be.ts diff --git a/src/store/model/amd-be.ts b/src/store/model/amd-be.ts new file mode 100644 index 0000000000..7dec61e472 --- /dev/null +++ b/src/store/model/amd-be.ts @@ -0,0 +1,100 @@ +import {Store} from './store'; + +export const AmdBe: Store = { + currency: '€', + labels: { + inStock: { + container: '.btn-shopping-cart', + text: ['add to cart'], + }, + maxPrice: { + container: '.product-page-description h4', + euroFormat: true, + }, + outOfStock: { + container: '.btn-radeon', + text: ['ausverkauft'], + }, + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: 'https://www.amd.com/en/direct-buy/5450881400/be', + }, + { + brand: 'amd', + cartUrl: + 'https://www.amd.com/en/direct-buy/5450881400/be?add-to-cart=true', + model: '5950x', + series: 'ryzen5950', + url: 'https://www.amd.com/en/direct-buy/5450881400/be', + }, + { + brand: 'amd', + cartUrl: + 'https://www.amd.com/en/direct-buy/5450881500/be?add-to-cart=true', + model: '5900x', + series: 'ryzen5900', + url: 'https://www.amd.com/en/direct-buy/5450881500/be', + }, + { + brand: 'amd', + cartUrl: + 'https://www.amd.com/en/direct-buy/5450881600/be?add-to-cart=true', + model: '5800x', + series: 'ryzen5800', + url: 'https://www.amd.com/en/direct-buy/5450881600/be', + }, + { + brand: 'amd', + cartUrl: + 'https://www.amd.com/en/direct-buy/5450881700/be?add-to-cart=true', + model: '5600x', + series: 'ryzen5600', + url: 'https://www.amd.com/en/direct-buy/5450881700/be', + }, + { + brand: 'amd', + cartUrl: + 'https://www.amd.com/en/direct-buy/5496921400/be?add-to-cart=true', + model: 'amd reference', + series: 'rx6700xt', + url: 'https://www.amd.com/en/direct-buy/5496921400/be', + }, + { + brand: 'amd', + cartUrl: + 'https://www.amd.com/en/direct-buy/5458374000/be?add-to-cart=true', + model: 'amd reference', + series: 'rx6800', + url: 'https://www.amd.com/en/direct-buy/5458374000/be', + }, + { + brand: 'amd', + cartUrl: + 'https://www.amd.com/en/direct-buy/5458374100/be?add-to-cart=true', + model: 'amd reference', + series: 'rx6800xt', + url: 'https://www.amd.com/en/direct-buy/5458374100/be', + }, + { + brand: 'amd', + cartUrl: + 'https://www.amd.com/en/direct-buy/5496921500/be?add-to-cart=true', + model: 'amd reference', + series: 'rx6800xt', + url: 'https://www.amd.com/en/direct-buy/5496921500/be', + }, + { + brand: 'amd', + cartUrl: + 'https://www.amd.com/en/direct-buy/5458374200/be?add-to-cart=true', + model: 'amd reference', + series: 'rx6900xt', + url: 'https://www.amd.com/en/direct-buy/5458374200/be', + }, + ], + name: 'amd-be', +}; diff --git a/src/store/model/index.ts b/src/store/model/index.ts index 955f23c1e4..6115c6d973 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -20,6 +20,7 @@ import {AmazonUk} from './amazon-uk'; import {Amd} from './amd'; import {AmdCa} from './amd-ca'; import {AmdDe} from './amd-de'; +import {AmdBe} from './amd-be'; import {AmdIt} from './amd-it'; import {AmdUk} from './amd-uk'; import {AntOnline} from './antonline'; @@ -173,6 +174,7 @@ export const storeList = new Map([ [Amd.name, Amd], [AmdCa.name, AmdCa], [AmdDe.name, AmdDe], + [AmdBe.name, AmdBe], [AmdIt.name, AmdIt], [AmdUk.name, AmdUk], [AntOnline.name, AntOnline], From 7d097f5f43c1ebf4b7979bbab744adae8cedb032 Mon Sep 17 00:00:00 2001 From: Jef LeCompte Date: Wed, 14 Apr 2021 09:43:28 -0400 Subject: [PATCH 2/2] docs: add amd-be and amd-nl --- docs/reference/filter.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/reference/filter.md b/docs/reference/filter.md index aeac316a77..4e0dcce0d3 100644 --- a/docs/reference/filter.md +++ b/docs/reference/filter.md @@ -54,9 +54,11 @@ Used with the `STORES` variable. | Amazon | SG | `amazon-sg`| | Amazon | UK | `amazon-uk`| | AMD | US | `amd`| +| AMD | BE | `amd-be`| | AMD | CA | `amd-ca`| | AMD | DE | `amd-de`| | AMD | IT | `amd-it`| +| AMD | NL | `amd-nl`| | AMD | UK | `amd-uk`| | AntOnline | US | `antonline`| | AO | UK | `ao`|