Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 10 commits into from
Nov 12, 2020
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,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`|
Expand Down
2 changes: 2 additions & 0 deletions src/store/model/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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],
Expand Down
171 changes: 171 additions & 0 deletions src/store/model/kabum.ts
Original file line number Diff line number Diff line change
@@ -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'
};