feat: add amazon-fr to stores. (#766)

This commit is contained in:
Zyde22
2020-11-12 14:39:45 +01:00
committed by GitHub
parent efe0d64f06
commit 02d7c47c40
3 changed files with 174 additions and 0 deletions
+1
View File
@@ -142,6 +142,7 @@ environment variables are **optional**._
| Amazon (CA) | `amazon-ca`| | Amazon (CA) | `amazon-ca`|
| Amazon (DE) | `amazon-de`| | Amazon (DE) | `amazon-de`|
| Amazon (ES) | `amazon-es`| | Amazon (ES) | `amazon-es`|
| Amazon (FR) | `amazon-fr`|
| Amazon (NL) | `amazon-nl`| | Amazon (NL) | `amazon-nl`|
| Amazon (UK) | `amazon-uk`| | Amazon (UK) | `amazon-uk`|
| AMD | `amd`| | AMD | `amd`|
+171
View File
@@ -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'
};
+2
View File
@@ -8,6 +8,7 @@ import {Amazon} from './amazon';
import {AmazonCa} from './amazon-ca'; import {AmazonCa} from './amazon-ca';
import {AmazonDe} from './amazon-de'; import {AmazonDe} from './amazon-de';
import {AmazonEs} from './amazon-es'; import {AmazonEs} from './amazon-es';
import {AmazonFr} from './amazon-fr';
import {AmazonNl} from './amazon-nl'; import {AmazonNl} from './amazon-nl';
import {AmazonUk} from './amazon-uk'; import {AmazonUk} from './amazon-uk';
import {Aria} from './aria'; import {Aria} from './aria';
@@ -67,6 +68,7 @@ export const storeList = new Map([
[AmazonCa.name, AmazonCa], [AmazonCa.name, AmazonCa],
[AmazonDe.name, AmazonDe], [AmazonDe.name, AmazonDe],
[AmazonEs.name, AmazonEs], [AmazonEs.name, AmazonEs],
[AmazonFr.name, AmazonFr],
[AmazonNl.name, AmazonNl], [AmazonNl.name, AmazonNl],
[AmazonUk.name, AmazonUk], [AmazonUk.name, AmazonUk],
[AMD.name, AMD], [AMD.name, AMD],