From c81282ef9fd95c39dc6d338f3d79de16906c89b6 Mon Sep 17 00:00:00 2001 From: sohaiiil <75142231+sohaiiil@users.noreply.github.com> Date: Tue, 19 Jan 2021 17:34:12 +0000 Subject: [PATCH] feat(store): corsair-uk (#1733) --- docs/reference/filter.md | 3 ++- src/store/model/corsair-uk.ts | 46 +++++++++++++++++++++++++++++++++++ src/store/model/index.ts | 2 ++ src/store/model/store.ts | 1 + 4 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 src/store/model/corsair-uk.ts diff --git a/docs/reference/filter.md b/docs/reference/filter.md index c14c37b064..cc5cc3e897 100644 --- a/docs/reference/filter.md +++ b/docs/reference/filter.md @@ -84,6 +84,7 @@ Used with the `STORES` variable. | Coolblue | NL | `coolblue`| | Coolmod | ES | `coolmod`| | Corsair | US | `corsair`| +| Corsair | UK | `corsair-uk`| | CPL | AU | `cpl`| | Currys | UK | `currys`| | Cyberport | DE | `cyberport` | @@ -192,7 +193,7 @@ Used with the `SHOW_ONLY_BRANDS` and `SHOW_ONLY_MODELS` variables. |:---:|---| | `amd` | `5600x`, `5800x`, `5900x`, `5950x`, `amd reference` | | `asus` | `crosshair viii`, `dual`, `dual oc`, `ekwb`, `strix`, `strix oc`, `strix white`, `tuf`, `tuf oc` | -| `corsair` | `750 platinum`, `600 platinum` | +| `corsair` | `750 platinum`, `600 platinum`, `600 gold` | | `colorful` | `igame advanced oc`, `igame vulcan oc` | | `evga` | `ftw3`, `ftw3 black`, `ftw3 ultra`, `ftw3 ultra hybrid`, `ftw3 ultra hydro copper`, `xc3`, `xc black`, `xc gaming`, `xc3 black`, `xc3 ultra`, `xc3 ultra hybrid` | | `gainward` | `phantom gs`, `phoenix`, `phoenix gs`, `phoenix gs oc` | diff --git a/src/store/model/corsair-uk.ts b/src/store/model/corsair-uk.ts new file mode 100644 index 0000000000..7eefde8e88 --- /dev/null +++ b/src/store/model/corsair-uk.ts @@ -0,0 +1,46 @@ +import {Store} from './store'; + +export const CorsairUK: Store = { + currency: '£', + labels: { + inStock: { + container: '#addToCartForm', + text: ['add to cart'], + }, + outOfStock: { + container: '#addToCartForm', + text: ['notify me when in stock'], + }, + }, + links: [ + { + brand: 'test:brand', + model: 'test:model', + series: 'test:series', + url: + 'https://www.corsair.com/uk/en/Categories/Products/Power-Supply-Units/Power-Supply-Units-Advanced/SF-Series/p/CP-9020181-UK', + }, + { + brand: 'corsair', + model: '750 platinum', + series: 'sf', + url: + 'https://www.corsair.com/uk/en/Categories/Products/Power-Supply-Units/Power-Supply-Units-Advanced/SF-Series/p/CP-9020186-UK', + }, + { + brand: 'corsair', + model: '600 platinum', + series: 'sf', + url: + 'https://www.corsair.com/uk/en/Categories/Products/Power-Supply-Units/Power-Supply-Units-Advanced/SF-Series/p/CP-9020182-UK', + }, + { + brand: 'corsair', + model: '600 gold', + series: 'sf', + url: + 'https://www.corsair.com/uk/en/Categories/Products/Power-Supply-Units/SF-Series%E2%84%A2-80-PLUS-Gold-Power-Supplies/p/CP-9020105-UK', + }, + ], + name: 'corsair-uk', +}; diff --git a/src/store/model/index.ts b/src/store/model/index.ts index a2e37e5a97..c4754584ac 100644 --- a/src/store/model/index.ts +++ b/src/store/model/index.ts @@ -45,6 +45,7 @@ import {Computeruniverse} from './computeruniverse'; import {Coolblue} from './coolblue'; import {Coolmod} from './coolmod'; import {Corsair} from './corsair'; +import {CorsairUK} from './corsair-uk'; import {Cpl} from './cpl'; import {Currys} from './currys'; import {Cyberport} from './cyberport'; @@ -179,6 +180,7 @@ export const storeList = new Map([ [Coolblue.name, Coolblue], [Coolmod.name, Coolmod], [Corsair.name, Corsair], + [CorsairUK.name, CorsairUK], [Cpl.name, Cpl], [Currys.name, Currys], [Cyberport.name, Cyberport], diff --git a/src/store/model/store.ts b/src/store/model/store.ts index 325af69fed..a5775da2ca 100644 --- a/src/store/model/store.ts +++ b/src/store/model/store.ts @@ -65,6 +65,7 @@ export type Model = | '5900x' | '5950x' | '600 platinum' + | '600 gold' | '750 platinum' | 'amd reference' | 'amp extreme holo'