diff --git a/docs/reference/filter.md b/docs/reference/filter.md index de147ca..4267e1c 100644 --- a/docs/reference/filter.md +++ b/docs/reference/filter.md @@ -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`| @@ -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`| @@ -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`| @@ -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`| @@ -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 diff --git a/src/store/model/index.ts b/src/store/model/index.ts index c04b488..0a31f81 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -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'; @@ -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'; @@ -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], @@ -156,10 +157,10 @@ export const storeList = new Map([ [AmazonDeWarehouse.name, AmazonDeWarehouse], [AmazonEs.name, AmazonEs], [AmazonFr.name, AmazonFr], - [AmazonNl.name, AmazonNl], - [AmazonUk.name, AmazonUk], - [AmazonSg.name, AmazonSg], [AmazonIt.name, AmazonIt], + [AmazonNl.name, AmazonNl], + [AmazonSg.name, AmazonSg], + [AmazonUk.name, AmazonUk], [Amd.name, Amd], [AmdCa.name, AmdCa], [AmdDe.name, AmdDe], @@ -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], @@ -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], @@ -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], @@ -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], diff --git a/src/store/model/novoatalho.ts b/src/store/model/novoatalho.ts new file mode 100644 index 0000000..334f899 --- /dev/null +++ b/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', +};