-
-
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: add MSI US storefront #3199
Merged
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
c8d28ee
chore: update ESLint rules, clean up imports, and remove incompatible…
alanbixby c325010
docs: add missing ENV + store/brand/models to docs; add country infor…
alanbixby e6718fa
feat: add Ryzen CPUs and 50 series to various stores
alanbixby c775bac
Merge branch 'main' of https://github.com/jef/streetmerchant into main
alanbixby cb3312e
Update docs/reference/application.md
alanbixby 3901489
Update docs/reference/notification.md
alanbixby 4c2f687
chore: update package-lock.json (remove twitch deps)
alanbixby e3bedd9
Update application.md
jef 1aed050
fix: restore sendNtfyAlert from bad merge
alanbixby 4170c4d
docs: add vanguard and prime to types + docs
alanbixby b3ffa1a
chore: lower lib target to ES2021 (typescript 4)
alanbixby 1849764
feat: add MSI US store
alanbixby 24a85bc
feat: dynamically load all series if no series is provided
alanbixby 8639d93
Merge branch 'main' into MSI
jef 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
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
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,253 @@ | ||
import {Store} from './store'; | ||
|
||
export const MSI: Store = { | ||
currency: '$', | ||
labels: { | ||
inStock: { | ||
container: '#button-cart', | ||
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. And for those of you camping out for the pre-order launch (since MSI isnt shipping on launch day) inStock: {
// Unknown what the pre-order text looks like so lets see what sticks!
container:
'#product_qty button:not([onclick^="compare.add"]):not([onclick^="notify.showNotify"])',
text: [''],
} should capture anything that isnt explicitly the existing compare or notify me buttons - this is too aggro for the production release though IMO |
||
text: ['ADD TO CART'], | ||
}, | ||
outOfStock: { | ||
container: '#product_qty > button.btn.add-cart-button-3', | ||
text: ['Notify Me'], | ||
}, | ||
maxPrice: { | ||
container: '#prices-new', | ||
}, | ||
}, | ||
links: [ | ||
{ | ||
brand: 'msi', | ||
model: 'gaming trio oc', | ||
series: '5080', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series/GeForce-RTX-5080-16G-GAMING-TRIO-OC", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series?product_id=2480', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'gaming trio oc white', | ||
series: '5080', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series/GeForce-RTX-5080-16G-GAMING-TRIO-OC-WHITE", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series?product_id=2479', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'inspire 3x', | ||
series: '5080', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series/GeForce-RTX-5080-16G-INSPRIE-3X-OC", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series?product_id=2481', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'shadow 3x', | ||
series: '5080', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series/GeForce-RTX-5080-16G-SHADOW-3X-OC", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series?product_id=2485', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'suprim liquid soc', | ||
series: '5080', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series/GeForce-RTX-5080-16G-SUPRIM-LIQUID-SOC", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series?product_id=2475', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'suprim soc', | ||
series: '5080', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series/GeForce-RTX-5080-16G-SUPRIM-SOC", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series?product_id=2476', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'vanguard soc', | ||
series: '5080', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series/GeForce-RTX-5080-16G-VANGUARD-SOC", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series?product_id=2478', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'vanguard soc launch edition', | ||
series: '5080', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series/GeForce-RTX-5080-16G-VANGUARD-SOC-LAUNCH-EDITION", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series?product_id=2477', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'ventus 3x', | ||
series: '5080', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series/GeForce-RTX-5080-16G-VENTUS-3X", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series?product_id=2487', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'ventus 3x oc', | ||
series: '5080', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series/GeForce-RTX-5080-16G-VENTUS-3X-OC", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series?product_id=2482', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'ventus 3x oc plus', | ||
series: '5080', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series/GeForce-RTX-5080-16G-VENTUS-3X-OC-PLUS", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series?product_id=2483', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'gaming trio oc', | ||
series: '5090', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series/GeForce-5090-32G-GAMING-TRIO-OC", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series?product_id=2473', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'suprim liquid soc', | ||
series: '5090', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series/GeForce-RTX-5090-32G-SUPRIM-LIQUID-SOC", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series?product_id=2469', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'suprim oc', | ||
series: '5090', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series/Geforce-RTX-5090-32G-SUPRIM-OC", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series?product_id=2470', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'vanguard soc', | ||
series: '5080', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series/GeForce-RTX-5080-16G-VANGUARD-SOC", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series?product_id=2472', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'vanguard soc launch edition', | ||
series: '5090', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series/GeForce-RTX-5090-32G-VANGUARD-SOC-LAUNCH-EDITION", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series?product_id=2471', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'ventus 3x', | ||
series: '5080', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series/GeForce-RTX-5080-16G-VENTUS-3X", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series?product_id=2478', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'ventus 3x oc', | ||
series: '5090', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series/GeForce-RTX-5090-32G-VENTUS-3X-OC", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-50-Series?product_id=2474', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'ventus 2x oc', | ||
series: '4060', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-40-Series/GeForce-RTX-4060-VENTUS-2X-BLACK-8G-OC", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-40-Series?product_id=1799', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'ventus 2x white oc', | ||
series: '4060', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-40-Series/GeForce-RTX-4060-VENTUS-2X-WHITE-8G-OC", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-40-Series?product_id=1852', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'gaming x slim', | ||
series: '4070super', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-40-Series/GeForce-RTX-4070-SUPER-12G-GAMING-X-SLIM", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-40-Series?product_id=2055', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'ventus 2x oc', | ||
series: '4070super', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-40-Series/GeForce-RTX-4070-SUPER-12G-VENTUS-2X-OC", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-40-Series?product_id=2057', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'ventus 3x oc', | ||
series: '4070super', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-40-Series/GeForce-RTX-4070-SUPER-12G-VENTUS-3X-OC", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-40-Series?product_id=2050', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'expert', | ||
series: '4070ti', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-40-Series/GeForce-RTX-4070-Ti-SUPER-16G-EXPERT", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-40-Series?product_id=2174', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'ventus 3x oc', | ||
series: '4070', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-40-Series/GeForce-RTX-4070-VENTUS-3X-12G-OC", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-40-Series?product_id=1741', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'ventus 3x e1 oc', | ||
series: '4070', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-40-Series/GeForce-RTX-4070-VENTUS-3X-E1-12G-OC", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-40-Series?product_id=2361', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'gaming x', | ||
series: '3050', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-30-Series/GeForce-RTX-3050-GAMING-X-6G", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-30-Series?product_id=2140', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'lp oc', | ||
series: '3050', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-30-Series/GeForce-RTX-3050-LP-6G-OC", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-30-Series?product_id=2138', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'ventus 2x oc', | ||
series: '3050', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-30-Series/GeForce-RTX-3050-VENTUS-2X-6G-OC", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-30-Series?product_id=2139', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'gaming trio', | ||
series: '3080', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-30-Series/GeForce-RTX-3080-Gaming-Z-Trio-10G-LHR", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-30-Series?product_id=954', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'gaming trio', | ||
series: '3080', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-30-Series/GeForce-RTX-3080-GAMING-Z-TRIO-12G-LHR", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-30-Series?product_id=1246', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'gaming x trio', | ||
series: '3080ti', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-30-Series/GeForce-RTX-3080-Ti-Gaming-X-Trio-12G", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-30-Series?product_id=940', | ||
}, | ||
{ | ||
brand: 'msi', | ||
model: 'ventus 3x oc', | ||
series: '3080ti', | ||
// "https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-30-Series/GeForce-RTX-3080-Ti-Ventus-3X-12G-OC", | ||
url: 'https://us-store.msi.com/Graphics-Cards/NVIDIA-GPU/GeForce-RTX-30-Series?product_id=939', | ||
}, | ||
], | ||
name: 'msi', | ||
country: 'US', | ||
}; |
Oops, something went wrong.
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.
Much, much cleaner and clear 🥂 Thank you!