mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 12:17:37 +00:00
feat(store): microcenter (#39)
Co-authored-by: Ion Caza <contact@johncaza.com> Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
+8
-22
@@ -4,39 +4,25 @@ 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 list = new Map([
|
||||
const masterList = new Map([
|
||||
['amazon', Amazon],
|
||||
['bestbuy', BestBuy],
|
||||
['bandh', BAndH],
|
||||
['evga', Evga],
|
||||
['amazon', Amazon],
|
||||
['microcenter', MicroCenter],
|
||||
['newegg', NewEgg],
|
||||
['nvidia', Nvidia]
|
||||
]);
|
||||
|
||||
if (!Config.stores.toLowerCase().includes('bestbuy')) {
|
||||
list.delete('bestbuy');
|
||||
}
|
||||
const list = new Map();
|
||||
|
||||
if (!Config.stores.toLowerCase().includes('bandh')) {
|
||||
list.delete('bandh');
|
||||
}
|
||||
const storeArray = Config.stores.split(',');
|
||||
|
||||
if (!Config.stores.toLowerCase().includes('evga')) {
|
||||
list.delete('evga');
|
||||
}
|
||||
|
||||
if (!Config.stores.toLowerCase().includes('amazon')) {
|
||||
list.delete('amazon');
|
||||
}
|
||||
|
||||
if (!Config.stores.toLowerCase().includes('newegg')) {
|
||||
list.delete('newegg');
|
||||
}
|
||||
|
||||
if (!Config.stores.toLowerCase().includes('nvidia')) {
|
||||
list.delete('nvidia');
|
||||
for (const name of storeArray) {
|
||||
list.set(name, masterList.get(name));
|
||||
}
|
||||
|
||||
export const Stores = Array.from(list.values());
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
import {Store} from './store';
|
||||
|
||||
export const MicroCenter: Store = {
|
||||
cartUrl: '',
|
||||
links: [
|
||||
{
|
||||
brand: 'evga',
|
||||
model: 'xc3 ultra gaming',
|
||||
url: 'https://www.microcenter.com/product/628344/evga-geforce-rtx-3080-xc3-ultra-gaming-triple-fan-10gb-gddr6x-pcie-40-graphics-card',
|
||||
oosLabels: ['sold out']
|
||||
},
|
||||
{
|
||||
brand: 'msi',
|
||||
model: 'ventus 3x overclocked',
|
||||
url: 'https://www.microcenter.com/product/628331/msi-geforce-rtx-3080-ventus-3x-overclocked-triple-fan-10gb-gddr6x-pcie-40-graphics-card',
|
||||
oosLabels: ['sold out']
|
||||
},
|
||||
{
|
||||
brand: 'asus',
|
||||
model: 'tuf gaming',
|
||||
url: 'https://www.microcenter.com/product/628303/asus-geforce-rtx-3080-tuf-gaming-triple-fan-10gb-gddr6x-pcie-40-graphics-card',
|
||||
oosLabels: ['sold out']
|
||||
},
|
||||
{
|
||||
brand: 'msi',
|
||||
model: 'gaming x trio',
|
||||
url: 'https://www.microcenter.com/product/628330/msi-geforce-rtx-3080-gaming-x-trio-triple-fan-10gb-gddr6x-pcie-40-graphics-card',
|
||||
oosLabels: ['sold out']
|
||||
},
|
||||
{
|
||||
brand: 'evga',
|
||||
model: 'xc3 black',
|
||||
url: 'https://www.microcenter.com/product/628340/evga-geforce-rtx-3080-xc3-black-triple-fan-10gb-gddr6x-pcie-40-graphics-card',
|
||||
oosLabels: ['sold out']
|
||||
},
|
||||
{
|
||||
brand: 'zotac',
|
||||
model: 'trinity overclocked',
|
||||
url: 'https://www.microcenter.com/product/628607/zotac-geforce-rtx-3080-trinity-overclocked-triple-fan-10gb-gddr6x-pcie-40-graphics-card',
|
||||
oosLabels: ['sold out']
|
||||
}
|
||||
],
|
||||
name: 'microcenter'
|
||||
};
|
||||
Reference in New Issue
Block a user