Skip to content

Commit

Permalink
feat(store): add Norwegian stores (jef#1985)
Browse files Browse the repository at this point in the history
Adds elkjop.no, komplett.no, dustinhome.no, power.no and proshop.no
  • Loading branch information
davols authored and erwinc1 committed Mar 31, 2021
1 parent 38def52 commit 74e1ec3
Show file tree
Hide file tree
Showing 7 changed files with 1,144 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/reference/filter.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,11 @@ Used with the `STORES` variable.
| Cyberport | DE | `cyberport` |
| DComp | AU | `dcomp`|
| Drako | IT | `drako` |
| DustinHome | NO | `dustinhome-no` |
| EBGames | CA | `ebgames`|
| eBuyer | UK | `ebuyer`|
| El Corte Inglés | ES | `elcorteingles`|
| Elkjop | NO | `elkjop`|
| ePrice | IT | `eprice`|
| Euronics | IT | `euronics`|
| Euronics | DE | `euronics-de`|
Expand All @@ -111,6 +113,7 @@ Used with the `STORES` variable.
| iGame Computer | AU | `igame-computer`|
| John Lewis | UK | `johnlewis`|
| Kabum | BR | `kabum`|
| Komplett | NO | `komplett-no`|
| Landmark Computers | AU | `landmark-computers`|
| Mediamarkt | DE | `mediamarkt`|
| Medimax | DE | `medimax`|
Expand All @@ -137,8 +140,10 @@ Used with the `STORES` variable.
| PCKing | DE | `pcking` |
| PlayStation | US | `playstation`|
| PNY | US | `pny`|
| Power | NO | `power-no`|
| Proshop | DE | `proshop-de`|
| Proshop | DK | `proshop-dk`|
| Proshop | NO | `proshop-no`|
| Rosman | AU | `rosman`|
| Rosman-Melb | AU | `rosman-melb`|
| Saturn | DE | `saturn`|
Expand Down
76 changes: 76 additions & 0 deletions src/store/model/dustinhome-no.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
import {Store} from './store';

export const DustinHomeNO: Store = {
currency: 'kr.',
labels: {
inStock: {
container:
'div.c-product-main-info > div.c-product-buy-wrapper > div.u-pt-16.u-relative.d-flex > div > span',
text: ['Kan sendes omgående'],
},
outOfStock: {
container:
'div.c-product-main-info > div.c-product-buy-wrapper > div.u-pt-16.u-relative.d-flex > div > span',
text: [
'Vi venter produktet til lager, men har foreløpig ingen bekreftet leveringsdato. Vi sender produktet så snart det er på lager.',
],
},
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url: 'https://www.dustinhome.no/product/5011216501/',
},
{
brand: 'msi',
model: 'suprim x',
series: '3080',
url: 'https://www.dustinhome.no/product/5011216707/',
},
{
brand: 'evga',
model: 'ftw3 ultra',
series: '3080',
url: 'https://www.dustinhome.no/product/5011197759/',
},
{
brand: 'evga',
model: 'ftw3',
series: '3080',
url: 'https://www.dustinhome.no/product/5011197760/',
},
{
brand: 'evga',
model: 'xc3 ultra',
series: '3080',
url: 'https://www.dustinhome.no/product/5011197756/',
},
{
brand: 'pny',
model: 'xlr8 epic x',
series: '3080',
url: 'https://www.dustinhome.no/product/5011196134/',
},
{
brand: 'pny',
model: 'xlr8 epic x',
series: '3080',
url: 'https://www.dustinhome.no/product/5011196133/',
},
{
brand: 'gigabyte',
model: 'aorus xtreme waterforce wb',
series: '3080',
url: 'https://www.dustinhome.no/product/5011212484/',
},
{
brand: 'gigabyte',
model: 'aorus master',
series: '3080',
url: 'https://www.dustinhome.no/product/5011199977/',
},
],
name: 'dustinhome-no',
};
82 changes: 82 additions & 0 deletions src/store/model/elkjop.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
import {Store} from './store';

