diff --git a/README.md b/README.md index 7990fdc9ce..f1dcb6359b 100644 --- a/README.md +++ b/README.md @@ -159,6 +159,7 @@ environment variables are **optional**._ | EVGA | `evga`| | EVGA (EU) | `evga-eu`| | Galaxus (DE) | `galaxus`| +| Game (UK) | `game`| | Gamestop | `gamestop`| | Mediamarkt (DE) | `mediamarkt`| | MemoryExpress (CA) | `memoryexpress`| diff --git a/src/store/model/amazon-uk.ts b/src/store/model/amazon-uk.ts index ef7aa91844..ff07c4274a 100644 --- a/src/store/model/amazon-uk.ts +++ b/src/store/model/amazon-uk.ts @@ -34,6 +34,20 @@ export const AmazonUk: Store = { model: 'test:model', series: 'test:series', url: 'https://www.amazon.co.uk/dp/B081265T5Z/' + }, + { + brand: 'sony', + cartUrl: 'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08FC5L3RG&Quantity.1=1', + model: 'ps5 console', + series: 'sonyps5c', + url: 'https://www.amazon.com/dp/B08FC5L3RG' + }, + { + brand: 'sony', + cartUrl: 'https://www.amazon.com/gp/aws/cart/add.html?ASIN.1=B08H97NYGP&Quantity.1=1', + model: 'ps5 digital', + series: 'sonyps5de', + url: 'https://www.amazon.co.uk/dp/B08H97NYGP/' } ], linksBuilder: { diff --git a/src/store/model/ebuyer.ts b/src/store/model/ebuyer.ts index 19899ed06b..e36eed0abb 100644 --- a/src/store/model/ebuyer.ts +++ b/src/store/model/ebuyer.ts @@ -22,6 +22,18 @@ export const Ebuyer: Store = { 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' + }, + { + brand: 'sony', + model: 'ps5 console', + series: 'sonyps5c', + url: 'https://www.ebuyer.com/1125329-sony-playstation-5-console-cfi-1015a' + }, + { + brand: 'sony', + model: 'ps5 digital', + series: 'sonyps5de', + url: 'https://www.ebuyer.com/1125332-sony-playstation-5-digital-edition-cfi-1015b' } ], linksBuilder: { diff --git a/src/store/model/game.ts b/src/store/model/game.ts new file mode 100644 index 0000000000..a789cff267 --- /dev/null +++ b/src/store/model/game.ts @@ -0,0 +1,39 @@ +import {Store} from './store'; + +export const Game: Store = { + labels: { + inStock: { + container: '.buyingOptions', + text: ['Pre-order Now', 'Buy New'] + }, + maxPrice: { + container: '.buyingOptions .btnPrice', + euroFormat: false + }, + outOfStock: { + container: '.buyingOptions', + text: ['out of stock'] + } + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: 'https://www.game.co.uk/en/ea-sports-fifa-21-500gb-ps4-bundle-2832947' + }, + { + brand: 'sony', + model: 'ps5 console', + series: 'sonyps5c', + url: 'https://www.game.co.uk/en/playstation-5-console-2826338' + }, + { + brand: 'sony', + model: 'ps5 digital', + series: 'sonyps5de', + url: 'https://www.game.co.uk/en/playstation-5-digital-edition-2826341' + } + ], + name: 'game' +}; diff --git a/src/store/model/index.ts b/src/store/model/index.ts index 03d300b4e3..50dffdad84 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -30,6 +30,7 @@ import {Ebuyer} from './ebuyer'; import {Evga} from './evga'; import {EvgaEu} from './evga-eu'; import {Galaxus} from './galaxus'; +import {Game} from './game'; import {Gamestop} from './gamestop'; import {Mediamarkt} from './mediamarkt'; import {MemoryExpress} from './memoryexpress'; @@ -88,6 +89,7 @@ export const storeList = new Map([ [Evga.name, Evga], [EvgaEu.name, EvgaEu], [Galaxus.name, Galaxus], + [Game.name, Game], [Gamestop.name, Gamestop], [Mediamarkt.name, Mediamarkt], [MemoryExpress.name, MemoryExpress], diff --git a/src/store/model/scan.ts b/src/store/model/scan.ts index 4dc59b8d84..08bdf99eae 100644 --- a/src/store/model/scan.ts +++ b/src/store/model/scan.ts @@ -27,6 +27,18 @@ export const Scan: Store = { model: 'test:model', series: 'test:series', url: 'https://www.scan.co.uk/products/msi-geforce-rtx-2060-ventus-xs-oc-6gb-gddr6-vr-ready-graphics-card-1920-core-1710mhz-boost' + }, + { + brand: 'sony', + model: 'ps5 console', + series: 'sonyps5c', + url: 'https://www.scan.co.uk/products/playstation-5-console' + }, + { + brand: 'sony', + model: 'ps5 digital', + series: 'sonyps5de', + url: 'https://www.scan.co.uk/products/playstation-5-digital-edition' } ], linksBuilder: {