-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(store): add Irish store variants (#1373)
- Loading branch information
Conor Broderick
authored
Dec 13, 2020
1 parent
02825d0
commit f70998f
Showing
7 changed files
with
183 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import {Store} from './store'; | ||
|
||
export const ArgosIE: Store = { | ||
currency: '€', | ||
labels: { | ||
inStock: { | ||
container: '.btnbuyreserve', | ||
text: ['buy or reserve'] | ||
}, | ||
maxPrice: { | ||
container: '.price' | ||
}, | ||
outOfStock: { | ||
container: '#subCopy', | ||
text: ["We're working hard to get more stock."] | ||
} | ||
}, | ||
links: [ | ||
{ | ||
brand: 'microsoft', | ||
model: 'xbox series x', | ||
series: 'xboxsx', | ||
url: | ||
'http://www.argos.ie/static/Product/partNumber/8448262/Trail/searchtext%3EXBOX+SERIES+X.htm' | ||
}, | ||
{ | ||
brand: 'sony', | ||
model: 'ps5 digital', | ||
series: 'sonyps5de', | ||
url: | ||
'http://www.argos.ie/static/Product/partNumber/8349000/Trail/searchtext%3EPS5+CONSOLE.htm' | ||
} | ||
], | ||
name: 'argos-ie' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import {Store} from './store'; | ||
|
||
export const GamestopIE: Store = { | ||
currency: '€', | ||
labels: { | ||
inStock: { | ||
container: '#btnAddToCart', | ||
text: ['add to cart!'] | ||
}, | ||
maxPrice: { | ||
container: 'span.pricetext' | ||
} | ||
}, | ||
links: [ | ||
{ | ||
brand: 'microsoft', | ||
model: 'xbox series x', | ||
series: 'xboxsx', | ||
url: | ||
'https://www.gamestop.ie/Xbox%20Series/Games/73034/xbox-series-x-console' | ||
}, | ||
{ | ||
brand: 'sony', | ||
model: 'ps5 digital', | ||
series: 'sonyps5de', | ||
url: | ||
'https://www.gamestop.ie/PlayStation%205/Games/72504/playstation-5-console' | ||
} | ||
], | ||
name: 'gamestop-ie' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import {Store} from './store'; | ||
|
||
export const HarveyNormanIE: Store = { | ||
currency: '€', | ||
labels: { | ||
inStock: { | ||
container: 'input.btn-action', | ||
text: ['add to cart'] | ||
}, | ||
maxPrice: { | ||
container: '.price', | ||
euroFormat: false | ||
}, | ||
outOfStock: { | ||
container: '.product-highlight-text', | ||
text: ['SOLD OUT! WATCH THIS SPACE FOR MORE INFORMATION'] | ||
} | ||
}, | ||
links: [ | ||
{ | ||
brand: 'microsoft', | ||
model: 'xbox series x', | ||
series: 'xboxsx', | ||
url: | ||
'https://www.harveynorman.ie/gaming/xbox-series/microsoft-xbox-series-x-console-1tb.html' | ||
} | ||
], | ||
name: 'harveynorman-ie', | ||
waitUntil: 'domcontentloaded' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
import {Store} from './store'; | ||
|
||
export const SmythsToysIE: Store = { | ||
currency: '€', | ||
disableAdBlocker: true, | ||
labels: { | ||
inStock: { | ||
container: '#addToCartButton', | ||
text: ['add to basket'] | ||
}, | ||
maxPrice: { | ||
container: '.price_tag', | ||
euroFormat: false | ||
}, | ||
outOfStock: { | ||
container: '.instoreMessage', | ||
text: ['out of stock'] | ||
} | ||
}, | ||
links: [ | ||
{ | ||
brand: 'microsoft', | ||
model: 'xbox series x', | ||
series: 'xboxsx', | ||
url: | ||
'https://www.smythstoys.com/ie/en-ie/video-games-and-tablets/xbox-gaming/xbox-series-x-%7c-s/xbox-series-x-%7c-s-consoles/xbox-series-x-1tb-console/p/192012' | ||
}, | ||
{ | ||
brand: 'sony', | ||
model: 'ps5 console', | ||
series: 'sonyps5c', | ||
url: | ||
'https://www.smythstoys.com/ie/en-ie/video-games-and-tablets/playstation-5/playstation-5-consoles/playstation-5-console/p/191259' | ||
} | ||
], | ||
name: 'smythstoys-ie', | ||
waitUntil: 'domcontentloaded' | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import {Store} from './store'; | ||
|
||
export const TescoIE: Store = { | ||
currency: '€', | ||
labels: { | ||
inStock: { | ||
container: 'input.submit:nth-child(5)', | ||
text: ['add'] | ||
}, | ||
maxPrice: { | ||
container: '.linePriceAbbr' | ||
}, | ||
outOfStock: { | ||
container: '.noStockTxtCentered > strong:nth-child(1)', | ||
text: ['Sorry, this product is currently not available'] | ||
} | ||
}, | ||
links: [ | ||
{ | ||
brand: 'microsoft', | ||
model: 'xbox series x', | ||
series: 'xboxsx', | ||
url: | ||
'https://secure.tesco.ie/groceries/Product/Details/?id=307835209' | ||
}, | ||
{ | ||
brand: 'sony', | ||
model: 'ps5 digital', | ||
series: 'sonyps5de', | ||
url: 'https://www.tesco.ie/groceries/product/details/?id=307756010' | ||
} | ||
], | ||
name: 'tesco-ie' | ||
}; |