Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add coolblue store #482

Merged
merged 6 commits into from
Oct 10, 2020
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,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
72 changes: 72 additions & 0 deletions src/store/model/coolblue.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import {Store} from './store';

export const Coolblue: Store = {
labels: {
inStock: {
container: '.product-order',
text: ['bestel snel', 'Morgen in huis']
FeikoWielsma marked this conversation as resolved.
Show resolved Hide resolved
},
outOfStock: {
container: '.product-order',
text: ['Binnenkort leverbaar', 'Tijdelijk uitverkocht']
FeikoWielsma marked this conversation as resolved.
Show resolved Hide resolved
}
},
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/gigabyte-geforce-rtx-3080-eagle-oc-10g.html'
FeikoWielsma marked this conversation as resolved.
Show resolved Hide resolved
},
{
brand: 'msi',
model: 'ventus 3x oc',
series: '3080',
url: 'https://www.coolblue.nl/product/868741/msi-geforce-rtx-3080-ventus-3x-oc-10g.html'
},
{
brand: 'asus',
model: 'tuf gaming',
series: '3080',
url: 'https://www.coolblue.nl/product/868726/asus-geforce-rtx-3080-tuf-gaming-10g.html'
},
{
brand: 'gigabyte',
model: 'gaming oc',
series: '3080',
url: 'https://www.coolblue.nl/product/868736/gigabyte-geforce-rtx-3080-gaming-oc-10g.html'
},
{
brand: 'msi',
model: 'gaming x trio',
series: '3080',
url: 'https://www.coolblue.nl/product/868740/msi-geforce-rtx-3080-gaming-x-trio-10g.html'
},
{
brand: 'asus',
model: 'tuf oc gaming',
series: '3080',
url: 'https://www.coolblue.nl/product/868733/asus-geforce-rtx-3080-tuf-gaming-oc-10g.html'
},
{
brand: 'asus',
model: 'rog strix oc gaming',
series: '3080',
url: 'https://www.coolblue.nl/product/868731/asus-geforce-rtx-3080-rog-strix-gaming-oc-10g.html'
},
{
brand: 'asus',
model: 'rog strix gaming',
series: '3080',
url: 'https://www.coolblue.nl/product/868732/asus-geforce-rtx-3080-rog-strix-gaming-10g.html'
}
],
name: 'coolblue'
};

2 changes: 2 additions & 0 deletions src/store/model/index.ts
Original file line number Diff line number Diff line change
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