From 5b70ff14cb9ab5e0a72922624d54b40bb0642bcd Mon Sep 17 00:00:00 2001 From: Sergej Lopatkin Date: Sat, 26 Dec 2020 01:03:36 +0100 Subject: [PATCH] feat(store): add equippr & futurex for DE region (#1501) --- docs/reference/filter.md | 2 + src/store/model/equippr.ts | 106 +++++++++++++++++++++++++++++++++++++ src/store/model/futurex.ts | 73 +++++++++++++++++++++++++ src/store/model/index.ts | 4 ++ 4 files changed, 185 insertions(+) create mode 100644 src/store/model/equippr.ts create mode 100644 src/store/model/futurex.ts diff --git a/docs/reference/filter.md b/docs/reference/filter.md index 2d1cfcd1a0..c7afab033d 100644 --- a/docs/reference/filter.md +++ b/docs/reference/filter.md @@ -88,9 +88,11 @@ Used with the `STORES` variable. | ePrice | IT | `eprice`| | Euronics | IT | `euronics`| | Euronics | DE | `euronics-de`| +| Equippr | DE | `equippr`| | EVGA | US | `evga`| | EVGA | EU | `evga-eu`| | Expert | DE | `expert`| +| Futurex | DE | `futurex`| | Galaxus | DE | `galaxus`| | Game | UK | `game`| | Gamestop | US | `gamestop`| diff --git a/src/store/model/equippr.ts b/src/store/model/equippr.ts new file mode 100644 index 0000000000..428d076899 --- /dev/null +++ b/src/store/model/equippr.ts @@ -0,0 +1,106 @@ +import {Store} from './store'; + +export const Equippr: Store = { + currency: '€', + labels: { + inStock: { + container: 'buybox--button-container', + text: ['in den warenkorb'] + }, + maxPrice: { + container: '.product--price', + euroFormat: true + }, + outOfStock: { + container: '.product--buybox', + text: ['bald verfügbar'] + } + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: + 'https://www.equippr.de/amd-ryzen-5-2600x-6x-3-60-ghz-box-yd260xbcafbox-2000034.html' + }, + { + brand: 'asus', + model: 'dual oc', + series: '3060ti', + url: + 'https://www.equippr.de/asus-geforce-rtx-3060-ti-dual-8-gb-gddr6-retail-2066580.html' + }, + { + brand: 'inno3d', + model: 'ichill x3', + series: '3060ti', + url: + 'https://www.equippr.de/inno3d-geforce-rtx-3060-ti-ichill-x3-8-gb-gddr6-2066593.html' + }, + { + brand: 'gigabyte', + model: 'aorus', + series: '3060ti', + url: + 'https://www.equippr.de/gigabyte-geforce-rtx-3060-ti-aorus-8-gb-gddr6-retail-2066569.html' + }, + { + brand: 'msi', + model: 'gaming x trio', + series: '3060ti', + url: + 'https://www.equippr.de/msi-geforce-rtx-3060-ti-gaming-x-trio-8-gb-gddr6-retail-2066573.html' + }, + { + brand: 'msi', + model: 'ventus 2x', + series: '3060ti', + url: + 'https://www.equippr.de/msi-geforce-rtx-3060-ti-ventus-2x-oc-8-gb-gddr6-retail-2066574.html' + }, + { + brand: 'zotac', + model: 'twin edge oc', + series: '3070', + url: + 'https://www.equippr.de/zotac-geforce-rtx-3070-twin-edge-oc-8-gb-gddr6-retail-2064130.html' + }, + { + brand: 'zotac', + model: 'twin edge', + series: '3070', + url: + 'https://www.equippr.de/zotac-geforce-rtx-3070-twin-edge-8-gb-gddr6-retail-2060897.html' + }, + { + brand: 'gigabyte', + model: 'eagle', + series: '3070', + url: + 'https://www.equippr.de/gigabyte-geforce-rtx-3070-eagle-8-gb-gddr6-retail-2063884.html' + }, + { + brand: 'gigabyte', + model: 'eagle oc', + series: '3070', + url: + 'https://www.equippr.de/gigabyte-geforce-rtx-3070-eagle-oc-8-gb-gddr6-retail-2063882.html' + }, + { + brand: 'evga', + model: 'xc3 ultra', + series: '3080', + url: + 'https://www.equippr.de/evga-geforce-rtx-3080-xc3-ultra-gaming-10-gb-gddr6x-retail-2061393.html' + }, + { + brand: 'evga', + model: 'xc3', + series: '3080', + url: + 'https://www.equippr.de/evga-geforce-rtx-3080-xc3-gaming-10-gb-gddr6x-retail-2061391.html' + } + ], + name: 'equippr' +}; diff --git a/src/store/model/futurex.ts b/src/store/model/futurex.ts new file mode 100644 index 0000000000..cb7b634b63 --- /dev/null +++ b/src/store/model/futurex.ts @@ -0,0 +1,73 @@ +import {Store} from './store'; + +export const Futurex: Store = { + currency: '€', + labels: { + inStock: { + container: '.productPriceInner', + text: ['Auf Lager'] + }, + maxPrice: { + container: '.price', + euroFormat: true + }, + outOfStock: [ + { + container: '.notavail', + text: ['Aktuell nicht verfügbar'] + } + ] + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: + 'https://www.future-x.de/corsair-vengeance-lpx-ddr4-32-gb%3A-2-x-16-gb-dimm-288-pin-3200-mhz-pc4-25600-cl16-135-v-ungepuffert-nicht-ecc-schwarz-p-494897' + }, + { + brand: 'asus', + model: 'tuf oc', + series: '3080', + url: + 'https://www.future-x.de/asus-vga-10gb-rtx3080-tuf-gaming-oc-3xdp-2xhdmi-geforce-rtx-3080-grafikkarte-pci-express-10240-mb-displayport-eingang-p-8649614' + }, + { + brand: 'asus', + model: 'strix', + series: '3080', + url: + 'https://www.future-x.de/asus-rog-strix-geforce-rtx-3080-10gb-grafikkarte-pci-express-10240-mb-displayport-eingang-p-8649611' + }, + { + brand: 'msi', + model: 'gaming x trio', + series: '3080', + url: + 'https://www.future-x.de/msi-geforce-rtx-3080-gaming-x-tr-grafikkarte-10240-mb-p-8649610' + }, + { + brand: 'msi', + model: 'ventus 3x oc', + series: '3080', + url: + 'https://www.future-x.de/msi-geforce-rtx-3080ventus-3x10g-oc-grafikkarte-10240-mb-p-8649609' + }, + { + brand: 'zotac', + model: 'amp holo', + series: '3080', + url: + 'https://www.future-x.de/zotac-gaming-geforce-rtx-3080-amp-holo-memory-10gb-gddr6x-320-bit-p-8649625' + }, + { + brand: 'zotac', + model: 'trinity', + series: '3080', + url: + 'https://www.equippr.de/zotac-geforce-rtx-3080-trinity-10-gb-gddr6x-retail-2060389.html' + } + ], + name: 'futurex' +}; diff --git a/src/store/model/index.ts b/src/store/model/index.ts index c12ddd6e42..2ebbb44129 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -47,11 +47,13 @@ import {EbGames} from './ebgames'; import {Ebuyer} from './ebuyer'; import {Elcorteingles} from './elcorteingles'; import {Eprice} from './eprice'; +import {Equippr} from './equippr'; import {Euronics} from './euronics'; import {EuronicsDE} from './euronics-de'; import {Evga} from './evga'; import {EvgaEu} from './evga-eu'; import {Expert} from './expert'; +import {Futurex} from './futurex'; import {Galaxus} from './galaxus'; import {Game} from './game'; import {Gamestop} from './gamestop'; @@ -155,11 +157,13 @@ export const storeList = new Map([ [Ebuyer.name, Ebuyer], [Elcorteingles.name, Elcorteingles], [Eprice.name, Eprice], + [Equippr.name, Equippr], [Euronics.name, Euronics], [EuronicsDE.name, EuronicsDE], [Evga.name, Evga], [EvgaEu.name, EvgaEu], [Expert.name, Expert], + [Futurex.name, Futurex], [Galaxus.name, Galaxus], [Game.name, Game], [Gamestop.name, Gamestop],