From 586029c92aa19bdddcc85b7a837bb7a16bb1d28d Mon Sep 17 00:00:00 2001 From: Feiko Wielsma Date: Tue, 13 Oct 2020 19:20:25 +0200 Subject: [PATCH] fix: dutch stores components (#513) Co-authored-by: Jef LeCompte Co-authored-by: Feiko Wielsma --- src/store/model/amazon-nl.ts | 40 ++++++++++++++++++++++----- src/store/model/coolblue.ts | 52 ++++++++++++++++++++++++++++++++++-- 2 files changed, 84 insertions(+), 8 deletions(-) diff --git a/src/store/model/amazon-nl.ts b/src/store/model/amazon-nl.ts index 32a1a08..4b5b8bf 100644 --- a/src/store/model/amazon-nl.ts +++ b/src/store/model/amazon-nl.ts @@ -7,32 +7,60 @@ export const AmazonNl: Store = { text: ['voer de karakters in die u hieronder ziet'] }, inStock: { - container: '#desktop_buybox', - text: ['in winkelwagen plaatsen'] + container: '#availability', + text: ['op voorraad', 'verkrijgbaar vanaf', 'wordt gewoonlijk verzonden binnen', 'nog slechts'] }, maxPrice: { container: 'span[class*="PriceString"]', euroFormat: true - } + }, + outOfStock: [ + { + container: '#availability', + text: ['tijdelijk niet'] + }, + { + container: '#outOfStock', + text: ['we weten niet of en wanneer dit item weer op voorraad is'] + } + ] }, links: [ { brand: 'test:brand', model: 'test:model', series: 'test:series', - url: 'https://www.amazon.nl/dp/B083GGYNQ6/' + url: 'https://www.amazon.nl/dp/B083GGYNQ6' }, { brand: 'msi', model: 'ventus 3x oc', series: '3080', - url: 'https://www.amazon.nl/3080-VENTUS-3X-10G-OC/dp/B08HM4M621' + url: 'https://www.amazon.nl/dp/B08HM4M621' }, { brand: 'msi', model: 'gaming x trio', series: '3080', - url: 'https://www.amazon.nl/3080-GAMING-TRIO-10G-grafische/dp/B08HM4V2DH' + url: 'https://www.amazon.nl/dp/B08HM4V2DH' + }, + { + brand: 'evga', + model: 'xc3 ultra', + series: '3080', + url: 'https://www.amazon.nl/dp/B08HJ9XFNM' + }, + { + brand: 'evga', + model: 'xc3 black', + series: '3080', + url: 'https://www.amazon.nl/dp/B08HH1BMQQ' + }, + { + brand: 'asus', + model: 'rog strix', + series: '3080', + url: 'https://www.amazon.nl/dp/B08HN7VVLJ' } ], name: 'amazon-nl' diff --git a/src/store/model/coolblue.ts b/src/store/model/coolblue.ts index 09c086a..a74bc65 100644 --- a/src/store/model/coolblue.ts +++ b/src/store/model/coolblue.ts @@ -32,7 +32,7 @@ export const Coolblue: Store = { }, { brand: 'asus', - model: 'tuf gaming', + model: 'tuf', series: '3080', url: 'https://www.coolblue.nl/product/868726/' }, @@ -50,7 +50,7 @@ export const Coolblue: Store = { }, { brand: 'asus', - model: 'tuf oc gaming', + model: 'tuf oc', series: '3080', url: 'https://www.coolblue.nl/product/868733/' }, @@ -65,6 +65,54 @@ export const Coolblue: Store = { model: 'rog strix gaming', series: '3080', url: 'https://www.coolblue.nl/product/868732/' + }, + { + brand: 'msi', + model: 'gaming x trio', + series: '3090', + url: 'https://www.coolblue.nl/product/868738/' + }, + { + brand: 'msi', + model: 'ventus 3x oc', + series: '3090', + url: 'https://www.coolblue.nl/product/868739/' + }, + { + brand: 'asus', + model: 'tuf oc', + series: '3090', + url: 'https://www.coolblue.nl/product/868730/' + }, + { + brand: 'asus', + model: 'tuf', + series: '3090', + url: 'https://www.coolblue.nl/product/868727/' + }, + { + brand: 'asus', + model: 'rog strix oc gaming', + series: '3090', + url: 'https://www.coolblue.nl/product/868728/' + }, + { + brand: 'asus', + model: 'rog strix gaming', + series: '3090', + url: 'https://www.coolblue.nl/product/868729/' + }, + { + brand: 'gigabyte', + model: 'gaming oc', + series: '3090', + url: 'https://www.coolblue.nl/product/868734/' + }, + { + brand: 'gigabyte', + model: 'eagle oc', + series: '3090', + url: 'https://www.coolblue.nl/product/868735/' } ], name: 'coolblue'