From 1774afc1c3010bd0b183907baa4f3486dc9e8c23 Mon Sep 17 00:00:00 2001 From: fnk93 Date: Mon, 30 Nov 2020 23:00:30 +0100 Subject: [PATCH] feat(store): add Euronics DE (#1045) --- README.md | 1 + src/store/model/euronics-de.ts | 28 ++++++++++++++++++++++++++++ src/store/model/index.ts | 2 ++ 3 files changed, 31 insertions(+) create mode 100644 src/store/model/euronics-de.ts diff --git a/README.md b/README.md index acd8a8e778..13404254d3 100644 --- a/README.md +++ b/README.md @@ -176,6 +176,7 @@ environment variables are **optional**._ | eBuyer (UK) | `ebuyer`| | ePrice (IT) | `eprice`| | Euronics (IT) | `euronics`| +| Euronics (DE) | `euronics-de`| | EVGA | `evga`| | EVGA (EU) | `evga-eu`| | Galaxus (DE) | `galaxus`| diff --git a/src/store/model/euronics-de.ts b/src/store/model/euronics-de.ts new file mode 100644 index 0000000000..0badaaeca4 --- /dev/null +++ b/src/store/model/euronics-de.ts @@ -0,0 +1,28 @@ +import {Store} from './store'; + +export const EuronicsDE: Store = { + labels: { + inStock: { + container: '.buy-btn--cart-text', + text: ['Warenkorb'] + }, + maxPrice: { + container: '.price--content', + euroFormat: true + }, + outOfStock: { + container: '.product--buybox .alert--content', + text: ['Artikel steht derzeit nicht zur Verfügung'] + } + }, + links: [ + { + brand: 'microsoft', + model: 'xbox series s', + series: 'xboxss', + url: + 'https://www.euronics.de/spiele-und-konsolen-film-und-musik/spiele-und-konsolen/xbox-series-x/spielekonsole/xbox-series-s-512gb-konsole-4061856838076' + } + ], + name: 'euronics-de' +}; diff --git a/src/store/model/index.ts b/src/store/model/index.ts index d793b8b272..8f1a2b9f07 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -36,6 +36,7 @@ import {Cyberport} from './cyberport'; import {Ebuyer} from './ebuyer'; import {Eprice} from './eprice'; import {Euronics} from './euronics'; +import {EuronicsDE} from './euronics-de'; import {Evga} from './evga'; import {EvgaEu} from './evga-eu'; import {Galaxus} from './galaxus'; @@ -112,6 +113,7 @@ export const storeList = new Map([ [Ebuyer.name, Ebuyer], [Eprice.name, Eprice], [Euronics.name, Euronics], + [EuronicsDE.name, EuronicsDE], [Evga.name, Evga], [EvgaEu.name, EvgaEu], [Galaxus.name, Galaxus],