Skip to content

Commit

Permalink
feat: add coolblue store (#482)
Browse files Browse the repository at this point in the history
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
Co-authored-by: Feiko Wielsma <f.wielsma@opnt.nl>
  • Loading branch information
3 people committed Oct 10, 2020
1 parent e5909c5 commit 5c61333
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -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`|
Expand Down
71 changes: 71 additions & 0 deletions 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'
};
2 changes: 2 additions & 0 deletions src/store/model/index.ts
Expand Up @@ -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';
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit 5c61333

Please sign in to comment.