-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 mediamarkt austria #1836
Merged
Merged
Changes from 2 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
d7615d5
add support for mediamarkt austria
f254672
fix linting
5f15cf5
fix wrong model definition for wipoid link
3e094af
fix wrong test brand link
69d43a9
shorten urls
c2fc074
fix linting
05960af
add mediamarkt-at
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,96 @@ | ||||||
import {Store} from './store'; | ||||||
|
||||||
export const MediamarktAt: Store = { | ||||||
backoffStatusCodes: [403, 429, 503], | ||||||
currency: '€', | ||||||
labels: { | ||||||
captcha: { | ||||||
container: 'p', | ||||||
text: ['Das ging uns leider zu schnell.'], | ||||||
}, | ||||||
maxPrice: { | ||||||
container: 'span[font-family="price"]', | ||||||
euroFormat: false, | ||||||
}, | ||||||
outOfStock: [ | ||||||
{ | ||||||
container: '#root', | ||||||
text: ['Dieser Artikel ist aktuell nicht verfügbar.'], | ||||||
}, | ||||||
{ | ||||||
container: '#root', | ||||||
text: ['Leider keine Lieferung möglich'], | ||||||
}, | ||||||
{ | ||||||
container: '#root', | ||||||
text: ['Nicht verfügbar'], | ||||||
}, | ||||||
{ | ||||||
container: '#root', | ||||||
text: ['Dieser Artikel ist dauerhaft ausverkauft'], | ||||||
}, | ||||||
{ | ||||||
container: '#root', | ||||||
text: ['Dieser Artikel ist bald wieder für Sie verfügbar'], | ||||||
}, | ||||||
], | ||||||
}, | ||||||
links: [ | ||||||
{ | ||||||
brand: 'test:brand', | ||||||
model: 'test:model', | ||||||
series: 'test:series', | ||||||
url: 'https://www.mediamarkt.de/de/product/-2641856.html', | ||||||
}, | ||||||
{ | ||||||
brand: 'gainward', | ||||||
model: 'phoenix', | ||||||
series: '3060ti', | ||||||
url: | ||||||
'https://www.mediamarkt.at/de/product/_gainward-grafikkarte-geforce-rtx-3060-ti-phoenix-golden-sample-8gb-ga-3060rtx-ti-ph-gs-1815563.html', | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Also seems we can normalize these urls by using this. Do you mind changing that? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||||||
}, | ||||||
{ | ||||||
brand: 'gainward', | ||||||
model: 'phantom gaming', | ||||||
series: '3080', | ||||||
url: | ||||||
'https://www.mediamarkt.at/de/product/_gainward-grafikkarte-geforce-rtx-3080-phantom-10gb-ga-3080rtx-ph-1817678.html', | ||||||
}, | ||||||
{ | ||||||
brand: 'asus', | ||||||
model: 'dual', | ||||||
series: '3060ti', | ||||||
url: | ||||||
'https://www.mediamarkt.at/de/product/_asus-grafikkarte-tuf-gaming-geforce-rtx-3060-ti-oc-8gb-tuf-rtx3060ti-o8g-gaming-1812392.html', | ||||||
}, | ||||||
{ | ||||||
brand: 'zotac', | ||||||
model: 'trinity', | ||||||
series: '3080', | ||||||
url: | ||||||
'https://www.mediamarkt.at/de/product/_zotac-grafikkarte-geforce-rtx-3080-trinity-oc-10gb-zt-a30800j-10p-1803318.html', | ||||||
}, | ||||||
{ | ||||||
brand: 'asus', | ||||||
model: 'tuf', | ||||||
series: '3080', | ||||||
url: | ||||||
'https://www.mediamarkt.at/de/product/_asus-grafikkarte-tuf-gaming-geforce%C2%AE-rtx-3080-tuf-rtx3080-10g-gaming-10gb-gddr6x-90yv0fb0-m0nm00-1799192.html', | ||||||
}, | ||||||
{ | ||||||
brand: 'msi', | ||||||
model: 'ventus 2x', | ||||||
series: '3070', | ||||||
url: | ||||||
'https://www.mediamarkt.at/de/product/_msi-grafikkarte-geforce-rtx%E2%84%A2-3070-ventus-2x-oc-8gb-v390-008r-1812232.html', | ||||||
}, | ||||||
{ | ||||||
brand: 'msi', | ||||||
model: 'gaming x trio', | ||||||
series: '3070', | ||||||
url: | ||||||
'https://www.mediamarkt.at/de/product/_msi-grafikkarte-geforce-rtx%E2%84%A2-3070-gaming-x-trio-8gb-v390-006r-1812223.html', | ||||||
}, | ||||||
], | ||||||
name: 'mediamarkt-at', | ||||||
}; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would change this to use mediamarkt.at as well if you don't mind.