diff --git a/README.md b/README.md index d584021..a355330 100644 --- a/README.md +++ b/README.md @@ -140,6 +140,7 @@ Here is a list of variables that you can use to customize your newly copied `.en | Best Buy (CA) | `bestbuy-ca`| | EVGA | `evga`| | EVGA (EU) | `evga-eu`| +| Gamestop | `gamestop`| | Micro Center | `microcenter`| | Newegg | `newegg`| | Newegg (CA) | `newegg-ca`| diff --git a/src/store/model/gamestop.ts b/src/store/model/gamestop.ts new file mode 100644 index 0000000..a04eb2e --- /dev/null +++ b/src/store/model/gamestop.ts @@ -0,0 +1,27 @@ +import {Store} from './store'; + +export const Gamestop: Store = { + labels: { + inStock: { + container: '#item_add_cart', + text: ['add to cart'] + } + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: 'https://www.gamestop.com/video-games/pc/components/graphics-cards/products/tuf-gaming-geforce-rtx-3080-graphics-card/11109446.html' + }, + { + brand: 'asus', + model: 'tuf oc', + series: '3080', + url: 'https://www.gamestop.com/video-games/pc/components/graphics-cards/products/tuf-gaming-geforce-rtx-3080-graphics-card/11109446.html' + } + ], + name: 'gamestop', + successStatusCodes: [[0, 399], 404] +}; + diff --git a/src/store/model/index.ts b/src/store/model/index.ts index 83f6da0..6b393e4 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -10,6 +10,7 @@ import {BestBuyCa} from './bestbuy-ca'; import {Config} from '../../config'; import {Evga} from './evga'; import {EvgaEu} from './evga-eu'; +import {Gamestop} from './gamestop'; import {Logger} from '../../logger'; import {MicroCenter} from './microcenter'; import {Newegg} from './newegg'; @@ -33,6 +34,7 @@ const masterList = new Map([ [BestBuyCa.name, BestBuyCa], [Evga.name, Evga], [EvgaEu.name, EvgaEu], + [Gamestop.name, Gamestop], [MicroCenter.name, MicroCenter], [Newegg.name, Newegg], [NeweggCa.name, NeweggCa],