feat(store): support for kabum (amd and rtx 30 series) (#727)

Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
HeitorLM
2020-11-12 00:25:15 -03:00
committed by GitHub
parent a5249ecc7c
commit 23d061b387
3 changed files with 174 additions and 0 deletions
+1
View File
@@ -167,6 +167,7 @@ environment variables are **optional**._
| Galaxus (DE) | `galaxus`|
| Game (UK) | `game`|
| Gamestop | `gamestop`|
| Kabum (BR) | `kabum`|
| Mediamarkt (DE) | `mediamarkt`|
| MemoryExpress (CA) | `memoryexpress`|
| Micro Center | `microcenter`|
+2
View File
@@ -32,6 +32,7 @@ import {EvgaEu} from './evga-eu';
import {Galaxus} from './galaxus';
import {Game} from './game';
import {Gamestop} from './gamestop';
import {Kabum} from './kabum';
import {Mediamarkt} from './mediamarkt';
import {MemoryExpress} from './memoryexpress';
import {MicroCenter} from './microcenter';
@@ -91,6 +92,7 @@ export const storeList = new Map([
[Galaxus.name, Galaxus],
[Game.name, Game],
[Gamestop.name, Gamestop],
[Kabum.name, Kabum],
[Mediamarkt.name, Mediamarkt],
[MemoryExpress.name, MemoryExpress],
[MicroCenter.name, MicroCenter],
+171
View File
@@ -0,0 +1,171 @@
import {Store} from './store';
export const Kabum: Store = {
labels: {
inStock: {
container: '.botao-comprar',
text: ['comprar']
},
outOfStock: {
container: '.bot_comprar',
text: ['indisponível']
}
},
links: [
// AMD
{
brand: 'amd',
model: '5950x',
series: 'ryzen5950',
url: 'https://www.kabum.com.br/produto/129461'
},
{
brand: 'amd',
model: '5900x',
series: 'ryzen5900',
url: 'https://www.kabum.com.br/produto/129460'
},
{
brand: 'amd',
model: '5800x',
series: 'ryzen5800',
url: 'https://www.kabum.com.br/produto/129459'
},
{
brand: 'amd',
model: '5600x',
series: 'ryzen5600',
url: 'https://www.kabum.com.br/produto/129451'
},
// 3070
{
brand: 'gigabyte',
model: 'gaming oc',
series: '3070',
url: 'https://www.kabum.com.br/produto/130209'
},
{
brand: 'gigabyte',
model: 'eagle oc',
series: '3070',
url: 'https://www.kabum.com.br/produto/130210'
},
{
brand: 'evga',
model: 'xc3 black',
series: '3070',
url: 'https://www.kabum.com.br/produto/129938'
},
{
brand: 'asus',
model: 'dual fan',
series: '3070',
url: 'https://www.kabum.com.br/produto/128634'
},
{
brand: 'asus',
model: 'dual fan',
series: '3070',
url: 'https://www.kabum.com.br/produto/128635'
},
{
brand: 'msi',
model: 'gaming x trio',
series: '3070',
url: 'https://www.kabum.com.br/produto/130379'
},
{
brand: 'msi',
model: 'ventus 3x oc',
series: '3070',
url: 'https://www.kabum.com.br/produto/130380'
},
{
brand: 'msi',
model: 'ventus 2x oc',
series: '3070',
url: 'https://www.kabum.com.br/produto/130381'
},
{
brand: 'zotac',
model: 'twin edge',
series: '3070',
url: 'https://www.kabum.com.br/produto/129208'
},
{
brand: 'zotac',
model: 'twin edge oc',
series: '3070',
url: 'https://www.kabum.com.br/produto/129207'
},
// 3080
{
brand: 'msi',
model: 'gaming x trio',
series: '3080',
url: 'https://www.kabum.com.br/produto/127409'
},
{
brand: 'msi',
model: 'ventus 3x',
series: '3080',
url: 'https://www.kabum.com.br/produto/127410'
},
{
brand: 'asus',
model: 'tuf',
series: '3080',
url: 'https://www.kabum.com.br/produto/121138'
},
{
brand: 'gigabyte',
model: 'eagle oc',
series: '3080',
url: 'https://www.kabum.com.br/produto/128078'
},
{
brand: 'evga',
model: 'ichill x3',
series: '3080',
url: 'https://www.kabum.com.br/produto/128051'
},
{
brand: 'evga',
model: 'ichill x3',
series: '3080',
url: 'https://www.kabum.com.br/produto/128052'
},
// 3090
{
brand: 'msi',
model: 'gaming x trio',
series: '3090',
url: 'https://www.kabum.com.br/produto/127407'
},
{
brand: 'msi',
model: 'ventus 3x',
series: '3090',
url: 'https://www.kabum.com.br/produto/127408'
},
{
brand: 'asus',
model: 'tuf',
series: '3090',
url: 'https://www.kabum.com.br/produto/127511'
},
{
brand: 'asus',
model: 'strix',
series: '3090',
url: 'https://www.kabum.com.br/produto/128026'
},
{
brand: 'gigabyte',
model: 'gaming',
series: '3090',
url: 'https://www.kabum.com.br/produto/128199'
}
],
name: 'kabum'
};