From aca65233339ddbbcc1dbd06f9011d6d44c6650cf Mon Sep 17 00:00:00 2001 From: DisguisedOtter <67966012+DisguisedOtter@users.noreply.github.com> Date: Tue, 20 Oct 2020 20:04:59 +0200 Subject: [PATCH] feat: add alternate.nl support (#552) --- README.md | 1 + src/store/model/alternate-nl.ts | 168 ++++++++++++++++++++++++++++++++ src/store/model/index.ts | 2 + 3 files changed, 171 insertions(+) create mode 100644 src/store/model/alternate-nl.ts diff --git a/README.md b/README.md index a368582fc8..af9c8b6793 100644 --- a/README.md +++ b/README.md @@ -157,6 +157,7 @@ Here is a list of variables that you can use to customize your newly copied `.en |:---:|:---:| | Adorama | `adorama`| | Alternate (DE) | `alternate`| +| Alternate (NL) | `alternate-nl`| | Amazon | `amazon`| | Amazon (CA) | `amazon-ca`| | Amazon (DE) | `amazon-de`| diff --git a/src/store/model/alternate-nl.ts b/src/store/model/alternate-nl.ts new file mode 100644 index 0000000000..036589a7c9 --- /dev/null +++ b/src/store/model/alternate-nl.ts @@ -0,0 +1,168 @@ +import {Store} from './store'; + +export const AlternateNL: Store = { + labels: { + inStock: { + container: '.stockStatus', + text: ['Direct leverbaar'] + }, + outOfStock: { + container: '.stockStatus', + text: ['Levertermijn onbekend', 'pre-order'] + } + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: 'https://www.alternate.nl/product/1516616' + }, + { + brand: 'gigabyte', + model: 'eagle oc', + series: '3080', + url: 'https://www.alternate.nl/product/1672756' + }, + { + brand: 'msi', + model: 'ventus 3x oc', + series: '3080', + url: 'https://www.alternate.nl/product/1672345' + }, + { + brand: 'asus', + model: 'tuf gaming', + series: '3080', + url: 'https://www.alternate.nl/product/1672251' + }, + { + brand: 'gigabyte', + model: 'gaming oc', + series: '3080', + url: 'https://www.alternate.nl/product/1672753' + }, + { + brand: 'msi', + model: 'gaming x trio', + series: '3080', + url: 'https://www.alternate.nl/product/1672343' + }, + { + brand: 'asus', + model: 'tuf oc gaming', + series: '3080', + url: 'https://www.alternate.nl/product/1672634' + }, + { + brand: 'asus', + model: 'rog strix oc gaming', + series: '3080', + url: 'https://www.alternate.nl/product/1672867' + }, + { + brand: 'evga', + model: 'xc3 black gaming', + series: '3080', + url: 'https://www.alternate.nl/product/1673512' + }, + { + brand: 'zotac', + model: 'trinity', + series: '3080', + url: 'https://www.alternate.nl/product/1672612' + }, + { + brand: 'evga', + model: 'xc3 ultra gaming', + series: '3080', + url: 'https://www.alternate.nl/product/1674164' + }, + { + brand: 'asus', + model: 'rog strix gaming', + series: '3080', + url: 'https://www.alternate.nl/product/1672868' + }, + { + brand: 'palit', + model: 'gaming pro oc', + series: '3080', + url: 'https://www.alternate.nl/product/1673431' + }, + { + brand: 'zotac', + model: 'trinity oc', + series: '3080', + url: 'https://www.alternate.nl/product/1677989' + }, + { + brand: 'gigabyte', + model: 'vision oc', + series: '3080', + url: 'https://www.alternate.nl/product/1681134' + }, + { + brand: 'evga', + model: 'xc3 gaming', + series: '3080', + url: 'https://www.alternate.nl/product/1673520' + }, + { + brand: 'gainward', + model: 'phoenix gs', + series: '3080', + url: 'https://www.alternate.nl/product/1673442' + }, + { + brand: 'inno3d', + model: 'ichill x3', + series: '3080', + url: 'https://www.alternate.nl/product/1673136' + }, + { + brand: 'evga', + model: 'ftw3 ultra gaming', + series: '3080', + url: 'https://www.alternate.nl/product/1673524' + }, + { + brand: 'gigabyte', + model: 'aorus master', + series: '3080', + url: 'https://www.alternate.nl/product/1680168' + }, + { + brand: 'evga', + model: 'ftw3 gaming', + series: '3080', + url: 'https://www.alternate.nl/product/1673517' + }, + { + brand: 'zotac', + model: 'amp holo', + series: '3080', + url: 'https://www.alternate.nl/product/1677985' + }, + { + brand: 'zotac', + model: 'amp extreme holo', + series: '3080', + url: 'https://www.alternate.nl/product/1677982' + }, + { + brand: 'inno3d', + model: 'twin x2 oc', + series: '3080', + url: 'https://www.alternate.nl/product/1673137' + }, + { + brand: 'inno3d', + model: 'ichill x4', + series: '3080', + url: 'https://www.alternate.nl/product/1673134' + } + ], + name: 'alternate-nl' +}; + diff --git a/src/store/model/index.ts b/src/store/model/index.ts index d3895672af..4498819212 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -1,5 +1,6 @@ import {Adorama} from './adorama'; import {Alternate} from './alternate'; +import {AlternateNL} from './alternate-nl'; import {Amazon} from './amazon'; import {AmazonCa} from './amazon-ca'; import {AmazonDe} from './amazon-de'; @@ -43,6 +44,7 @@ import {logger} from '../../logger'; const masterList = new Map([ [Adorama.name, Adorama], [Alternate.name, Alternate], + [AlternateNL.name, AlternateNL], [Amazon.name, Amazon], [AmazonCa.name, AmazonCa], [AmazonDe.name, AmazonDe],