mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 08:47:43 +00:00
52 lines
1.3 KiB
TypeScript
52 lines
1.3 KiB
TypeScript
import {Store} from './store';
|
|
import {getProductLinksBuilder} from './helpers/card';
|
|
|
|
export const Ebuyer: Store = {
|
|
labels: {
|
|
inStock: {
|
|
container: '.purchase-info',
|
|
text: ['add to basket', 'in stock']
|
|
},
|
|
maxPrice: {
|
|
container: '.purchase-info__price .price',
|
|
euroFormat: false // Note: ebuyer uses non-euroFromat as price seperator
|
|
},
|
|
outOfStock: {
|
|
container: '.purchase-info',
|
|
text: ['coming soon', 'we are expecting this item on']
|
|
}
|
|
},
|
|
links: [
|
|
{
|
|
brand: 'test:brand',
|
|
model: 'test:model',
|
|
series: 'test:series',
|
|
url: 'https://www.ebuyer.com/874209-gigabyte-geforce-rtx-2060-windforce-6gb-oc-graphics-card-gv-n2060wf2oc-6gd-v2'
|
|
}
|
|
],
|
|
linksBuilder: {
|
|
builder: getProductLinksBuilder({
|
|
productsSelector: '#list-view .listing-product',
|
|
sitePrefix: 'https://www.ebuyer.com',
|
|
titleSelector: '.listing-product-title',
|
|
urlSelector: 'a[href]'
|
|
}),
|
|
urls: [
|
|
{
|
|
series: '3070',
|
|
url: 'https://www.ebuyer.com/store/Components/cat/Graphics-Cards-Nvidia/subcat/GeForce-RTX-3070'
|
|
},
|
|
{
|
|
series: '3080',
|
|
url: 'https://www.ebuyer.com/store/Components/cat/Graphics-Cards-Nvidia/subcat/GeForce-RTX-3080'
|
|
},
|
|
{
|
|
series: '3090',
|
|
url: 'https://www.ebuyer.com/store/Components/cat/Graphics-Cards-Nvidia/subcat/GeForce-RTX-3090'
|
|
}
|
|
]
|
|
},
|
|
name: 'ebuyer',
|
|
waitUntil: 'domcontentloaded'
|
|
};
|