Skip to content

Commit

Permalink
feat(store): add novoatalho (PT) (#2043)
Browse files Browse the repository at this point in the history
  • Loading branch information
afonsojramos committed Feb 27, 2021
1 parent 11e1465 commit a3c726b
Show file tree
Hide file tree
Showing 3 changed files with 228 additions and 10 deletions.
7 changes: 4 additions & 3 deletions docs/reference/filter.md
Expand Up @@ -94,9 +94,9 @@ Used with the `STORES` variable.
| El Corte Inglés | ES | `elcorteingles`|
| Elkjop | NO | `elkjop`|
| ePrice | IT | `eprice`|
| Equippr | DE | `equippr`|
| Euronics | IT | `euronics`|
| Euronics | DE | `euronics-de`|
| Equippr | DE | `equippr`|
| Evatech | AU | `evatech`|
| EVGA | US | `evga`|
| EVGA | EU | `evga-eu`|
Expand All @@ -109,9 +109,9 @@ Used with the `STORES` variable.
| Gamestop | IE | `gamestop-ie`|
| Gamestop | IT | `gamestop-it`|
| Globaldata | PT | `globaldata`|
| Hardware Planet | IT | | `hardware-planet` |
| HarrisTechnology | AU | `harristechnology`|
| Harvey Normans | IE | `harveynorman-ie` |
| Hardware Planet | IT | | `hardware-planet` |
| iGame Computer | AU | `igame-computer`|
| John Lewis | UK | `johnlewis`|
| Kabum | BR | `kabum`|
Expand All @@ -131,6 +131,7 @@ Used with the `STORES` variable.
| Newegg | SG | `newegg-sg`|
| Notebooksbilliger | DE |`notebooksbilliger`|
| Novatech | UK | `novatech`|
| Novo Atalho | PT | `novoatalho`|
| Nvidia | EU/UK | [See below](#nvidia-store-reference) |
| Office Depot | US | `officedepot`|
| Ollo | IT | `ollo`|
Expand Down Expand Up @@ -161,6 +162,7 @@ Used with the `STORES` variable.
| Storm Computers | AU | `storm-computer`|
| Target | US | `target`|
| Tesco | IE | `tesco-ie`|
| TopAchat | GR | `topachat`|
| Toys R Us | US | `toysrus` |
| Umart | AU | `umart`|
| Unieuro | IT | `unieuro`|
Expand All @@ -171,7 +173,6 @@ Used with the `STORES` variable.
| Wells Technology | AU | `wellstechnology`|
| Wipoid | ES | `wipoid`|
| Zotac | US | `zotac`|
| TopAchat | GR | `topachat`|

### Micro Center stores

Expand Down
16 changes: 9 additions & 7 deletions src/store/model/index.ts
Expand Up @@ -94,6 +94,7 @@ import {NeweggCa} from './newegg-ca';
import {NeweggSg} from './newegg-sg';
import {Notebooksbilliger} from './notebooksbilliger';
import {Novatech} from './novatech';
import {NovoAtalho} from './novoatalho';
import {NvidiaDE} from './nvidia-de';
import {NvidiaES} from './nvidia-es';
import {NvidiaFR} from './nvidia-fr';
Expand All @@ -104,10 +105,10 @@ import {Otto} from './otto';
import {Overclockers} from './overclockers';
import {PBTech} from './pbtech';
import {PCByte} from './pcbyte';
import {Pccg} from './pccg';
import {PCComponentes} from './pccomponentes';
import {PCDiga} from './pcdiga';
import {PCKing} from './pcking';
import {Pccg} from './pccg';
import {PlayStation} from './playstation';
import {Pny} from './pny';
import {PowerNO} from './power-no';
Expand Down Expand Up @@ -146,8 +147,8 @@ import {logger} from '../../logger';
export const storeList = new Map([
[AComPC.name, AComPC],
[Adorama.name, Adorama],
[Allneeds.name, Allneeds],
[Akinformatica.name, Akinformatica],
[Allneeds.name, Allneeds],
[Alternate.name, Alternate],
[AlternateNL.name, AlternateNL],
[Amazon.name, Amazon],
Expand All @@ -156,10 +157,10 @@ export const storeList = new Map([
[AmazonDeWarehouse.name, AmazonDeWarehouse],
[AmazonEs.name, AmazonEs],
[AmazonFr.name, AmazonFr],
[AmazonIt.name, AmazonIt],
[AmazonNl.name, AmazonNl],
[AmazonUk.name, AmazonUk],
[AmazonSg.name, AmazonSg],
[AmazonIt.name, AmazonIt],
[AmazonUk.name, AmazonUk],
[Amd.name, Amd],
[AmdCa.name, AmdCa],
[AmdDe.name, AmdDe],
Expand All @@ -180,8 +181,8 @@ export const storeList = new Map([
[Box.name, Box],
[Bpctech.name, Bpctech],
[BpmPower.name, BpmPower],
[Caseking.name, Caseking],
[CanadaComputers.name, CanadaComputers],
[Caseking.name, Caseking],
[Ccl.name, Ccl],
[Centrecom.name, Centrecom],
[Comet.name, Comet],
Expand Down Expand Up @@ -239,6 +240,7 @@ export const storeList = new Map([
[NeweggSg.name, NeweggSg],
[Notebooksbilliger.name, Notebooksbilliger],
[Novatech.name, Novatech],
[NovoAtalho.name, NovoAtalho],
[NvidiaDE.name, NvidiaDE],
[NvidiaES.name, NvidiaES],
[NvidiaFR.name, NvidiaFR],
Expand All @@ -250,9 +252,9 @@ export const storeList = new Map([
[PBTech.name, PBTech],
[PCByte.name, PCByte],
[Pccg.name, Pccg],
[PCKing.name, PCKing],
[PCComponentes.name, PCComponentes],
[PCDiga.name, PCDiga],
[PCKing.name, PCKing],
[PlayStation.name, PlayStation],
[Pny.name, Pny],
[PowerNO.name, PowerNO],
Expand All @@ -266,8 +268,8 @@ export const storeList = new Map([
[Scan.name, Scan],
[Scorptec.name, Scorptec],
[ShopTo.name, ShopTo],
[SmythsToysIE.name, SmythsToysIE],
[SmythsToys.name, SmythsToys],
[SmythsToysIE.name, SmythsToysIE],
[Spielegrotte.name, Spielegrotte],
[StormComputers.name, StormComputers],
[Target.name, Target],
Expand Down
215 changes: 215 additions & 0 deletions src/store/model/novoatalho.ts
@@ -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',
};

0 comments on commit a3c726b

Please sign in to comment.