Skip to content

Commit

Permalink
feat: add german stores (#462)
Browse files Browse the repository at this point in the history
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
  • Loading branch information
tconex and jef committed Oct 7, 2020
1 parent b9b6b55 commit 85a07dc
Show file tree
Hide file tree
Showing 6 changed files with 390 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Expand Up @@ -131,6 +131,7 @@ Here is a list of variables that you can use to customize your newly copied `.en
| Stores | Environment variable |
|:---:|:---:|
| Adorama | `adorama`|
| Alternate (DE) | `alternate`|
| Amazon | `amazon`|
| Amazon (CA) | `amazon-ca`|
| Amazon (DE) | `amazon-de`|
Expand All @@ -148,9 +149,11 @@ Here is a list of variables that you can use to customize your newly copied `.en
| EVGA | `evga`|
| EVGA (EU) | `evga-eu`|
| Gamestop | `gamestop`|
| Mediamarkt (DE) | `mediamarkt`|
| Micro Center | `microcenter`|
| Newegg | `newegg`|
| Newegg (CA) | `newegg-ca`|
| Notebooksbilliger (DE) |`notebooksbilliger`|
| Novatech | `novatech`|
| Nvidia | `nvidia`|
| Nvidia (API) | `nvidia-api`|
Expand Down
168 changes: 168 additions & 0 deletions src/store/model/alternate.ts
@@ -0,0 +1,168 @@
import {Store} from './store';

export const Alternate: Store = {
labels: {
inStock: {
container: '.stockStatus',
text: ['auf lager']
},
outOfStock: {
container: '.stockStatus',
text: ['liefertermin unbekannt']
}
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url: 'https://www.alternate.de/product/1516616'
},
{
brand: 'gigabyte',
model: 'eagle oc',
series: '3080',
url: 'https://www.alternate.de/product/1672756'
},
{
brand: 'msi',
model: 'ventus 3x oc',
series: '3080',
url: 'https://www.alternate.de/product/1672345'
},
{
brand: 'asus',
model: 'tuf gaming',
series: '3080',
url: 'https://www.alternate.de/product/1672251'
},
{
brand: 'gigabyte',
model: 'gaming oc',
series: '3080',
url: 'https://www.alternate.de/product/1672753'
},
{
brand: 'msi',
model: 'gaming x trio',
series: '3080',
url: 'https://www.alternate.de/product/1672343'
},
{
brand: 'asus',
model: 'tuf oc gaming',
series: '3080',
url: 'https://www.alternate.de/product/1672634'
},
{
brand: 'asus',
model: 'rog strix oc gaming',
series: '3080',
url: 'https://www.alternate.de/product/1672867'
},
{
brand: 'evga',
model: 'xc3 black gaming',
series: '3080',
url: 'https://www.alternate.de/product/1673512'
},
{
brand: 'zotac',
model: 'trinity',
series: '3080',
url: 'https://www.alternate.de/product/1672612'
},
{
brand: 'evga',
model: 'xc3 ultra gaming',
series: '3080',
url: 'https://www.alternate.de/product/1674164'
},
{
brand: 'asus',
model: 'rog strix gaming',
series: '3080',
url: 'https://www.alternate.de/product/1672868'
},
{
brand: 'palit',
model: 'gaming pro oc',
series: '3080',
url: 'https://www.alternate.de/product/1673431'
},
{
brand: 'zotac',
model: 'trinity oc',
series: '3080',
url: 'https://www.alternate.de/product/1677989'
},
{
brand: 'gigabyte',
model: 'vision oc',
series: '3080',
url: 'https://www.alternate.de/product/1681134'
},
{
brand: 'evga',
model: 'xc3 gaming',
series: '3080',
url: 'https://www.alternate.de/product/1673520'
},
{
brand: 'gainward',
model: 'phoenix gs',
series: '3080',
url: 'https://www.alternate.de/product/1673442'
},
{
brand: 'inno3d',
model: 'ichill x3',
series: '3080',
url: 'https://www.alternate.de/product/1673136'
},
{
brand: 'evga',
model: 'ftw3 ultra gaming',
series: '3080',
url: 'https://www.alternate.de/product/1673524'
},
{
brand: 'gigabyte',
model: 'aorus master',
series: '3080',
url: 'https://www.alternate.de/product/1680168'
},
{
brand: 'evga',
model: 'ftw3 gaming',
series: '3080',
url: 'https://www.alternate.de/product/1673517'
},
{
brand: 'zotac',
model: 'amp holo',
series: '3080',
url: 'https://www.alternate.de/product/1677985'
},
{
brand: 'zotac',
model: 'amp extreme holo',
series: '3080',
url: 'https://www.alternate.de/product/1677982'
},
{
brand: 'inno3d',
model: 'twin x2 oc',
series: '3080',
url: 'https://www.alternate.de/product/1673137'
},
{
brand: 'inno3d',
model: 'ichill x4',
series: '3080',
url: 'https://www.alternate.de/product/1673134'
}
],
name: 'alternate'
};

