Skip to content

Commit

Permalink
feat: add alternate.nl support (#552)
Browse files Browse the repository at this point in the history
  • Loading branch information
DisguisedOtter committed Oct 20, 2020
1 parent 10a81dc commit aca6523
Show file tree
Hide file tree
Showing 3 changed files with 171 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -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`|
Expand Down
168 changes: 168 additions & 0 deletions 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'
};

2 changes: 2 additions & 0 deletions 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';
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit aca6523

Please sign in to comment.