feat(store): add globaldata (#2004)

This commit is contained in:
Joel Calado
2021-02-26 15:46:40 +00:00
committed by GitHub
parent 4d1e1ba3e7
commit 5effbae882
3 changed files with 332 additions and 0 deletions
+329
View File
@@ -0,0 +1,329 @@
import {Store} from './store';
export const Globaldata: Store = {
currency: '€',
labels: {
inStock: {
container:
'body > main > div.main-container > div.container.mb-5 > div.row.align-items-lg-start.z-above-pattern > ck-product-cta-box > div > div.d-flex.mt-4 > div.w-100 > ck-addto-cart-wrapper > form > div > div.w-100.pl-3 > button > span',
text: ['Adicionar ao carrinho'],
},
outOfStock: {
container:
'body > main > div.main-container > div.container.mb-5 > div.row.align-items-lg-start.z-above-pattern > ck-product-cta-box > div > div.d-flex.mt-4 > div.w-100 > button',
text: ['Notifique-me quando estiver em stock'],
},
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url:
'https://www.globaldata.pt/drive-externa-dvdr-asus-sdrw-08d2s-u-lite-8x-branco-usb-20-90-dq0436-ua221kz',
},
{
brand: 'asus',
model: 'ekwb',
series: '3080',
url:
'https://www.globaldata.pt/grafica-gigabyte-geforce-rtx-3070-gaming-oc-8gb-gd6-gv-n3070gam-oc-8g',
},
{
brand: 'asus',
model: 'ekwb',
series: '3080',
url:
'https://www.globaldata.pt/grafica-asus-geforce-rtx-3080-ek-10gd6x-90yv0f60-m0nm00',
},
{
brand: 'asus',
model: 'strix oc',
series: '3080',
url:
'https://www.globaldata.pt/grafica-asus-geforce-rtx-3080-rog-strix-oc-10gd6x-90yv0fa1-m0nm00',
},
{
brand: 'asus',
model: 'strix oc white',
series: '3080',
url:
'https://www.globaldata.pt/grafica-asus-geforce-rtx-3080-rog-strix-oc-white-10gd6x-90yv0fa5-m0nm00',
},
{
brand: 'asus',
model: 'strix white',
series: '3080',
url:
'https://www.globaldata.pt/grafica-asus-geforce-rtx-3080-rog-strix-white-10gd6x-90yv0fa6-m0nm00',
},
{
brand: 'asus',
model: 'tuf',
series: '3080',
url:
'https://www.globaldata.pt/grafica-asus-geforce-rtx-3080-tuf-gaming-10gd6x-90yv0fb0-m0nm00',
},
{
brand: 'asus',
model: 'tuf oc',
series: '3080',
url:
'https://www.globaldata.pt/grafica-asus-geforce-rtx-3080-tuf-gaming-oc-10gd6x-90yv0fb1-m0nm00',
},
{
brand: 'gigabyte',
model: 'aorus master',
series: '3080',
url:
'https://www.globaldata.pt/grafica-gigabyte-geforce-rtx-3080-aorus-master-10gb-gd6x-gvn3080aorusm',
},
{
brand: 'gigabyte',
model: 'aorus master',
series: '3080',
url:
'https://www.globaldata.pt/grafica-gigabyte-geforce-rtx-3080-aorus-master-oc-10gb-gd6x-gvn3080am-00-10',
},
{
brand: 'gigabyte',
model: 'aorus xtreme',
series: '3080',
url:
'https://www.globaldata.pt/grafica-gigabyte-geforce-rtx-3080-aorus-xtreme-10gb-gd6x-gvn3080ax-00-10',
},
{
brand: 'gigabyte',
model: 'eagle',
series: '3080',
url:
'https://www.globaldata.pt/grafica-gigabyte-geforce-rtx-3080-eagle-10gb-gd6x-gv-n3080eagle-10gd',
},
{
brand: 'gigabyte',
model: 'eagle oc',
series: '3080',
url:
'https://www.globaldata.pt/grafica-gigabyte-geforce-rtx-3080-eagle-oc-10gb-gd6x-gvn3080eagleoc10gd',
},
{
brand: 'gigabyte',
model: 'gaming oc',
series: '3080',
url:
'https://www.globaldata.pt/grafica-gigabyte-geforce-rtx-3080-gaming-oc-10gb-gd6x-gvn3080gamingoc10g',
},
{
brand: 'gigabyte',
model: 'vision oc',
series: '3080',
url:
'https://www.globaldata.pt/grafica-gigabyte-geforce-rtx-3080-vision-oc-10gb-gd6x-gvn3080visoc-10',
},
{
brand: 'msi',
model: 'gaming x trio',
series: '3080',
url:
'https://www.globaldata.pt/grafica-msi-geforce-rtx-3080-gaming-x-trio-10g-4719072762544',
},
{
brand: 'msi',
model: 'suprim x',
series: '3080',
url:
'https://www.globaldata.pt/grafica-msi-geforce-rtx-3080-suprim-x-10g-4719072762537',
},
{
brand: 'msi',
model: 'ventus 3x oc',
series: '3080',
url:
'https://www.globaldata.pt/grafica-msi-geforce-rtx-3080-ventus-3x-10g-oc-4719072762520',
},
{
brand: 'zotac',
model: 'amp extreme holo',
series: '3080',
url:
'https://www.globaldata.pt/grafica-zotac-geforce-rtx-3080-amp-extreme-holo-10gb-gd6x-zt-a30800b-10p',
},
{
brand: 'zotac',
model: 'amp holo',
series: '3080',
url:
'https://www.globaldata.pt/grafica-zotac-geforce-rtx-3080-amp-holo-10gb-gd6x-zt-a30800f-10p',
},
{
brand: 'zotac',
model: 'trinity',
series: '3080',
url:
'https://www.globaldata.pt/grafica-zotac-geforce-rtx-3080-trinity-10gb-gd6x-zt-a30800d-10p',
},
{
brand: 'zotac',
model: 'trinity oc',
series: '3080',
url:
'https://www.globaldata.pt/grafica-zotac-geforce-rtx-3080-trinity-oc-10gb-gd6x-zt-a30800j-10p',
},
{
brand: 'asus',
model: 'dual',
series: '3070',
url:
'https://www.globaldata.pt/grafica-asus-geforce-rtx-3070-dual-8gb-gd6-90yv0fq1-m0na00',
},
{
brand: 'asus',
model: 'dual oc',
series: '3070',
url:
'https://www.globaldata.pt/grafica-asus-geforce-rtx-3070-dual-oc-8gb-gd6-90yv0fq0-m0na00',
},
{
brand: 'asus',
model: 'ekwb',
series: '3070',
url:
'https://www.globaldata.pt/grafica-asus-geforce-rtx-3070-ek-8gb-gd6-90yv0fu0-m0na00',
},
{
brand: 'asus',
model: 'strix',
series: '3070',
url:
'https://www.globaldata.pt/grafica-asus-geforce-rtx-3070-rog-strix-8gb-gd6-90yv0fr0-m0na00',
},
{
brand: 'asus',
model: 'strix oc',
series: '3070',
url:
'https://www.globaldata.pt/grafica-asus-geforce-rtx-3070-rog-strix-oc-8gb-gd6-90yv0fr1-m0na00',
},
{
brand: 'asus',
model: 'strix oc white',
series: '3070',
url:
'https://www.globaldata.pt/grafica-asus-geforce-rtx-3070-rog-strix-oc-white-8gb-gd6-90yv0fr5-m0na00',
},
{
brand: 'asus',
model: 'strix white',
series: '3070',
url:
'https://www.globaldata.pt/grafica-asus-geforce-rtx-3070-rog-strix-white-8gb-gd6-90yv0fr6-m0na00',
},
{
brand: 'asus',
model: 'tuf',
series: '3070',
url:
'https://www.globaldata.pt/grafica-asus-geforce-rtx-3070-tuf-gaming-8gb-gd6-90yv0fq7-m0na00',
},
{
brand: 'asus',
model: 'tuf oc',
series: '3070',
url:
'https://www.globaldata.pt/grafica-asus-geforce-rtx-3070-tuf-gaming-oc-8gb-gd6-90yv0fq6-m0na00',
},
{
brand: 'gigabyte',
model: 'aorus master',
series: '3070',
url:
'https://www.globaldata.pt/grafica-gigabyte-geforce-rtx-3070-aorus-master-8gb-gd6-gvn3070am-00-11',
},
{
brand: 'gigabyte',
model: 'eagle',
series: '3070',
url:
'https://www.globaldata.pt/grafica-gigabyte-geforce-rtx-3070-eagle-8gb-gd6-gvn3070e-00-10',
},
{
brand: 'gigabyte',
model: 'eagle oc',
series: '3070',
url:
'https://www.globaldata.pt/grafica-gigabyte-geforce-rtx-3070-eagle-oc-8gb-gd6-gvn3070eo-00-10',
},
{
brand: 'gigabyte',
model: 'gaming oc',
series: '3070',
url:
'https://www.globaldata.pt/grafica-gigabyte-geforce-rtx-3070-gaming-oc-8gb-gd6-gv-n3070gam-oc-8g',
},
{
brand: 'gigabyte',
model: 'vision oc',
series: '3070',
url:
'https://www.globaldata.pt/grafica-gigabyte-geforce-rtx-3070-vision-oc-8gb-gd6-gvn3070vo-00-10',
},
{
brand: 'msi',
model: 'gaming x trio',
series: '3070',
url:
'https://www.globaldata.pt/grafica-msi-geforce-rtx-3070-gaming-x-trio-8g-912-v390-006',
},
{
brand: 'msi',
model: 'suprim x',
series: '3070',
url:
'https://www.globaldata.pt/grafica-msi-geforce-rtx-3070-suprim-x-8g-4719072763046',
},
{
brand: 'msi',
model: 'ventus 2x',
series: '3070',
url:
'https://www.globaldata.pt/grafica-msi-geforce-rtx-3070-ventus-2x-oc-8g-912-v390-008',
},
{
brand: 'msi',
model: 'ventus 3x oc',
series: '3070',
url:
'https://www.globaldata.pt/grafica-msi-geforce-rtx-3070-ventus-3x-oc-8g-912-v390-007',
},
{
brand: 'zotac',
model: 'amp holo',
series: '3070',
url:
'https://www.globaldata.pt/grafica-zotac-geforce-rtx-3070-amp-holo-8gb-gd6-zt-a30700f-10p',
},
{
brand: 'zotac',
model: 'twin edge',
series: '3070',
url:
'https://www.globaldata.pt/grafica-zotac-geforce-rtx-3070-twin-edge-8gb-gd6-zt-a30700e-10p',
},
{
brand: 'zotac',
model: 'twin edge oc',
series: '3070',
url:
'https://www.globaldata.pt/grafica-zotac-geforce-rtx-3070-twin-edge-oc-8gb-gd6-zt-a30700h-10p',
},
{
brand: 'zotac',
model: 'twin edge oc white',
series: '3070',
url:
'https://www.globaldata.pt/grafica-zotac-geforce-rtx-3070-twin-edge-white-oc-8gb-gd6-zt-a30700j-10p',
},
],
name: 'globaldata',
waitUntil: 'domcontentloaded',
};
+2
View File
@@ -71,6 +71,7 @@ import {Gamestop} from './gamestop';
import {GamestopDE} from './gamestop-de';
import {GamestopIE} from './gamestop-ie';
import {GamestopIT} from './gamestop-it';
import {Globaldata} from './globaldata';
import {HardwarePlanet} from './hardware-planet';
import {HarrisTechnology} from './harristechnology';
import {HarveyNormanIE} from './harveynorman-ie';
@@ -215,6 +216,7 @@ export const storeList = new Map([
[GamestopDE.name, GamestopDE],
[GamestopIE.name, GamestopIE],
[GamestopIT.name, GamestopIT],
[Globaldata.name, Globaldata],
[HardwarePlanet.name, HardwarePlanet],
[HarrisTechnology.name, HarrisTechnology],
[HarveyNormanIE.name, HarveyNormanIE],