feat(store): add Toys R Us (#1257)

This commit is contained in:
Dylan Fontaine
2020-12-08 12:01:08 -08:00
committed by GitHub
parent 0072dda90b
commit ac0bd2ac14
3 changed files with 51 additions and 0 deletions
+1
View File
@@ -104,6 +104,7 @@ Used with the `STORES` variable.
| Smyths Toys (UK) | `smythstoys`| | Smyths Toys (UK) | `smythstoys`|
| Spielegrotte | `spielegrotte`| | Spielegrotte | `spielegrotte`|
| Target | `target`| | Target | `target`|
| Toys R Us | `toysrus` |
| Unieuro (IT) | `unieuro`| | Unieuro (IT) | `unieuro`|
| Very (UK) | `very`| | Very (UK) | `very`|
| Walmart | `walmart`| | Walmart | `walmart`|
+2
View File
@@ -77,6 +77,7 @@ import {Spielegrotte} from './spielegrotte';
import {Store} from './store'; import {Store} from './store';
import {Target} from './target'; import {Target} from './target';
import {TopAchat} from './topachat'; import {TopAchat} from './topachat';
import {ToysRUs} from './toysrus';
import {Unieuro} from './unieuro'; import {Unieuro} from './unieuro';
import {Very} from './very'; import {Very} from './very';
import {VsGamers} from './vsgamers'; import {VsGamers} from './vsgamers';
@@ -165,6 +166,7 @@ export const storeList = new Map([
[Spielegrotte.name, Spielegrotte], [Spielegrotte.name, Spielegrotte],
[Target.name, Target], [Target.name, Target],
[TopAchat.name, TopAchat], [TopAchat.name, TopAchat],
[ToysRUs.name, ToysRUs],
[Unieuro.name, Unieuro], [Unieuro.name, Unieuro],
[Very.name, Very], [Very.name, Very],
[VsGamers.name, VsGamers], [VsGamers.name, VsGamers],
+48
View File
@@ -0,0 +1,48 @@
import {Store} from './store';
export const ToysRUs: Store = {
labels: {
inStock: {
container: 'li.b-product_status',
text: ['in stock']
},
maxPrice: {
container: '.b-price-value'
}
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url:
'https://www.toysrus.ca/en/Hasbro-Gaming---Operation-Game---styles-may-vary/99D52A22.html'
},
{
brand: 'sony',
model: 'ps5 console',
series: 'sonyps5c',
url: 'https://www.toysrus.ca/en/PlayStation-5-Console/C443A89B.html'
},
{
brand: 'sony',
model: 'ps5 digital',
series: 'sonyps5de',
url:
'https://www.toysrus.ca/en/PlayStation-5-Digital-Edition/E4A019FE.html'
},
{
brand: 'microsoft',
model: 'xbox series x',
series: 'xboxsx',
url: 'https://www.toysrus.ca/en/XBOX-Series-X-Console/84D9A92D.html'
},
{
brand: 'microsoft',
model: 'xbox series s',
series: 'xboxss',
url: 'https://www.toysrus.ca/en/XBOX-Series-S-Console/A43E2AF7.html'
}
],
name: 'toysrus'
};