Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add alternate.nl support #552

Merged
merged 5 commits into from
Oct 20, 2020
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
168 changes: 168 additions & 0 deletions src/store/model/alternate-nl.ts
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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