Skip to content

Commit

Permalink
feat(store): corsair-uk (#1733)
Browse files Browse the repository at this point in the history
  • Loading branch information
YiIdirim committed Jan 19, 2021
1 parent aec8cfd commit c81282e
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/reference/filter.md
Expand Up @@ -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` |
Expand Down Expand Up @@ -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` |
Expand Down
46 changes: 46 additions & 0 deletions 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',
};
2 changes: 2 additions & 0 deletions src/store/model/index.ts
Expand Up @@ -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';
Expand Down Expand Up @@ -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],
Expand Down
1 change: 1 addition & 0 deletions src/store/model/store.ts
Expand Up @@ -65,6 +65,7 @@ export type Model =
| '5900x'
| '5950x'
| '600 platinum'
| '600 gold'
| '750 platinum'
| 'amd reference'
| 'amp extreme holo'
Expand Down

0 comments on commit c81282e

Please sign in to comment.