Skip to content

Commit

Permalink
feat(store): add amd-be store (#2338)
Browse files Browse the repository at this point in the history
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
  • Loading branch information
bramevo and jef authored Apr 14, 2021
1 parent 49c9e8c commit 6e9b1a9
Show file tree
Hide file tree
Showing 3 changed files with 106 additions and 2 deletions.
2 changes: 2 additions & 0 deletions docs/reference/filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`|
Expand Down
100 changes: 100 additions & 0 deletions src/store/model/amd-be.ts
Original file line number Diff line number Diff line change
@@ -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',
};
6 changes: 4 additions & 2 deletions src/store/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ import {AmazonNl} from './amazon-nl';
import {AmazonSg} from './amazon-sg';
import {AmazonUk} from './amazon-uk';
import {Amd} from './amd';
import {AmdBe} from './amd-be';
import {AmdCa} from './amd-ca';
import {AmdDe} from './amd-de';
import {AmdNl} from './amd-nl';
import {AmdIt} from './amd-it';
import {AmdNl} from './amd-nl';
import {AmdUk} from './amd-uk';
import {AntOnline} from './antonline';
import {AO} from './ao';
Expand Down Expand Up @@ -172,10 +173,11 @@ export const storeList = new Map([
[AmazonSg.name, AmazonSg],
[AmazonUk.name, AmazonUk],
[Amd.name, Amd],
[AmdBe.name, AmdBe],
[AmdCa.name, AmdCa],
[AmdDe.name, AmdDe],
[AmdNl.name, AmdNl],
[AmdIt.name, AmdIt],
[AmdNl.name, AmdNl],
[AmdUk.name, AmdUk],
[AntOnline.name, AntOnline],
[AO.name, AO],
Expand Down

0 comments on commit 6e9b1a9

Please sign in to comment.