export const Elkjop: Store = {
currency: 'kr.',
labels: {
inStock: {
container:
'#product-detail-wrapper > div.col.any-5-12.M-2-5.information > div.buy-button-container.align-left.any-1-1.table-btn > div > div > div.product-price-button-wrap > div > div > span > span',
text: ['Legg i handlevogn'],
},
outOfStock: {
container:
'#product-detail-wrapper > div.col.any-5-12.M-2-5.information > div.buy-button-container.align-left.any-1-1.table-btn > div > div > div.product-price-button-wrap > div > div > span > span',
text: ['Ikke tilgjengelig'],
},
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url:
'https://www.elkjop.no/product/data/pc-komponenter/grafikkort/218425/evga-geforce-rtx-3080-xc3-black',
},
{
brand: 'pny',
model: 'xlr8 epic x',
series: '3090',
url:
'https://www.elkjop.no/product/data/pc-komponenter/grafikkort/215370/pny-rtx-3090-24gb-xlr8-gaming-epic-x-rgb-3-fan-2-7slot',
},
{
brand: 'evga',
model: 'ftw3 ultra',
series: '3080',
url: 'https://www.dustinhome.no/product/5011197759/',
},
{
brand: 'evga',
model: 'xc3',
series: '3080',
url:
'https://www.elkjop.no/product/data/pc-komponenter/grafikkort/218419/evga-geforce-rtx-3080-xc3',
},
{
brand: 'evga',
model: 'xc3 black',
series: '3080',
url:
'https://www.elkjop.no/product/data/pc-komponenter/grafikkort/218425/evga-geforce-rtx-3080-xc3-black',
},
{
brand: 'evga',
model: 'ftw3',
series: '3080',
url:
'https://www.elkjop.no/product/data/pc-komponenter/grafikkort/220655/evga-geforce-rtx-3080-ftw3',
},
{
brand: 'palit',
model: 'gaming pro oc',
series: '3080',
url:
'https://www.elkjop.no/product/data/pc-komponenter/grafikkort/222470/geforce-rtx-3080-gamingpro-oc',
},
{
brand: 'gainward',
model: 'phoenix gs',
series: '3080',
url:
'https://www.elkjop.no/product/data/pc-komponenter/grafikkort/222467/geforce-rtx-3080-phoenix-gs',
},
{
brand: 'evga',
model: 'xc3 ultra',
series: '3090',
url:
'https://www.elkjop.no/product/data/pc-komponenter/grafikkort/224771/evga-geforce-rtx-3090-xc3-ultra-24gb',
},
],
name: 'elkjop',
};
10 changes: 10 additions & 0 deletions src/store/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ import {Currys} from './currys';
import {Cyberport} from './cyberport';
import {Dcomp} from './dcomp';
import {Drako} from './drako';
import {DustinHomeNO} from './dustinhome-no';
import {EbGames} from './ebgames';
import {Ebuyer} from './ebuyer';
import {Elcorteingles} from './elcorteingles';
import {Elkjop} from './elkjop';
import {Eprice} from './eprice';
import {Equippr} from './equippr';
import {Euronics} from './euronics';
Expand All @@ -75,6 +77,7 @@ import {HarveyNormanIE} from './harveynorman-ie';
import {Igamecomputer} from './igame';
import {JohnLewis} from './johnlewis';
import {Kabum} from './kabum';
import {KomplettNO} from './komplett-no';
import {LandmarkComputers} from './lmc';
import {Mediamarkt} from './mediamarkt';
import {Medimax} from './medimax';
Expand Down Expand Up @@ -104,8 +107,10 @@ import {PCKing} from './pcking';
import {Pccg} from './pccg';
import {PlayStation} from './playstation';
import {Pny} from './pny';
import {PowerNO} from './power-no';
import {ProshopDE} from './proshop-de';
import {ProshopDK} from './proshop-dk';
import {ProshopNO} from './proshop-no';
import {Rosman} from './rosman';
import {RosmanMelb} from './rosman-melb';
import {Saturn} from './saturn';
Expand Down Expand Up @@ -188,9 +193,11 @@ export const storeList = new Map([
[Cyberport.name, Cyberport],
[Dcomp.name, Dcomp],
[Drako.name, Drako],
[DustinHomeNO.name, DustinHomeNO],
[EbGames.name, EbGames],
[Ebuyer.name, Ebuyer],
[Elcorteingles.name, Elcorteingles],
[Elkjop.name, Elkjop],
[Eprice.name, Eprice],
[Equippr.name, Equippr],
[Euronics.name, Euronics],
Expand All @@ -212,6 +219,7 @@ export const storeList = new Map([
[Igamecomputer.name, Igamecomputer],
[JohnLewis.name, JohnLewis],
[Kabum.name, Kabum],
[KomplettNO.name, KomplettNO],
[LandmarkComputers.name, LandmarkComputers],
[Mediamarkt.name, Mediamarkt],
[Medimax.name, Medimax],
Expand Down Expand Up @@ -241,8 +249,10 @@ export const storeList = new Map([
[PCComponentes.name, PCComponentes],
[PlayStation.name, PlayStation],
[Pny.name, Pny],
[PowerNO.name, PowerNO],
[ProshopDE.name, ProshopDE],
[ProshopDK.name, ProshopDK],
[ProshopNO.name, ProshopNO],
[Rosman.name, Rosman],
[RosmanMelb.name, RosmanMelb],
[Saturn.name, Saturn],
Expand Down
Loading

0 comments on commit 74e1ec3

Please sign in to comment.