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(store): add Norwegian stores #1985

Merged
merged 5 commits into from
Feb 18, 2021
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
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