diff --git a/README.md b/README.md index fc4ccc5..d8dcbaa 100644 --- a/README.md +++ b/README.md @@ -137,7 +137,10 @@ environment variables are **optional**._ | Amazon (ES) | `amazon-es`| | Amazon (NL) | `amazon-nl`| | Amazon (UK) | `amazon-uk`| +| AMD | `amd`| +| AMD (DE) | `amd-de`| | Aria PC (UK) | `aria`| +| ARLT (DE) | `arlt`| | ASUS | `asus` | | ASUS (DE) | `asus-de` | | Azerty (NL) | `azerty`| diff --git a/src/store/model/amd-de.ts b/src/store/model/amd-de.ts new file mode 100644 index 0000000..03e4159 --- /dev/null +++ b/src/store/model/amd-de.ts @@ -0,0 +1,51 @@ +import {Store} from './store'; + +export const AMDDe: Store = { + labels: { + inStock: { + container: '.btn-shopping-cart', + text: ['add to cart'] + }, + maxPrice: { + container: '.product-page-description h4', + euroFormat: true + } + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: 'https://www.amd.com/de/direct-buy/5450881400/de' + }, + { + brand: 'amd', + cartUrl: 'https://www.amd.com/de/direct-buy/5450881400/de?add-to-cart=true', + model: '5950x', + series: 'ryzen5950', + url: 'https://www.amd.com/de/direct-buy/5450881400/de' + }, + { + brand: 'amd', + cartUrl: 'https://www.amd.com/de/direct-buy/5450881500/de?add-to-cart=true', + model: '5900x', + series: 'ryzen5900', + url: 'https://www.amd.com/de/direct-buy/5450881500/de' + }, + { + brand: 'amd', + cartUrl: 'https://www.amd.com/de/direct-buy/5450881600/de?add-to-cart=true', + model: '5800x', + series: 'ryzen5800', + url: 'https://www.amd.com/de/direct-buy/5450881600/de' + }, + { + brand: 'amd', + cartUrl: 'https://www.amd.com/de/direct-buy/5450881700/de?add-to-cart=true', + model: '5600x', + series: 'ryzen5600', + url: 'https://www.amd.com/de/direct-buy/5450881700/de' + } + ], + name: 'amd-de' +}; diff --git a/src/store/model/arlt.ts b/src/store/model/arlt.ts new file mode 100644 index 0000000..1cbaba8 --- /dev/null +++ b/src/store/model/arlt.ts @@ -0,0 +1,123 @@ +import {Store} from './store'; + +export const Arlt: Store = { + labels: { + inStock: { + container: '.articleDesc .shippingtext', + text: ['auf Lager', 'Lieferzeit 2-3 Werktage', 'Ware im Zulauf'] + }, + maxPrice: { + container: '.articleprice .price', + euroFormat: true + }, + outOfStock: { + container: '.articleDesc .shippingtext', + text: ['Neuer Artikel in Kürze verfügbar', 'Liefertermin unbekannt'] + } + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: 'https://www.arlt.com/ASUS-GeForce-GTX1650-Super-TUF-GTX1650S-O4G-GAMING.html' + }, + { + brand: 'asus', + model: 'dual', + series: '3070', + url: 'https://www.arlt.com/Gaming/Gaming-Hardware/Grafikkarten/ASUS-Dual-GeForce-RTX-3070.html' + }, + { + brand: 'asus', + model: 'dual oc', + series: '3070', + url: 'https://www.arlt.com/Hardware/PC-Komponenten/Grafikkarten/NVIDIA/ASUS-Dual-GeForce-RTX-3070-OC.html' + }, + { + brand: 'asus', + model: 'tuf oc', + series: '3070', + url: 'https://www.arlt.com/Gaming/Gaming-Hardware/Grafikkarten/ASUS-TUF-Gaming-GeForce-RTX-3070-OC.html' + }, + { + brand: 'asus', + model: 'rog strix', + series: '3070', + url: 'https://www.arlt.com/Hardware/PC-Komponenten/Grafikkarten/NVIDIA/GeForce-RTX/RTX-3070/ASUS-ROG-Strix-GeForce-RTX-3070.html' + }, + { + brand: 'msi', + model: 'ventus 2x oc', + series: '3070', + url: 'https://www.arlt.com/Hardware/PC-Komponenten/Grafikkarten/NVIDIA/GeForce-RTX/RTX-3070/MSI-GeForce-RTX-3070-Ventus-2X-OC.html' + }, + { + brand: 'gainward', + model: 'phoenix', + series: '3070', + url: 'https://www.arlt.com/Hardware/PC-Komponenten/Grafikkarten/NVIDIA/GeForce-RTX/Gainward-GeForce-RTX-3070-Phoenix.html' + }, + { + brand: 'gainward', + model: 'phoenix gs', + series: '3070', + url: 'https://www.arlt.com/Gaming/Gaming-Hardware/Gainward-GeForce-RTX-3070-Phoenix-GS.html' + }, + { + brand: 'asus', + model: 'tuf oc', + series: '3080', + url: 'https://www.arlt.com/Hardware/PC-Komponenten/Grafikkarten/ASUS-TUF-Gaming-GeForce-RTX-3080-OC.html' + }, + { + brand: 'msi', + model: 'ventus 3x oc', + series: '3080', + url: 'https://www.arlt.com/Hardware/PC-Komponenten/Grafikkarten/NVIDIA/GeForce-RTX/RTX-3080/MSI-GeForce-RTX-3080-Ventus-3X-OC.html' + }, + { + brand: 'asus', + model: 'tuf oc', + series: '3090', + url: 'https://www.arlt.com/Hardware/PC-Komponenten/Grafikkarten/NVIDIA/GeForce-RTX/RTX-3090/ASUS-TUF-Gaming-GeForce-RTX-3090-OC.html' + }, + { + brand: 'asus', + model: 'rog strix oc', + series: '3090', + url: 'https://www.arlt.com/Hardware/PC-Komponenten/Grafikkarten/NVIDIA/GeForce-RTX/RTX-3090/ASUS-ROG-Strix-GeForce-RTX-3090-OC.html' + }, + { + brand: 'gainward', + model: 'phoenix gs', + series: '3090', + url: 'https://www.arlt.com/Gaming/Gaming-Hardware/Gainward-GeForce-RTX-3090-Phoenix-GS.html' + }, + { + brand: 'amd', + model: '5600x', + series: 'ryzen5600', + url: 'https://www.arlt.com/Hardware/PC-Komponenten/Prozessoren-arlt/AMD-Ryzen-5-5600X-boxed.html' + }, + { + brand: 'amd', + model: '5800x', + series: 'ryzen5800', + url: 'https://www.arlt.com/Hardware/PC-Komponenten/Prozessoren-arlt/AMD-Ryzen-7-5800X-boxed.html' + }, + { + brand: 'amd', + model: '5900x', + series: 'ryzen5900', + url: 'https://www.arlt.com/Hardware/PC-Komponenten/Prozessoren-arlt/AMD-Ryzen-9-5900X-boxed.html' + }, + { + brand: 'amd', + model: '5900x', + series: 'ryzen5950', + url: 'https://www.arlt.com/Hardware/PC-Komponenten/Prozessoren-arlt/AMD-Ryzen-9-5950X-boxed.html' + } + ], + name: 'arlt' +}; diff --git a/src/store/model/index.ts b/src/store/model/index.ts index e844b0e..0bf78f6 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -1,5 +1,6 @@ import {config, defaultStoreData} from '../../config'; import {AMD} from './amd'; +import {AMDDe} from './amd-de'; import {Adorama} from './adorama'; import {Alternate} from './alternate'; import {AlternateNL} from './alternate-nl'; @@ -10,6 +11,7 @@ import {AmazonEs} from './amazon-es'; import {AmazonNl} from './amazon-nl'; import {AmazonUk} from './amazon-uk'; import {Aria} from './aria'; +import {Arlt} from './arlt'; import {Asus} from './asus'; import {AsusDe} from './asus-de'; import {Azerty} from './azerty'; @@ -63,7 +65,9 @@ export const storeList = new Map([ [AmazonNl.name, AmazonNl], [AmazonUk.name, AmazonUk], [AMD.name, AMD], + [AMDDe.name, AMDDe], [Aria.name, Aria], + [Arlt.name, Arlt], [Asus.name, Asus], [AsusDe.name, AsusDe], [Azerty.name, Azerty],