mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 15:47:35 +00:00
refactor: store naming and map reference
Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
@@ -88,6 +88,7 @@ Here is a list of variables that you can use to customize your newly copied `.en
|
||||
| **Stores** | **Environment variable** |
|
||||
|:---:|:---:|
|
||||
| Best Buy | `bestbuy`|
|
||||
| Amazon.ca | `amazon-ca`|
|
||||
| Amazon | `amazon`|
|
||||
| B&H | `bandh`|
|
||||
| EVGA | `evga`|
|
||||
|
||||
@@ -80,5 +80,5 @@ export const AmazonCa: Store = {
|
||||
captchaLabels: ['enter the characters you see below']
|
||||
}
|
||||
],
|
||||
name: 'amazonCa'
|
||||
name: 'amazon-ca'
|
||||
};
|
||||
|
||||
@@ -9,14 +9,14 @@ import {Nvidia} from './nvidia';
|
||||
import {AmazonCa} from './amazon-ca';
|
||||
|
||||
const masterList = new Map([
|
||||
['amazon', Amazon],
|
||||
['amazonca', AmazonCa],
|
||||
['bestbuy', BestBuy],
|
||||
['bandh', BAndH],
|
||||
['evga', Evga],
|
||||
['microcenter', MicroCenter],
|
||||
['newegg', NewEgg],
|
||||
['nvidia', Nvidia]
|
||||
[Amazon.name, Amazon],
|
||||
[AmazonCa.name, AmazonCa],
|
||||
[BestBuy.name, BestBuy],
|
||||
[BAndH.name, BAndH],
|
||||
[Evga.name, Evga],
|
||||
[MicroCenter.name, MicroCenter],
|
||||
[NewEgg.name, NewEgg],
|
||||
[Nvidia.name, Nvidia]
|
||||
]);
|
||||
|
||||
const list = new Map();
|
||||
|
||||
Reference in New Issue
Block a user