From 19eece18dccd4489e1e441b92061fc3b5743e4cd Mon Sep 17 00:00:00 2001 From: Joseph Sortino Date: Mon, 30 Nov 2020 17:01:09 -0500 Subject: [PATCH] feat(store): add antonline store (#1042) --- README.md | 1 + src/store/model/antonline.ts | 42 ++++++++++++++++++++++++++++++++++++ src/store/model/index.ts | 2 ++ 3 files changed, 45 insertions(+) create mode 100644 src/store/model/antonline.ts diff --git a/README.md b/README.md index 1340425..af658f8 100644 --- a/README.md +++ b/README.md @@ -154,6 +154,7 @@ environment variables are **optional**._ | AMD (CA) | `amd-ca`| | AMD (DE) | `amd-de`| | AMD (IT) | `amd-it`| +| AntOnline | `antonline`| | Aria PC (UK) | `aria`| | ARLT (DE) | `arlt`| | ASUS | `asus` | diff --git a/src/store/model/antonline.ts b/src/store/model/antonline.ts new file mode 100644 index 0000000..7ef2c06 --- /dev/null +++ b/src/store/model/antonline.ts @@ -0,0 +1,42 @@ +import {Store} from './store'; + +export const AntOnline: Store = { + labels: { + inStock: { + container: '.uk-button', + text: ['Add to Cart'] + }, + maxPrice: { + container: '.cPrice', + euroFormat: false + }, + outOfStock: { + container: '.priceView-price .priceView-hero-price span', + text: ['Sold Out'] + } + }, + links: [ + { + brand: 'sony', + model: 'ps5 digital', + series: 'sonyps5de', + url: + 'https://www.antonline.com/Sony/Electronics/Gaming_Devices/Gaming_Consoles/1409507' + }, + { + brand: 'microsoft', + model: 'xbox series x', + series: 'xboxsx', + url: + 'https://www.antonline.com/Microsoft/Electronics/Gaming_Devices/Gaming_Consoles/1414487' + }, + { + brand: 'microsoft', + model: 'xbox series s', + series: 'xboxss', + url: + 'https://www.antonline.com/Microsoft/Electronics/Gaming_Devices/Gaming_Consoles/1409527' + } + ], + name: 'antonline' +}; diff --git a/src/store/model/index.ts b/src/store/model/index.ts index 8f1a2b9..8ffc80c 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -14,6 +14,7 @@ import {Amd} from './amd'; import {AmdCa} from './amd-ca'; import {AmdDe} from './amd-de'; import {AmdIt} from './amd-it'; +import {AntOnline} from './antonline'; import {Aria} from './aria'; import {Arlt} from './arlt'; import {Asus} from './asus'; @@ -91,6 +92,7 @@ export const storeList = new Map([ [AmdCa.name, AmdCa], [AmdDe.name, AmdDe], [AmdIt.name, AmdIt], + [AntOnline.name, AntOnline], [Aria.name, Aria], [Arlt.name, Arlt], [Asus.name, Asus],