From 79a3f33150188c7ff0228a38f276ae1fe88b9714 Mon Sep 17 00:00:00 2001 From: fnk93 Date: Mon, 30 Nov 2020 23:00:03 +0100 Subject: [PATCH] feat(store): add Gamestop DE (#1046) --- README.md | 1 + src/store/model/gamestop-de.ts | 40 ++++++++++++++++++++++++++++++++++ src/store/model/index.ts | 2 ++ 3 files changed, 43 insertions(+) create mode 100644 src/store/model/gamestop-de.ts diff --git a/README.md b/README.md index f50e020..acd8a8e 100644 --- a/README.md +++ b/README.md @@ -181,6 +181,7 @@ environment variables are **optional**._ | Galaxus (DE) | `galaxus`| | Game (UK) | `game`| | Gamestop | `gamestop`| +| Gamestop (DE) | `gamestop-de`| | Kabum (BR) | `kabum`| | Mediamarkt (DE) | `mediamarkt`| | MemoryExpress (CA) | `memoryexpress`| diff --git a/src/store/model/gamestop-de.ts b/src/store/model/gamestop-de.ts new file mode 100644 index 0000000..31abcf3 --- /dev/null +++ b/src/store/model/gamestop-de.ts @@ -0,0 +1,40 @@ +import {Store} from './store'; + +export const GamestopDE: Store = { + labels: { + inStock: [ + { + container: '#btnAddToCart', + text: ['In den Warenkorb'] + }, + { + container: '#btnAddToCart', + text: ['Vorbestellen'] + } + ], + maxPrice: { + container: '.buySection .prodPriceCont', + euroFormat: true + }, + outOfStock: { + container: '.megaButton', + text: ['Nicht verfügbar'] + } + }, + links: [ + { + brand: 'sony', + model: 'ps5 console', + series: 'sonyps5c', + url: 'https://www.gamestop.de/PS5/Games/58665' + }, + { + brand: 'sony', + model: 'ps5 digital', + series: 'sonyps5de', + url: 'https://www.gamestop.de/PS5/Games/60315' + } + ], + name: 'gamestop-de', + successStatusCodes: [[0, 399], 404] +}; diff --git a/src/store/model/index.ts b/src/store/model/index.ts index 16f8003..d793b8b 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -41,6 +41,7 @@ import {EvgaEu} from './evga-eu'; import {Galaxus} from './galaxus'; import {Game} from './game'; import {Gamestop} from './gamestop'; +import {GamestopDE} from './gamestop-de'; import {Kabum} from './kabum'; import {Mediamarkt} from './mediamarkt'; import {MemoryExpress} from './memoryexpress'; @@ -116,6 +117,7 @@ export const storeList = new Map([ [Galaxus.name, Galaxus], [Game.name, Game], [Gamestop.name, Gamestop], + [GamestopDE.name, GamestopDE], [Kabum.name, Kabum], [Mediamarkt.name, Mediamarkt], [MemoryExpress.name, MemoryExpress],