From cf70f1ff4f942922bfa52adcd5b905e0b39c812a Mon Sep 17 00:00:00 2001 From: fnk93 Date: Wed, 2 Dec 2020 22:25:39 +0100 Subject: [PATCH] feat(store): add spielegrotte (#1056) --- README.md | 1 + src/store/model/index.ts | 2 ++ src/store/model/spielegrotte.ts | 44 +++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 src/store/model/spielegrotte.ts diff --git a/README.md b/README.md index 607a7a64fc..0de70f2c08 100644 --- a/README.md +++ b/README.md @@ -210,6 +210,7 @@ environment variables are **optional**._ | Proshop (DK) | `proshop-dk`| | Saturn (DE) | `saturn`| | Scan (UK) | `scan`| +| Spielegrotte | `spielegrotte`| | Target | `target`| | Unieuro (IT) | `unieuro`| | Very (UK) | `very`| diff --git a/src/store/model/index.ts b/src/store/model/index.ts index 1d7809213b..11457f014b 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -68,6 +68,7 @@ import {ProshopDE} from './proshop-de'; import {ProshopDK} from './proshop-dk'; import {Saturn} from './saturn'; import {Scan} from './scan'; +import {Spielegrotte} from './spielegrotte'; import {Store} from './store'; import {Target} from './target'; import {TopAchat} from './topachat'; @@ -150,6 +151,7 @@ export const storeList = new Map([ [ProshopDK.name, ProshopDK], [Saturn.name, Saturn], [Scan.name, Scan], + [Spielegrotte.name, Spielegrotte], [Target.name, Target], [TopAchat.name, TopAchat], [Unieuro.name, Unieuro], diff --git a/src/store/model/spielegrotte.ts b/src/store/model/spielegrotte.ts new file mode 100644 index 0000000000..489c6ea563 --- /dev/null +++ b/src/store/model/spielegrotte.ts @@ -0,0 +1,44 @@ +import {Store} from './store'; + +export const Spielegrotte: Store = { + labels: { + inStock: [ + { + container: + 'html > body > table > tbody > tr > td > div > table > tbody > tr > td > center > table > tbody > tr > td > a.klein > img', + text: [''] + } + ], + maxPrice: { + container: + 'html > body > table > tbody > tr > td > div > table > tbody > tr > td > center > table > tbody > tr > td > font > b', + euroFormat: true + }, + outOfStock: { + container: + 'html > body > table > tbody > tr > td > div > table > tbody > tr > td > center > font > b', + text: ['Dieses Produkt ist leider neu nicht mehr verfügbar'] + } + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: 'https://www.spielegrotte.de/index.php?kat=100056&anr=54288' + }, + { + brand: 'sony', + model: 'ps5 console', + series: 'sonyps5c', + url: 'https://www.spielegrotte.de/index.php?kat=100100&anr=56005' + }, + { + brand: 'sony', + model: 'ps5 digital', + series: 'sonyps5de', + url: 'https://www.spielegrotte.de/index.php?kat=100100&anr=56006' + } + ], + name: 'spielegrotte' +};