Skip to content

Commit

Permalink
chore(store): add amd-it store and RX 6800 XT (#974)
Browse files Browse the repository at this point in the history
  • Loading branch information
MartelliEnrico committed Nov 27, 2020
1 parent f663579 commit 3286d62
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ environment variables are **optional**._
| Amazon (UK) | `amazon-uk`|
| AMD | `amd`|
| AMD (DE) | `amd-de`|
| AMD (IT) | `amd-it`|
| Aria PC (UK) | `aria`|
| ARLT (DE) | `arlt`|
| ASUS | `asus` |
Expand Down Expand Up @@ -244,7 +245,7 @@ environment variables are **optional**._
| Brand | Model |
|:---:|---|
| `amd` | `5600x`, `5800x`, `5900x`, `5950x` |
| `amd` | `5600x`, `5800x`, `5900x`, `5950x`, `amd reference` |
| `asus` | `dual`, `dual oc`, `strix`, `strix oc`, `tuf`, `tuf oc` |
| `corsair` | `750 platinum`, `600 platinum` |
| `evga` | `ftw3`, `ftw3 ultra`, `xc3`, `xc3 black`, `xc3 ultra` |
Expand Down
63 changes: 63 additions & 0 deletions src/store/model/amd-it.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
import {Store} from './store';

export const AmdIt: Store = {
labels: {
inStock: {
container: '.btn-shopping-cart',
text: ['add to cart']
},
maxPrice: {
container: '.product-page-description h4',
euroFormat: true
}
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url: 'https://www.amd.com/en/direct-buy/5450881400/it'
},
{
brand: 'amd',
cartUrl:
'https://www.amd.com/en/direct-buy/5450881400/it?add-to-cart=true',
model: '5950x',
series: 'ryzen5950',
url: 'https://www.amd.com/en/direct-buy/5450881400/it'
},
{
brand: 'amd',
cartUrl:
'https://www.amd.com/en/direct-buy/5450881500/it?add-to-cart=true',
model: '5900x',
series: 'ryzen5900',
url: 'https://www.amd.com/en/direct-buy/5450881500/it'
},
{
brand: 'amd',
cartUrl:
'https://www.amd.com/en/direct-buy/5450881600/it?add-to-cart=true',
model: '5800x',
series: 'ryzen5800',
url: 'https://www.amd.com/en/direct-buy/5450881600/it'
},
{
brand: 'amd',
cartUrl:
'https://www.amd.com/en/direct-buy/5450881700/it?add-to-cart=true',
model: '5600x',
series: 'ryzen5600',
url: 'https://www.amd.com/en/direct-buy/5450881700/it'
},
{
brand: 'amd',
cartUrl:
'https://www.amd.com/en/direct-buy/5458374100/it?add-to-cart=true',
model: 'amd reference',
series: 'rx6800xt',
url: 'https://www.amd.com/en/direct-buy/5458374100/it'
}
],
name: 'amd-it'
};
2 changes: 2 additions & 0 deletions src/store/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {AmazonNl} from './amazon-nl';
import {AmazonUk} from './amazon-uk';
import {Amd} from './amd';
import {AmdDe} from './amd-de';
import {AmdIt} from './amd-it';
import {Aria} from './aria';
import {Arlt} from './arlt';
import {Asus} from './asus';
Expand Down Expand Up @@ -83,6 +84,7 @@ export const storeList = new Map([
[AmazonIt.name, AmazonIt],
[Amd.name, Amd],
[AmdDe.name, AmdDe],
[AmdIt.name, AmdIt],
[Aria.name, Aria],
[Arlt.name, Arlt],
[Asus.name, Asus],
Expand Down

0 comments on commit 3286d62

Please sign in to comment.