From 13e1ada0f3c0d55798a5945890888afde354c2fe Mon Sep 17 00:00:00 2001 From: Meyer Paul Date: Mon, 15 Mar 2021 00:11:49 +0100 Subject: [PATCH] refactor(store): replace euroFormat with regex (#2131) --- src/store/includes-labels.ts | 3 +-- src/store/model/acompc.ts | 1 - src/store/model/adorama.ts | 1 - src/store/model/akinformatica.ts | 1 - src/store/model/allneeds.ts | 1 - src/store/model/alternate-nl.ts | 1 - src/store/model/alternate.ts | 1 - src/store/model/amazon-de-warehouse.ts | 1 - src/store/model/amazon-de.ts | 1 - src/store/model/amazon-fr.ts | 1 - src/store/model/amazon-it.ts | 1 - src/store/model/amazon-nl.ts | 1 - src/store/model/amd-ca.ts | 1 - src/store/model/amd-de.ts | 1 - src/store/model/amd-it.ts | 1 - src/store/model/amd-uk.ts | 1 - src/store/model/amd.ts | 1 - src/store/model/antonline.ts | 1 - src/store/model/aria.ts | 1 - src/store/model/arlt.ts | 1 - src/store/model/awd.ts | 1 - src/store/model/azerty.ts | 1 - src/store/model/bandh.ts | 1 - src/store/model/bestbuy-ca.ts | 1 - src/store/model/box.ts | 1 - src/store/model/bpctech.ts | 1 - src/store/model/bpmpower.ts | 1 - src/store/model/canadacomputers.ts | 1 - src/store/model/caseking.ts | 1 - src/store/model/ccl.ts | 1 - src/store/model/centrecom.ts | 1 - src/store/model/computeralliance.ts | 1 - src/store/model/computeruniverse.ts | 1 - src/store/model/coolblue.ts | 1 - src/store/model/coolmod.ts | 1 - src/store/model/corsair.ts | 1 - src/store/model/currys.ts | 1 - src/store/model/cyberport.ts | 1 - src/store/model/dcomp.ts | 1 - src/store/model/drako.ts | 1 - src/store/model/ebuyer.ts | 1 - src/store/model/elcorteingles.ts | 1 - src/store/model/eprice.ts | 1 - src/store/model/equippr.ts | 1 - src/store/model/euronics-de.ts | 1 - src/store/model/evatech.ts | 1 - src/store/model/expert.ts | 1 - src/store/model/futurex.ts | 1 - src/store/model/galaxus.ts | 1 - src/store/model/game.ts | 1 - src/store/model/gamestop-de.ts | 1 - src/store/model/gamestop-it.ts | 1 - src/store/model/gamestop.ts | 1 - src/store/model/hardware-planet.ts | 1 - src/store/model/harveynorman-ie.ts | 1 - src/store/model/igame.ts | 1 - src/store/model/ldlc.ts | 1 - src/store/model/lmc.ts | 1 - src/store/model/mediamarkt.ts | 1 - src/store/model/medimax.ts | 1 - src/store/model/megekko.ts | 1 - src/store/model/memoryexpress.ts | 1 - src/store/model/microcenter.ts | 1 - src/store/model/mindfactory.ts | 1 - src/store/model/msy.ts | 1 - src/store/model/mwave.ts | 1 - src/store/model/newegg-ca.ts | 1 - src/store/model/notebooksbilliger.ts | 1 - src/store/model/novatech.ts | 1 - src/store/model/novoatalho.ts | 1 - src/store/model/officedepot.ts | 1 - src/store/model/ollo.ts | 1 - src/store/model/otto.ts | 1 - src/store/model/overclockers.ts | 1 - src/store/model/pbtech.ts | 1 - src/store/model/pcbyte.ts | 1 - src/store/model/pccomponentes.ts | 1 - src/store/model/pcdiga.ts | 1 - src/store/model/pcking.ts | 1 - src/store/model/pny.ts | 1 - src/store/model/proshop-de.ts | 1 - src/store/model/proshop-dk.ts | 1 - src/store/model/rosman-melb.ts | 1 - src/store/model/rosman.ts | 1 - src/store/model/saturn.ts | 1 - src/store/model/saveonit.ts | 1 - src/store/model/scan.ts | 1 - src/store/model/smythstoys-ie.ts | 1 - src/store/model/smythstoys.ts | 1 - src/store/model/spielegrotte.ts | 1 - src/store/model/store.ts | 1 - src/store/model/storm.ts | 1 - src/store/model/umart.ts | 1 - src/store/model/very.ts | 1 - src/store/model/vsgamers.ts | 1 - src/store/model/wellstechnology.ts | 1 - src/store/model/wipoid.ts | 1 - src/store/model/zotac.ts | 1 - 98 files changed, 1 insertion(+), 99 deletions(-) diff --git a/src/store/includes-labels.ts b/src/store/includes-labels.ts index 4a9c81a9c1..2fa07dae6f 100644 --- a/src/store/includes-labels.ts +++ b/src/store/includes-labels.ts @@ -125,9 +125,8 @@ export async function getPrice( const priceString = await extractPageContents(page, selector); if (priceString) { - const priceSeparator = query.euroFormat ? /\./g : /,/g; const price = Number.parseFloat( - priceString.replace(priceSeparator, '').match(/\d+/g)!.join('.') + priceString.replace(/\\.|\\,/g, '').match(/\d+/g)!.join('.') // eslint-disable-line ); logger.debug('received price', price); diff --git a/src/store/model/acompc.ts b/src/store/model/acompc.ts index 4f3c9b691a..3950b0970f 100644 --- a/src/store/model/acompc.ts +++ b/src/store/model/acompc.ts @@ -9,7 +9,6 @@ export const AComPC: Store = { }, maxPrice: { container: '.price', - euroFormat: true, }, outOfStock: [ { diff --git a/src/store/model/adorama.ts b/src/store/model/adorama.ts index 4888e929ea..8e80bf522e 100644 --- a/src/store/model/adorama.ts +++ b/src/store/model/adorama.ts @@ -13,7 +13,6 @@ export const Adorama: Store = { }, maxPrice: { container: '.your-price', - euroFormat: false, }, }, links: [ diff --git a/src/store/model/akinformatica.ts b/src/store/model/akinformatica.ts index 483e7c31c5..17dbb1b950 100644 --- a/src/store/model/akinformatica.ts +++ b/src/store/model/akinformatica.ts @@ -15,7 +15,6 @@ export const Akinformatica: Store = { ], maxPrice: { container: '#PrezzoListinoIvatoLabel', - euroFormat: true, }, outOfStock: [ { diff --git a/src/store/model/allneeds.ts b/src/store/model/allneeds.ts index 3252ba6ac2..02449d5b64 100644 --- a/src/store/model/allneeds.ts +++ b/src/store/model/allneeds.ts @@ -10,7 +10,6 @@ export const Allneeds: Store = { }, maxPrice: { container: 'span.price', - euroFormat: false, }, outOfStock: { container: '.amstockstatus', diff --git a/src/store/model/alternate-nl.ts b/src/store/model/alternate-nl.ts index dc264e99c7..1649bf6f8f 100644 --- a/src/store/model/alternate-nl.ts +++ b/src/store/model/alternate-nl.ts @@ -9,7 +9,6 @@ export const AlternateNL: Store = { }, maxPrice: { container: 'div.price > span', - euroFormat: true, }, outOfStock: { container: '.stockStatus', diff --git a/src/store/model/alternate.ts b/src/store/model/alternate.ts index 57058f2c5f..b5a78c4a6e 100644 --- a/src/store/model/alternate.ts +++ b/src/store/model/alternate.ts @@ -14,7 +14,6 @@ export const Alternate: Store = { }, maxPrice: { container: 'div.price > span', - euroFormat: true, }, outOfStock: [ { diff --git a/src/store/model/amazon-de-warehouse.ts b/src/store/model/amazon-de-warehouse.ts index 93713bbed9..6aa0137541 100644 --- a/src/store/model/amazon-de-warehouse.ts +++ b/src/store/model/amazon-de-warehouse.ts @@ -17,7 +17,6 @@ export const AmazonDeWarehouse: Store = { }, maxPrice: { container: '.olpOfferPrice', - euroFormat: true, }, outOfStock: [ { diff --git a/src/store/model/amazon-de.ts b/src/store/model/amazon-de.ts index 1ff324b9eb..c54ad1f545 100644 --- a/src/store/model/amazon-de.ts +++ b/src/store/model/amazon-de.ts @@ -17,7 +17,6 @@ export const AmazonDe: Store = { }, maxPrice: { container: '#priceblock_ourprice', - euroFormat: true, }, outOfStock: [ { diff --git a/src/store/model/amazon-fr.ts b/src/store/model/amazon-fr.ts index e906cbd582..dff838d9ba 100644 --- a/src/store/model/amazon-fr.ts +++ b/src/store/model/amazon-fr.ts @@ -14,7 +14,6 @@ export const AmazonFr: Store = { }, maxPrice: { container: '#priceblock_ourprice', - euroFormat: true, }, outOfStock: [ { diff --git a/src/store/model/amazon-it.ts b/src/store/model/amazon-it.ts index 6bf04209ae..1127230ce1 100644 --- a/src/store/model/amazon-it.ts +++ b/src/store/model/amazon-it.ts @@ -14,7 +14,6 @@ export const AmazonIt: Store = { }, maxPrice: { container: '#priceblock_ourprice', - euroFormat: true, }, }, links: [ diff --git a/src/store/model/amazon-nl.ts b/src/store/model/amazon-nl.ts index f68b139cbf..b9055315d2 100644 --- a/src/store/model/amazon-nl.ts +++ b/src/store/model/amazon-nl.ts @@ -19,7 +19,6 @@ export const AmazonNl: Store = { ], maxPrice: { container: '#priceblock_ourprice', - euroFormat: true, }, outOfStock: [ { diff --git a/src/store/model/amd-ca.ts b/src/store/model/amd-ca.ts index 36a8aa3c45..de7e031cdd 100644 --- a/src/store/model/amd-ca.ts +++ b/src/store/model/amd-ca.ts @@ -9,7 +9,6 @@ export const AmdCa: Store = { }, maxPrice: { container: '.product-page-description h4', - euroFormat: false, }, }, links: [ diff --git a/src/store/model/amd-de.ts b/src/store/model/amd-de.ts index 872c127291..bdecde1b3c 100644 --- a/src/store/model/amd-de.ts +++ b/src/store/model/amd-de.ts @@ -9,7 +9,6 @@ export const AmdDe: Store = { }, maxPrice: { container: '.product-page-description h4', - euroFormat: true, }, outOfStock: { container: '.btn-radeon', diff --git a/src/store/model/amd-it.ts b/src/store/model/amd-it.ts index dfb6c905a3..89ee5dc82e 100644 --- a/src/store/model/amd-it.ts +++ b/src/store/model/amd-it.ts @@ -9,7 +9,6 @@ export const AmdIt: Store = { }, maxPrice: { container: '.product-page-description h4', - euroFormat: true, }, }, links: [ diff --git a/src/store/model/amd-uk.ts b/src/store/model/amd-uk.ts index 086b2c42bd..5bb3bf872a 100644 --- a/src/store/model/amd-uk.ts +++ b/src/store/model/amd-uk.ts @@ -15,7 +15,6 @@ export const AmdUk: Store = { ], maxPrice: { container: '.product-page-description h4', - euroFormat: false, }, outOfStock: [ { diff --git a/src/store/model/amd.ts b/src/store/model/amd.ts index 3fdefb1373..da587ea1a7 100644 --- a/src/store/model/amd.ts +++ b/src/store/model/amd.ts @@ -9,7 +9,6 @@ export const Amd: Store = { }, maxPrice: { container: '.product-page-description h4', - euroFormat: false, }, }, links: [ diff --git a/src/store/model/antonline.ts b/src/store/model/antonline.ts index cd06a72067..9524a7f5b5 100644 --- a/src/store/model/antonline.ts +++ b/src/store/model/antonline.ts @@ -9,7 +9,6 @@ export const AntOnline: Store = { }, maxPrice: { container: '.cPrice', - euroFormat: false, }, outOfStock: { container: '.priceView-price .priceView-hero-price span', diff --git a/src/store/model/aria.ts b/src/store/model/aria.ts index 5269fd9435..929386d754 100644 --- a/src/store/model/aria.ts +++ b/src/store/model/aria.ts @@ -10,7 +10,6 @@ export const Aria: Store = { }, maxPrice: { container: '.priceBig', - euroFormat: false, // Note: Aria uses non-euroFromat as price seperator }, outOfStock: { container: '.fBox', diff --git a/src/store/model/arlt.ts b/src/store/model/arlt.ts index ade6076fce..85797144f7 100644 --- a/src/store/model/arlt.ts +++ b/src/store/model/arlt.ts @@ -9,7 +9,6 @@ export const Arlt: Store = { }, maxPrice: { container: '.articleprice .price', - euroFormat: true, }, outOfStock: { container: '.articleDesc .shippingtext', diff --git a/src/store/model/awd.ts b/src/store/model/awd.ts index c8906a53af..2070f119a4 100644 --- a/src/store/model/awd.ts +++ b/src/store/model/awd.ts @@ -10,7 +10,6 @@ export const Awd: Store = { }, maxPrice: { container: '.ty-price', - euroFormat: false, // Note: Awd uses non-euroFromat as price seperator }, outOfStock: { container: '.vs-stock.ty-float-left', diff --git a/src/store/model/azerty.ts b/src/store/model/azerty.ts index 07f82ea75e..f48205db50 100644 --- a/src/store/model/azerty.ts +++ b/src/store/model/azerty.ts @@ -9,7 +9,6 @@ export const Azerty: Store = { }, maxPrice: { container: '.mod_article .price', - euroFormat: true, }, outOfStock: { container: '.orderdelay', diff --git a/src/store/model/bandh.ts b/src/store/model/bandh.ts index 915a3303bc..817d9ef36d 100644 --- a/src/store/model/bandh.ts +++ b/src/store/model/bandh.ts @@ -10,7 +10,6 @@ export const BAndH: Store = { }, maxPrice: { container: 'div[data-selenium="pricingPrice"]', - euroFormat: false, }, outOfStock: { container: 'button[data-selenium="notifyAvailabilityButton"]', diff --git a/src/store/model/bestbuy-ca.ts b/src/store/model/bestbuy-ca.ts index 9169f63c0a..36182e9fc9 100644 --- a/src/store/model/bestbuy-ca.ts +++ b/src/store/model/bestbuy-ca.ts @@ -5,7 +5,6 @@ export const BestBuyCa: Store = { labels: { maxPrice: { container: 'div[class*="pricingContainer"]', - euroFormat: false, }, outOfStock: { container: '.addToCartButton:disabled', diff --git a/src/store/model/box.ts b/src/store/model/box.ts index daac4a8273..bd9e086957 100644 --- a/src/store/model/box.ts +++ b/src/store/model/box.ts @@ -11,7 +11,6 @@ export const Box: Store = { }, maxPrice: { container: '.p-price', - euroFormat: false, // Note: Box uses non-euroFromat as price seperator }, outOfStock: { container: '#divBuyButton', diff --git a/src/store/model/bpctech.ts b/src/store/model/bpctech.ts index 37d9acc1e1..46c006ae0a 100644 --- a/src/store/model/bpctech.ts +++ b/src/store/model/bpctech.ts @@ -10,7 +10,6 @@ export const Bpctech: Store = { }, maxPrice: { container: 'div.price-box.price-final_price > span > span', - euroFormat: false, }, }, links: [ diff --git a/src/store/model/bpmpower.ts b/src/store/model/bpmpower.ts index 7219535dff..66f3b08662 100644 --- a/src/store/model/bpmpower.ts +++ b/src/store/model/bpmpower.ts @@ -9,7 +9,6 @@ export const BpmPower: Store = { }, maxPrice: { container: 'p.prezzoScheda:nth-child(1)', - euroFormat: true, }, outOfStock: { container: '.dispoSiProd >span', diff --git a/src/store/model/canadacomputers.ts b/src/store/model/canadacomputers.ts index 04b8a870d5..a9ff040593 100644 --- a/src/store/model/canadacomputers.ts +++ b/src/store/model/canadacomputers.ts @@ -9,7 +9,6 @@ export const CanadaComputers: Store = { }, maxPrice: { container: '.h2-big > strong:nth-child(1)', - euroFormat: false, }, }, links: [ diff --git a/src/store/model/caseking.ts b/src/store/model/caseking.ts index a395e7dc79..fcaf1e6d41 100644 --- a/src/store/model/caseking.ts +++ b/src/store/model/caseking.ts @@ -10,7 +10,6 @@ export const Caseking: Store = { }, maxPrice: { container: '#buybox .article_details_price', - euroFormat: true, }, outOfStock: { container: '.delivery_container', diff --git a/src/store/model/ccl.ts b/src/store/model/ccl.ts index da0ffe08be..6a48f923ea 100644 --- a/src/store/model/ccl.ts +++ b/src/store/model/ccl.ts @@ -11,7 +11,6 @@ export const Ccl: Store = { }, maxPrice: { container: '#pnlPriceText > p', - euroFormat: false, // Note: CCL uses non-euroFromat as price seperator }, outOfStock: { container: '#pnlSoldOut', diff --git a/src/store/model/centrecom.ts b/src/store/model/centrecom.ts index 09768ee4ad..50a4e0a3d9 100644 --- a/src/store/model/centrecom.ts +++ b/src/store/model/centrecom.ts @@ -10,7 +10,6 @@ export const Centrecom: Store = { }, maxPrice: { container: 'div.prod_price_current.product-price > span', - euroFormat: false, }, outOfStock: { container: '.prod_stores_stock > li:nth-child(1) > span:nth-child(2)', diff --git a/src/store/model/computeralliance.ts b/src/store/model/computeralliance.ts index ed30e1c694..cfd6de7e37 100644 --- a/src/store/model/computeralliance.ts +++ b/src/store/model/computeralliance.ts @@ -11,7 +11,6 @@ export const ComputerAlliance: Store = { }, maxPrice: { container: 'span.price', - euroFormat: false, }, outOfStock: { container: diff --git a/src/store/model/computeruniverse.ts b/src/store/model/computeruniverse.ts index 0012a95cf5..1d7566ea4b 100644 --- a/src/store/model/computeruniverse.ts +++ b/src/store/model/computeruniverse.ts @@ -13,7 +13,6 @@ export const Computeruniverse: Store = { }, maxPrice: { container: '.product-price', - euroFormat: true, }, outOfStock: { container: '.availability', diff --git a/src/store/model/coolblue.ts b/src/store/model/coolblue.ts index 5df07e4ddb..3451996721 100644 --- a/src/store/model/coolblue.ts +++ b/src/store/model/coolblue.ts @@ -9,7 +9,6 @@ export const Coolblue: Store = { }, maxPrice: { container: '.js-order-block .sales-price__current', - euroFormat: true, }, outOfStock: { container: '.product-order', diff --git a/src/store/model/coolmod.ts b/src/store/model/coolmod.ts index bd7171e571..64b7289805 100644 --- a/src/store/model/coolmod.ts +++ b/src/store/model/coolmod.ts @@ -9,7 +9,6 @@ export const Coolmod: Store = { }, maxPrice: { container: '.text-price-total', - euroFormat: true, }, outOfStock: { container: '.product-availability', diff --git a/src/store/model/corsair.ts b/src/store/model/corsair.ts index e646f6a6c4..ac58fd11af 100644 --- a/src/store/model/corsair.ts +++ b/src/store/model/corsair.ts @@ -9,7 +9,6 @@ export const Corsair: Store = { }, maxPrice: { container: '.product-price', - euroFormat: false, }, }, links: [ diff --git a/src/store/model/currys.ts b/src/store/model/currys.ts index 705b56ed4c..93eb9014ff 100644 --- a/src/store/model/currys.ts +++ b/src/store/model/currys.ts @@ -10,7 +10,6 @@ export const Currys: Store = { }, maxPrice: { container: '#product-actions span[class*="ProductPriceBlock__Price"]', - euroFormat: false, // Note: Currys uses non-euroFromat as price seperator }, outOfStock: { container: '#product-actions .unavailable', diff --git a/src/store/model/cyberport.ts b/src/store/model/cyberport.ts index 363767cb81..6c2dd1681a 100644 --- a/src/store/model/cyberport.ts +++ b/src/store/model/cyberport.ts @@ -9,7 +9,6 @@ export const Cyberport: Store = { }, maxPrice: { container: '#productDetailOverview .price', - euroFormat: true, }, outOfStock: { container: '.tooltipAvailabilityParent', diff --git a/src/store/model/dcomp.ts b/src/store/model/dcomp.ts index 6c8d66a369..34c32b107b 100644 --- a/src/store/model/dcomp.ts +++ b/src/store/model/dcomp.ts @@ -10,7 +10,6 @@ export const Dcomp: Store = { }, maxPrice: { container: '#prodprice', - euroFormat: false, }, outOfStock: { container: '#cart-info > button.btn.notifyMe', diff --git a/src/store/model/drako.ts b/src/store/model/drako.ts index 889a3e4c82..449bd226e7 100644 --- a/src/store/model/drako.ts +++ b/src/store/model/drako.ts @@ -11,7 +11,6 @@ export const Drako: Store = { ], maxPrice: { container: '.price', - euroFormat: true, }, }, links: [ diff --git a/src/store/model/ebuyer.ts b/src/store/model/ebuyer.ts index f02e33a509..0e20cc8f0c 100644 --- a/src/store/model/ebuyer.ts +++ b/src/store/model/ebuyer.ts @@ -10,7 +10,6 @@ export const Ebuyer: Store = { }, maxPrice: { container: '.purchase-info__price .price', - euroFormat: false, // Note: ebuyer uses non-euroFromat as price seperator }, outOfStock: { container: '.purchase-info', diff --git a/src/store/model/elcorteingles.ts b/src/store/model/elcorteingles.ts index bf4a4fdd63..aec8544eeb 100644 --- a/src/store/model/elcorteingles.ts +++ b/src/store/model/elcorteingles.ts @@ -19,7 +19,6 @@ export const Elcorteingles: Store = { ], maxPrice: { container: '.product_detail-buy-price-container .price._big', - euroFormat: true, }, outOfStock: [ { diff --git a/src/store/model/eprice.ts b/src/store/model/eprice.ts index 0f1ee0cf73..6d29e395e0 100644 --- a/src/store/model/eprice.ts +++ b/src/store/model/eprice.ts @@ -9,7 +9,6 @@ export const Eprice: Store = { }, maxPrice: { container: '#PrezzoClasic span[class*="big"]', - euroFormat: true, }, outOfStock: { container: '.dispo', diff --git a/src/store/model/equippr.ts b/src/store/model/equippr.ts index 315d69755f..1f828b7f0c 100644 --- a/src/store/model/equippr.ts +++ b/src/store/model/equippr.ts @@ -9,7 +9,6 @@ export const Equippr: Store = { }, maxPrice: { container: '.product--price', - euroFormat: true, }, outOfStock: { container: '.product--buybox', diff --git a/src/store/model/euronics-de.ts b/src/store/model/euronics-de.ts index 08195b7cac..cdfde59b6a 100644 --- a/src/store/model/euronics-de.ts +++ b/src/store/model/euronics-de.ts @@ -9,7 +9,6 @@ export const EuronicsDE: Store = { }, maxPrice: { container: '.price--content', - euroFormat: true, }, outOfStock: { container: diff --git a/src/store/model/evatech.ts b/src/store/model/evatech.ts index ea6a9fd0f6..7d623a28ec 100644 --- a/src/store/model/evatech.ts +++ b/src/store/model/evatech.ts @@ -10,7 +10,6 @@ export const Evatech: Store = { }, maxPrice: { container: '.product_detail_price', - euroFormat: false, }, outOfStock: { container: '.product_detail_add_to_cart > div:nth-child(2)', diff --git a/src/store/model/expert.ts b/src/store/model/expert.ts index c49a7c5e45..e523a177a8 100644 --- a/src/store/model/expert.ts +++ b/src/store/model/expert.ts @@ -12,7 +12,6 @@ export const Expert: Store = { ], maxPrice: { container: '.widget-Container-subContent .widget-ArticlePrice-price', - euroFormat: false, }, outOfStock: [ { diff --git a/src/store/model/futurex.ts b/src/store/model/futurex.ts index 53c68574d7..f1468be60f 100644 --- a/src/store/model/futurex.ts +++ b/src/store/model/futurex.ts @@ -9,7 +9,6 @@ export const Futurex: Store = { }, maxPrice: { container: '.price', - euroFormat: true, }, outOfStock: [ { diff --git a/src/store/model/galaxus.ts b/src/store/model/galaxus.ts index 8a1b65c208..0fba50641f 100644 --- a/src/store/model/galaxus.ts +++ b/src/store/model/galaxus.ts @@ -9,7 +9,6 @@ export const Galaxus: Store = { }, maxPrice: { container: '.productDetail .Z1c8', - euroFormat: true, }, outOfStock: [ { diff --git a/src/store/model/game.ts b/src/store/model/game.ts index b9e54ee489..ea19346d81 100644 --- a/src/store/model/game.ts +++ b/src/store/model/game.ts @@ -9,7 +9,6 @@ export const Game: Store = { }, maxPrice: { container: '.buyingOptions .btnPrice', - euroFormat: false, }, outOfStock: { container: '.buyingOptions', diff --git a/src/store/model/gamestop-de.ts b/src/store/model/gamestop-de.ts index 63a5513ab4..e9accbdfbd 100644 --- a/src/store/model/gamestop-de.ts +++ b/src/store/model/gamestop-de.ts @@ -15,7 +15,6 @@ export const GamestopDE: Store = { ], maxPrice: { container: '.buySection .prodPriceCont', - euroFormat: true, }, outOfStock: { container: '.megaButton', diff --git a/src/store/model/gamestop-it.ts b/src/store/model/gamestop-it.ts index cec223085c..a8b94e251d 100644 --- a/src/store/model/gamestop-it.ts +++ b/src/store/model/gamestop-it.ts @@ -9,7 +9,6 @@ export const GamestopIT: Store = { }, maxPrice: { container: '.buySection .prodPriceCont', - euroFormat: true, }, outOfStock: { container: '.megaButton .buyDisabled', diff --git a/src/store/model/gamestop.ts b/src/store/model/gamestop.ts index b538276adc..5d77660f78 100644 --- a/src/store/model/gamestop.ts +++ b/src/store/model/gamestop.ts @@ -15,7 +15,6 @@ export const Gamestop: Store = { ], maxPrice: { container: '.primary-details-row .actual-price', - euroFormat: false, }, outOfStock: { container: '.add-to-cart', diff --git a/src/store/model/hardware-planet.ts b/src/store/model/hardware-planet.ts index b7cb41b2a2..f5b6f668ff 100644 --- a/src/store/model/hardware-planet.ts +++ b/src/store/model/hardware-planet.ts @@ -11,7 +11,6 @@ export const HardwarePlanet: Store = { }, maxPrice: { container: '.product-price', - euroFormat: true, }, outOfStock: { container: '#product-availability', diff --git a/src/store/model/harveynorman-ie.ts b/src/store/model/harveynorman-ie.ts index 13f1af5fa8..ad43e7e4bf 100644 --- a/src/store/model/harveynorman-ie.ts +++ b/src/store/model/harveynorman-ie.ts @@ -9,7 +9,6 @@ export const HarveyNormanIE: Store = { }, maxPrice: { container: '.price', - euroFormat: false, }, outOfStock: { container: '.product-highlight-text', diff --git a/src/store/model/igame.ts b/src/store/model/igame.ts index 4696124781..e2b5654aff 100644 --- a/src/store/model/igame.ts +++ b/src/store/model/igame.ts @@ -11,7 +11,6 @@ export const Igamecomputer: Store = { }, maxPrice: { container: 'div.price__pricing-group > div.price__regular > dd > span', - euroFormat: false, }, outOfStock: { container: diff --git a/src/store/model/ldlc.ts b/src/store/model/ldlc.ts index 73279bd547..cc48ff4c4e 100644 --- a/src/store/model/ldlc.ts +++ b/src/store/model/ldlc.ts @@ -9,7 +9,6 @@ export const Ldlc: Store = { }, maxPrice: { container: '.price .price', - euroFormat: true, }, outOfStock: { container: '.stock', diff --git a/src/store/model/lmc.ts b/src/store/model/lmc.ts index 0544e10346..05479a152b 100644 --- a/src/store/model/lmc.ts +++ b/src/store/model/lmc.ts @@ -10,7 +10,6 @@ export const LandmarkComputers: Store = { }, maxPrice: { container: '.product-views-price-lead', - euroFormat: false, }, outOfStock: { container: '.stock-info-message', diff --git a/src/store/model/mediamarkt.ts b/src/store/model/mediamarkt.ts index fa0d89f32d..6e691f5ac6 100644 --- a/src/store/model/mediamarkt.ts +++ b/src/store/model/mediamarkt.ts @@ -10,7 +10,6 @@ export const Mediamarkt: Store = { }, maxPrice: { container: 'span[font-family="price"]', - euroFormat: false, }, outOfStock: [ { diff --git a/src/store/model/medimax.ts b/src/store/model/medimax.ts index 7bae72c180..1820721c58 100644 --- a/src/store/model/medimax.ts +++ b/src/store/model/medimax.ts @@ -15,7 +15,6 @@ export const Medimax: Store = { ], maxPrice: { container: '.priceOfProduct', - euroFormat: true, }, outOfStock: { container: '.content .large', diff --git a/src/store/model/megekko.ts b/src/store/model/megekko.ts index 85e285b72f..401b11519c 100644 --- a/src/store/model/megekko.ts +++ b/src/store/model/megekko.ts @@ -9,7 +9,6 @@ export const Megekko: Store = { }, maxPrice: { container: '.col_right_container .euro', - euroFormat: false, }, outOfStock: { container: '.product_detail .text_red', diff --git a/src/store/model/memoryexpress.ts b/src/store/model/memoryexpress.ts index d41d67f744..d63165c38b 100644 --- a/src/store/model/memoryexpress.ts +++ b/src/store/model/memoryexpress.ts @@ -6,7 +6,6 @@ export const MemoryExpress: Store = { maxPrice: { container: '#ProductPricing .GrandTotal.c-capr-pricing__grand-total > div', - euroFormat: false, }, outOfStock: { container: diff --git a/src/store/model/microcenter.ts b/src/store/model/microcenter.ts index 31e888abb2..fc0dd2b7ea 100644 --- a/src/store/model/microcenter.ts +++ b/src/store/model/microcenter.ts @@ -283,7 +283,6 @@ export const MicroCenter: Store = { }, maxPrice: { container: 'span[id="pricing"]', - euroFormat: false, }, }, links, diff --git a/src/store/model/mindfactory.ts b/src/store/model/mindfactory.ts index 87d14fd7da..e1322a766b 100644 --- a/src/store/model/mindfactory.ts +++ b/src/store/model/mindfactory.ts @@ -9,7 +9,6 @@ export const Mindfactory: Store = { }, maxPrice: { container: 'div[class="pprice"]', - euroFormat: true, }, outOfStock: { container: '.pshipping', diff --git a/src/store/model/msy.ts b/src/store/model/msy.ts index 411b5bdfe2..71fba8cb83 100644 --- a/src/store/model/msy.ts +++ b/src/store/model/msy.ts @@ -12,7 +12,6 @@ export const Msy: Store = { maxPrice: { container: '#product-details-form > div > div.product-essential > div.overview > div.prices > div > span', - euroFormat: false, }, outOfStock: { container: 'td.spec-name:nth-child(2)', diff --git a/src/store/model/mwave.ts b/src/store/model/mwave.ts index 250dfcfc0e..2293022e37 100644 --- a/src/store/model/mwave.ts +++ b/src/store/model/mwave.ts @@ -6,7 +6,6 @@ export const Mwave: Store = { labels: { maxPrice: { container: 'div.divPriceNormal > div', - euroFormat: false, }, outOfStock: { container: '.stockAndDelivery > li:nth-child(1) > dl > dd', diff --git a/src/store/model/newegg-ca.ts b/src/store/model/newegg-ca.ts index 0d7a7d2a61..8e49c8c8d2 100644 --- a/src/store/model/newegg-ca.ts +++ b/src/store/model/newegg-ca.ts @@ -14,7 +14,6 @@ export const NeweggCa: Store = { }, maxPrice: { container: 'div#app div.product-price > ul > li.price-current > strong', - euroFormat: false, }, outOfStock: [ { diff --git a/src/store/model/notebooksbilliger.ts b/src/store/model/notebooksbilliger.ts index fd36a02c88..b0764cf5c8 100644 --- a/src/store/model/notebooksbilliger.ts +++ b/src/store/model/notebooksbilliger.ts @@ -14,7 +14,6 @@ export const Notebooksbilliger: Store = { maxPrice: { container: 'form[name="cart_quantity"] span[class*="product-price__regular"]', - euroFormat: true, }, outOfStock: [ { diff --git a/src/store/model/novatech.ts b/src/store/model/novatech.ts index 30e8454edb..f3e41919d4 100644 --- a/src/store/model/novatech.ts +++ b/src/store/model/novatech.ts @@ -10,7 +10,6 @@ export const Novatech: Store = { }, maxPrice: { container: 'p[class="newspec-price"]', - euroFormat: false, // Note: Novatech uses non-euroFromat as price seperator }, outOfStock: { container: '.newspec-pricesection', diff --git a/src/store/model/novoatalho.ts b/src/store/model/novoatalho.ts index 334f899658..fbe43905a3 100644 --- a/src/store/model/novoatalho.ts +++ b/src/store/model/novoatalho.ts @@ -16,7 +16,6 @@ export const NovoAtalho: Store = { maxPrice: { container: 'div.line > div.pull-right > div.text-right > span.product-price', - euroFormat: true, }, }, links: [ diff --git a/src/store/model/officedepot.ts b/src/store/model/officedepot.ts index 675a09301c..64f9c3e212 100644 --- a/src/store/model/officedepot.ts +++ b/src/store/model/officedepot.ts @@ -13,7 +13,6 @@ export const OfficeDepot: Store = { }, maxPrice: { container: 'span[class^="price_column right"]', - euroFormat: false, }, }, links: [ diff --git a/src/store/model/ollo.ts b/src/store/model/ollo.ts index 65e3fd72fb..accae9a401 100644 --- a/src/store/model/ollo.ts +++ b/src/store/model/ollo.ts @@ -12,7 +12,6 @@ export const Ollo: Store = { ], maxPrice: { container: '.main-product-price', - euroFormat: true, }, outOfStock: { container: diff --git a/src/store/model/otto.ts b/src/store/model/otto.ts index 1932754533..f40e2fa515 100644 --- a/src/store/model/otto.ts +++ b/src/store/model/otto.ts @@ -12,7 +12,6 @@ export const Otto: Store = { ], maxPrice: { container: '#normalPriceAmount', - euroFormat: true, }, outOfStock: { container: 'div.p_message.p_message--hint > strong', diff --git a/src/store/model/overclockers.ts b/src/store/model/overclockers.ts index ff3678b6db..24922f04d2 100644 --- a/src/store/model/overclockers.ts +++ b/src/store/model/overclockers.ts @@ -10,7 +10,6 @@ export const Overclockers: Store = { }, maxPrice: { container: 'div[class="article_details_price"]', - euroFormat: false, // Note: Overclockers uses non-euroFromat as price seperator }, outOfStock: { container: '#detailbox', diff --git a/src/store/model/pbtech.ts b/src/store/model/pbtech.ts index c934387104..d3bb0fc275 100644 --- a/src/store/model/pbtech.ts +++ b/src/store/model/pbtech.ts @@ -17,7 +17,6 @@ export const PBTech: Store = { ], maxPrice: { container: 'div.p_price_dd > div.p_price > span.ginc', - euroFormat: false, }, outOfStock: { container: diff --git a/src/store/model/pcbyte.ts b/src/store/model/pcbyte.ts index a5e57e7b10..9b138e3ec8 100644 --- a/src/store/model/pcbyte.ts +++ b/src/store/model/pcbyte.ts @@ -10,7 +10,6 @@ export const PCByte: Store = { }, maxPrice: { container: 'div.price-line.d-flex.mb-3 > div:nth-child(1) > span > span', - euroFormat: false, }, outOfStock: { container: 'a.btn:nth-child(3)', diff --git a/src/store/model/pccomponentes.ts b/src/store/model/pccomponentes.ts index bc887de2f5..9e64cff784 100644 --- a/src/store/model/pccomponentes.ts +++ b/src/store/model/pccomponentes.ts @@ -9,7 +9,6 @@ export const PCComponentes: Store = { }, maxPrice: { container: '#precio-main', - euroFormat: true, }, outOfStock: { container: '#btnsWishAddBuy', diff --git a/src/store/model/pcdiga.ts b/src/store/model/pcdiga.ts index 24be088cf7..ff3e517d59 100644 --- a/src/store/model/pcdiga.ts +++ b/src/store/model/pcdiga.ts @@ -13,7 +13,6 @@ export const PCDiga: Store = { }, maxPrice: { container: '.price-container.price-final_price > .price-wrapper > span', - euroFormat: true, }, }, links: [ diff --git a/src/store/model/pcking.ts b/src/store/model/pcking.ts index d6d28db11d..51cf0e2c17 100644 --- a/src/store/model/pcking.ts +++ b/src/store/model/pcking.ts @@ -9,7 +9,6 @@ export const PCKing: Store = { }, maxPrice: { container: 'div.es_product_price-article_detail > b', - euroFormat: true, }, outOfStock: [ { diff --git a/src/store/model/pny.ts b/src/store/model/pny.ts index bf0c8c0460..400a188bfb 100644 --- a/src/store/model/pny.ts +++ b/src/store/model/pny.ts @@ -9,7 +9,6 @@ export const Pny: Store = { }, maxPrice: { container: 'span[itemprop="price"]', - euroFormat: false, }, }, links: [ diff --git a/src/store/model/proshop-de.ts b/src/store/model/proshop-de.ts index 61ee210ec6..8939ae3346 100644 --- a/src/store/model/proshop-de.ts +++ b/src/store/model/proshop-de.ts @@ -10,7 +10,6 @@ export const ProshopDE: Store = { maxPrice: { container: '.site-currency-wrapper > span[class="site-currency-attention"]', - euroFormat: true, }, outOfStock: { container: '.site-currency-attention', diff --git a/src/store/model/proshop-dk.ts b/src/store/model/proshop-dk.ts index 204bec44d2..e6347bf44d 100644 --- a/src/store/model/proshop-dk.ts +++ b/src/store/model/proshop-dk.ts @@ -10,7 +10,6 @@ export const ProshopDK: Store = { maxPrice: { container: '.site-currency-wrapper > span[class="site-currency-attention"]', - euroFormat: true, }, outOfStock: { container: '.site-stock', diff --git a/src/store/model/rosman-melb.ts b/src/store/model/rosman-melb.ts index d151ae6351..98728e02db 100644 --- a/src/store/model/rosman-melb.ts +++ b/src/store/model/rosman-melb.ts @@ -11,7 +11,6 @@ export const RosmanMelb: Store = { }, maxPrice: { container: 'span.price.price--withTax.price--main', - euroFormat: false, }, outOfStock: { container: diff --git a/src/store/model/rosman.ts b/src/store/model/rosman.ts index c1e84c6e14..541fb0a312 100644 --- a/src/store/model/rosman.ts +++ b/src/store/model/rosman.ts @@ -11,7 +11,6 @@ export const Rosman: Store = { }, maxPrice: { container: 'span.price.price--withTax.price--main', - euroFormat: false, }, outOfStock: { container: diff --git a/src/store/model/saturn.ts b/src/store/model/saturn.ts index 86f1d5485c..61938c8425 100644 --- a/src/store/model/saturn.ts +++ b/src/store/model/saturn.ts @@ -10,7 +10,6 @@ export const Saturn: Store = { }, maxPrice: { container: 'span[font-family="price"]', - euroFormat: false, }, outOfStock: [ { diff --git a/src/store/model/saveonit.ts b/src/store/model/saveonit.ts index 77671a444d..542c836b9c 100644 --- a/src/store/model/saveonit.ts +++ b/src/store/model/saveonit.ts @@ -10,7 +10,6 @@ export const SaveOnIt: Store = { }, maxPrice: { container: '.money', - euroFormat: false, }, outOfStock: { container: '.supplier', diff --git a/src/store/model/scan.ts b/src/store/model/scan.ts index 5fc02e5738..8aedee6b25 100644 --- a/src/store/model/scan.ts +++ b/src/store/model/scan.ts @@ -17,7 +17,6 @@ export const Scan: Store = { }, maxPrice: { container: '.buyPanel .price', - euroFormat: false, // Note: Scan uses non-euroFromat as price seperator }, outOfStock: { container: '.buyPanel .priceAvailability', diff --git a/src/store/model/smythstoys-ie.ts b/src/store/model/smythstoys-ie.ts index 24d848333e..0ffab9c43f 100644 --- a/src/store/model/smythstoys-ie.ts +++ b/src/store/model/smythstoys-ie.ts @@ -10,7 +10,6 @@ export const SmythsToysIE: Store = { }, maxPrice: { container: '.price_tag', - euroFormat: false, }, outOfStock: { container: '.instoreMessage', diff --git a/src/store/model/smythstoys.ts b/src/store/model/smythstoys.ts index f44ed50a45..8de94b8ca2 100644 --- a/src/store/model/smythstoys.ts +++ b/src/store/model/smythstoys.ts @@ -9,7 +9,6 @@ export const SmythsToys: Store = { }, maxPrice: { container: '.price_tag', - euroFormat: false, }, outOfStock: { container: '.instoreMessage', diff --git a/src/store/model/spielegrotte.ts b/src/store/model/spielegrotte.ts index 26f95cffcf..9935045ea5 100644 --- a/src/store/model/spielegrotte.ts +++ b/src/store/model/spielegrotte.ts @@ -13,7 +13,6 @@ export const Spielegrotte: Store = { maxPrice: { container: 'html > body > table > tbody > tr > td > div > table > tbody > tr > td > center > table > tbody > tr > td > font > b', - euroFormat: true, }, outOfStock: { container: diff --git a/src/store/model/store.ts b/src/store/model/store.ts index a0265dd7e0..c4678b8787 100644 --- a/src/store/model/store.ts +++ b/src/store/model/store.ts @@ -7,7 +7,6 @@ export type Element = { export type Pricing = { container: string; - euroFormat?: boolean; }; export type Brand = diff --git a/src/store/model/storm.ts b/src/store/model/storm.ts index 4257c14807..74daac5e34 100644 --- a/src/store/model/storm.ts +++ b/src/store/model/storm.ts @@ -10,7 +10,6 @@ export const StormComputers: Store = { }, maxPrice: { container: '.price', - euroFormat: false, }, outOfStock: { container: 'div.summary.entry-summary > p.stock.out-of-stock', diff --git a/src/store/model/umart.ts b/src/store/model/umart.ts index 535156d03f..159b1de82f 100644 --- a/src/store/model/umart.ts +++ b/src/store/model/umart.ts @@ -10,7 +10,6 @@ export const Umart: Store = { }, maxPrice: { container: '.goods-price', - euroFormat: false, }, outOfStock: { container: 'div.price-box > div.stock-label', diff --git a/src/store/model/very.ts b/src/store/model/very.ts index 3c42bc031b..20809f437b 100644 --- a/src/store/model/very.ts +++ b/src/store/model/very.ts @@ -11,7 +11,6 @@ export const Very: Store = { }, maxPrice: { container: '.priceNow', - euroFormat: false, // Note: Very uses non-euroFromat as price seperator }, outOfStock: { container: '.stockMessaging .indicator', diff --git a/src/store/model/vsgamers.ts b/src/store/model/vsgamers.ts index 30d805c4a7..dc60d0ccd3 100644 --- a/src/store/model/vsgamers.ts +++ b/src/store/model/vsgamers.ts @@ -9,7 +9,6 @@ export const VsGamers: Store = { }, maxPrice: { container: 'div[class="current ng-binding"]', - euroFormat: true, }, outOfStock: { container: '#vs-product-sheet-dashboard', diff --git a/src/store/model/wellstechnology.ts b/src/store/model/wellstechnology.ts index 446e7e5823..5278230c53 100644 --- a/src/store/model/wellstechnology.ts +++ b/src/store/model/wellstechnology.ts @@ -11,7 +11,6 @@ export const WellsTechnology: Store = { }, maxPrice: { container: '#productPrice-product-template *', - euroFormat: false, }, outOfStock: { container: '#addToCartText-product-template', diff --git a/src/store/model/wipoid.ts b/src/store/model/wipoid.ts index c6d8d9d2c7..030196c7c7 100644 --- a/src/store/model/wipoid.ts +++ b/src/store/model/wipoid.ts @@ -9,7 +9,6 @@ export const Wipoid: Store = { }, maxPrice: { container: '#our_price_display', - euroFormat: true, }, outOfStock: { container: '.buttons_bottom_block no-print', diff --git a/src/store/model/zotac.ts b/src/store/model/zotac.ts index f4442e15e1..299b5765fb 100644 --- a/src/store/model/zotac.ts +++ b/src/store/model/zotac.ts @@ -10,7 +10,6 @@ export const Zotac: Store = { }, maxPrice: { container: 'div[class="product-shop"] span[class="price"]', - euroFormat: false, }, }, links: [