From feae978de9e90b96f542d2e53807144d82e380a4 Mon Sep 17 00:00:00 2001 From: Juan Francisco Lopez Jimenez <45214328+juanfranciscolopez28@users.noreply.github.com> Date: Mon, 30 Nov 2020 06:54:06 +0100 Subject: [PATCH] feat(store): add wipoid store (#1018) Co-authored-by: nakyl --- README.md | 1 + src/store/model/index.ts | 2 + src/store/model/wipoid.ts | 172 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 175 insertions(+) create mode 100644 src/store/model/wipoid.ts diff --git a/README.md b/README.md index 28b5353e0b..f50e02053e 100644 --- a/README.md +++ b/README.md @@ -205,6 +205,7 @@ environment variables are **optional**._ | Unieuro (IT) | `unieuro`| | Very (UK) | `very`| | Walmart | `walmart`| +| Wipoid | `wipoid`| | Zotac | `zotac`| | TopAchat | `topachat`| diff --git a/src/store/model/index.ts b/src/store/model/index.ts index 5b45c1b663..16f8003a16 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -68,6 +68,7 @@ import {Unieuro} from './unieuro'; import {Very} from './very'; import {VsGamers} from './vsgamers'; import {Walmart} from './walmart'; +import {Wipoid} from './wipoid'; import {Xbox} from './xbox'; import {Zotac} from './zotac'; import {logger} from '../../logger'; @@ -141,6 +142,7 @@ export const storeList = new Map([ [Very.name, Very], [VsGamers.name, VsGamers], [Walmart.name, Walmart], + [Wipoid.name, Wipoid], [Xbox.name, Xbox], [Zotac.name, Zotac] ]); diff --git a/src/store/model/wipoid.ts b/src/store/model/wipoid.ts new file mode 100644 index 0000000000..7902813d6b --- /dev/null +++ b/src/store/model/wipoid.ts @@ -0,0 +1,172 @@ +import {Store} from './store'; + +export const Wipoid: Store = { + labels: { + inStock: { + container: '#add_to_cart', + text: ['COMPRAR'] + }, + maxPrice: { + container: '#our_price_display', + euroFormat: true + }, + outOfStock: { + container: '.buttons_bottom_block no-print', + text: ['Avísame cuando esté disponible!'] + } + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: 'https://www.wipoid.com/pny-geforce-rtx-1650-dual-fan-4gb-gddr6.html' + }, + { + brand: 'gigabyte', + model: 'eagle oc', + series: '3080', + url: + 'https://www.wipoid.com/gigabyte-geforce-rtx-3080-eagle-oc-10gb-gddr6x.html' + }, + { + brand: 'msi', + model: 'ventus 3x oc', + series: '3080', + url: + 'https://www.wipoid.com/msi-geforce-rtx-3080-ventus-3x-10gb-gddr6x.html' + }, + { + brand: 'asus', + model: 'tuf', + series: '3080', + url: + 'https://www.wipoid.com/asus-tuf-gaming-geforce-rtx-3080-10gb-gddr6x.html' + }, + { + brand: 'gigabyte', + model: 'gaming oc', + series: '3080', + url: + 'https://www.wipoid.com/gigabyte-geforce-rtx-3080-gaming-oc-10gb-gddr6x.html' + }, + { + brand: 'msi', + model: 'gaming x trio', + series: '3080', + url: + 'https://www.wipoid.com/msi-geforce-rtx-3080-gaming-x-trio-10gb-gddr6x.html' + }, + { + brand: 'asus', + model: 'tuf oc', + series: '3080', + url: + 'https://www.wipoid.com/asus-tuf-gaming-geforce-rtx-3080-oc-edition-10gb-gddr6x.html' + }, + { + brand: 'asus', + model: 'strix oc', + series: '3080', + url: + 'https://www.wipoid.com/asus-rog-strix-geforce-rtx-3080-oc-edition-10gb-gddr6x.html' + }, + { + brand: 'evga', + model: 'xc3 black', + series: '3080', + url: + 'https://www.wipoid.com/evga-geforce-rtx-3080-xc3-black-gaming-10gb-gddr6x.html' + }, + { + brand: 'zotac', + model: 'trinity', + series: '3080', + url: + 'https://www.wipoid.com/zotac-gaming-geforce-rtx-3080-trinity-10gb-gddr6x.html' + }, + { + brand: 'evga', + model: 'xc3 ultra', + series: '3080', + url: + 'https://www.wipoid.com/evga-geforce-rtx-3080-xc3-ultra-gaming-10gb-gddr6x.html' + }, + { + brand: 'asus', + model: 'strix', + series: '3080', + url: + 'https://www.wipoid.com/asus-rog-strix-geforce-rtx-3080-10gb-gddr6x.html' + }, + { + brand: 'zotac', + model: 'trinity oc', + series: '3080', + url: + 'https://www.wipoid.com/zotac-gaming-geforce-rtx-3080-trinity-oc-10gb-gddr6x.html' + }, + { + brand: 'gigabyte', + model: 'vision oc', + series: '3080', + url: + 'https://www.wipoid.com/gigabyte-geforce-rtx-3080-vision-oc-10gb-gddr6x.html' + }, + { + brand: 'evga', + model: 'xc3', + series: '3080', + url: + 'https://www.wipoid.com/evga-geforce-rtx-3080-xc3-black-gaming-10gb-gddr6x.html' + }, + { + brand: 'evga', + model: 'ftw3 ultra', + series: '3080', + url: + 'https://www.wipoid.com/evga-geforce-rtx-3080-ftw3-ultra-gaming-10gb-gddr6x.html' + }, + { + brand: 'gigabyte', + model: 'aorus master', + series: '3080', + url: + 'https://www.wipoid.com/gigabyte-aorus-geforce-rtx-3080-master-10gb-gddr6x.html' + }, + { + brand: 'evga', + model: 'ftw3', + series: '3080', + url: + 'https://www.wipoid.com/evga-geforce-rtx-3080-ftw3-ultra-gaming-10gb-gddr6x.html' + }, + { + brand: 'pny', + model: 'xlr8 revel', + series: '3080', + url: + 'https://www.wipoid.com/pny-geforce-rtx-3080-10gb-xlr8-gaming-epic-x-rgb-10gb-gddr6x.html' + }, + { + brand: 'pny', + model: 'xlr8 revel', + series: '3080', + url: + 'https://www.wipoid.com/pny-geforce-rtx-3080-10gb-xlr8-gaming-epic-x-rgb-10gb-gddr6x.html' + }, + { + brand: 'amd', + model: '5600x', + series: 'ryzen5600', + url: 'https://www.wipoid.com/amd-ryzen-5-5600x-3-7ghz.html' + }, + { + brand: 'amd', + model: '5800x', + series: 'ryzen5800', + url: 'https://www.wipoid.com/amd-ryzen-7-5800x-3-8ghz.html' + } + ], + name: 'wipoid' +};