Skip to content

Commit

Permalink
feat(store): add expert (#1105)
Browse files Browse the repository at this point in the history
  • Loading branch information
fnk93 committed Dec 2, 2020
1 parent d7f2427 commit 202698f
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -183,6 +183,7 @@ environment variables are **optional**._
| Euronics (DE) | `euronics-de`|
| EVGA | `evga`|
| EVGA (EU) | `evga-eu`|
| Expert | `expert`|
| Galaxus (DE) | `galaxus`|
| Game (UK) | `game`|
| Gamestop | `gamestop`|
Expand Down
55 changes: 55 additions & 0 deletions src/store/model/expert.ts
@@ -0,0 +1,55 @@
import {Store} from './store';

export const Expert: Store = {
labels: {
inStock: [
{
container: 'span.widget-ArticleStatus-buttonText',
text: ['In den Warenkorb']
}
],
maxPrice: {
container: '.widget-Container-subContent .widget-ArticlePrice-price',
euroFormat: true
},
outOfStock: [
{
container:
'span[style="font-size: 14pt;"] > span[style="color: #ff5e19;"]',
text: ['Das von Ihnen ausgew盲hlte Produkt ist ausverkauft']
},
{
container: 'span.widget-ArticleStatus-statusPointText',
text: ['Artikel ist derzeit nicht verf眉gbar']
}
]
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url: 'https://www.expert.de/shop/11364114744-ps4-pro-1tb-jet-black.html'
},
{
brand: 'sony',
model: 'ps5 console',
series: 'sonyps5c',
url: 'https://www.expert.de/shop/11364129744-playstation-r-5.html'
},
{
brand: 'sony',
model: 'ps5 digital',
series: 'sonyps5de',
url:
'https://www.expert.de/shop/11364133744-playstation-r-5-digital-edition.html'
},
{
brand: 'microsoft',
model: 'xbox series s',
series: 'xboxss',
url: 'https://www.expert.de/shop/11350018530-xbox-series-s.html'
}
],
name: 'expert'
};
2 changes: 2 additions & 0 deletions src/store/model/index.ts
Expand Up @@ -41,6 +41,7 @@ import {Euronics} from './euronics';
import {EuronicsDE} from './euronics-de';
import {Evga} from './evga';
import {EvgaEu} from './evga-eu';
import {Expert} from './expert';
import {Galaxus} from './galaxus';
import {Game} from './game';
import {Gamestop} from './gamestop';
Expand Down Expand Up @@ -120,6 +121,7 @@ export const storeList = new Map([
[EuronicsDE.name, EuronicsDE],
[Evga.name, Evga],
[EvgaEu.name, EvgaEu],
[Expert.name, Expert],
[Galaxus.name, Galaxus],
[Game.name, Game],
[Gamestop.name, Gamestop],
Expand Down

0 comments on commit 202698f

Please sign in to comment.