feat(store): add novoatalho (PT) (#2043)

This commit is contained in:
Afonso Jorge Ramos
2021-02-27 21:33:39 +00:00
committed by GitHub
parent 11e14655e1
commit a3c726b45c
3 changed files with 229 additions and 11 deletions
+4 -3
View File
@@ -94,9 +94,9 @@ Used with the `STORES` variable.
| El Corte Inglés | ES | `elcorteingles`| | El Corte Inglés | ES | `elcorteingles`|
| Elkjop | NO | `elkjop`| | Elkjop | NO | `elkjop`|
| ePrice | IT | `eprice`| | ePrice | IT | `eprice`|
| Equippr | DE | `equippr`|
| Euronics | IT | `euronics`| | Euronics | IT | `euronics`|
| Euronics | DE | `euronics-de`| | Euronics | DE | `euronics-de`|
| Equippr | DE | `equippr`|
| Evatech | AU | `evatech`| | Evatech | AU | `evatech`|
| EVGA | US | `evga`| | EVGA | US | `evga`|
| EVGA | EU | `evga-eu`| | EVGA | EU | `evga-eu`|
@@ -109,9 +109,9 @@ Used with the `STORES` variable.
| Gamestop | IE | `gamestop-ie`| | Gamestop | IE | `gamestop-ie`|
| Gamestop | IT | `gamestop-it`| | Gamestop | IT | `gamestop-it`|
| Globaldata | PT | `globaldata`| | Globaldata | PT | `globaldata`|
| Hardware Planet | IT | | `hardware-planet` |
| HarrisTechnology | AU | `harristechnology`| | HarrisTechnology | AU | `harristechnology`|
| Harvey Normans | IE | `harveynorman-ie` | | Harvey Normans | IE | `harveynorman-ie` |
| Hardware Planet | IT | | `hardware-planet` |
| iGame Computer | AU | `igame-computer`| | iGame Computer | AU | `igame-computer`|
| John Lewis | UK | `johnlewis`| | John Lewis | UK | `johnlewis`|
| Kabum | BR | `kabum`| | Kabum | BR | `kabum`|
@@ -131,6 +131,7 @@ Used with the `STORES` variable.
| Newegg | SG | `newegg-sg`| | Newegg | SG | `newegg-sg`|
| Notebooksbilliger | DE |`notebooksbilliger`| | Notebooksbilliger | DE |`notebooksbilliger`|
| Novatech | UK | `novatech`| | Novatech | UK | `novatech`|
| Novo Atalho | PT | `novoatalho`|
| Nvidia | EU/UK | [See below](#nvidia-store-reference) | | Nvidia | EU/UK | [See below](#nvidia-store-reference) |
| Office Depot | US | `officedepot`| | Office Depot | US | `officedepot`|
| Ollo | IT | `ollo`| | Ollo | IT | `ollo`|
@@ -161,6 +162,7 @@ Used with the `STORES` variable.
| Storm Computers | AU | `storm-computer`| | Storm Computers | AU | `storm-computer`|
| Target | US | `target`| | Target | US | `target`|
| Tesco | IE | `tesco-ie`| | Tesco | IE | `tesco-ie`|
| TopAchat | GR | `topachat`|
| Toys R Us | US | `toysrus` | | Toys R Us | US | `toysrus` |
| Umart | AU | `umart`| | Umart | AU | `umart`|
| Unieuro | IT | `unieuro`| | Unieuro | IT | `unieuro`|
@@ -171,7 +173,6 @@ Used with the `STORES` variable.
| Wells Technology | AU | `wellstechnology`| | Wells Technology | AU | `wellstechnology`|
| Wipoid | ES | `wipoid`| | Wipoid | ES | `wipoid`|
| Zotac | US | `zotac`| | Zotac | US | `zotac`|
| TopAchat | GR | `topachat`|
### Micro Center stores ### Micro Center stores
+10 -8
View File
@@ -94,6 +94,7 @@ import {NeweggCa} from './newegg-ca';
import {NeweggSg} from './newegg-sg'; import {NeweggSg} from './newegg-sg';
import {Notebooksbilliger} from './notebooksbilliger'; import {Notebooksbilliger} from './notebooksbilliger';
import {Novatech} from './novatech'; import {Novatech} from './novatech';
import {NovoAtalho} from './novoatalho';
import {NvidiaDE} from './nvidia-de'; import {NvidiaDE} from './nvidia-de';
import {NvidiaES} from './nvidia-es'; import {NvidiaES} from './nvidia-es';
import {NvidiaFR} from './nvidia-fr'; import {NvidiaFR} from './nvidia-fr';
@@ -104,10 +105,10 @@ import {Otto} from './otto';
import {Overclockers} from './overclockers'; import {Overclockers} from './overclockers';
import {PBTech} from './pbtech'; import {PBTech} from './pbtech';
import {PCByte} from './pcbyte'; import {PCByte} from './pcbyte';
import {Pccg} from './pccg';
import {PCComponentes} from './pccomponentes'; import {PCComponentes} from './pccomponentes';
import {PCDiga} from './pcdiga'; import {PCDiga} from './pcdiga';
import {PCKing} from './pcking'; import {PCKing} from './pcking';
import {Pccg} from './pccg';
import {PlayStation} from './playstation'; import {PlayStation} from './playstation';
import {Pny} from './pny'; import {Pny} from './pny';
import {PowerNO} from './power-no'; import {PowerNO} from './power-no';
@@ -146,8 +147,8 @@ import {logger} from '../../logger';
export const storeList = new Map([ export const storeList = new Map([
[AComPC.name, AComPC], [AComPC.name, AComPC],
[Adorama.name, Adorama], [Adorama.name, Adorama],
[Allneeds.name, Allneeds],
[Akinformatica.name, Akinformatica], [Akinformatica.name, Akinformatica],
[Allneeds.name, Allneeds],
[Alternate.name, Alternate], [Alternate.name, Alternate],
[AlternateNL.name, AlternateNL], [AlternateNL.name, AlternateNL],
[Amazon.name, Amazon], [Amazon.name, Amazon],
@@ -156,10 +157,10 @@ export const storeList = new Map([
[AmazonDeWarehouse.name, AmazonDeWarehouse], [AmazonDeWarehouse.name, AmazonDeWarehouse],
[AmazonEs.name, AmazonEs], [AmazonEs.name, AmazonEs],
[AmazonFr.name, AmazonFr], [AmazonFr.name, AmazonFr],
[AmazonNl.name, AmazonNl],
[AmazonUk.name, AmazonUk],
[AmazonSg.name, AmazonSg],
[AmazonIt.name, AmazonIt], [AmazonIt.name, AmazonIt],
[AmazonNl.name, AmazonNl],
[AmazonSg.name, AmazonSg],
[AmazonUk.name, AmazonUk],
[Amd.name, Amd], [Amd.name, Amd],
[AmdCa.name, AmdCa], [AmdCa.name, AmdCa],
[AmdDe.name, AmdDe], [AmdDe.name, AmdDe],
@@ -180,8 +181,8 @@ export const storeList = new Map([
[Box.name, Box], [Box.name, Box],
[Bpctech.name, Bpctech], [Bpctech.name, Bpctech],
[BpmPower.name, BpmPower], [BpmPower.name, BpmPower],
[Caseking.name, Caseking],
[CanadaComputers.name, CanadaComputers], [CanadaComputers.name, CanadaComputers],
[Caseking.name, Caseking],
[Ccl.name, Ccl], [Ccl.name, Ccl],
[Centrecom.name, Centrecom], [Centrecom.name, Centrecom],
[Comet.name, Comet], [Comet.name, Comet],
@@ -239,6 +240,7 @@ export const storeList = new Map([
[NeweggSg.name, NeweggSg], [NeweggSg.name, NeweggSg],
[Notebooksbilliger.name, Notebooksbilliger], [Notebooksbilliger.name, Notebooksbilliger],
[Novatech.name, Novatech], [Novatech.name, Novatech],
[NovoAtalho.name, NovoAtalho],
[NvidiaDE.name, NvidiaDE], [NvidiaDE.name, NvidiaDE],
[NvidiaES.name, NvidiaES], [NvidiaES.name, NvidiaES],
[NvidiaFR.name, NvidiaFR], [NvidiaFR.name, NvidiaFR],
@@ -250,9 +252,9 @@ export const storeList = new Map([
[PBTech.name, PBTech], [PBTech.name, PBTech],
[PCByte.name, PCByte], [PCByte.name, PCByte],
[Pccg.name, Pccg], [Pccg.name, Pccg],
[PCKing.name, PCKing],
[PCComponentes.name, PCComponentes], [PCComponentes.name, PCComponentes],
[PCDiga.name, PCDiga], [PCDiga.name, PCDiga],
[PCKing.name, PCKing],
[PlayStation.name, PlayStation], [PlayStation.name, PlayStation],
[Pny.name, Pny], [Pny.name, Pny],
[PowerNO.name, PowerNO], [PowerNO.name, PowerNO],
@@ -266,8 +268,8 @@ export const storeList = new Map([
[Scan.name, Scan], [Scan.name, Scan],
[Scorptec.name, Scorptec], [Scorptec.name, Scorptec],
[ShopTo.name, ShopTo], [ShopTo.name, ShopTo],
[SmythsToysIE.name, SmythsToysIE],
[SmythsToys.name, SmythsToys], [SmythsToys.name, SmythsToys],
[SmythsToysIE.name, SmythsToysIE],
[Spielegrotte.name, Spielegrotte], [Spielegrotte.name, Spielegrotte],
[StormComputers.name, StormComputers], [StormComputers.name, StormComputers],
[Target.name, Target], [Target.name, Target],
+215
View File
@@ -0,0 +1,215 @@
import {Store} from './store';
export const NovoAtalho: Store = {
currency: '€',
labels: {
inStock: {
container:
'div.line > div.pull-left > div.stockpadding > span.stock > b > a',
text: ['DISPONÍVEL', 'POUCAS UNIDADES'],
},
outOfStock: {
container:
'div.line > div.pull-left > div.stockpadding > span.stock > b > a',
text: ['INDISPONÍVEL'],
},
maxPrice: {
container:
'div.line > div.pull-right > div.text-right > span.product-price',
euroFormat: true,
},
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url:
'https://www.novoatalho.pt/pt-PT/produto/27318/Cabo-HDMI-p-MiniHDMI-Gembird-1-8Mtr/CC-HDMI4C-6.html',
},
{
brand: 'asus',
model: 'strix',
series: '3090',
url:
'https://www.novoatalho.pt/pt-PT/produto/44484/Placa-Grafica-Asus-GeForce-RTX-3090-ROG-STRIX-24GB/90YV0F90-M0NM00.html',
},
{
brand: 'asus',
model: 'strix oc',
series: '3090',
url:
'https://www.novoatalho.pt/pt-PT/produto/44485/Placa-Grafica-Asus-GeForce-RTX-3090-ROG-STRIX-OC-24GB/90YV0F93-M0NM00.html',
},
{
brand: 'asus',
model: 'tuf oc',
series: '3090',
url:
'https://www.novoatalho.pt/pt-PT/produto/44319/Placa-Grafica-Asus-GeForce-RTX-3090-TUF-GAMING-OC-24GB/90YV0FD1-M0NM00.html',
},
{
brand: 'evga',
model: 'ftw3 ultra',
series: '3090',
url:
'https://www.novoatalho.pt/pt-PT/produto/45582/Placa-Grafica-EVGA-GeForce-RTX-3090-FTW3-ULTRA-GAMING-24GB/24G-P5-3987-KR.html',
},
{
brand: 'msi',
model: 'gaming x trio',
series: '3090',
url:
'https://www.novoatalho.pt/pt-PT/produto/44316/Placa-Grafica-MSI-GeForce-RTX-3090-GAMING-X-TRIO-24GB/912-V388-011.html',
},
{
brand: 'msi',
model: 'suprim x',
series: '3090',
url:
'https://www.novoatalho.pt/pt-PT/produto/45819/Placa-Grafica-MSI-GeForce-RTX-3090-SUPRIM-X-24GB/912-V388-010.html',
},
{
brand: 'asus',
model: 'dual oc',
series: '3070',
url:
'https://www.novoatalho.pt/pt-PT/produto/45331/Placa-Grafica-Asus-GeForce-RTX-3070-DUAL-OC-8GB/90YV0FQ0-M0NA00.html',
},
{
brand: 'asus',
model: 'tuf',
series: '3070',
url:
'https://www.novoatalho.pt/pt-PT/produto/45750/Placa-Grafica-Asus-GeForce-RTX-3070-TUF-GAMING-OC-8GB/90YV0FQ6-M0NA00.html',
},
{
brand: 'gigabyte',
model: 'gaming oc',
series: '3070',
url:
'https://www.novoatalho.pt/pt-PT/produto/45862/Placa-Grafica-Gigabyte-GeForce-RTX-3070-Gaming-OC-8GB/GV-N3070GAM-OC-8G.html',
},
{
brand: 'msi',
model: 'gaming x trio',
series: '3070',
url:
'https://www.novoatalho.pt/pt-PT/produto/45334/Placa-Grafica-MSI-GeForce-RTX-3070-GAMING-X-TRIO-8GB/912-V390-006.html',
},
{
brand: 'msi',
model: 'ventus 3x',
series: '3060',
url:
'https://www.novoatalho.pt/pt-PT/produto/47052/Placa-Grafica-MSI-GeForce-RTX-3060-VENTUS-3X-OC-12G/912-V397-038.html',
},
{
brand: 'msi',
model: 'gaming x trio',
series: '3060',
url:
'https://www.novoatalho.pt/pt-PT/produto/46883/Placa-Grafica-MSI-GeForce-RTX-3060-GAMING-X-TRIO-OC-12GB/912-V390-081.html',
},
{
brand: 'msi',
model: 'gaming x',
series: '3060',
url:
'https://www.novoatalho.pt/pt-PT/produto/47050/Placa-Grafica-MSI-GeForce-RTX-3060-GAMING-X-12G/912-V397-037.html',
},
{
brand: 'gigabyte',
model: 'gaming oc',
series: '3060',
url:
'https://www.novoatalho.pt/pt-PT/produto/46920/Placa-Grafica-Gigabyte-GeForce-RTX-3060-Gaming-OC-12GB/GVN3060GO-00-10.html',
},
{
brand: 'asus',
model: 'tuf oc',
series: '3060',
url:
'https://www.novoatalho.pt/pt-PT/produto/46702/Placa-Grafica-Asus-GeForce-RTX-3060-TUF-GAMING-OC-12GB/90YV0GC0-M0NA00.html',
},
{
brand: 'asus',
model: 'tuf oc',
series: '3060ti',
url:
'https://www.novoatalho.pt/pt-PT/produto/46783/Placa-Grafica-Asus-GeForce-RTX-3060-Ti-TUF-GAMING-OC-8GB/90YV0G10-M0NA00.html',
},
{
brand: 'asus',
model: 'strix oc',
series: '3060',
url:
'https://www.novoatalho.pt/pt-PT/produto/46701/Placa-Grafica-Asus-GeForce-RTX-3060-ROG-STRIX-OC-12GB/90YV0GC2-M0NA00.html',
},
{
brand: 'asus',
model: 'strix oc',
series: 'rx6800',
url:
'https://www.novoatalho.pt/pt-PT/produto/46281/Placa-Grafica-Asus-Radeon-RX-6800-ROG-STRIX-OC-16GB/90YV0FM0-M0NA00.html',
},
{
brand: 'asus',
model: 'strix oc',
series: 'rx6800xt',
url:
'https://www.novoatalho.pt/pt-PT/produto/46785/Placa-Grafica-Asus-Radeon-RX-6800-XT-ROG-STRIX-OC-LC-16GB/90YV0FL0-M0NM00.html',
},
{
brand: 'asus',
model: 'tuf oc',
series: 'rx6800xt',
url:
'https://www.novoatalho.pt/pt-PT/produto/46784/Placa-Grafica-Asus-Radeon-RX-6800-XT-TUF-GAMING-OC-16GB/90YV0FL1-M0NM00.html',
},
{
brand: 'msi',
model: 'gaming x trio',
series: 'rx6800',
url:
'https://www.novoatalho.pt/pt-PT/produto/46280/Placa-Grafica-MSI-Radeon-RX-6800-GAMING-X-TRIO-16GB/V396-002R.html',
},
{
brand: 'msi',
model: 'gaming x trio',
series: 'rx6800xt',
url:
'https://www.novoatalho.pt/pt-PT/produto/46279/Placa-Grafica-MSI-Radeon-RX-6800-XT-GAMING-X-TRIO-16GB/912-V395-001.html',
},
{
brand: 'asus',
model: 'tuf oc',
series: 'rx6900xt',
url:
'https://www.novoatalho.pt/pt-PT/produto/46700/Placa-Grafica-Asus-Radeon-RX-6900-XT-TUF-GAMING-OC-16GB/90YV0GE0-M0NM00.html',
},
{
brand: 'msi',
model: 'gaming x trio',
series: 'rx6900xt',
url:
'https://www.novoatalho.pt/pt-PT/produto/46649/Placa-Grafica-MSI-Radeon-RX-6900-XT-GAMING-X-TRIO-16GB/912-V395-007.html',
},
{
brand: 'amd',
model: '5600x',
series: 'ryzen5600',
url:
'https://www.novoatalho.pt/pt-PT/produto/45058/Processador-AMD-Ryzen-5-5600X-3-7Ghz-6-Core-SktAM4/100-100000065BOX.html',
},
{
brand: 'amd',
model: '5800x',
series: 'ryzen5800',
url:
'https://www.novoatalho.pt/pt-PT/produto/45059/Processador-AMD-Ryzen-7-5800X-3-8Ghz-OctaCore-SktAM4/100-100000063WOF.html',
},
],
name: 'novoatalho',
waitUntil: 'domcontentloaded',
};