From bd69e471f7b47e7faf1d9858992d4157145518aa Mon Sep 17 00:00:00 2001 From: rodrigorodrigo <46758811+rodrigorodrigo@users.noreply.github.com> Date: Thu, 12 Nov 2020 08:24:15 -0500 Subject: [PATCH] feat(store): support for canadacomputers (#772) --- README.md | 1 + src/store/model/canadacomputers.ts | 357 +++++++++++++++++++++++++++++ src/store/model/index.ts | 2 + 3 files changed, 360 insertions(+) create mode 100644 src/store/model/canadacomputers.ts diff --git a/README.md b/README.md index a050b64..639b6cc 100644 --- a/README.md +++ b/README.md @@ -155,6 +155,7 @@ environment variables are **optional**._ | Best Buy | `bestbuy`| | Best Buy (CA) | `bestbuy-ca`| | Box (UK) | `box`| +| CanadaComputers (CA) | `canadacomputers | Caseking (DE) | `caseking`| | CCL (UK) | `ccl`| | Computeruniverse (DE) | `computeruniverse` | diff --git a/src/store/model/canadacomputers.ts b/src/store/model/canadacomputers.ts new file mode 100644 index 0000000..106a480 --- /dev/null +++ b/src/store/model/canadacomputers.ts @@ -0,0 +1,357 @@ +import {Store} from './store'; + +export const CanadaComputers: Store = { + labels: { + outOfStock: { + container: 'div[class="pi-prod-availability"]', + text: ['not available online'] + } + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181348' + }, + { + brand: 'gigabyte', + model: 'eagle', + series: '3070', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183101' + }, + { + brand: 'evga', + model: 'xc3 black', + series: '3070', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183500' + }, + { + brand: 'gigabyte', + model: 'gaming oc', + series: '3070', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183099' + }, + { + brand: 'msi', + model: 'gaming x trio', + series: '3070', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183210' + }, + { + brand: 'asus', + model: 'dual', + series: '3070', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183635' + }, + { + brand: 'asus', + model: 'dual oc', + series: '3070', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183636' + }, + { + brand: 'asus', + model: 'strix oc', + series: '3070', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183637' + }, + { + brand: 'gigabyte', + model: 'vision oc', + series: '3070', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=184168' + }, + { + brand: 'gigabyte', + model: 'aorus master', + series: '3070', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=184167' + }, + { + brand: 'zotac', + model: 'twin edge oc', + series: '3070', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183561' + }, + { + brand: 'msi', + model: 'ventus 2x oc', + series: '3070', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183208' + }, + { + brand: 'zotac', + model: 'twin edge', + series: '3070', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183560' + }, + { + brand: 'asus', + model: 'gaming oc', + series: '3070', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183638' + }, + { + brand: 'evga', + model: 'ftw3 ultra', + series: '3070', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183498' + }, + { + brand: 'msi', + model: 'ventus 3x oc', + series: '3070', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183209' + }, + { + brand: 'gigabyte', + model: 'eagle oc', + series: '3070', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183100' + }, + { + brand: 'evga', + model: 'xc3 ultra', + series: '3070', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183499' + }, + { + brand: 'asus', + model: 'gaming', + series: '3070', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=184743' + }, + { + brand: 'evga', + model: 'ftw3 ultra', + series: '3080', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181376' + }, + { + brand: 'asus', + model: 'strix', + series: '3080', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181842' + }, + { + brand: 'msi', + model: 'gaming x trio', + series: '3080', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181348' + }, + { + brand: 'gigabyte', + model: 'eagle oc', + series: '3080', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181354' + }, + { + brand: 'asus', + model: 'gaming', + series: '3080', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181416' + }, + { + brand: 'evga', + model: 'xc3 ultra', + series: '3080', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181375' + }, + { + brand: 'zotac', + model: 'trinity', + series: '3080', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181420' + }, + { + brand: 'zotac', + model: 'trinity oc', + series: '3080', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=184837' + }, + { + brand: 'asus', + model: 'gaming oc', + series: '3080', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181415' + }, + { + brand: 'gigabyte', + model: 'gaming oc', + series: '3080', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181353' + }, + { + brand: 'asus', + model: 'gaming', + series: '3080', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=184743' + }, + { + brand: 'msi', + model: 'ventus 3x', + series: '3080', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181347' + }, + { + brand: 'gigabyte', + model: 'aorus master', + series: '3080', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=182754' + }, + { + brand: 'evga', + model: 'xc3 black', + series: '3080', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181797' + }, + { + brand: 'gigabyte', + model: 'vision oc', + series: '3080', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=182755' + }, + { + brand: 'gigabyte', + model: 'aorus xtreme', + series: '3080', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183098' + }, + { + brand: 'zotac', + model: 'trinity oc', + series: '3080', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183510' + }, + { + brand: 'gigabyte', + model: 'eagle oc', + series: '3080', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=184166' + }, + { + brand: 'evga', + model: 'xc3', + series: '3080', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181798' + }, + { + brand: 'asus', + model: 'strix oc', + series: '3090', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181841' + }, + { + brand: 'evga', + model: 'ftw3 ultra', + series: '3090', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181854' + }, + { + brand: 'asus', + model: 'gaming oc', + series: '3090', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181413' + }, + { + brand: 'zotac', + model: 'trinity', + series: '3090', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181419' + }, + { + brand: 'gigabyte', + model: 'gaming oc', + series: '3090', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181351' + }, + { + brand: 'msi', + model: 'gaming x trio', + series: '3090', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181350' + }, + { + brand: 'asus', + model: 'gaming', + series: '3090', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181414' + }, + { + brand: 'msi', + model: 'ventus 3x', + series: '3090', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181349' + }, + { + brand: 'evga', + model: 'xc3 ultra', + series: '3090', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181853' + }, + { + brand: 'gigabyte', + model: 'aorus xtreme', + series: '3090', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=183096' + }, + { + brand: 'gigabyte', + model: 'eagle oc', + series: '3090', + url: + 'https://www.canadacomputers.com/product_info.php?cPath=43_557_559&item_id=181352' + } + ], + name: 'canadacomputers', + waitUntil: 'domcontentloaded' +}; diff --git a/src/store/model/index.ts b/src/store/model/index.ts index 1d9b642..e1ac629 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -19,6 +19,7 @@ import {BAndH} from './bandh'; import {BestBuy} from './bestbuy'; import {BestBuyCa} from './bestbuy-ca'; import {Box} from './box'; +import {CanadaComputers} from './canadacomputers'; import {Caseking} from './caseking'; import {Ccl} from './ccl'; import {Computeruniverse} from './computeruniverse'; @@ -80,6 +81,7 @@ export const storeList = new Map([ [BestBuyCa.name, BestBuyCa], [Box.name, Box], [Caseking.name, Caseking], + [CanadaComputers.name, CanadaComputers], [Ccl.name, Ccl], [Computeruniverse.name, Computeruniverse], [Coolblue.name, Coolblue],