diff --git a/README.md b/README.md index c6a10ce39d..cafe213e59 100644 --- a/README.md +++ b/README.md @@ -142,6 +142,7 @@ environment variables are **optional**._ | Amazon (CA) | `amazon-ca`| | Amazon (DE) | `amazon-de`| | Amazon (ES) | `amazon-es`| +| Amazon (FR) | `amazon-fr`| | Amazon (NL) | `amazon-nl`| | Amazon (UK) | `amazon-uk`| | AMD | `amd`| diff --git a/src/store/model/amazon-fr.ts b/src/store/model/amazon-fr.ts new file mode 100644 index 0000000000..cd04974a9a --- /dev/null +++ b/src/store/model/amazon-fr.ts @@ -0,0 +1,171 @@ +import {Store} from './store'; + +export const AmazonFr: Store = { + labels: { + captcha: { + container: 'body', + text: ['entrez les caractères que vous voyez ci-dessous'] + }, + inStock: { + container: '#desktop_buybox', + text: ['ajouter au panier'] + }, + maxPrice: { + container: 'span[class*="PriceString"]', + euroFormat: false + } + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: 'https://www.amazon.fr/dp/B07PBLD2MX' + }, + { + brand: 'msi', + model: 'gaming x trio', + series: '3080', + url: 'https://www.amazon.fr/dp/B08HR7SV3M' + }, + { + brand: 'msi', + model: 'ventus 3x oc', + series: '3080', + url: 'https://www.amazon.fr/dp/B08HR5SXPS' + }, + { + brand: 'evga', + model: 'ftw3', + series: '3080', + url: 'https://www.amazon.fr/dp/B08HR3DPGW' + }, + { + brand: 'evga', + model: 'ftw3 ultra', + series: '3080', + url: 'https://www.amazon.fr/dp/B08HR3Y5GQ' + }, + { + brand: 'evga', + model: 'xc3 ultra', + series: '3080', + url: 'https://www.amazon.fr/dp/B08HR55YB5' + }, + { + brand: 'evga', + model: 'xc3', + series: '3080', + url: 'https://www.amazon.fr/dp/B08HR4RJ3Q' + }, + { + brand: 'evga', + model: 'xc3 black', + series: '3080', + url: 'https://www.amazon.fr/dp/B08HR6FMF3' + }, + { + brand: 'gigabyte', + model: 'gaming oc', + series: '3080', + url: 'https://www.amazon.fr/dp/B08HJTH61J' + }, + { + brand: 'gigabyte', + model: 'eagle oc', + series: '3080', + url: 'https://www.amazon.fr/dp/B08HJS2JLJ' + }, + { + brand: 'asus', + model: 'tuf', + series: '3080', + url: 'https://www.amazon.fr/dp/B08HHDP9DW' + }, + { + brand: 'asus', + model: 'tuf oc', + series: '3080', + url: 'https://www.amazon.fr/dp/B08HH5WF97' + }, + { + brand: 'zotac', + model: 'trinity', + series: '3080', + url: 'https://www.amazon.fr/dp/B08HJNKT3P' + }, + { + brand: 'zotac', + model: 'trinity', + series: '3090', + url: 'https://www.amazon.fr/dp/B08HJQ182D' + }, + { + brand: 'msi', + model: 'ventus 3x oc', + series: '3090', + url: 'https://www.amazon.fr/dp/B08HR9D2JS' + }, + { + brand: 'gigabyte', + model: 'gaming oc', + series: '3090', + url: 'https://www.amazon.fr/dp/B08HJRF2CN' + }, + { + brand: 'gigabyte', + model: 'eagle oc', + series: '3090', + url: 'https://www.amazon.fr/dp/B08HJPDJTY' + }, + { + brand: 'asus', + model: 'tuf', + series: '3090', + url: 'https://www.amazon.fr/dp/B08HJGNJ81' + }, + { + brand: 'asus', + model: 'tuf oc', + series: '3090', + url: 'https://www.amazon.fr/dp/B08HJLLF7G' + }, + { + brand: 'amd', + model: '5600x', + series: 'ryzen5600', + url: 'https://www.amazon.fr/dp/B08166SLDF' + }, + { + brand: 'amd', + model: '5800x', + series: 'ryzen5800', + url: 'https://www.amazon.fr/dp/B0815XFSGK' + }, + { + brand: 'amd', + model: '5900x', + series: 'ryzen5900', + url: 'https://www.amazon.fr/dp/B08164VTWH' + }, + { + brand: 'amd', + model: '5950x', + series: 'ryzen5950', + url: 'https://www.amazon.fr/dp/B0815Y8J9N' + }, + { + brand: 'sony', + model: 'ps5 console', + series: 'sonyps5c', + url: 'https://www.amazon.fr/dp/B08GSC5D9G' + }, + { + brand: 'sony', + model: 'ps5 digital', + series: 'sonyps5de', + url: 'https://www.amazon.fr/dp/B08GS1N24H' + } + ], + name: 'amazon-fr' +}; diff --git a/src/store/model/index.ts b/src/store/model/index.ts index e1ac629253..ccd89a94f7 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -8,6 +8,7 @@ import {Amazon} from './amazon'; import {AmazonCa} from './amazon-ca'; import {AmazonDe} from './amazon-de'; import {AmazonEs} from './amazon-es'; +import {AmazonFr} from './amazon-fr'; import {AmazonNl} from './amazon-nl'; import {AmazonUk} from './amazon-uk'; import {Aria} from './aria'; @@ -67,6 +68,7 @@ export const storeList = new Map([ [AmazonCa.name, AmazonCa], [AmazonDe.name, AmazonDe], [AmazonEs.name, AmazonEs], + [AmazonFr.name, AmazonFr], [AmazonNl.name, AmazonNl], [AmazonUk.name, AmazonUk], [AMD.name, AMD],