From 30bed2ac016e9e543f67b1098819a484bc1394c3 Mon Sep 17 00:00:00 2001 From: Hangur <44006666+Hangur@users.noreply.github.com> Date: Tue, 8 Dec 2020 14:36:20 +0100 Subject: [PATCH] feat(store): add Megekko (#1216) --- docs/reference/filter.md | 7 +- src/store/model/index.ts | 2 + src/store/model/megekko.ts | 159 +++++++++++++++++++++++++++++++++++++ src/store/model/store.ts | 3 + 4 files changed, 168 insertions(+), 3 deletions(-) create mode 100644 src/store/model/megekko.ts diff --git a/docs/reference/filter.md b/docs/reference/filter.md index 24500b2503..daeb41110e 100644 --- a/docs/reference/filter.md +++ b/docs/reference/filter.md @@ -81,6 +81,7 @@ Used with the `STORES` variable. | Kabum (BR) | `kabum`| | Mediamarkt (DE) | `mediamarkt`| | Medimax | `medimax`| +| Megekko (NL) | `megekko`| | MemoryExpress (CA) | `memoryexpress`| | Micro Center | `microcenter`| | Mindfactory (DE) | `mindfactory` | @@ -138,11 +139,11 @@ Used with the `SHOW_ONLY_BRANDS` and `SHOW_ONLY_MODELS` variables. | `corsair` | `750 platinum`, `600 platinum` | | `evga` | `ftw3`, `ftw3 ultra`, `xc3`, `xc3 black`, `xc3 ultra` | | `gainward` | `phantom gs`, `phoenix`, `phoenix gs`, `phoenix gs oc` | -| `gigabyte` | `aorus master`, `aorus xtreme`, `eagle`, `eagle oc`, `gaming`, `gaming oc`, `turbo`, `vision`, `vision oc` | -| `inno3d` | `gaming x3`, `ichill x3`, `ichill x4`, `twin x2 oc` | +| `gigabyte` | `aorus master`, `aorus xtreme`, `aorus xtreme waterforce`, `eagle`, `eagle oc`, `gaming`, `gaming oc`, `turbo`, `vision`, `vision oc` | +| `inno3d` | `gaming x3`, `ichill x3`, `ichill x4`, `ichill frostbite`, `twin x2 oc` | | `kfa2` | `sg`, `sg oc` | | `microsoft` | `xbox series x`, `xbox series s` | -| `msi` | `gaming x trio`, `ventus 2x oc`, `ventus 3x`, `ventus 3x oc` | +| `msi` | `gaming x trio`, `suprim x`, `ventus 2x oc`, `ventus 3x`, `ventus 3x oc` | | `nvidia` | `founders edition` | | `palit` | `gamerock oc`, `gaming pro`, `gaming pro oc` | | `pny` | `dual fan`, `xlr8 revel`, `xlr8 uprising` | diff --git a/src/store/model/index.ts b/src/store/model/index.ts index b2e36cabe9..b67c3a27d4 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -52,6 +52,7 @@ import {GamestopDE} from './gamestop-de'; import {Kabum} from './kabum'; import {Mediamarkt} from './mediamarkt'; import {Medimax} from './medimax'; +import {Megekko} from './megekko'; import {MemoryExpress} from './memoryexpress'; import {MicroCenter} from './microcenter'; import {Mindfactory} from './mindfactory'; @@ -139,6 +140,7 @@ export const storeList = new Map([ [Kabum.name, Kabum], [Mediamarkt.name, Mediamarkt], [Medimax.name, Medimax], + [Megekko.name, Megekko], [MemoryExpress.name, MemoryExpress], [MicroCenter.name, MicroCenter], [Mindfactory.name, Mindfactory], diff --git a/src/store/model/megekko.ts b/src/store/model/megekko.ts new file mode 100644 index 0000000000..707f96c798 --- /dev/null +++ b/src/store/model/megekko.ts @@ -0,0 +1,159 @@ +import {Store} from './store'; + +export const Megekko: Store = { + labels: { + inStock: { + container: '.product-order .text_green', + text: ['dag', 'werkdag'] + }, + maxPrice: { + container: '.col_right_container .euro', + euroFormat: false + }, + outOfStock: { + container: '.product_detail .text_red', + text: ['minimaal 10 dagen'] + } + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: 'https://www.megekko.nl/product/351421/' + }, + { + brand: 'asus', + model: 'tuf', + series: '3080', + url: 'https://www.megekko.nl/product/1118232/' + }, + { + brand: 'asus', + model: 'strix', + series: '3080', + url: 'https://www.megekko.nl/product/1119242/' + }, + { + brand: 'asus', + model: 'strix oc', + series: '3080', + url: 'https://www.megekko.nl/product/1119243/' + }, + { + brand: 'asus', + model: 'tuf oc', + series: '3080', + url: 'https://www.megekko.nl/product/1118233/' + }, + { + brand: 'evga', + model: 'ftw3 ultra', + series: '3080', + url: 'https://www.megekko.nl/product/1118248/' + }, + { + brand: 'evga', + model: 'ftw3 ultra', + series: '3080', + url: 'https://www.megekko.nl/product/1118249/' + }, + { + brand: 'evga', + model: 'xc3', + series: '3080', + url: 'https://www.megekko.nl/product/1118247/' + }, + { + brand: 'evga', + model: 'xc3 ultra', + series: '3080', + url: 'https://www.megekko.nl/product/1118260/' + }, + { + brand: 'evga', + model: 'xc3 black', + series: '3080', + url: 'https://www.megekko.nl/product/1118246/' + }, + { + brand: 'gigabyte', + model: 'gaming oc', + series: '3080', + url: 'https://www.megekko.nl/product/292736/' + }, + { + brand: 'gigabyte', + model: 'vision oc', + series: '3080', + url: 'https://www.megekko.nl/product/293966/' + }, + { + brand: 'gigabyte', + model: 'aorus master', + series: '3080', + url: 'https://www.megekko.nl/product/293965/' + }, + { + brand: 'gigabyte', + model: 'aorus xtreme', + series: '3080', + url: 'https://www.megekko.nl/product/293964/' + }, + { + brand: 'gigabyte', + model: 'aorus xtreme waterforce', + series: '3080', + url: 'https://www.megekko.nl/product/296925/' + }, + { + brand: 'gigabyte', + model: 'eagle', + series: '3080', + url: 'https://www.megekko.nl/product/1125074/' + }, + { + brand: 'gigabyte', + model: 'eagle oc', + series: '3080', + url: 'https://www.megekko.nl/product/292735/' + }, + { + brand: 'inno3d', + model: 'ichill frostbite', + series: '3080', + url: 'https://www.megekko.nl/product/1125524/' + }, + { + brand: 'inno3d', + model: 'ichill x3', + series: '3080', + url: 'https://www.megekko.nl/product/1118236/' + }, + { + brand: 'inno3d', + model: 'ichill x4', + series: '3080', + url: 'https://www.megekko.nl/product/1118237/' + }, + { + brand: 'msi', + model: 'gaming x trio', + series: '3080', + url: 'https://www.megekko.nl/product/292742/' + }, + { + brand: 'msi', + model: 'ventus 3x oc', + series: '3080', + url: 'https://www.megekko.nl/product/292740/' + }, + { + brand: 'msi', + model: 'suprim x', + series: '3080', + url: 'https://www.megekko.nl/product/295473/' + } + ], + name: 'megekko' +}; diff --git a/src/store/model/store.ts b/src/store/model/store.ts index 57feb8db74..6e71a1cd7d 100644 --- a/src/store/model/store.ts +++ b/src/store/model/store.ts @@ -64,6 +64,7 @@ export type Model = | 'amp holo' | 'aorus master' | 'aorus xtreme' + | 'aorus xtreme waterforce' | 'aorus' | 'challenger' | 'dual fan' @@ -81,10 +82,12 @@ export type Model = | 'gaming pro' | 'gaming x trio' | 'gaming x3' + | 'suprim x' | 'gaming' | 'ichill x2' | 'ichill x3' | 'ichill x4' + | 'ichill frostbite' | 'ko' | 'nitro+' | 'nitro oc se'