Skip to content

Commit

Permalink
chore(store): add amd (ca) (#1006)
Browse files Browse the repository at this point in the history
  • Loading branch information
govizlora committed Nov 29, 2020
1 parent 0b4966e commit a79ce6f
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ environment variables are **optional**._
| Amazon (NL) | `amazon-nl`|
| Amazon (UK) | `amazon-uk`|
| AMD | `amd`|
| AMD (CA) | `amd-ca`|
| AMD (DE) | `amd-de`|
| AMD (IT) | `amd-it`|
| Aria PC (UK) | `aria`|
Expand Down
39 changes: 39 additions & 0 deletions src/store/model/amd-ca.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import {Store} from './store';

export const AmdCa: Store = {
labels: {
inStock: {
container: '.btn-shopping-cart',
text: ['add to cart']
},
maxPrice: {
container: '.product-page-description h4',
euroFormat: false
}
},
links: [
{
brand: 'test:brand',
model: 'test:model',
series: 'test:series',
url: 'https://www.amd.com/en/direct-buy/5458373400/ca'
},
{
brand: 'amd',
cartUrl:
'https://www.amd.com/en/direct-buy/5458373400/ca?add-to-cart=true',
model: 'amd reference',
series: 'rx6800',
url: 'https://www.amd.com/en/direct-buy/5458373400/ca'
},
{
brand: 'amd',
cartUrl:
'https://www.amd.com/en/direct-buy/5458372800/ca?add-to-cart=true',
model: 'amd reference',
series: 'rx6800xt',
url: 'https://www.amd.com/en/direct-buy/5458372800/ca'
}
],
name: 'amd-ca'
};
2 changes: 2 additions & 0 deletions src/store/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import {AmazonIt} from './amazon-it';
import {AmazonNl} from './amazon-nl';
import {AmazonUk} from './amazon-uk';
import {Amd} from './amd';
import {AmdCa} from './amd-ca';
import {AmdDe} from './amd-de';
import {AmdIt} from './amd-it';
import {Aria} from './aria';
Expand Down Expand Up @@ -83,6 +84,7 @@ export const storeList = new Map([
[AmazonUk.name, AmazonUk],
[AmazonIt.name, AmazonIt],
[Amd.name, Amd],
[AmdCa.name, AmdCa],
[AmdDe.name, AmdDe],
[AmdIt.name, AmdIt],
[Aria.name, Aria],
Expand Down

0 comments on commit a79ce6f

Please sign in to comment.