From 5c61333df00c0c30f04e4aced01a498c5816ad58 Mon Sep 17 00:00:00 2001 From: Feiko Wielsma Date: Sat, 10 Oct 2020 17:59:03 +0200 Subject: [PATCH] feat: add coolblue store (#482) Co-authored-by: Jef LeCompte Co-authored-by: Feiko Wielsma --- README.md | 1 + src/store/model/coolblue.ts | 71 +++++++++++++++++++++++++++++++++++++ src/store/model/index.ts | 2 ++ 3 files changed, 74 insertions(+) create mode 100644 src/store/model/coolblue.ts diff --git a/README.md b/README.md index b2ceec88f5..da2c4ffb26 100644 --- a/README.md +++ b/README.md @@ -161,6 +161,7 @@ Here is a list of variables that you can use to customize your newly copied `.en | Best Buy (CA) | `bestbuy-ca`| | Box | `box`| | CCL | `ccl`| +| Coolblue | `coolblue`| | Currys | `currys`| | eBuyer | `ebuyer`| | EVGA | `evga`| diff --git a/src/store/model/coolblue.ts b/src/store/model/coolblue.ts new file mode 100644 index 0000000000..09c086a19c --- /dev/null +++ b/src/store/model/coolblue.ts @@ -0,0 +1,71 @@ +import {Store} from './store'; + +export const Coolblue: Store = { + labels: { + inStock: { + container: '.product-order', + text: ['bestel snel', 'morgen in huis'] + }, + outOfStock: { + container: '.product-order', + text: ['binnenkort leverbaar', 'tijdelijk uitverkocht'] + } + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: 'https://www.coolblue.nl/product/826844/' + }, + { + brand: 'gigabyte', + model: 'eagle oc', + series: '3080', + url: 'https://www.coolblue.nl/product/868737/' + }, + { + brand: 'msi', + model: 'ventus 3x oc', + series: '3080', + url: 'https://www.coolblue.nl/product/868741/' + }, + { + brand: 'asus', + model: 'tuf gaming', + series: '3080', + url: 'https://www.coolblue.nl/product/868726/' + }, + { + brand: 'gigabyte', + model: 'gaming oc', + series: '3080', + url: 'https://www.coolblue.nl/product/868736/' + }, + { + brand: 'msi', + model: 'gaming x trio', + series: '3080', + url: 'https://www.coolblue.nl/product/868740/' + }, + { + brand: 'asus', + model: 'tuf oc gaming', + series: '3080', + url: 'https://www.coolblue.nl/product/868733/' + }, + { + brand: 'asus', + model: 'rog strix oc gaming', + series: '3080', + url: 'https://www.coolblue.nl/product/868731/' + }, + { + brand: 'asus', + model: 'rog strix gaming', + series: '3080', + url: 'https://www.coolblue.nl/product/868732/' + } + ], + name: 'coolblue' +}; diff --git a/src/store/model/index.ts b/src/store/model/index.ts index 76cba29014..fa422af234 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -13,6 +13,7 @@ import {BestBuy} from './bestbuy'; import {BestBuyCa} from './bestbuy-ca'; import {Box} from './box'; import {Ccl} from './ccl'; +import {Coolblue} from './coolblue'; import {Currys} from './currys'; import {Ebuyer} from './ebuyer'; import {Evga} from './evga'; @@ -52,6 +53,7 @@ const masterList = new Map([ [BestBuyCa.name, BestBuyCa], [Box.name, Box], [Ccl.name, Ccl], + [Coolblue.name, Coolblue], [Currys.name, Currys], [Ebuyer.name, Ebuyer], [Evga.name, Evga],