6 changes: 6 additions & 0 deletions src/store/model/index.ts
@@ -1,4 +1,5 @@
import {Adorama} from './adorama';
import {Alternate} from './alternate';
import {Amazon} from './amazon';
import {AmazonCa} from './amazon-ca';
import {AmazonDe} from './amazon-de';
Expand All @@ -17,9 +18,11 @@ import {Ebuyer} from './ebuyer';
import {Evga} from './evga';
import {EvgaEu} from './evga-eu';
import {Gamestop} from './gamestop';
import {Mediamarkt} from './mediamarkt';
import {MicroCenter} from './microcenter';
import {Newegg} from './newegg';
import {NeweggCa} from './newegg-ca';
import {Notebooksbilliger} from './notebooksbilliger';
import {Novatech} from './novatech';
import {Nvidia} from './nvidia';
import {NvidiaApi} from './nvidia-api';
Expand All @@ -35,6 +38,7 @@ import {logger} from '../../logger';

const masterList = new Map([
[Adorama.name, Adorama],
[Alternate.name, Alternate],
[Amazon.name, Amazon],
[AmazonCa.name, AmazonCa],
[AmazonDe.name, AmazonDe],
Expand All @@ -53,9 +57,11 @@ const masterList = new Map([
[Evga.name, Evga],
[EvgaEu.name, EvgaEu],
[Gamestop.name, Gamestop],
[Mediamarkt.name, Mediamarkt],
[MicroCenter.name, MicroCenter],
[Newegg.name, Newegg],
[NeweggCa.name, NeweggCa],
[Notebooksbilliger.name, Notebooksbilliger],
[Novatech.name, Novatech],
[Nvidia.name, Nvidia],
[NvidiaApi.name, NvidiaApi],
Expand Down
120 changes: 120 additions & 0 deletions src/store/model/mediamarkt.ts
@@ -0,0 +1,120 @@
import {Store} from './store';

export const Mediamarkt: Store = {
labels: {
inStock: {
container: '#root',
text: ['lieferung']
},
outOfStock: {
container: '#root',
text: ['dieser artikel ist aktuell nicht verf眉gbar.']
}
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url: 'https://www.mediamarkt.de/de/product/-2621744.html'
},
{
brand: 'asus',
model: 'tuf gaming',
series: '3080',
url: 'https://www.mediamarkt.de/de/product/-2681859.html'
},
{
brand: 'asus',
model: 'tuf gaming oc',
series: '3080',
url: 'https://www.mediamarkt.de/de/product/-2681861.html'
},
{
brand: 'asus',
model: 'strix gaming',
series: '3080',
url: 'https://www.mediamarkt.de/de/product/-2681869.html'
},
{
brand: 'asus',
model: 'strix gaming oc',
series: '3080',
url: 'https://www.mediamarkt.de/de/product/-2681871.html'
},
{
brand: 'zotac',
model: 'trinity',
series: '3080',
url: 'https://www.mediamarkt.de/de/product/-2683243.html'
},
{
brand: 'msi',
model: 'gaming x trio',
series: '3080',
url: 'https://www.mediamarkt.de/de/product/-2683227.html'
},
{
brand: 'msi',
model: 'ventus 3x oc',
series: '3080',
url: 'https://www.mediamarkt.de/de/product/-2683229.html'
},
{
brand: 'inno3d',
model: 'ichill 4x',
series: '3080',
url: 'https://www.mediamarkt.de/de/product/-2684238.html'
},
{
brand: 'inno3d',
model: 'ichill 3x',
series: '3080',
url: 'https://www.mediamarkt.de/de/product/-2684241.html'
},
{
brand: 'gigabyte',
model: 'gaming oc',
series: '3080',
url: 'https://www.mediamarkt.de/de/product/-2683937.html'
},
{
brand: 'gigabyte',
model: 'eagle oc',
series: '3080',
url: 'https://www.mediamarkt.de/de/product/-2683942.html'
},
{
brand: 'zotac',
model: 'amp extreme holo',
series: '3080',
url: 'https://www.mediamarkt.de/de/product/-2689452.html'
},
{
brand: 'zotac',
model: 'amp holo',
series: '3080',
url: 'https://www.mediamarkt.de/de/product/-2689452.html'
},
{
brand: 'inno3d',
model: 'twin 2x oc',
series: '3080',
url: 'https://www.mediamarkt.de/de/product/-2689452.html'
},
{
brand: 'gigabyte',
model: 'vision oc',
series: '3080',
url: 'https://www.mediamarkt.de/de/product/-2689452.html'
},
{
brand: 'gigabyte',
model: 'aorus master',
series: '3080',
url: 'https://www.mediamarkt.de/de/product/-2689452.html'
}
],
name: 'mediamarkt'
};

0 comments on commit 85a07dc

Please sign in to comment.