mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 14:37:41 +00:00
edf17e926f
Co-authored-by: Ion Caza <contact@johncaza.com> Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
31 lines
679 B
TypeScript
31 lines
679 B
TypeScript
import {BestBuy} from './bestbuy';
|
|
import {BAndH} from './bandh';
|
|
import {Evga} from './evga';
|
|
import {NewEgg} from './newegg';
|
|
import {Nvidia} from './nvidia';
|
|
import {Amazon} from './amazon';
|
|
import {MicroCenter} from './microcenter';
|
|
import {Config} from '../config';
|
|
|
|
const masterList = new Map([
|
|
['amazon', Amazon],
|
|
['bestbuy', BestBuy],
|
|
['bandh', BAndH],
|
|
['evga', Evga],
|
|
['microcenter', MicroCenter],
|
|
['newegg', NewEgg],
|
|
['nvidia', Nvidia]
|
|
]);
|
|
|
|
const list = new Map();
|
|
|
|
const storeArray = Config.stores.split(',');
|
|
|
|
for (const name of storeArray) {
|
|
list.set(name, masterList.get(name));
|
|
}
|
|
|
|
export const Stores = Array.from(list.values());
|
|
|
|
export * from './store';
|