mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 07:37:39 +00:00
feat(store): add johnlewis store, add shopto store (#1481)
* add `johnlewis` store * feat: add `shopto` store * chore: linting * chore: linting Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
@@ -91,6 +91,7 @@ Used with the `STORES` variable.
|
|||||||
| Gamestop | DE | `gamestop-de`|
|
| Gamestop | DE | `gamestop-de`|
|
||||||
| Gamestop | IE | `gamestop-ie`|
|
| Gamestop | IE | `gamestop-ie`|
|
||||||
| Harvey Normans | IE | | `harveynorman-ie` |
|
| Harvey Normans | IE | | `harveynorman-ie` |
|
||||||
|
| John Lewis | UK | `johnlewis`|
|
||||||
| Kabum | BR | `kabum`|
|
| Kabum | BR | `kabum`|
|
||||||
| Mediamarkt | DE | `mediamarkt`|
|
| Mediamarkt | DE | `mediamarkt`|
|
||||||
| Medimax | DE | `medimax`|
|
| Medimax | DE | `medimax`|
|
||||||
@@ -117,6 +118,7 @@ Used with the `STORES` variable.
|
|||||||
| Saturn | DE | `saturn`|
|
| Saturn | DE | `saturn`|
|
||||||
| Scan | UK | `scan`|
|
| Scan | UK | `scan`|
|
||||||
| Scorptec | AU | `scorptec`|
|
| Scorptec | AU | `scorptec`|
|
||||||
|
| ShopTo | UK | `shopto`|
|
||||||
| Smyths Toys | UK | `smythstoys`|
|
| Smyths Toys | UK | `smythstoys`|
|
||||||
| Smyths Toys | IE | `smythstoys-ie`|
|
| Smyths Toys | IE | `smythstoys-ie`|
|
||||||
| Spielegrotte | DE | `spielegrotte`|
|
| Spielegrotte | DE | `spielegrotte`|
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ import {Gamestop} from './gamestop';
|
|||||||
import {GamestopDE} from './gamestop-de';
|
import {GamestopDE} from './gamestop-de';
|
||||||
import {GamestopIE} from './gamestop-ie';
|
import {GamestopIE} from './gamestop-ie';
|
||||||
import {HarveyNormanIE} from './harveynorman-ie';
|
import {HarveyNormanIE} from './harveynorman-ie';
|
||||||
|
import {JohnLewis} from './johnlewis';
|
||||||
import {Kabum} from './kabum';
|
import {Kabum} from './kabum';
|
||||||
import {Mediamarkt} from './mediamarkt';
|
import {Mediamarkt} from './mediamarkt';
|
||||||
import {Medimax} from './medimax';
|
import {Medimax} from './medimax';
|
||||||
@@ -83,6 +84,7 @@ import {ProshopDK} from './proshop-dk';
|
|||||||
import {Saturn} from './saturn';
|
import {Saturn} from './saturn';
|
||||||
import {Scan} from './scan';
|
import {Scan} from './scan';
|
||||||
import {Scorptec} from './scorptec';
|
import {Scorptec} from './scorptec';
|
||||||
|
import {ShopTo} from './shopto';
|
||||||
import {SmythsToys} from './smythstoys';
|
import {SmythsToys} from './smythstoys';
|
||||||
import {SmythsToysIE} from './smythstoys-ie';
|
import {SmythsToysIE} from './smythstoys-ie';
|
||||||
import {Spielegrotte} from './spielegrotte';
|
import {Spielegrotte} from './spielegrotte';
|
||||||
@@ -161,6 +163,7 @@ export const storeList = new Map([
|
|||||||
[GamestopDE.name, GamestopDE],
|
[GamestopDE.name, GamestopDE],
|
||||||
[GamestopIE.name, GamestopIE],
|
[GamestopIE.name, GamestopIE],
|
||||||
[HarveyNormanIE.name, HarveyNormanIE],
|
[HarveyNormanIE.name, HarveyNormanIE],
|
||||||
|
[JohnLewis.name, JohnLewis],
|
||||||
[Kabum.name, Kabum],
|
[Kabum.name, Kabum],
|
||||||
[Mediamarkt.name, Mediamarkt],
|
[Mediamarkt.name, Mediamarkt],
|
||||||
[Medimax.name, Medimax],
|
[Medimax.name, Medimax],
|
||||||
@@ -187,6 +190,7 @@ export const storeList = new Map([
|
|||||||
[Saturn.name, Saturn],
|
[Saturn.name, Saturn],
|
||||||
[Scan.name, Scan],
|
[Scan.name, Scan],
|
||||||
[Scorptec.name, Scorptec],
|
[Scorptec.name, Scorptec],
|
||||||
|
[ShopTo.name, ShopTo],
|
||||||
[SmythsToysIE.name, SmythsToysIE],
|
[SmythsToysIE.name, SmythsToysIE],
|
||||||
[SmythsToys.name, SmythsToys],
|
[SmythsToys.name, SmythsToys],
|
||||||
[Spielegrotte.name, Spielegrotte],
|
[Spielegrotte.name, Spielegrotte],
|
||||||
|
|||||||
@@ -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'
|
||||||
|
};
|
||||||
@@ -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'
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user