diff --git a/docs/reference/filter.md b/docs/reference/filter.md index 75ab048..b80b03f 100644 --- a/docs/reference/filter.md +++ b/docs/reference/filter.md @@ -91,6 +91,7 @@ Used with the `STORES` variable. | Gamestop | DE | `gamestop-de`| | Gamestop | IE | `gamestop-ie`| | Harvey Normans | IE | | `harveynorman-ie` | +| John Lewis | UK | `johnlewis`| | Kabum | BR | `kabum`| | Mediamarkt | DE | `mediamarkt`| | Medimax | DE | `medimax`| @@ -117,6 +118,7 @@ Used with the `STORES` variable. | Saturn | DE | `saturn`| | Scan | UK | `scan`| | Scorptec | AU | `scorptec`| +| ShopTo | UK | `shopto`| | Smyths Toys | UK | `smythstoys`| | Smyths Toys | IE | `smythstoys-ie`| | Spielegrotte | DE | `spielegrotte`| diff --git a/src/store/model/index.ts b/src/store/model/index.ts index fccd0e1..1dc3f42 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -57,6 +57,7 @@ import {Gamestop} from './gamestop'; import {GamestopDE} from './gamestop-de'; import {GamestopIE} from './gamestop-ie'; import {HarveyNormanIE} from './harveynorman-ie'; +import {JohnLewis} from './johnlewis'; import {Kabum} from './kabum'; import {Mediamarkt} from './mediamarkt'; import {Medimax} from './medimax'; @@ -83,6 +84,7 @@ import {ProshopDK} from './proshop-dk'; import {Saturn} from './saturn'; import {Scan} from './scan'; import {Scorptec} from './scorptec'; +import {ShopTo} from './shopto'; import {SmythsToys} from './smythstoys'; import {SmythsToysIE} from './smythstoys-ie'; import {Spielegrotte} from './spielegrotte'; @@ -161,6 +163,7 @@ export const storeList = new Map([ [GamestopDE.name, GamestopDE], [GamestopIE.name, GamestopIE], [HarveyNormanIE.name, HarveyNormanIE], + [JohnLewis.name, JohnLewis], [Kabum.name, Kabum], [Mediamarkt.name, Mediamarkt], [Medimax.name, Medimax], @@ -187,6 +190,7 @@ export const storeList = new Map([ [Saturn.name, Saturn], [Scan.name, Scan], [Scorptec.name, Scorptec], + [ShopTo.name, ShopTo], [SmythsToysIE.name, SmythsToysIE], [SmythsToys.name, SmythsToys], [Spielegrotte.name, Spielegrotte], diff --git a/src/store/model/johnlewis.ts b/src/store/model/johnlewis.ts new file mode 100644 index 0000000..cd2a0a4 --- /dev/null +++ b/src/store/model/johnlewis.ts @@ -0,0 +1,28 @@ +import {Store} from './store'; + +export const JohnLewis: Store = { + currency: '£', + labels: { + inStock: { + container: '#button--add-to-basket', + text: ['Add to your basket'] + } + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: + 'https://www.johnlewis.com/sony-playstation-5-dualsense-wireless-controller-white/p5192093' + }, + { + brand: 'sony', + model: 'ps5 console', + series: 'sonyps5c', + url: + 'https://www.johnlewis.com/sony-playstation-5-console-with-dualsense-controller/white/p5115192' + } + ], + name: 'johnlewis' +}; diff --git a/src/store/model/shopto.ts b/src/store/model/shopto.ts new file mode 100644 index 0000000..784299d --- /dev/null +++ b/src/store/model/shopto.ts @@ -0,0 +1,35 @@ +import {Store} from './store'; + +export const ShopTo: Store = { + currency: '£', + labels: { + inStock: { + container: '.orderbox_inventory', + text: ['In Stock'] + } + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: + 'https://www.shopto.net/en/ps5du00-dualsense-controller-playstation-5-p195100/' + }, + { + brand: 'sony', + model: 'ps5 console', + series: 'sonyps5c', + url: + 'https://www.shopto.net/en/ps5hw01-playstation-5-console-p191472/' + }, + { + brand: 'sony', + model: 'ps5 digital', + series: 'sonyps5de', + url: + 'https://www.shopto.net/en/ps5hw02-playstation-5-digital-console-p195341/' + } + ], + name: 'shopto' +};