Skip to content

Commit

Permalink
feat(store): add Toys R Us (#1257)
Browse files Browse the repository at this point in the history
  • Loading branch information
dylf authored Dec 8, 2020
1 parent 0072dda commit ac0bd2a
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/reference/filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ Used with the `STORES` variable.
| Smyths Toys (UK) | `smythstoys`|
| Spielegrotte | `spielegrotte`|
| Target | `target`|
| Toys R Us | `toysrus` |
| Unieuro (IT) | `unieuro`|
| Very (UK) | `very`|
| Walmart | `walmart`|
Expand Down
2 changes: 2 additions & 0 deletions src/store/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ import {Spielegrotte} from './spielegrotte';
import {Store} from './store';
import {Target} from './target';
import {TopAchat} from './topachat';
import {ToysRUs} from './toysrus';
import {Unieuro} from './unieuro';
import {Very} from './very';
import {VsGamers} from './vsgamers';
Expand Down Expand Up @@ -165,6 +166,7 @@ export const storeList = new Map([
[Spielegrotte.name, Spielegrotte],
[Target.name, Target],
[TopAchat.name, TopAchat],
[ToysRUs.name, ToysRUs],
[Unieuro.name, Unieuro],
[Very.name, Very],
[VsGamers.name, VsGamers],
Expand Down
48 changes: 48 additions & 0 deletions src/store/model/toysrus.ts
Original file line number Diff line number Diff line change
@@ -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'
};

0 comments on commit ac0bd2a

Please sign in to comment.