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 awd(uk), add 3060ti link builders (#1114)
- Loading branch information
nazmi
committed
Dec 4, 2020
1 parent
ca5553c
commit 36e3806
Showing
11 changed files
with
164 additions
and
2 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
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,116 @@ | ||
import {Store} from './store'; | ||
import {getProductLinksBuilder} from './helpers/card'; | ||
|
||
export const Awd: Store = { | ||
labels: { | ||
inStock: { | ||
container: '.vs-stock .ty-qty-in-stock', | ||
text: ['item(s)'] | ||
}, | ||
maxPrice: { | ||
container: '.product-info .ty-price-num', | ||
euroFormat: false // Note: Awd uses non-euroFromat as price seperator | ||
}, | ||
outOfStock: { | ||
container: '.vs-stock', | ||
text: ['out of stock'] | ||
} | ||
}, | ||
links: [ | ||
{ | ||
brand: 'test:brand', | ||
model: 'test:model', | ||
series: 'test:series', | ||
url: | ||
'https://www.awd-it.co.uk/asus-nvidia-geforce-gt-710-silent-low-profile-2gb-gddr5-graphics-card-pci-e.html' | ||
}, | ||
{ | ||
brand: 'asus', | ||
model: 'amd reference', | ||
series: 'rx6800', | ||
url: | ||
'https://www.awd-it.co.uk/asus-tuf-gaming-radeon-rx-6800-oc-edition-16gb-gddr6-graphics-card.html' | ||
}, | ||
{ | ||
brand: 'asus', | ||
model: 'amd reference', | ||
series: 'rx6800', | ||
url: | ||
'https://www.awd-it.co.uk/asus-rog-strix-radeon-rx-6800-oc-edition-16gb-gddr6-graphics-card.html' | ||
}, | ||
{ | ||
brand: 'gigabyte', | ||
model: 'amd reference', | ||
series: 'rx6800', | ||
url: | ||
'https://www.awd-it.co.uk/gigabyte-radeon-rx-6800-gaming-oc-16gb-gddr6-graphics-card.html' | ||
}, | ||
{ | ||
brand: 'gigabyte', | ||
model: 'amd reference', | ||
series: 'rx6800xt', | ||
url: | ||
'https://www.awd-it.co.uk/gigabyte-radeon-rx-6800-xt-gaming-oc-16gb-gddr6-graphics-card.html' | ||
}, | ||
{ | ||
brand: 'amd', | ||
model: '5600x', | ||
series: 'ryzen5600', | ||
url: | ||
'https://www.awd-it.co.uk/amd-ryzen-5-5600x-cpu-six-core-3.7ghz-processor-socket-am4-retail.html' | ||
}, | ||
{ | ||
brand: 'amd', | ||
model: '5800x', | ||
series: 'ryzen5800', | ||
url: | ||
'https://www.awd-it.co.uk/amd-ryzen-7-5800x-cpu-eight-core-3.8ghz-processor-socket-am4-retail.html' | ||
}, | ||
{ | ||
brand: 'amd', | ||
model: '5900x', | ||
series: 'ryzen5900', | ||
url: | ||
'https://www.awd-it.co.uk/amd-ryzen-9-5900x-cpu-twelve-core-3.7ghz-processor-socket-am4-retail.html' | ||
}, | ||
{ | ||
brand: 'amd', | ||
model: '5950x', | ||
series: 'ryzen5950', | ||
url: | ||
'https://www.awd-it.co.uk/amd-ryzen-9-5950x-sixteen-core-socket-am4-3.4ghz-processor.html' | ||
} | ||
], | ||
linksBuilder: { | ||
builder: getProductLinksBuilder({ | ||
productsSelector: '.grid-list .ty-grid-list__item', | ||
sitePrefix: 'https://www.awd-it.co.uk', | ||
titleSelector: '.title-price-wrapper', | ||
urlSelector: 'a[href]' | ||
}), | ||
urls: [ | ||
{ | ||
series: '3070', | ||
url: | ||
'https://www.awd-it.co.uk/components/graphics-cards/nvidia/nvidia-geforce-rtx-3070.html' | ||
}, | ||
{ | ||
series: '3080', | ||
url: | ||
'https://www.awd-it.co.uk/components/graphics-cards/nvidia/nvidia-geforce-rtx-3080.html' | ||
}, | ||
{ | ||
series: '3090', | ||
url: | ||
'https://www.awd-it.co.uk/components/graphics-cards/nvidia/nvidia-geforce-rtx-3090.html' | ||
}, | ||
{ | ||
series: '3060ti', | ||
url: | ||
'https://www.awd-it.co.uk/components/graphics-cards/nvidia/nvidia-geforce-rtx-3060ti.html' | ||
} | ||
] | ||
}, | ||
name: 'awd', | ||
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
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
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
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