feat(store): add ePrice store (#1016)

feat: add ps5 max price
fix: typo of `MAX_PRICE_SERIES_CORSAIR_SF` on .env-example
This commit is contained in:
Luca Rinaldi
2020-11-29 16:44:14 +01:00
committed by GitHub
parent de7036c7cc
commit 30a51a38be
5 changed files with 88 additions and 4 deletions
+2 -2
View File
@@ -318,8 +318,8 @@ const store = {
ryzen5900: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5900),
ryzen5950: envOrNumber(process.env.MAX_PRICE_SERIES_RYZEN5950),
sf: envOrNumber(process.env.MAX_PRICE_SERIES_CORSAIR_SF),
sonyps5c: -1,
sonyps5de: -1,
sonyps5c: envOrNumber(process.env.MAX_PRICE_SERIES_SONYPS5C),
sonyps5de: envOrNumber(process.env.MAX_PRICE_SERIES_SONYPS5DE),
'test:series': -1,
xboxss: -1,
xboxsx: -1
+77
View File
@@ -0,0 +1,77 @@
import {Store} from './store';
export const Eprice: Store = {
labels: {
inStock: {
container: '.form_aggiungi_articolo',
text: ['AGGIUNGI AL CARRELLO']
},
maxPrice: {
container: '#PrezzoClasic span[class*="big"]',
euroFormat: true
}
},
links: [
{
brand: 'msi',
model: 'ventus 3x oc',
series: '3070',
url: 'https://www.eprice.it/schede-video-MSI/d-14039974'
},
{
brand: 'asus',
model: 'dual',
series: '3070',
url: 'https://www.eprice.it/schede-video-ASUS/d-14042082'
},
{
brand: 'asus',
model: 'strix',
series: '3070',
url: 'https://www.eprice.it/schede-video-ASUS/d-14039878'
},
{
brand: 'asus',
model: 'tuf',
series: '3070',
url: 'https://www.eprice.it/schede-video-ASUS/d-14039876'
},
{
brand: 'msi',
model: 'gaming',
series: '3070',
url: 'https://www.eprice.it/schede-video-MSI/d-14039972'
},
{
brand: 'msi',
model: 'ventus 3x oc',
series: '3070',
url: 'https://www.eprice.it/schede-video-MSI/d-14039974'
},
{
brand: 'msi',
model: 'ventus 2x oc',
series: '3070',
url: 'https://www.eprice.it/schede-video-MSI/d-14039973'
},
{
brand: 'zotac',
model: 'gaming',
series: '3070',
url: 'https://www.eprice.it/schede-video-ZOTAC/d-13979806'
},
{
brand: 'sony',
model: 'ps5 console',
series: 'sonyps5c',
url: 'https://www.eprice.it/playstation-5-SONY/d-13981612'
},
{
brand: 'sony',
model: 'ps5 digital',
series: 'sonyps5de',
url: 'https://www.eprice.it/playstation-5-SONY/d-13981613'
}
],
name: 'eprice'
};
+2
View File
@@ -34,6 +34,7 @@ import {Corsair} from './corsair';
import {Currys} from './currys';
import {Cyberport} from './cyberport';
import {Ebuyer} from './ebuyer';
import {Eprice} from './eprice';
import {Euronics} from './euronics';
import {Evga} from './evga';
import {EvgaEu} from './evga-eu';
@@ -107,6 +108,7 @@ export const storeList = new Map([
[Currys.name, Currys],
[Cyberport.name, Cyberport],
[Ebuyer.name, Ebuyer],
[Eprice.name, Eprice],
[Euronics.name, Euronics],
[Evga.name, Evga],
[EvgaEu.name, EvgaEu],