Skip to content

Commit

Permalink
feat(store): add EBGames (#1281)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylf committed Dec 11, 2020
1 parent b599c23 commit 27cfb94
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/reference/filter.md
Expand Up @@ -66,6 +66,7 @@ Used with the `STORES` variable.
| Corsair | US | `corsair`|
| Currys | UK | `currys`|
| Cyberport | DE | `cyberport` |
| EBGames | CA | `ebgames`|
| eBuyer | UK | `ebuyer`|
| El Corte Ingl茅s | US | `elcorteingles`|
| ePrice | IT | `eprice`|
Expand Down
49 changes: 49 additions & 0 deletions src/store/model/ebgames.ts
@@ -0,0 +1,49 @@
import {Store} from './store';

export const EbGames: Store = {
labels: {
maxPrice: {
container: '.singleVariantText .prodPriceCont'
},
outOfStock: {
container: '#btnAddToCart[style*="display:none;"] ',
text: ['add to cart']
}
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url:
'https://www.ebgames.ca/Switch/Games/727918/mario-kart-8-deluxe'
},
{
brand: 'sony',
model: 'ps5 console',
series: 'sonyps5c',
url: 'https://www.ebgames.ca/PS5/Games/877522'
},
{
brand: 'sony',
model: 'ps5 digital',
series: 'sonyps5de',
url: 'https://www.ebgames.ca/PS5/Games/877523'
},
{
brand: 'microsoft',
model: 'xbox series x',
series: 'xboxsx',
url:
'https://www.ebgames.ca/Xbox%20Series%20X/Games/877779/xbox-series-x'
},
{
brand: 'microsoft',
model: 'xbox series s',
series: 'xboxss',
url:
'https://www.ebgames.ca/Xbox%20Series%20X/Games/877780/xbox-series-s'
}
],
name: 'ebgames'
};
2 changes: 2 additions & 0 deletions src/store/model/index.ts
Expand Up @@ -37,6 +37,7 @@ import {Coolmod} from './coolmod';
import {Corsair} from './corsair';
import {Currys} from './currys';
import {Cyberport} from './cyberport';
import {EbGames} from './ebgames';
import {Ebuyer} from './ebuyer';
import {Elcorteingles} from './elcorteingles';
import {Eprice} from './eprice';
Expand Down Expand Up @@ -127,6 +128,7 @@ export const storeList = new Map([
[Corsair.name, Corsair],
[Currys.name, Currys],
[Cyberport.name, Cyberport],
[EbGames.name, EbGames],
[Ebuyer.name, Ebuyer],
[Elcorteingles.name, Elcorteingles],
[Eprice.name, Eprice],
Expand Down

0 comments on commit 27cfb94

Please sign in to comment.