Skip to content

Commit

Permalink
feat(store): add Megekko (#1216)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hangur committed Dec 8, 2020
1 parent 84a6ff5 commit 30bed2a
Show file tree
Hide file tree
Showing 4 changed files with 168 additions and 3 deletions.
7 changes: 4 additions & 3 deletions docs/reference/filter.md
Expand Up @@ -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` |
Expand Down Expand Up @@ -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` |
Expand Down
2 changes: 2 additions & 0 deletions src/store/model/index.ts
Expand Up @@ -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';
Expand Down Expand Up @@ -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],
Expand Down
159 changes: 159 additions & 0 deletions 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'
};
3 changes: 3 additions & 0 deletions src/store/model/store.ts
Expand Up @@ -64,6 +64,7 @@ export type Model =
| 'amp holo'
| 'aorus master'
| 'aorus xtreme'
| 'aorus xtreme waterforce'
| 'aorus'
| 'challenger'
| 'dual fan'
Expand All @@ -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'
Expand Down

0 comments on commit 30bed2a

Please sign in to comment.